3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/samba
16 --with-fhs Use FHS-compliant paths (default=no)"
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
22 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)"
24 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
26 --with-configdir=DIR Where to put configuration files (\$libdir)"
28 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
30 --enable-debug Turn on compiler debugging information (default=no)"
32 --enable-developer Turn on developer warnings and debugging (default=no)"
34 --enable-krb5developer Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)"
36 --enable-dmalloc Enable heap debugging [default=no]"
38 --enable-cups Turn on CUPS support (default=auto)"
40 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
42 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
44 --with-smbwrapper Include SMB wrapper support (default=no) "
46 --with-afs Include AFS clear-text auth support (default=no) "
48 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)"
50 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)"
52 --with-automount Include AUTOMOUNT support (default=no)"
54 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
56 --with-pam Include PAM support (default=no)"
58 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
60 --with-tdbsam Include experimental TDB SAM support (default=no)"
62 --with-nisplussam Include NISPLUS SAM support (default=no)"
64 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
66 --with-syslog Include experimental SYSLOG support (default=no)"
68 --with-profiling-data Include gathering source code profile information (default=no)"
70 --with-quotas Include experimental disk-quota support (default=no)"
72 --with-utmp Include experimental utmp accounting (default=no)"
74 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
76 --with-libsmbclient Build the libsmbclient shared library (default=yes)"
78 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
80 --with-acl-support Include ACL support (default=no)"
82 --with-winbind Build winbind (default, if supported by OS)"
84 --with-included-popt use bundled popt library, not from system"
86 # Initialize some variables set by options.
87 # The variables have the same names as the options, with
88 # dashes changed to underlines.
90 cache_file
=.
/config.cache
99 program_transform_name
=s
,x
,x
,
107 bindir
='${exec_prefix}/bin'
108 sbindir
='${exec_prefix}/sbin'
109 libexecdir
='${exec_prefix}/libexec'
110 datadir
='${prefix}/share'
111 sysconfdir
='${prefix}/etc'
112 sharedstatedir
='${prefix}/com'
113 localstatedir
='${prefix}/var'
114 libdir
='${exec_prefix}/lib'
115 includedir
='${prefix}/include'
116 oldincludedir
='/usr/include'
117 infodir
='${prefix}/info'
118 mandir
='${prefix}/man'
120 # Initialize some other variables.
123 SHELL
=${CONFIG_SHELL-/bin/sh}
124 # Maximum number of lines to put in a shell here document.
131 # If the previous option needs an argument, assign it.
132 if test -n "$ac_prev"; then
133 eval "$ac_prev=\$ac_option"
139 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
143 # Accept the important Cygnus configure options, so we can diagnose typos.
147 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
149 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
150 bindir
="$ac_optarg" ;;
152 -build |
--build |
--buil |
--bui |
--bu)
154 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
155 build
="$ac_optarg" ;;
157 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
158 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
159 ac_prev
=cache_file
;;
160 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
161 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
162 cache_file
="$ac_optarg" ;;
164 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
166 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
168 datadir
="$ac_optarg" ;;
170 -disable-* |
--disable-*)
171 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
172 # Reject names that are not valid shell variable names.
173 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
174 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
176 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
177 eval "enable_${ac_feature}=no" ;;
179 -enable-* |
--enable-*)
180 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
181 # Reject names that are not valid shell variable names.
182 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
183 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
185 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
190 eval "enable_${ac_feature}='$ac_optarg'" ;;
192 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
193 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
194 |
--exec |
--exe |
--ex)
195 ac_prev
=exec_prefix
;;
196 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
197 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
198 |
--exec=* |
--exe=* |
--ex=*)
199 exec_prefix
="$ac_optarg" ;;
201 -gas |
--gas |
--ga |
--g)
202 # Obsolete; use --with-gas.
205 -help |
--help |
--hel |
--he)
206 # Omit some internal or obsolete options to make the list less imposing.
207 # This message is too long to be a string in the A/UX 3.1 sh.
209 Usage: configure [options] [host]
210 Options: [defaults in brackets after descriptions]
212 --cache-file=FILE cache test results in FILE
213 --help print this message
214 --no-create do not create output files
215 --quiet, --silent do not print \`checking...' messages
216 --version print the version of autoconf that created configure
217 Directory and file names:
218 --prefix=PREFIX install architecture-independent files in PREFIX
220 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
222 --bindir=DIR user executables in DIR [EPREFIX/bin]
223 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
224 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
225 --datadir=DIR read-only architecture-independent data in DIR
227 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
228 --sharedstatedir=DIR modifiable architecture-independent data in DIR
230 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
231 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
232 --includedir=DIR C header files in DIR [PREFIX/include]
233 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
234 --infodir=DIR info documentation in DIR [PREFIX/info]
235 --mandir=DIR man documentation in DIR [PREFIX/man]
236 --srcdir=DIR find the sources in DIR [configure dir or ..]
237 --program-prefix=PREFIX prepend PREFIX to installed program names
238 --program-suffix=SUFFIX append SUFFIX to installed program names
239 --program-transform-name=PROGRAM
240 run sed PROGRAM on installed program names
244 --build=BUILD configure for building on BUILD [BUILD=HOST]
245 --host=HOST configure for HOST [guessed]
246 --target=TARGET configure for TARGET [TARGET=HOST]
247 Features and packages:
248 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
249 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
250 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
251 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
252 --x-includes=DIR X include files are in DIR
253 --x-libraries=DIR X library files are in DIR
255 if test -n "$ac_help"; then
256 echo "--enable and --with options recognized:$ac_help"
260 -host |
--host |
--hos |
--ho)
262 -host=* |
--host=* |
--hos=* |
--ho=*)
265 -includedir |
--includedir |
--includedi |
--included |
--include \
266 |
--includ |
--inclu |
--incl |
--inc)
267 ac_prev
=includedir
;;
268 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
269 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
270 includedir
="$ac_optarg" ;;
272 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
274 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
275 infodir
="$ac_optarg" ;;
277 -libdir |
--libdir |
--libdi |
--libd)
279 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
280 libdir
="$ac_optarg" ;;
282 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
283 |
--libexe |
--libex |
--libe)
284 ac_prev
=libexecdir
;;
285 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
286 |
--libexe=* |
--libex=* |
--libe=*)
287 libexecdir
="$ac_optarg" ;;
289 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
290 |
--localstate |
--localstat |
--localsta |
--localst \
291 |
--locals |
--local |
--loca |
--loc |
--lo)
292 ac_prev
=localstatedir
;;
293 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
294 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
295 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
296 localstatedir
="$ac_optarg" ;;
298 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
300 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
301 mandir
="$ac_optarg" ;;
304 # Obsolete; use --without-fp.
307 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
311 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
312 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
315 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
316 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
317 |
--oldin |
--oldi |
--old |
--ol |
--o)
318 ac_prev
=oldincludedir
;;
319 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
320 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
321 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
322 oldincludedir
="$ac_optarg" ;;
324 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
326 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
327 prefix
="$ac_optarg" ;;
329 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
330 |
--program-pre |
--program-pr |
--program-p)
331 ac_prev
=program_prefix
;;
332 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
333 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
334 program_prefix
="$ac_optarg" ;;
336 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
337 |
--program-suf |
--program-su |
--program-s)
338 ac_prev
=program_suffix
;;
339 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
340 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
341 program_suffix
="$ac_optarg" ;;
343 -program-transform-name |
--program-transform-name \
344 |
--program-transform-nam |
--program-transform-na \
345 |
--program-transform-n |
--program-transform- \
346 |
--program-transform |
--program-transfor \
347 |
--program-transfo |
--program-transf \
348 |
--program-trans |
--program-tran \
349 |
--progr-tra |
--program-tr |
--program-t)
350 ac_prev
=program_transform_name
;;
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 program_transform_name
="$ac_optarg" ;;
360 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
361 |
-silent |
--silent |
--silen |
--sile |
--sil)
364 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
366 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
368 sbindir
="$ac_optarg" ;;
370 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
371 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
372 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
374 ac_prev
=sharedstatedir
;;
375 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
376 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
377 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
379 sharedstatedir
="$ac_optarg" ;;
381 -site |
--site |
--sit)
383 -site=* |
--site=* |
--sit=*)
386 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
388 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
389 srcdir
="$ac_optarg" ;;
391 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
392 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
393 ac_prev
=sysconfdir
;;
394 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
395 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
396 sysconfdir
="$ac_optarg" ;;
398 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
400 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
401 target
="$ac_optarg" ;;
403 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
406 -version |
--version |
--versio |
--versi |
--vers)
407 echo "configure generated by autoconf version 2.13"
411 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
414 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
416 ac_package
=`echo $ac_package| sed 's/-/_/g'`
421 eval "with_${ac_package}='$ac_optarg'" ;;
423 -without-* |
--without-*)
424 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
425 # Reject names that are not valid shell variable names.
426 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
427 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
429 ac_package
=`echo $ac_package| sed 's/-/_/g'`
430 eval "with_${ac_package}=no" ;;
433 # Obsolete; use --with-x.
436 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
437 |
--x-incl |
--x-inc |
--x-in |
--x-i)
438 ac_prev
=x_includes
;;
439 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
440 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
441 x_includes
="$ac_optarg" ;;
443 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
444 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
445 ac_prev
=x_libraries
;;
446 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
447 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
448 x_libraries
="$ac_optarg" ;;
450 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
454 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
455 echo "configure: warning: $ac_option: invalid host type" 1>&2
457 if test "x$nonopt" != xNONE
; then
458 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
466 if test -n "$ac_prev"; then
467 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
470 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
472 # File descriptor usage:
475 # 2 errors and warnings
476 # 3 some systems may open it to /dev/tty
477 # 4 used on the Kubota Titan
478 # 6 checking for... messages and results
479 # 5 compiler messages saved in config.log
480 if test "$silent" = yes; then
488 This file contains any messages produced by compilers while
489 running configure, to aid debugging if configure makes a mistake.
492 # Strip out --no-create and --no-recursion so they do not pile up.
493 # Also quote any args containing shell metacharacters.
498 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
499 |
--no-cr |
--no-c) ;;
500 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
501 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
502 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
503 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
504 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
509 # Only set these to C if already set. These must not be set unconditionally
510 # because not all systems understand e.g. LANG=C (notably SCO).
511 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
512 # Non-C LC_CTYPE values break the ctype check.
513 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
514 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
515 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
516 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
518 # confdefs.h avoids OS command line length limits that DEFS can exceed.
519 rm -rf conftest
* confdefs.h
520 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
523 # A filename unique to this package, relative to the directory that
524 # configure is in, which we can look for to find out if srcdir is correct.
525 ac_unique_file
=include
/includes.h
527 # Find the source files, if location was not specified.
528 if test -z "$srcdir"; then
529 ac_srcdir_defaulted
=yes
530 # Try the directory containing this script, then its parent.
532 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
533 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
535 if test ! -r $srcdir/$ac_unique_file; then
539 ac_srcdir_defaulted
=no
541 if test ! -r $srcdir/$ac_unique_file; then
542 if test "$ac_srcdir_defaulted" = yes; then
543 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
545 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
548 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
550 # Prefer explicitly selected file to automatically selected ones.
551 if test -z "$CONFIG_SITE"; then
552 if test "x$prefix" != xNONE
; then
553 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
555 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
558 for ac_site_file
in $CONFIG_SITE; do
559 if test -r "$ac_site_file"; then
560 echo "loading site script $ac_site_file"
565 if test -r "$cache_file"; then
566 echo "loading cache $cache_file"
569 echo "creating cache $cache_file"
574 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
575 ac_cpp
='$CPP $CPPFLAGS'
576 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
577 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
578 cross_compiling
=$ac_cv_prog_cc_cross
582 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
583 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
584 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
591 ac_n
= ac_c
='\c' ac_t
=
597 #################################################
598 # Directory handling stuff to support both the
599 # legacy SAMBA directories and FHS compliant
603 # Check whether --with-fhs or --without-fhs was given.
604 if test "${with_fhs+set}" = set; then
606 configdir
="${sysconfdir}/samba"
607 lockdir
="\${VARDIR}/cache/samba"
608 piddir
="\$(VARDIR)/run/samba"
609 logfilebase
="\${VARDIR}/log/samba"
610 privatedir
="\${CONFIGDIR}/private"
611 swatdir
="\${DATADIR}/samba/swat"
613 configdir
="\$(LIBDIR)"
614 logfilebase
="\$(VARDIR)"
615 lockdir
="\${VARDIR}/locks"
616 piddir
="\$(VARDIR)/locks"
617 privatedir
="\${prefix}/private"
618 swatdir
="\${prefix}/swat"
622 #################################################
623 # set private directory location
624 # Check whether --with-privatedir or --without-privatedir was given.
625 if test "${with_privatedir+set}" = set; then
626 withval
="$with_privatedir"
630 # Just in case anybody calls it without argument
632 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
635 privatedir
="$withval"
641 #################################################
642 # set lock directory location
643 # Check whether --with-lockdir or --without-lockdir was given.
644 if test "${with_lockdir+set}" = set; then
645 withval
="$with_lockdir"
649 # Just in case anybody calls it without argument
651 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
660 #################################################
661 # set pid directory location
662 # Check whether --with-piddir or --without-piddir was given.
663 if test "${with_piddir+set}" = set; then
664 withval
="$with_piddir"
668 # Just in case anybody calls it without argument
670 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
679 #################################################
680 # set SWAT directory location
681 # Check whether --with-swatdir or --without-swatdir was given.
682 if test "${with_swatdir+set}" = set; then
683 withval
="$with_swatdir"
687 # Just in case anybody does it
689 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
698 #################################################
699 # set configuration directory location
700 # Check whether --with-configdir or --without-configdir was given.
701 if test "${with_configdir+set}" = set; then
702 withval
="$with_configdir"
706 # Just in case anybody does it
708 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
717 #################################################
718 # set log directory location
719 # Check whether --with-logfilebase or --without-logfilebase was given.
720 if test "${with_logfilebase+set}" = set; then
721 withval
="$with_logfilebase"
725 # Just in case anybody does it
727 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
730 logfilebase
="$withval"
763 # compile with optimization and without debugging by default
764 CFLAGS
="-O ${CFLAGS}"
766 # Check whether --enable-debug or --disable-debug was given.
767 if test "${enable_debug+set}" = set; then
768 enableval
="$enable_debug"
769 if eval "test x$enable_debug = xyes"; then
770 CFLAGS
="${CFLAGS} -g"
775 # Check whether --enable-developer or --disable-developer was given.
776 if test "${enable_developer+set}" = set; then
777 enableval
="$enable_developer"
778 if eval "test x$enable_developer = xyes"; then
779 CFLAGS
="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
784 # Check whether --enable-krb5developer or --disable-krb5developer was given.
785 if test "${enable_krb5developer+set}" = set; then
786 enableval
="$enable_krb5developer"
787 if eval "test x$enable_krb5developer = xyes"; then
788 CFLAGS
="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
793 # Check whether --enable-dmalloc or --disable-dmalloc was given.
794 if test "${enable_dmalloc+set}" = set; then
795 enableval
="$enable_dmalloc"
800 if test "x$enable_dmalloc" = xyes
802 cat >> confdefs.h
<<\EOF
803 #define ENABLE_DMALLOC 1
806 cat >> confdefs.h
<<\EOF
807 #define DMALLOC_FUNC_CHECK 1
810 LIBS
="$LIBS -ldmalloc"
813 # Extract the first word of "gcc", so it can be a program name with args.
814 set dummy gcc
; ac_word
=$2
815 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
816 echo "configure:817: checking for $ac_word" >&5
817 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
818 echo $ac_n "(cached) $ac_c" 1>&6
820 if test -n "$CC"; then
821 ac_cv_prog_CC
="$CC" # Let the user override the test.
823 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
825 for ac_dir
in $ac_dummy; do
826 test -z "$ac_dir" && ac_dir
=.
827 if test -f $ac_dir/$ac_word; then
836 if test -n "$CC"; then
837 echo "$ac_t""$CC" 1>&6
839 echo "$ac_t""no" 1>&6
842 if test -z "$CC"; then
843 # Extract the first word of "cc", so it can be a program name with args.
844 set dummy cc
; ac_word
=$2
845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
846 echo "configure:847: checking for $ac_word" >&5
847 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
848 echo $ac_n "(cached) $ac_c" 1>&6
850 if test -n "$CC"; then
851 ac_cv_prog_CC
="$CC" # Let the user override the test.
853 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
856 for ac_dir
in $ac_dummy; do
857 test -z "$ac_dir" && ac_dir
=.
858 if test -f $ac_dir/$ac_word; then
859 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
868 if test $ac_prog_rejected = yes; then
869 # We found a bogon in the path, so make sure we never use it.
870 set dummy
$ac_cv_prog_CC
872 if test $# -gt 0; then
873 # We chose a different compiler from the bogus one.
874 # However, it has the same basename, so the bogon will be chosen
875 # first if we set CC to just the basename; use the full file name.
877 set dummy
"$ac_dir/$ac_word" "$@"
885 if test -n "$CC"; then
886 echo "$ac_t""$CC" 1>&6
888 echo "$ac_t""no" 1>&6
891 if test -z "$CC"; then
894 # Extract the first word of "cl", so it can be a program name with args.
895 set dummy cl
; ac_word
=$2
896 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
897 echo "configure:898: checking for $ac_word" >&5
898 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
899 echo $ac_n "(cached) $ac_c" 1>&6
901 if test -n "$CC"; then
902 ac_cv_prog_CC
="$CC" # Let the user override the test.
904 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
906 for ac_dir
in $ac_dummy; do
907 test -z "$ac_dir" && ac_dir
=.
908 if test -f $ac_dir/$ac_word; then
917 if test -n "$CC"; then
918 echo "$ac_t""$CC" 1>&6
920 echo "$ac_t""no" 1>&6
925 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
928 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
929 echo "configure:930: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
932 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
933 ac_cpp
='$CPP $CPPFLAGS'
934 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
935 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
936 cross_compiling
=$ac_cv_prog_cc_cross
938 cat > conftest.
$ac_ext << EOF
940 #line 941 "configure"
941 #include "confdefs.h"
945 if { (eval echo configure
:946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
946 ac_cv_prog_cc_works
=yes
947 # If we can't run a trivial program, we are probably using a cross compiler.
948 if (.
/conftest
; exit) 2>/dev
/null
; then
949 ac_cv_prog_cc_cross
=no
951 ac_cv_prog_cc_cross
=yes
954 echo "configure: failed program was:" >&5
955 cat conftest.
$ac_ext >&5
956 ac_cv_prog_cc_works
=no
960 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
961 ac_cpp
='$CPP $CPPFLAGS'
962 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
963 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
964 cross_compiling
=$ac_cv_prog_cc_cross
966 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
967 if test $ac_cv_prog_cc_works = no
; then
968 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
970 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
971 echo "configure:972: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
972 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
973 cross_compiling
=$ac_cv_prog_cc_cross
975 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
976 echo "configure:977: checking whether we are using GNU C" >&5
977 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
980 cat > conftest.c
<<EOF
985 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
992 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
994 if test $ac_cv_prog_gcc = yes; then
1000 ac_test_CFLAGS
="${CFLAGS+set}"
1001 ac_save_CFLAGS
="$CFLAGS"
1003 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1004 echo "configure:1005: checking whether ${CC-cc} accepts -g" >&5
1005 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1006 echo $ac_n "(cached) $ac_c" 1>&6
1008 echo 'void f(){}' > conftest.c
1009 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1018 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1019 if test "$ac_test_CFLAGS" = set; then
1020 CFLAGS
="$ac_save_CFLAGS"
1021 elif test $ac_cv_prog_cc_g = yes; then
1022 if test "$GCC" = yes; then
1028 if test "$GCC" = yes; then
1036 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1037 if test -f $ac_dir/install-sh
; then
1039 ac_install_sh
="$ac_aux_dir/install-sh -c"
1041 elif test -f $ac_dir/install.sh
; then
1043 ac_install_sh
="$ac_aux_dir/install.sh -c"
1047 if test -z "$ac_aux_dir"; then
1048 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1050 ac_config_guess
=$ac_aux_dir/config.guess
1051 ac_config_sub
=$ac_aux_dir/config.sub
1052 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1054 # Find a good install program. We prefer a C program (faster),
1055 # so one script is as good as another. But avoid the broken or
1056 # incompatible versions:
1057 # SysV /etc/install, /usr/sbin/install
1058 # SunOS /usr/etc/install
1059 # IRIX /sbin/install
1061 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1062 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1063 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1064 # ./install, which can be erroneously created by make from ./install.sh.
1065 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1066 echo "configure:1067: checking for a BSD compatible install" >&5
1067 if test -z "$INSTALL"; then
1068 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1069 echo $ac_n "(cached) $ac_c" 1>&6
1071 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1072 for ac_dir
in $PATH; do
1073 # Account for people who put trailing slashes in PATH elements.
1075 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1077 # OSF1 and SCO ODT 3.0 have their own names for install.
1078 # Don't use installbsd from OSF since it installs stuff as root
1080 for ac_prog
in ginstall scoinst
install; do
1081 if test -f $ac_dir/$ac_prog; then
1082 if test $ac_prog = install &&
1083 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1084 # AIX install. It has an incompatible calling convention.
1087 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1098 if test "${ac_cv_path_install+set}" = set; then
1099 INSTALL
="$ac_cv_path_install"
1101 # As a last resort, use the slow shell script. We don't cache a
1102 # path for INSTALL within a source directory, because that will
1103 # break other packages using the cache if that directory is
1104 # removed, or if the path is relative.
1105 INSTALL
="$ac_install_sh"
1108 echo "$ac_t""$INSTALL" 1>&6
1110 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1111 # It thinks the first close brace ends the variable substitution.
1112 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1114 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1116 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1118 for ac_prog
in gawk mawk nawk
awk
1120 # Extract the first word of "$ac_prog", so it can be a program name with args.
1121 set dummy
$ac_prog; ac_word
=$2
1122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1123 echo "configure:1124: checking for $ac_word" >&5
1124 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1125 echo $ac_n "(cached) $ac_c" 1>&6
1127 if test -n "$AWK"; then
1128 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1130 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1132 for ac_dir
in $ac_dummy; do
1133 test -z "$ac_dir" && ac_dir
=.
1134 if test -f $ac_dir/$ac_word; then
1135 ac_cv_prog_AWK
="$ac_prog"
1142 AWK
="$ac_cv_prog_AWK"
1143 if test -n "$AWK"; then
1144 echo "$ac_t""$AWK" 1>&6
1146 echo "$ac_t""no" 1>&6
1149 test -n "$AWK" && break
1154 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1155 echo "configure:1156: checking if the linker ($LD) is GNU ld" >&5
1156 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1157 echo $ac_n "(cached) $ac_c" 1>&6
1159 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1160 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1161 ac_cv_prog_gnu_ld
=yes
1163 ac_cv_prog_gnu_ld
=no
1167 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1170 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1171 echo "configure:1172: checking for POSIXized ISC" >&5
1172 if test -d /etc
/conf
/kconfig.d
&&
1173 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1175 echo "$ac_t""yes" 1>&6
1176 ISC
=yes # If later tests want to check for ISC.
1177 cat >> confdefs.h
<<\EOF
1178 #define _POSIX_SOURCE 1
1181 if test "$GCC" = yes; then
1187 echo "$ac_t""no" 1>&6
1192 if test "x$CC" != xcc
; then
1193 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1194 echo "configure:1195: checking whether $CC and cc understand -c and -o together" >&5
1196 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1197 echo "configure:1198: checking whether cc understands -c and -o together" >&5
1199 set dummy
$CC; ac_cc
="`echo $2 |
1200 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1201 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1202 echo $ac_n "(cached) $ac_c" 1>&6
1204 echo 'foo(){}' > conftest.c
1205 # Make sure it works both with $CC and with simple cc.
1206 # We do the test twice because some compilers refuse to overwrite an
1207 # existing .o file with -o, though they will create one.
1208 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1209 if { (eval echo configure
:1210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1210 test -f conftest.o
&& { (eval echo configure
:1211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1212 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1213 if test "x$CC" != xcc
; then
1214 # Test first that cc exists at all.
1215 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1216 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1217 if { (eval echo configure
:1218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1218 test -f conftest.o
&& { (eval echo configure
:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1223 # cc exists but doesn't like -o.
1224 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1229 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1234 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1235 echo "$ac_t""yes" 1>&6
1237 echo "$ac_t""no" 1>&6
1238 cat >> confdefs.h
<<\EOF
1239 #define NO_MINUS_C_MINUS_O 1
1244 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1251 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1252 echo "configure:1253: checking that the C compiler understands volatile" >&5
1253 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1257 cat > conftest.
$ac_ext <<EOF
1258 #line 1259 "configure"
1259 #include "confdefs.h"
1260 #include <sys/types.h>
1265 if { (eval echo configure
:1266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1267 samba_cv_volatile
=yes
1269 echo "configure: failed program was:" >&5
1270 cat conftest.
$ac_ext >&5
1272 samba_cv_volatile
=no
1277 echo "$ac_t""$samba_cv_volatile" 1>&6
1278 if test x
"$samba_cv_volatile" = x
"yes"; then
1279 cat >> confdefs.h
<<\EOF
1280 #define HAVE_VOLATILE 1
1287 # Do some error checking and defaulting for the host and target type.
1289 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1292 # 1. You are not allowed to specify --host, --target, and nonopt at the
1294 # 2. Host defaults to nonopt.
1295 # 3. If nonopt is not specified, then host defaults to the current host,
1296 # as determined by config.guess.
1297 # 4. Target and build default to nonopt.
1298 # 5. If nonopt is not specified, then target and build default to host.
1300 # The aliases save the names the user supplied, while $host etc.
1301 # will get canonicalized.
1302 case $host---$target---$nonopt in
1303 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1304 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1308 # Make sure we can run config.sub.
1309 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1310 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1313 echo $ac_n "checking host system type""... $ac_c" 1>&6
1314 echo "configure:1315: checking host system type" >&5
1317 case "$host_alias" in
1321 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1322 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1324 *) host_alias
=$nonopt ;;
1328 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1329 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1330 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1331 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1332 echo "$ac_t""$host" 1>&6
1334 echo $ac_n "checking target system type""... $ac_c" 1>&6
1335 echo "configure:1336: checking target system type" >&5
1337 target_alias
=$target
1338 case "$target_alias" in
1341 NONE
) target_alias
=$host_alias ;;
1342 *) target_alias
=$nonopt ;;
1346 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1347 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1348 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1349 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1350 echo "$ac_t""$target" 1>&6
1352 echo $ac_n "checking build system type""... $ac_c" 1>&6
1353 echo "configure:1354: checking build system type" >&5
1356 case "$build_alias" in
1359 NONE
) build_alias
=$host_alias ;;
1360 *) build_alias
=$nonopt ;;
1364 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1365 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1366 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1367 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1368 echo "$ac_t""$build" 1>&6
1370 test "$host_alias" != "$target_alias" &&
1371 test "$program_prefix$program_suffix$program_transform_name" = \
1373 program_prefix
=${target_alias}-
1377 *irix6
*) cat >> confdefs.h
<<\EOF
1378 #include <standards.h>
1386 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1387 echo "configure:1388: checking config.cache system type" >&5
1388 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1389 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1390 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1391 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1392 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1393 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1394 echo "$ac_t""different" 1>&6
1395 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1397 echo "$ac_t""same" 1>&6
1399 ac_cv_host_system_type
="$host"
1400 ac_cv_build_system_type
="$build"
1401 ac_cv_target_system_type
="$target"
1407 # Config CPPFLAG settings for strange OS's that must be set
1408 # before other tests.
1411 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1414 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1415 echo "configure:1416: checking whether ${CC-cc} accepts -Ae" >&5
1416 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1417 echo $ac_n "(cached) $ac_c" 1>&6
1419 echo 'void f(){}' > conftest.c
1420 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1421 ac_cv_prog_cc_Ae
=yes
1429 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1430 # mmap on HPUX is completely broken...
1431 cat >> confdefs.h
<<\EOF
1432 #define MMAP_BLACKLIST 1
1435 if test $ac_cv_prog_cc_Ae = yes; then
1436 CPPFLAGS
="$CPPFLAGS -Ae"
1439 # Defines needed for HPUX support.
1440 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1441 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1445 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1446 cat >> confdefs.h
<<\EOF
1447 #define USE_BOTH_CRYPT_CALLS 1
1450 cat >> confdefs.h
<<\EOF
1451 #define _HPUX_SOURCE 1
1454 cat >> confdefs.h
<<\EOF
1455 #define _POSIX_SOURCE 1
1458 cat >> confdefs.h
<<\EOF
1459 #define _ALIGNMENT_REQUIRED 1
1462 cat >> confdefs.h
<<\EOF
1463 #define _MAX_ALIGNMENT 4
1468 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1469 cat >> confdefs.h
<<\EOF
1470 #define USE_BOTH_CRYPT_CALLS 1
1473 cat >> confdefs.h
<<\EOF
1474 #define _HPUX_SOURCE 1
1477 cat >> confdefs.h
<<\EOF
1478 #define _POSIX_SOURCE 1
1481 cat >> confdefs.h
<<\EOF
1482 #define _LARGEFILE64_SOURCE 1
1485 cat >> confdefs.h
<<\EOF
1486 #define _ALIGNMENT_REQUIRED 1
1489 cat >> confdefs.h
<<\EOF
1490 #define _MAX_ALIGNMENT 4
1499 # CRAY Unicos has broken const handling
1501 echo "$ac_t""disabling const" 1>&6
1502 CPPFLAGS
="$CPPFLAGS -Dconst="
1506 # AIX4.x doesn't even admit to having large
1507 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1510 echo "$ac_t""enabling large file support" 1>&6
1511 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1512 cat >> confdefs.h
<<\EOF
1513 #define _LARGE_FILES 1
1518 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1519 # to the existance of large files..
1520 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1521 # recommendations on large file support, however it makes the
1522 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1523 # recommendation makes the compile fail on gcc2.7. JRA.
1527 5.0*|
5.1*|
5.2*|
5.3*|
5.5*)
1528 echo "$ac_t""no large file support" 1>&6
1531 echo "$ac_t""enabling large file support" 1>&6
1532 if test "$ac_cv_prog_gcc" = yes; then
1533 ${CC-cc} -v >conftest.c
2>&1
1534 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1536 case "$ac_cv_gcc_compiler_version_number" in
1537 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1538 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1539 cat >> confdefs.h
<<\EOF
1540 #define _LARGEFILE64_SOURCE 1
1545 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1546 cat >> confdefs.h
<<\EOF
1547 #define _LARGEFILE64_SOURCE 1
1550 cat >> confdefs.h
<<\EOF
1551 #define _FILE_OFFSET_BITS 64
1557 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1558 cat >> confdefs.h
<<\EOF
1559 #define _LARGEFILE64_SOURCE 1
1562 cat >> confdefs.h
<<\EOF
1563 #define _FILE_OFFSET_BITS 64
1571 # Tests needed for SINIX large file support.
1574 if test $host = mips-sni-sysv4
; then
1575 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1576 echo "configure:1577: checking for LFS support" >&5
1577 old_CPPFLAGS
="$CPPFLAGS"
1578 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1579 if test "$cross_compiling" = yes; then
1580 SINIX_LFS_SUPPORT
=cross
1582 cat > conftest.
$ac_ext <<EOF
1583 #line 1584 "configure"
1584 #include "confdefs.h"
1588 #if _LFS64_LARGEFILE == 1
1595 if { (eval echo configure
:1596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1597 SINIX_LFS_SUPPORT
=yes
1599 echo "configure: failed program was:" >&5
1600 cat conftest.
$ac_ext >&5
1602 SINIX_LFS_SUPPORT
=no
1607 CPPFLAGS
="$old_CPPFLAGS"
1608 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1609 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1610 cat >> confdefs.h
<<\EOF
1611 #define _LARGEFILE64_SOURCE 1
1614 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1615 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1616 LIBS
="`getconf LFS64_LIBS` $LIBS"
1618 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1622 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1625 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1626 echo "configure:1627: checking for LFS support" >&5
1627 old_CPPFLAGS
="$CPPFLAGS"
1628 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1629 if test "$cross_compiling" = yes; then
1630 LINUX_LFS_SUPPORT
=cross
1632 cat > conftest.
$ac_ext <<EOF
1633 #line 1634 "configure"
1634 #include "confdefs.h"
1637 #include <sys/utsname.h>
1639 #if _LFS64_LARGEFILE == 1
1644 /* Ensure this is glibc 2.2 or higher */
1645 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1646 int libc_major = __GLIBC__;
1647 int libc_minor = __GLIBC_MINOR__;
1655 /* Ensure this is kernel 2.4 or higher */
1658 release = uts.release;
1659 major = atoi(strsep(&release, "."));
1660 minor = atoi(strsep(&release, "."));
1662 if (major > 2 || (major == 2 && minor > 3))
1671 if { (eval echo configure
:1672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1673 LINUX_LFS_SUPPORT
=yes
1675 echo "configure: failed program was:" >&5
1676 cat conftest.
$ac_ext >&5
1678 LINUX_LFS_SUPPORT
=no
1683 CPPFLAGS
="$old_CPPFLAGS"
1684 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1685 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1686 cat >> confdefs.h
<<\EOF
1687 #define _LARGEFILE64_SOURCE 1
1690 cat >> confdefs.h
<<\EOF
1691 #define _FILE_OFFSET_BITS 64
1694 cat >> confdefs.h
<<\EOF
1695 #define _GNU_SOURCE 1
1699 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1703 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1704 echo "configure:1705: checking for LFS support" >&5
1705 old_CPPFLAGS
="$CPPFLAGS"
1706 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1707 if test "$cross_compiling" = yes; then
1708 GLIBC_LFS_SUPPORT
=cross
1710 cat > conftest.
$ac_ext <<EOF
1711 #line 1712 "configure"
1712 #include "confdefs.h"
1716 #if _LFS64_LARGEFILE == 1
1723 if { (eval echo configure
:1724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1725 GLIBC_LFS_SUPPORT
=yes
1727 echo "configure: failed program was:" >&5
1728 cat conftest.
$ac_ext >&5
1730 GLIBC_LFS_SUPPORT
=no
1735 CPPFLAGS
="$old_CPPFLAGS"
1736 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1737 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1738 cat >> confdefs.h
<<\EOF
1739 #define _LARGEFILE64_SOURCE 1
1742 cat >> confdefs.h
<<\EOF
1743 #define _GNU_SOURCE 1
1747 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1752 echo $ac_n "checking for inline""... $ac_c" 1>&6
1753 echo "configure:1754: checking for inline" >&5
1754 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1758 for ac_kw
in inline __inline__ __inline
; do
1759 cat > conftest.
$ac_ext <<EOF
1760 #line 1761 "configure"
1761 #include "confdefs.h"
1767 if { (eval echo configure
:1768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1769 ac_cv_c_inline
=$ac_kw; break
1771 echo "configure: failed program was:" >&5
1772 cat conftest.
$ac_ext >&5
1779 echo "$ac_t""$ac_cv_c_inline" 1>&6
1780 case "$ac_cv_c_inline" in
1782 no
) cat >> confdefs.h
<<\EOF
1786 *) cat >> confdefs.h
<<EOF
1787 #define inline $ac_cv_c_inline
1792 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1793 echo "configure:1794: checking how to run the C preprocessor" >&5
1794 # On Suns, sometimes $CPP names a directory.
1795 if test -n "$CPP" && test -d "$CPP"; then
1798 if test -z "$CPP"; then
1799 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1800 echo $ac_n "(cached) $ac_c" 1>&6
1802 # This must be in double quotes, not single quotes, because CPP may get
1803 # substituted into the Makefile and "${CC-cc}" will confuse make.
1805 # On the NeXT, cc -E runs the code through the compiler's parser,
1806 # not just through cpp.
1807 cat > conftest.
$ac_ext <<EOF
1808 #line 1809 "configure"
1809 #include "confdefs.h"
1813 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1814 { (eval echo configure
:1815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1815 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1816 if test -z "$ac_err"; then
1820 echo "configure: failed program was:" >&5
1821 cat conftest.
$ac_ext >&5
1823 CPP
="${CC-cc} -E -traditional-cpp"
1824 cat > conftest.
$ac_ext <<EOF
1825 #line 1826 "configure"
1826 #include "confdefs.h"
1830 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1831 { (eval echo configure
:1832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1832 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1833 if test -z "$ac_err"; then
1837 echo "configure: failed program was:" >&5
1838 cat conftest.
$ac_ext >&5
1840 CPP
="${CC-cc} -nologo -E"
1841 cat > conftest.
$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1847 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1848 { (eval echo configure
:1849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1849 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1850 if test -z "$ac_err"; then
1854 echo "configure: failed program was:" >&5
1855 cat conftest.
$ac_ext >&5
1864 ac_cv_prog_CPP
="$CPP"
1866 CPP
="$ac_cv_prog_CPP"
1868 ac_cv_prog_CPP
="$CPP"
1870 echo "$ac_t""$CPP" 1>&6
1872 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1873 echo "configure:1874: checking for ANSI C header files" >&5
1874 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1875 echo $ac_n "(cached) $ac_c" 1>&6
1877 cat > conftest.
$ac_ext <<EOF
1878 #line 1879 "configure"
1879 #include "confdefs.h"
1885 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1886 { (eval echo configure
:1887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1887 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1888 if test -z "$ac_err"; then
1890 ac_cv_header_stdc
=yes
1893 echo "configure: failed program was:" >&5
1894 cat conftest.
$ac_ext >&5
1896 ac_cv_header_stdc
=no
1900 if test $ac_cv_header_stdc = yes; then
1901 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1902 cat > conftest.
$ac_ext <<EOF
1903 #line 1904 "configure"
1904 #include "confdefs.h"
1907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1908 egrep "memchr" >/dev
/null
2>&1; then
1912 ac_cv_header_stdc
=no
1918 if test $ac_cv_header_stdc = yes; then
1919 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1920 cat > conftest.
$ac_ext <<EOF
1921 #line 1922 "configure"
1922 #include "confdefs.h"
1925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1926 egrep "free" >/dev
/null
2>&1; then
1930 ac_cv_header_stdc
=no
1936 if test $ac_cv_header_stdc = yes; then
1937 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1938 if test "$cross_compiling" = yes; then
1941 cat > conftest.
$ac_ext <<EOF
1942 #line 1943 "configure"
1943 #include "confdefs.h"
1945 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1946 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1947 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1948 int main () { int i; for (i = 0; i < 256; i++)
1949 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1953 if { (eval echo configure
:1954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1957 echo "configure: failed program was:" >&5
1958 cat conftest.
$ac_ext >&5
1960 ac_cv_header_stdc
=no
1968 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1969 if test $ac_cv_header_stdc = yes; then
1970 cat >> confdefs.h
<<\EOF
1971 #define STDC_HEADERS 1
1977 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1979 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1980 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1981 echo "configure:1982: checking for $ac_hdr that defines DIR" >&5
1982 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1985 cat > conftest.
$ac_ext <<EOF
1986 #line 1987 "configure"
1987 #include "confdefs.h"
1988 #include <sys/types.h>
1994 if { (eval echo configure
:1995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1996 eval "ac_cv_header_dirent_$ac_safe=yes"
1998 echo "configure: failed program was:" >&5
1999 cat conftest.
$ac_ext >&5
2001 eval "ac_cv_header_dirent_$ac_safe=no"
2005 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2006 echo "$ac_t""yes" 1>&6
2007 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2008 cat >> confdefs.h
<<EOF
2009 #define $ac_tr_hdr 1
2011 ac_header_dirent
=$ac_hdr; break
2013 echo "$ac_t""no" 1>&6
2016 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2017 if test $ac_header_dirent = dirent.h
; then
2018 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2019 echo "configure:2020: checking for opendir in -ldir" >&5
2020 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2021 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2022 echo $ac_n "(cached) $ac_c" 1>&6
2024 ac_save_LIBS
="$LIBS"
2026 cat > conftest.
$ac_ext <<EOF
2027 #line 2028 "configure"
2028 #include "confdefs.h"
2029 /* Override any gcc2 internal prototype to avoid an error. */
2030 /* We use char because int might match the return type of a gcc2
2031 builtin and then its argument prototype would still apply. */
2038 if { (eval echo configure
:2039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2040 eval "ac_cv_lib_$ac_lib_var=yes"
2042 echo "configure: failed program was:" >&5
2043 cat conftest.
$ac_ext >&5
2045 eval "ac_cv_lib_$ac_lib_var=no"
2048 LIBS
="$ac_save_LIBS"
2051 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2052 echo "$ac_t""yes" 1>&6
2055 echo "$ac_t""no" 1>&6
2059 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2060 echo "configure:2061: checking for opendir in -lx" >&5
2061 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2062 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2063 echo $ac_n "(cached) $ac_c" 1>&6
2065 ac_save_LIBS
="$LIBS"
2067 cat > conftest.
$ac_ext <<EOF
2068 #line 2069 "configure"
2069 #include "confdefs.h"
2070 /* Override any gcc2 internal prototype to avoid an error. */
2071 /* We use char because int might match the return type of a gcc2
2072 builtin and then its argument prototype would still apply. */
2079 if { (eval echo configure
:2080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2081 eval "ac_cv_lib_$ac_lib_var=yes"
2083 echo "configure: failed program was:" >&5
2084 cat conftest.
$ac_ext >&5
2086 eval "ac_cv_lib_$ac_lib_var=no"
2089 LIBS
="$ac_save_LIBS"
2092 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2093 echo "$ac_t""yes" 1>&6
2096 echo "$ac_t""no" 1>&6
2101 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2102 echo "configure:2103: checking whether time.h and sys/time.h may both be included" >&5
2103 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2104 echo $ac_n "(cached) $ac_c" 1>&6
2106 cat > conftest.
$ac_ext <<EOF
2107 #line 2108 "configure"
2108 #include "confdefs.h"
2109 #include <sys/types.h>
2110 #include <sys/time.h>
2116 if { (eval echo configure
:2117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2118 ac_cv_header_time
=yes
2120 echo "configure: failed program was:" >&5
2121 cat conftest.
$ac_ext >&5
2123 ac_cv_header_time
=no
2128 echo "$ac_t""$ac_cv_header_time" 1>&6
2129 if test $ac_cv_header_time = yes; then
2130 cat >> confdefs.h
<<\EOF
2131 #define TIME_WITH_SYS_TIME 1
2136 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2137 echo "configure:2138: checking for sys/wait.h that is POSIX.1 compatible" >&5
2138 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2139 echo $ac_n "(cached) $ac_c" 1>&6
2141 cat > conftest.
$ac_ext <<EOF
2142 #line 2143 "configure"
2143 #include "confdefs.h"
2144 #include <sys/types.h>
2145 #include <sys/wait.h>
2147 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2150 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2155 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2158 if { (eval echo configure
:2159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2160 ac_cv_header_sys_wait_h
=yes
2162 echo "configure: failed program was:" >&5
2163 cat conftest.
$ac_ext >&5
2165 ac_cv_header_sys_wait_h
=no
2170 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2171 if test $ac_cv_header_sys_wait_h = yes; then
2172 cat >> confdefs.h
<<\EOF
2173 #define HAVE_SYS_WAIT_H 1
2178 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2180 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2181 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2182 echo "configure:2183: checking for $ac_hdr" >&5
2183 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2186 cat > conftest.
$ac_ext <<EOF
2187 #line 2188 "configure"
2188 #include "confdefs.h"
2191 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2192 { (eval echo configure
:2193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2193 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2194 if test -z "$ac_err"; then
2196 eval "ac_cv_header_$ac_safe=yes"
2199 echo "configure: failed program was:" >&5
2200 cat conftest.
$ac_ext >&5
2202 eval "ac_cv_header_$ac_safe=no"
2206 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2207 echo "$ac_t""yes" 1>&6
2208 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2209 cat >> confdefs.h
<<EOF
2210 #define $ac_tr_hdr 1
2214 echo "$ac_t""no" 1>&6
2218 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2220 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2221 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2222 echo "configure:2223: checking for $ac_hdr" >&5
2223 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2226 cat > conftest.
$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2231 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2232 { (eval echo configure
:2233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2233 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2234 if test -z "$ac_err"; then
2236 eval "ac_cv_header_$ac_safe=yes"
2239 echo "configure: failed program was:" >&5
2240 cat conftest.
$ac_ext >&5
2242 eval "ac_cv_header_$ac_safe=no"
2246 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2247 echo "$ac_t""yes" 1>&6
2248 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2249 cat >> confdefs.h
<<EOF
2250 #define $ac_tr_hdr 1
2254 echo "$ac_t""no" 1>&6
2258 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2260 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2261 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2262 echo "configure:2263: checking for $ac_hdr" >&5
2263 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2264 echo $ac_n "(cached) $ac_c" 1>&6
2266 cat > conftest.
$ac_ext <<EOF
2267 #line 2268 "configure"
2268 #include "confdefs.h"
2271 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2272 { (eval echo configure
:2273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2273 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2274 if test -z "$ac_err"; then
2276 eval "ac_cv_header_$ac_safe=yes"
2279 echo "configure: failed program was:" >&5
2280 cat conftest.
$ac_ext >&5
2282 eval "ac_cv_header_$ac_safe=no"
2286 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2287 echo "$ac_t""yes" 1>&6
2288 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2289 cat >> confdefs.h
<<EOF
2290 #define $ac_tr_hdr 1
2294 echo "$ac_t""no" 1>&6
2298 for ac_hdr
in sys
/param.h ctype.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/ipc.h sys
/mode.h
2300 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2301 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2302 echo "configure:2303: checking for $ac_hdr" >&5
2303 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2304 echo $ac_n "(cached) $ac_c" 1>&6
2306 cat > conftest.
$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2311 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2312 { (eval echo configure
:2313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2313 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2314 if test -z "$ac_err"; then
2316 eval "ac_cv_header_$ac_safe=yes"
2319 echo "configure: failed program was:" >&5
2320 cat conftest.
$ac_ext >&5
2322 eval "ac_cv_header_$ac_safe=no"
2326 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2327 echo "$ac_t""yes" 1>&6
2328 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2329 cat >> confdefs.h
<<EOF
2330 #define $ac_tr_hdr 1
2334 echo "$ac_t""no" 1>&6
2338 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h sys
/shm.h string.h
strings.h stdlib.h sys
/socket.h
2340 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2341 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2342 echo "configure:2343: checking for $ac_hdr" >&5
2343 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2344 echo $ac_n "(cached) $ac_c" 1>&6
2346 cat > conftest.
$ac_ext <<EOF
2347 #line 2348 "configure"
2348 #include "confdefs.h"
2351 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2352 { (eval echo configure
:2353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2353 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2354 if test -z "$ac_err"; then
2356 eval "ac_cv_header_$ac_safe=yes"
2359 echo "configure: failed program was:" >&5
2360 cat conftest.
$ac_ext >&5
2362 eval "ac_cv_header_$ac_safe=no"
2366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2367 echo "$ac_t""yes" 1>&6
2368 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2369 cat >> confdefs.h
<<EOF
2370 #define $ac_tr_hdr 1
2374 echo "$ac_t""no" 1>&6
2378 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2380 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2381 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2382 echo "configure:2383: checking for $ac_hdr" >&5
2383 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2384 echo $ac_n "(cached) $ac_c" 1>&6
2386 cat > conftest.
$ac_ext <<EOF
2387 #line 2388 "configure"
2388 #include "confdefs.h"
2391 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2392 { (eval echo configure
:2393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2393 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2394 if test -z "$ac_err"; then
2396 eval "ac_cv_header_$ac_safe=yes"
2399 echo "configure: failed program was:" >&5
2400 cat conftest.
$ac_ext >&5
2402 eval "ac_cv_header_$ac_safe=no"
2406 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2407 echo "$ac_t""yes" 1>&6
2408 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2409 cat >> confdefs.h
<<EOF
2410 #define $ac_tr_hdr 1
2414 echo "$ac_t""no" 1>&6
2418 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2420 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2421 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2422 echo "configure:2423: checking for $ac_hdr" >&5
2423 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2424 echo $ac_n "(cached) $ac_c" 1>&6
2426 cat > conftest.
$ac_ext <<EOF
2427 #line 2428 "configure"
2428 #include "confdefs.h"
2431 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2432 { (eval echo configure
:2433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2433 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2434 if test -z "$ac_err"; then
2436 eval "ac_cv_header_$ac_safe=yes"
2439 echo "configure: failed program was:" >&5
2440 cat conftest.
$ac_ext >&5
2442 eval "ac_cv_header_$ac_safe=no"
2446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2447 echo "$ac_t""yes" 1>&6
2448 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2449 cat >> confdefs.h
<<EOF
2450 #define $ac_tr_hdr 1
2454 echo "$ac_t""no" 1>&6
2458 for ac_hdr
in security
/pam_modules.h security
/_pam_macros.h ldap.h lber.h dlfcn.h
2460 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2461 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2462 echo "configure:2463: checking for $ac_hdr" >&5
2463 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2464 echo $ac_n "(cached) $ac_c" 1>&6
2466 cat > conftest.
$ac_ext <<EOF
2467 #line 2468 "configure"
2468 #include "confdefs.h"
2471 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2472 { (eval echo configure
:2473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2473 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2474 if test -z "$ac_err"; then
2476 eval "ac_cv_header_$ac_safe=yes"
2479 echo "configure: failed program was:" >&5
2480 cat conftest.
$ac_ext >&5
2482 eval "ac_cv_header_$ac_safe=no"
2486 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2487 echo "$ac_t""yes" 1>&6
2488 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2489 cat >> confdefs.h
<<EOF
2490 #define $ac_tr_hdr 1
2494 echo "$ac_t""no" 1>&6
2500 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2501 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2505 cat > conftest.
$ac_ext <<EOF
2506 #line 2507 "configure"
2507 #include "confdefs.h"
2513 if { (eval echo configure
:2514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2515 ac_cv_header_shadow_h
=yes
2517 echo "configure: failed program was:" >&5
2518 cat conftest.
$ac_ext >&5
2520 ac_cv_header_shadow_h
=no
2523 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2524 cat >> confdefs.h
<<\EOF
2525 #define HAVE_SHADOW_H 1
2531 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2533 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2534 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2535 echo "configure:2536: checking for $ac_hdr" >&5
2536 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2537 echo $ac_n "(cached) $ac_c" 1>&6
2539 cat > conftest.
$ac_ext <<EOF
2540 #line 2541 "configure"
2541 #include "confdefs.h"
2544 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2545 { (eval echo configure
:2546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2546 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2547 if test -z "$ac_err"; then
2549 eval "ac_cv_header_$ac_safe=yes"
2552 echo "configure: failed program was:" >&5
2553 cat conftest.
$ac_ext >&5
2555 eval "ac_cv_header_$ac_safe=no"
2559 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2560 echo "$ac_t""yes" 1>&6
2561 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2562 cat >> confdefs.h
<<EOF
2563 #define $ac_tr_hdr 1
2567 echo "$ac_t""no" 1>&6
2571 for ac_hdr
in nss.h nss_common.h ns_api.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2573 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2574 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2575 echo "configure:2576: checking for $ac_hdr" >&5
2576 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2577 echo $ac_n "(cached) $ac_c" 1>&6
2579 cat > conftest.
$ac_ext <<EOF
2580 #line 2581 "configure"
2581 #include "confdefs.h"
2584 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2585 { (eval echo configure
:2586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2586 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2587 if test -z "$ac_err"; then
2589 eval "ac_cv_header_$ac_safe=yes"
2592 echo "configure: failed program was:" >&5
2593 cat conftest.
$ac_ext >&5
2595 eval "ac_cv_header_$ac_safe=no"
2599 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2600 echo "$ac_t""yes" 1>&6
2601 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2602 cat >> confdefs.h
<<EOF
2603 #define $ac_tr_hdr 1
2607 echo "$ac_t""no" 1>&6
2611 for ac_hdr
in stropts.h poll.h
2613 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2614 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2615 echo "configure:2616: checking for $ac_hdr" >&5
2616 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2617 echo $ac_n "(cached) $ac_c" 1>&6
2619 cat > conftest.
$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2624 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2625 { (eval echo configure
:2626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2626 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2627 if test -z "$ac_err"; then
2629 eval "ac_cv_header_$ac_safe=yes"
2632 echo "configure: failed program was:" >&5
2633 cat conftest.
$ac_ext >&5
2635 eval "ac_cv_header_$ac_safe=no"
2639 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2640 echo "$ac_t""yes" 1>&6
2641 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2642 cat >> confdefs.h
<<EOF
2643 #define $ac_tr_hdr 1
2647 echo "$ac_t""no" 1>&6
2651 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2653 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2654 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2655 echo "configure:2656: checking for $ac_hdr" >&5
2656 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2657 echo $ac_n "(cached) $ac_c" 1>&6
2659 cat > conftest.
$ac_ext <<EOF
2660 #line 2661 "configure"
2661 #include "confdefs.h"
2664 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2665 { (eval echo configure
:2666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2666 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2667 if test -z "$ac_err"; then
2669 eval "ac_cv_header_$ac_safe=yes"
2672 echo "configure: failed program was:" >&5
2673 cat conftest.
$ac_ext >&5
2675 eval "ac_cv_header_$ac_safe=no"
2679 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2680 echo "$ac_t""yes" 1>&6
2681 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2682 cat >> confdefs.h
<<EOF
2683 #define $ac_tr_hdr 1
2687 echo "$ac_t""no" 1>&6
2691 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2693 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2694 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2695 echo "configure:2696: checking for $ac_hdr" >&5
2696 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2697 echo $ac_n "(cached) $ac_c" 1>&6
2699 cat > conftest.
$ac_ext <<EOF
2700 #line 2701 "configure"
2701 #include "confdefs.h"
2704 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2705 { (eval echo configure
:2706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2706 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2707 if test -z "$ac_err"; then
2709 eval "ac_cv_header_$ac_safe=yes"
2712 echo "configure: failed program was:" >&5
2713 cat conftest.
$ac_ext >&5
2715 eval "ac_cv_header_$ac_safe=no"
2719 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2720 echo "$ac_t""yes" 1>&6
2721 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2722 cat >> confdefs.h
<<EOF
2723 #define $ac_tr_hdr 1
2727 echo "$ac_t""no" 1>&6
2732 # For experimental utmp support (lastlog on some BSD-like systems)
2733 for ac_hdr
in utmp.h utmpx.h lastlog.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
2774 # For quotas on Veritas VxFS filesystems
2775 for ac_hdr
in sys
/fs
/vx_quota.h
2777 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2778 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2779 echo "configure:2780: checking for $ac_hdr" >&5
2780 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2781 echo $ac_n "(cached) $ac_c" 1>&6
2783 cat > conftest.
$ac_ext <<EOF
2784 #line 2785 "configure"
2785 #include "confdefs.h"
2788 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2789 { (eval echo configure
:2790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2790 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2791 if test -z "$ac_err"; then
2793 eval "ac_cv_header_$ac_safe=yes"
2796 echo "configure: failed program was:" >&5
2797 cat conftest.
$ac_ext >&5
2799 eval "ac_cv_header_$ac_safe=no"
2803 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2804 echo "$ac_t""yes" 1>&6
2805 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2806 cat >> confdefs.h
<<EOF
2807 #define $ac_tr_hdr 1
2811 echo "$ac_t""no" 1>&6
2816 # For quotas on Linux XFS filesystems
2817 for ac_hdr
in linux
/xqm.h
2819 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2820 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2821 echo "configure:2822: checking for $ac_hdr" >&5
2822 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2823 echo $ac_n "(cached) $ac_c" 1>&6
2825 cat > conftest.
$ac_ext <<EOF
2826 #line 2827 "configure"
2827 #include "confdefs.h"
2830 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2831 { (eval echo configure
:2832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2832 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2833 if test -z "$ac_err"; then
2835 eval "ac_cv_header_$ac_safe=yes"
2838 echo "configure: failed program was:" >&5
2839 cat conftest.
$ac_ext >&5
2841 eval "ac_cv_header_$ac_safe=no"
2845 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2846 echo "$ac_t""yes" 1>&6
2847 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2848 cat >> confdefs.h
<<EOF
2849 #define $ac_tr_hdr 1
2853 echo "$ac_t""no" 1>&6
2858 echo $ac_n "checking size of int""... $ac_c" 1>&6
2859 echo "configure:2860: checking size of int" >&5
2860 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2861 echo $ac_n "(cached) $ac_c" 1>&6
2863 if test "$cross_compiling" = yes; then
2864 ac_cv_sizeof_int
=cross
2866 cat > conftest.
$ac_ext <<EOF
2867 #line 2868 "configure"
2868 #include "confdefs.h"
2872 FILE *f=fopen("conftestval", "w");
2874 fprintf(f, "%d\n", sizeof(int));
2878 if { (eval echo configure
:2879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2880 ac_cv_sizeof_int
=`cat conftestval`
2882 echo "configure: failed program was:" >&5
2883 cat conftest.
$ac_ext >&5
2891 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2892 cat >> confdefs.h
<<EOF
2893 #define SIZEOF_INT $ac_cv_sizeof_int
2897 echo $ac_n "checking size of long""... $ac_c" 1>&6
2898 echo "configure:2899: checking size of long" >&5
2899 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2900 echo $ac_n "(cached) $ac_c" 1>&6
2902 if test "$cross_compiling" = yes; then
2903 ac_cv_sizeof_long
=cross
2905 cat > conftest.
$ac_ext <<EOF
2906 #line 2907 "configure"
2907 #include "confdefs.h"
2911 FILE *f=fopen("conftestval", "w");
2913 fprintf(f, "%d\n", sizeof(long));
2917 if { (eval echo configure
:2918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2919 ac_cv_sizeof_long
=`cat conftestval`
2921 echo "configure: failed program was:" >&5
2922 cat conftest.
$ac_ext >&5
2930 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2931 cat >> confdefs.h
<<EOF
2932 #define SIZEOF_LONG $ac_cv_sizeof_long
2936 echo $ac_n "checking size of short""... $ac_c" 1>&6
2937 echo "configure:2938: checking size of short" >&5
2938 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2939 echo $ac_n "(cached) $ac_c" 1>&6
2941 if test "$cross_compiling" = yes; then
2942 ac_cv_sizeof_short
=cross
2944 cat > conftest.
$ac_ext <<EOF
2945 #line 2946 "configure"
2946 #include "confdefs.h"
2950 FILE *f=fopen("conftestval", "w");
2952 fprintf(f, "%d\n", sizeof(short));
2956 if { (eval echo configure
:2957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2958 ac_cv_sizeof_short
=`cat conftestval`
2960 echo "configure: failed program was:" >&5
2961 cat conftest.
$ac_ext >&5
2963 ac_cv_sizeof_short
=0
2969 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2970 cat >> confdefs.h
<<EOF
2971 #define SIZEOF_SHORT $ac_cv_sizeof_short
2976 echo $ac_n "checking for working const""... $ac_c" 1>&6
2977 echo "configure:2978: checking for working const" >&5
2978 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2979 echo $ac_n "(cached) $ac_c" 1>&6
2981 cat > conftest.
$ac_ext <<EOF
2982 #line 2983 "configure"
2983 #include "confdefs.h"
2987 /* Ultrix mips cc rejects this. */
2988 typedef int charset[2]; const charset x;
2989 /* SunOS 4.1.1 cc rejects this. */
2990 char const *const *ccp;
2992 /* NEC SVR4.0.2 mips cc rejects this. */
2993 struct point {int x, y;};
2994 static struct point const zero = {0,0};
2995 /* AIX XL C 1.02.0.0 rejects this.
2996 It does not let you subtract one const X* pointer from another in an arm
2997 of an if-expression whose if-part is not a constant expression */
2998 const char *g = "string";
2999 ccp = &g + (g ? g-g : 0);
3000 /* HPUX 7.0 cc rejects these. */
3003 ccp = (char const *const *) p;
3004 { /* SCO 3.2v4 cc rejects this. */
3006 char const *s = 0 ? (char *) 0 : (char const *) 0;
3010 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3012 const int *foo = &x[0];
3015 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3016 typedef const int *iptr;
3020 { /* AIX XL C 1.02.0.0 rejects this saying
3021 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3022 struct s { int j; const int *ap[3]; };
3023 struct s *b; b->j = 5;
3025 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3031 if { (eval echo configure
:3032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3035 echo "configure: failed program was:" >&5
3036 cat conftest.
$ac_ext >&5
3043 echo "$ac_t""$ac_cv_c_const" 1>&6
3044 if test $ac_cv_c_const = no
; then
3045 cat >> confdefs.h
<<\EOF
3051 echo $ac_n "checking for inline""... $ac_c" 1>&6
3052 echo "configure:3053: checking for inline" >&5
3053 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3054 echo $ac_n "(cached) $ac_c" 1>&6
3057 for ac_kw
in inline __inline__ __inline
; do
3058 cat > conftest.
$ac_ext <<EOF
3059 #line 3060 "configure"
3060 #include "confdefs.h"
3066 if { (eval echo configure
:3067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3068 ac_cv_c_inline
=$ac_kw; break
3070 echo "configure: failed program was:" >&5
3071 cat conftest.
$ac_ext >&5
3078 echo "$ac_t""$ac_cv_c_inline" 1>&6
3079 case "$ac_cv_c_inline" in
3081 no
) cat >> confdefs.h
<<\EOF
3085 *) cat >> confdefs.h
<<EOF
3086 #define inline $ac_cv_c_inline
3091 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3092 echo "configure:3093: checking whether byte ordering is bigendian" >&5
3093 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3094 echo $ac_n "(cached) $ac_c" 1>&6
3096 ac_cv_c_bigendian
=unknown
3097 # See if sys/param.h defines the BYTE_ORDER macro.
3098 cat > conftest.
$ac_ext <<EOF
3099 #line 3100 "configure"
3100 #include "confdefs.h"
3101 #include <sys/types.h>
3102 #include <sys/param.h>
3105 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3110 if { (eval echo configure
:3111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3112 # It does; now see whether it defined to BIG_ENDIAN or not.
3113 cat > conftest.
$ac_ext <<EOF
3114 #line 3115 "configure"
3115 #include "confdefs.h"
3116 #include <sys/types.h>
3117 #include <sys/param.h>
3120 #if BYTE_ORDER != BIG_ENDIAN
3125 if { (eval echo configure
:3126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3127 ac_cv_c_bigendian
=yes
3129 echo "configure: failed program was:" >&5
3130 cat conftest.
$ac_ext >&5
3132 ac_cv_c_bigendian
=no
3136 echo "configure: failed program was:" >&5
3137 cat conftest.
$ac_ext >&5
3140 if test $ac_cv_c_bigendian = unknown
; then
3141 if test "$cross_compiling" = yes; then
3142 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3144 cat > conftest.
$ac_ext <<EOF
3145 #line 3146 "configure"
3146 #include "confdefs.h"
3148 /* Are we little or big endian? From Harbison&Steele. */
3152 char c[sizeof (long)];
3155 exit (u.c[sizeof (long) - 1] == 1);
3158 if { (eval echo configure
:3159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3160 ac_cv_c_bigendian
=no
3162 echo "configure: failed program was:" >&5
3163 cat conftest.
$ac_ext >&5
3165 ac_cv_c_bigendian
=yes
3173 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3174 if test $ac_cv_c_bigendian = yes; then
3175 cat >> confdefs.h
<<\EOF
3176 #define WORDS_BIGENDIAN 1
3181 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3182 echo "configure:3183: checking whether char is unsigned" >&5
3183 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3184 echo $ac_n "(cached) $ac_c" 1>&6
3186 if test "$GCC" = yes; then
3187 # GCC predefines this symbol on systems where it applies.
3188 cat > conftest.
$ac_ext <<EOF
3189 #line 3190 "configure"
3190 #include "confdefs.h"
3191 #ifdef __CHAR_UNSIGNED__
3196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3197 egrep "yes" >/dev
/null
2>&1; then
3199 ac_cv_c_char_unsigned
=yes
3202 ac_cv_c_char_unsigned
=no
3207 if test "$cross_compiling" = yes; then
3208 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3210 cat > conftest.
$ac_ext <<EOF
3211 #line 3212 "configure"
3212 #include "confdefs.h"
3213 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3214 #if !defined(__STDC__) || __STDC__ != 1
3218 volatile char c = 255; exit(c < 0);
3221 if { (eval echo configure
:3222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3223 ac_cv_c_char_unsigned
=yes
3225 echo "configure: failed program was:" >&5
3226 cat conftest.
$ac_ext >&5
3228 ac_cv_c_char_unsigned
=no
3236 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3237 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3238 cat >> confdefs.h
<<\EOF
3239 #define __CHAR_UNSIGNED__ 1
3245 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3246 echo "configure:3247: checking return type of signal handlers" >&5
3247 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3248 echo $ac_n "(cached) $ac_c" 1>&6
3250 cat > conftest.
$ac_ext <<EOF
3251 #line 3252 "configure"
3252 #include "confdefs.h"
3253 #include <sys/types.h>
3259 extern "C" void (*signal (int, void (*)(int)))(int);
3261 void (*signal ()) ();
3268 if { (eval echo configure
:3269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3270 ac_cv_type_signal
=void
3272 echo "configure: failed program was:" >&5
3273 cat conftest.
$ac_ext >&5
3275 ac_cv_type_signal
=int
3280 echo "$ac_t""$ac_cv_type_signal" 1>&6
3281 cat >> confdefs.h
<<EOF
3282 #define RETSIGTYPE $ac_cv_type_signal
3286 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3287 echo "configure:3288: checking for uid_t in sys/types.h" >&5
3288 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3289 echo $ac_n "(cached) $ac_c" 1>&6
3291 cat > conftest.
$ac_ext <<EOF
3292 #line 3293 "configure"
3293 #include "confdefs.h"
3294 #include <sys/types.h>
3296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3297 egrep "uid_t" >/dev
/null
2>&1; then
3299 ac_cv_type_uid_t
=yes
3308 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3309 if test $ac_cv_type_uid_t = no
; then
3310 cat >> confdefs.h
<<\EOF
3314 cat >> confdefs.h
<<\EOF
3320 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3321 echo "configure:3322: checking for mode_t" >&5
3322 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3323 echo $ac_n "(cached) $ac_c" 1>&6
3325 cat > conftest.
$ac_ext <<EOF
3326 #line 3327 "configure"
3327 #include "confdefs.h"
3328 #include <sys/types.h>
3334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3335 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3337 ac_cv_type_mode_t
=yes
3340 ac_cv_type_mode_t
=no
3345 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3346 if test $ac_cv_type_mode_t = no
; then
3347 cat >> confdefs.h
<<\EOF
3353 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3354 echo "configure:3355: checking for off_t" >&5
3355 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3356 echo $ac_n "(cached) $ac_c" 1>&6
3358 cat > conftest.
$ac_ext <<EOF
3359 #line 3360 "configure"
3360 #include "confdefs.h"
3361 #include <sys/types.h>
3367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3368 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3370 ac_cv_type_off_t
=yes
3378 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3379 if test $ac_cv_type_off_t = no
; then
3380 cat >> confdefs.h
<<\EOF
3386 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3387 echo "configure:3388: checking for size_t" >&5
3388 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3389 echo $ac_n "(cached) $ac_c" 1>&6
3391 cat > conftest.
$ac_ext <<EOF
3392 #line 3393 "configure"
3393 #include "confdefs.h"
3394 #include <sys/types.h>
3400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3401 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3403 ac_cv_type_size_t
=yes
3406 ac_cv_type_size_t
=no
3411 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3412 if test $ac_cv_type_size_t = no
; then
3413 cat >> confdefs.h
<<\EOF
3414 #define size_t unsigned
3419 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3420 echo "configure:3421: checking for pid_t" >&5
3421 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3422 echo $ac_n "(cached) $ac_c" 1>&6
3424 cat > conftest.
$ac_ext <<EOF
3425 #line 3426 "configure"
3426 #include "confdefs.h"
3427 #include <sys/types.h>
3433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3434 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3436 ac_cv_type_pid_t
=yes
3444 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3445 if test $ac_cv_type_pid_t = no
; then
3446 cat >> confdefs.h
<<\EOF
3452 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3453 echo "configure:3454: checking for st_rdev in struct stat" >&5
3454 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3455 echo $ac_n "(cached) $ac_c" 1>&6
3457 cat > conftest.
$ac_ext <<EOF
3458 #line 3459 "configure"
3459 #include "confdefs.h"
3460 #include <sys/types.h>
3461 #include <sys/stat.h>
3463 struct stat s; s.st_rdev;
3466 if { (eval echo configure
:3467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3468 ac_cv_struct_st_rdev
=yes
3470 echo "configure: failed program was:" >&5
3471 cat conftest.
$ac_ext >&5
3473 ac_cv_struct_st_rdev
=no
3478 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3479 if test $ac_cv_struct_st_rdev = yes; then
3480 cat >> confdefs.h
<<\EOF
3481 #define HAVE_ST_RDEV 1
3486 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3487 echo "configure:3488: checking for d_off in dirent" >&5
3488 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3489 echo $ac_n "(cached) $ac_c" 1>&6
3491 cat > conftest.
$ac_ext <<EOF
3492 #line 3493 "configure"
3493 #include "confdefs.h"
3496 #include <sys/types.h>
3499 struct dirent d; d.d_off;
3502 if { (eval echo configure
:3503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3504 ac_cv_dirent_d_off
=yes
3506 echo "configure: failed program was:" >&5
3507 cat conftest.
$ac_ext >&5
3509 ac_cv_dirent_d_off
=no
3514 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3515 if test $ac_cv_dirent_d_off = yes; then
3516 cat >> confdefs.h
<<\EOF
3517 #define HAVE_DIRENT_D_OFF 1
3522 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3523 echo "configure:3524: checking for ino_t" >&5
3524 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3525 echo $ac_n "(cached) $ac_c" 1>&6
3527 cat > conftest.
$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3530 #include <sys/types.h>
3536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3537 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3539 ac_cv_type_ino_t
=yes
3547 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3548 if test $ac_cv_type_ino_t = no
; then
3549 cat >> confdefs.h
<<\EOF
3550 #define ino_t unsigned
3555 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3556 echo "configure:3557: checking for loff_t" >&5
3557 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3558 echo $ac_n "(cached) $ac_c" 1>&6
3560 cat > conftest.
$ac_ext <<EOF
3561 #line 3562 "configure"
3562 #include "confdefs.h"
3563 #include <sys/types.h>
3569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3570 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3572 ac_cv_type_loff_t
=yes
3575 ac_cv_type_loff_t
=no
3580 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3581 if test $ac_cv_type_loff_t = no
; then
3582 cat >> confdefs.h
<<\EOF
3583 #define loff_t off_t
3588 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3589 echo "configure:3590: checking for offset_t" >&5
3590 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3591 echo $ac_n "(cached) $ac_c" 1>&6
3593 cat > conftest.
$ac_ext <<EOF
3594 #line 3595 "configure"
3595 #include "confdefs.h"
3596 #include <sys/types.h>
3602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3603 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3605 ac_cv_type_offset_t
=yes
3608 ac_cv_type_offset_t
=no
3613 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3614 if test $ac_cv_type_offset_t = no
; then
3615 cat >> confdefs.h
<<\EOF
3616 #define offset_t loff_t
3621 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3622 echo "configure:3623: checking for ssize_t" >&5
3623 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3624 echo $ac_n "(cached) $ac_c" 1>&6
3626 cat > conftest.
$ac_ext <<EOF
3627 #line 3628 "configure"
3628 #include "confdefs.h"
3629 #include <sys/types.h>
3635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3636 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3638 ac_cv_type_ssize_t
=yes
3641 ac_cv_type_ssize_t
=no
3646 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3647 if test $ac_cv_type_ssize_t = no
; then
3648 cat >> confdefs.h
<<\EOF
3654 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3655 echo "configure:3656: checking for wchar_t" >&5
3656 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3657 echo $ac_n "(cached) $ac_c" 1>&6
3659 cat > conftest.
$ac_ext <<EOF
3660 #line 3661 "configure"
3661 #include "confdefs.h"
3662 #include <sys/types.h>
3668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3669 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3671 ac_cv_type_wchar_t
=yes
3674 ac_cv_type_wchar_t
=no
3679 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3680 if test $ac_cv_type_wchar_t = no
; then
3681 cat >> confdefs.h
<<\EOF
3682 #define wchar_t unsigned short
3688 ############################################
3689 # for cups support we need libcups, and a handful of header files
3691 # Check whether --enable-cups or --disable-cups was given.
3692 if test "${enable_cups+set}" = set; then
3693 enableval
="$enable_cups"
3698 if test x
$enable_cups != xno
; then
3699 # Extract the first word of "cups-config", so it can be a program name with args.
3700 set dummy cups-config
; ac_word
=$2
3701 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3702 echo "configure:3703: checking for $ac_word" >&5
3703 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3704 echo $ac_n "(cached) $ac_c" 1>&6
3706 case "$CUPS_CONFIG" in
3708 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a path.
3711 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a dos path.
3714 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3716 for ac_dir
in $ac_dummy; do
3717 test -z "$ac_dir" && ac_dir
=.
3718 if test -f $ac_dir/$ac_word; then
3719 ac_cv_path_CUPS_CONFIG
="$ac_dir/$ac_word"
3727 CUPS_CONFIG
="$ac_cv_path_CUPS_CONFIG"
3728 if test -n "$CUPS_CONFIG"; then
3729 echo "$ac_t""$CUPS_CONFIG" 1>&6
3731 echo "$ac_t""no" 1>&6
3735 if test "x$CUPS_CONFIG" != x
; then
3736 cat >> confdefs.h
<<\EOF
3740 CFLAGS
="$CFLAGS `$CUPS_CONFIG --cflags`"
3741 LDFLAGS
="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3742 LIBS
="$LIBS `$CUPS_CONFIG --libs`"
3746 ############################################
3747 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3748 for ac_func
in dlopen
3750 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3751 echo "configure:3752: checking for $ac_func" >&5
3752 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3753 echo $ac_n "(cached) $ac_c" 1>&6
3755 cat > conftest.
$ac_ext <<EOF
3756 #line 3757 "configure"
3757 #include "confdefs.h"
3758 /* System header to define __stub macros and hopefully few prototypes,
3759 which can conflict with char $ac_func(); below. */
3761 /* Override any gcc2 internal prototype to avoid an error. */
3762 /* We use char because int might match the return type of a gcc2
3763 builtin and then its argument prototype would still apply. */
3768 /* The GNU C library defines this for functions which it implements
3769 to always fail with ENOSYS. Some functions are actually named
3770 something starting with __ and the normal name is an alias. */
3771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3779 if { (eval echo configure
:3780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3781 eval "ac_cv_func_$ac_func=yes"
3783 echo "configure: failed program was:" >&5
3784 cat conftest.
$ac_ext >&5
3786 eval "ac_cv_func_$ac_func=no"
3791 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3792 echo "$ac_t""yes" 1>&6
3793 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3794 cat >> confdefs.h
<<EOF
3795 #define $ac_tr_func 1
3799 echo "$ac_t""no" 1>&6
3803 if test x
"$ac_cv_func_dlopen" = x
"no"; then
3804 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3805 echo "configure:3806: checking for dlopen in -ldl" >&5
3806 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3807 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3808 echo $ac_n "(cached) $ac_c" 1>&6
3810 ac_save_LIBS
="$LIBS"
3812 cat > conftest.
$ac_ext <<EOF
3813 #line 3814 "configure"
3814 #include "confdefs.h"
3815 /* Override any gcc2 internal prototype to avoid an error. */
3816 /* We use char because int might match the return type of a gcc2
3817 builtin and then its argument prototype would still apply. */
3824 if { (eval echo configure
:3825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3826 eval "ac_cv_lib_$ac_lib_var=yes"
3828 echo "configure: failed program was:" >&5
3829 cat conftest.
$ac_ext >&5
3831 eval "ac_cv_lib_$ac_lib_var=no"
3834 LIBS
="$ac_save_LIBS"
3837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3838 echo "$ac_t""yes" 1>&6
3840 cat >> confdefs.h
<<\EOF
3841 #define HAVE_DLOPEN 1
3845 echo "$ac_t""no" 1>&6
3849 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3851 ############################################
3852 # check if the compiler can do immediate structures
3853 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3854 echo "configure:3855: checking for immediate structures" >&5
3855 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3856 echo $ac_n "(cached) $ac_c" 1>&6
3859 cat > conftest.
$ac_ext <<EOF
3860 #line 3861 "configure"
3861 #include "confdefs.h"
3866 typedef struct {unsigned x;} FOOBAR;
3867 #define X_FOOBAR(x) ((FOOBAR) { x })
3868 #define FOO_ONE X_FOOBAR(1)
3878 if { (eval echo configure
:3879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3880 samba_cv_immediate_structures
=yes
3882 echo "configure: failed program was:" >&5
3883 cat conftest.
$ac_ext >&5
3885 samba_cv_immediate_structures
=no
3890 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3891 if test x
"$samba_cv_immediate_structures" = x
"yes"; then
3892 cat >> confdefs.h
<<\EOF
3893 #define HAVE_IMMEDIATE_STRUCTURES 1
3898 ############################################
3899 # check for unix domain sockets
3900 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3901 echo "configure:3902: checking for unix domain sockets" >&5
3902 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3903 echo $ac_n "(cached) $ac_c" 1>&6
3906 cat > conftest.
$ac_ext <<EOF
3907 #line 3908 "configure"
3908 #include "confdefs.h"
3910 #include <sys/types.h>
3913 #include <sys/socket.h>
3917 struct sockaddr_un sunaddr;
3918 sunaddr.sun_family = AF_UNIX;
3922 if { (eval echo configure
:3923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3924 samba_cv_unixsocket
=yes
3926 echo "configure: failed program was:" >&5
3927 cat conftest.
$ac_ext >&5
3929 samba_cv_unixsocket
=no
3934 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3935 if test x
"$samba_cv_unixsocket" = x
"yes"; then
3936 cat >> confdefs.h
<<\EOF
3937 #define HAVE_UNIXSOCKET 1
3943 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3944 echo "configure:3945: checking for socklen_t type" >&5
3945 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3946 echo $ac_n "(cached) $ac_c" 1>&6
3949 cat > conftest.
$ac_ext <<EOF
3950 #line 3951 "configure"
3951 #include "confdefs.h"
3953 #include <sys/types.h>
3958 #include <sys/socket.h>
3963 if { (eval echo configure
:3964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3965 samba_cv_socklen_t
=yes
3967 echo "configure: failed program was:" >&5
3968 cat conftest.
$ac_ext >&5
3970 samba_cv_socklen_t
=no
3975 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3976 if test x
"$samba_cv_socklen_t" = x
"yes"; then
3977 cat >> confdefs.h
<<\EOF
3978 #define HAVE_SOCKLEN_T_TYPE 1
3983 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3984 echo "configure:3985: checking for sig_atomic_t type" >&5
3985 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3986 echo $ac_n "(cached) $ac_c" 1>&6
3989 cat > conftest.
$ac_ext <<EOF
3990 #line 3991 "configure"
3991 #include "confdefs.h"
3993 #include <sys/types.h>
4003 if { (eval echo configure
:4004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4005 samba_cv_sig_atomic_t
=yes
4007 echo "configure: failed program was:" >&5
4008 cat conftest.
$ac_ext >&5
4010 samba_cv_sig_atomic_t
=no
4015 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4016 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
4017 cat >> confdefs.h
<<\EOF
4018 #define HAVE_SIG_ATOMIC_T_TYPE 1
4023 # stupid headers have the functions but no declaration. grrrr.
4025 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4026 echo "configure:4027: checking for errno declaration" >&5
4027 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4028 echo $ac_n "(cached) $ac_c" 1>&6
4031 cat > conftest.
$ac_ext <<EOF
4032 #line 4033 "configure"
4033 #include "confdefs.h"
4039 if { (eval echo configure
:4040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4041 ac_cv_have_errno_decl
=yes
4043 echo "configure: failed program was:" >&5
4044 cat conftest.
$ac_ext >&5
4046 ac_cv_have_errno_decl
=no
4051 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4052 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
4053 cat >> confdefs.h
<<\EOF
4054 #define HAVE_ERRNO_DECL 1
4060 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4061 echo "configure:4062: checking for setresuid declaration" >&5
4062 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4063 echo $ac_n "(cached) $ac_c" 1>&6
4066 cat > conftest.
$ac_ext <<EOF
4067 #line 4068 "configure"
4068 #include "confdefs.h"
4071 int i = (int)setresuid
4074 if { (eval echo configure
:4075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4076 ac_cv_have_setresuid_decl
=yes
4078 echo "configure: failed program was:" >&5
4079 cat conftest.
$ac_ext >&5
4081 ac_cv_have_setresuid_decl
=no
4086 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4087 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
4088 cat >> confdefs.h
<<\EOF
4089 #define HAVE_SETRESUID_DECL 1
4095 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4096 echo "configure:4097: checking for setresgid declaration" >&5
4097 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4098 echo $ac_n "(cached) $ac_c" 1>&6
4101 cat > conftest.
$ac_ext <<EOF
4102 #line 4103 "configure"
4103 #include "confdefs.h"
4106 int i = (int)setresgid
4109 if { (eval echo configure
:4110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4111 ac_cv_have_setresgid_decl
=yes
4113 echo "configure: failed program was:" >&5
4114 cat conftest.
$ac_ext >&5
4116 ac_cv_have_setresgid_decl
=no
4121 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4122 if test x
"$ac_cv_have_setresgid_decl" = x
"yes"; then
4123 cat >> confdefs.h
<<\EOF
4124 #define HAVE_SETRESGID_DECL 1
4130 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4131 echo "configure:4132: checking for asprintf declaration" >&5
4132 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4133 echo $ac_n "(cached) $ac_c" 1>&6
4136 cat > conftest.
$ac_ext <<EOF
4137 #line 4138 "configure"
4138 #include "confdefs.h"
4141 int i = (int)asprintf
4144 if { (eval echo configure
:4145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4146 ac_cv_have_asprintf_decl
=yes
4148 echo "configure: failed program was:" >&5
4149 cat conftest.
$ac_ext >&5
4151 ac_cv_have_asprintf_decl
=no
4156 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4157 if test x
"$ac_cv_have_asprintf_decl" = x
"yes"; then
4158 cat >> confdefs.h
<<\EOF
4159 #define HAVE_ASPRINTF_DECL 1
4165 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4166 echo "configure:4167: checking for vasprintf declaration" >&5
4167 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4168 echo $ac_n "(cached) $ac_c" 1>&6
4171 cat > conftest.
$ac_ext <<EOF
4172 #line 4173 "configure"
4173 #include "confdefs.h"
4176 int i = (int)vasprintf
4179 if { (eval echo configure
:4180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4181 ac_cv_have_vasprintf_decl
=yes
4183 echo "configure: failed program was:" >&5
4184 cat conftest.
$ac_ext >&5
4186 ac_cv_have_vasprintf_decl
=no
4191 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4192 if test x
"$ac_cv_have_vasprintf_decl" = x
"yes"; then
4193 cat >> confdefs.h
<<\EOF
4194 #define HAVE_VASPRINTF_DECL 1
4200 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4201 echo "configure:4202: checking for vsnprintf declaration" >&5
4202 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4203 echo $ac_n "(cached) $ac_c" 1>&6
4206 cat > conftest.
$ac_ext <<EOF
4207 #line 4208 "configure"
4208 #include "confdefs.h"
4211 int i = (int)vsnprintf
4214 if { (eval echo configure
:4215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4216 ac_cv_have_vsnprintf_decl
=yes
4218 echo "configure: failed program was:" >&5
4219 cat conftest.
$ac_ext >&5
4221 ac_cv_have_vsnprintf_decl
=no
4226 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4227 if test x
"$ac_cv_have_vsnprintf_decl" = x
"yes"; then
4228 cat >> confdefs.h
<<\EOF
4229 #define HAVE_VSNPRINTF_DECL 1
4235 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4236 echo "configure:4237: checking for snprintf declaration" >&5
4237 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4238 echo $ac_n "(cached) $ac_c" 1>&6
4241 cat > conftest.
$ac_ext <<EOF
4242 #line 4243 "configure"
4243 #include "confdefs.h"
4246 int i = (int)snprintf
4249 if { (eval echo configure
:4250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4251 ac_cv_have_snprintf_decl
=yes
4253 echo "configure: failed program was:" >&5
4254 cat conftest.
$ac_ext >&5
4256 ac_cv_have_snprintf_decl
=no
4261 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4262 if test x
"$ac_cv_have_snprintf_decl" = x
"yes"; then
4263 cat >> confdefs.h
<<\EOF
4264 #define HAVE_SNPRINTF_DECL 1
4270 # and glibc has setresuid under linux but the function does
4271 # nothing until kernel 2.1.44! very dumb.
4272 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4273 echo "configure:4274: checking for real setresuid" >&5
4274 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4275 echo $ac_n "(cached) $ac_c" 1>&6
4278 if test "$cross_compiling" = yes; then
4279 samba_cv_have_setresuid
=cross
4281 cat > conftest.
$ac_ext <<EOF
4282 #line 4283 "configure"
4283 #include "confdefs.h"
4285 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4287 if { (eval echo configure
:4288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4289 samba_cv_have_setresuid
=yes
4291 echo "configure: failed program was:" >&5
4292 cat conftest.
$ac_ext >&5
4294 samba_cv_have_setresuid
=no
4301 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4302 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4303 cat >> confdefs.h
<<\EOF
4304 #define HAVE_SETRESUID 1
4309 # Do the same check for setresguid...
4311 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4312 echo "configure:4313: checking for real setresgid" >&5
4313 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4314 echo $ac_n "(cached) $ac_c" 1>&6
4317 if test "$cross_compiling" = yes; then
4318 samba_cv_have_setresgid
=cross
4320 cat > conftest.
$ac_ext <<EOF
4321 #line 4322 "configure"
4322 #include "confdefs.h"
4325 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4327 if { (eval echo configure
:4328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4329 samba_cv_have_setresgid
=yes
4331 echo "configure: failed program was:" >&5
4332 cat conftest.
$ac_ext >&5
4334 samba_cv_have_setresgid
=no
4341 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4342 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4343 cat >> confdefs.h
<<\EOF
4344 #define HAVE_SETRESGID 1
4349 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4350 echo "configure:4351: checking for 8-bit clean memcmp" >&5
4351 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4352 echo $ac_n "(cached) $ac_c" 1>&6
4354 if test "$cross_compiling" = yes; then
4355 ac_cv_func_memcmp_clean
=no
4357 cat > conftest.
$ac_ext <<EOF
4358 #line 4359 "configure"
4359 #include "confdefs.h"
4363 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4364 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 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 ac_cv_func_memcmp_clean
=yes
4372 echo "configure: failed program was:" >&5
4373 cat conftest.
$ac_ext >&5
4375 ac_cv_func_memcmp_clean
=no
4382 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4383 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4386 ###############################################
4387 # test for where we get crypt() from
4388 for ac_func
in crypt
4390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4391 echo "configure:4392: checking for $ac_func" >&5
4392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4393 echo $ac_n "(cached) $ac_c" 1>&6
4395 cat > conftest.
$ac_ext <<EOF
4396 #line 4397 "configure"
4397 #include "confdefs.h"
4398 /* System header to define __stub macros and hopefully few prototypes,
4399 which can conflict with char $ac_func(); below. */
4401 /* Override any gcc2 internal prototype to avoid an error. */
4402 /* We use char because int might match the return type of a gcc2
4403 builtin and then its argument prototype would still apply. */
4408 /* The GNU C library defines this for functions which it implements
4409 to always fail with ENOSYS. Some functions are actually named
4410 something starting with __ and the normal name is an alias. */
4411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4419 if { (eval echo configure
:4420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4421 eval "ac_cv_func_$ac_func=yes"
4423 echo "configure: failed program was:" >&5
4424 cat conftest.
$ac_ext >&5
4426 eval "ac_cv_func_$ac_func=no"
4431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4432 echo "$ac_t""yes" 1>&6
4433 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4434 cat >> confdefs.h
<<EOF
4435 #define $ac_tr_func 1
4439 echo "$ac_t""no" 1>&6
4443 if test x
"$ac_cv_func_crypt" = x
"no"; then
4444 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4445 echo "configure:4446: checking for crypt in -lcrypt" >&5
4446 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4450 ac_save_LIBS
="$LIBS"
4451 LIBS
="-lcrypt $LIBS"
4452 cat > conftest.
$ac_ext <<EOF
4453 #line 4454 "configure"
4454 #include "confdefs.h"
4455 /* Override any gcc2 internal prototype to avoid an error. */
4456 /* We use char because int might match the return type of a gcc2
4457 builtin and then its argument prototype would still apply. */
4464 if { (eval echo configure
:4465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4466 eval "ac_cv_lib_$ac_lib_var=yes"
4468 echo "configure: failed program was:" >&5
4469 cat conftest.
$ac_ext >&5
4471 eval "ac_cv_lib_$ac_lib_var=no"
4474 LIBS
="$ac_save_LIBS"
4477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4478 echo "$ac_t""yes" 1>&6
4479 LIBS
="$LIBS -lcrypt";
4480 cat >> confdefs.h
<<\EOF
4481 #define HAVE_CRYPT 1
4485 echo "$ac_t""no" 1>&6
4491 ###############################################
4492 # Readline included by default unless explicitly asked not to
4493 test "${with_readline+set}" != "set" && with_readline
=yes
4495 # test for where we get readline() from
4496 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4497 echo "configure:4498: checking whether to use readline" >&5
4498 # Check whether --with-readline or --without-readline was given.
4499 if test "${with_readline+set}" = set; then
4500 withval
="$with_readline"
4501 case "$with_readline" in
4503 echo "$ac_t""yes" 1>&6
4505 for ac_hdr
in readline.h
history.h readline
/readline.h
4507 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4508 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4509 echo "configure:4510: checking for $ac_hdr" >&5
4510 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4511 echo $ac_n "(cached) $ac_c" 1>&6
4513 cat > conftest.
$ac_ext <<EOF
4514 #line 4515 "configure"
4515 #include "confdefs.h"
4518 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4519 { (eval echo configure
:4520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4520 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4521 if test -z "$ac_err"; then
4523 eval "ac_cv_header_$ac_safe=yes"
4526 echo "configure: failed program was:" >&5
4527 cat conftest.
$ac_ext >&5
4529 eval "ac_cv_header_$ac_safe=no"
4533 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4534 echo "$ac_t""yes" 1>&6
4535 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4536 cat >> confdefs.h
<<EOF
4537 #define $ac_tr_hdr 1
4541 echo "$ac_t""no" 1>&6
4545 for ac_hdr
in readline
/history.h
4547 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4548 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4549 echo "configure:4550: checking for $ac_hdr" >&5
4550 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4551 echo $ac_n "(cached) $ac_c" 1>&6
4553 cat > conftest.
$ac_ext <<EOF
4554 #line 4555 "configure"
4555 #include "confdefs.h"
4558 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4559 { (eval echo configure
:4560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4560 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4561 if test -z "$ac_err"; then
4563 eval "ac_cv_header_$ac_safe=yes"
4566 echo "configure: failed program was:" >&5
4567 cat conftest.
$ac_ext >&5
4569 eval "ac_cv_header_$ac_safe=no"
4573 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4574 echo "$ac_t""yes" 1>&6
4575 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4576 cat >> confdefs.h
<<EOF
4577 #define $ac_tr_hdr 1
4581 echo "$ac_t""no" 1>&6
4586 for ac_hdr
in readline.h readline
/readline.h
4588 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4589 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4590 echo "configure:4591: checking for $ac_hdr" >&5
4591 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4592 echo $ac_n "(cached) $ac_c" 1>&6
4594 cat > conftest.
$ac_ext <<EOF
4595 #line 4596 "configure"
4596 #include "confdefs.h"
4599 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4600 { (eval echo configure
:4601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4601 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4602 if test -z "$ac_err"; then
4604 eval "ac_cv_header_$ac_safe=yes"
4607 echo "configure: failed program was:" >&5
4608 cat conftest.
$ac_ext >&5
4610 eval "ac_cv_header_$ac_safe=no"
4614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4615 echo "$ac_t""yes" 1>&6
4616 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4617 cat >> confdefs.h
<<EOF
4618 #define $ac_tr_hdr 1
4621 for termlib
in ncurses curses termcap terminfo termlib
; do
4622 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4623 echo "configure:4624: checking for tgetent in -l${termlib}" >&5
4624 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4625 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4626 echo $ac_n "(cached) $ac_c" 1>&6
4628 ac_save_LIBS
="$LIBS"
4629 LIBS
="-l${termlib} $LIBS"
4630 cat > conftest.
$ac_ext <<EOF
4631 #line 4632 "configure"
4632 #include "confdefs.h"
4633 /* Override any gcc2 internal prototype to avoid an error. */
4634 /* We use char because int might match the return type of a gcc2
4635 builtin and then its argument prototype would still apply. */
4642 if { (eval echo configure
:4643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4644 eval "ac_cv_lib_$ac_lib_var=yes"
4646 echo "configure: failed program was:" >&5
4647 cat conftest.
$ac_ext >&5
4649 eval "ac_cv_lib_$ac_lib_var=no"
4652 LIBS
="$ac_save_LIBS"
4655 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4656 echo "$ac_t""yes" 1>&6
4657 TERMLIBS
="-l${termlib}"; break
4659 echo "$ac_t""no" 1>&6
4663 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4664 echo "configure:4665: checking for rl_callback_handler_install in -lreadline" >&5
4665 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4666 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4667 echo $ac_n "(cached) $ac_c" 1>&6
4669 ac_save_LIBS
="$LIBS"
4670 LIBS
="-lreadline $TERMLIBS $LIBS"
4671 cat > conftest.
$ac_ext <<EOF
4672 #line 4673 "configure"
4673 #include "confdefs.h"
4674 /* Override any gcc2 internal prototype to avoid an error. */
4675 /* We use char because int might match the return type of a gcc2
4676 builtin and then its argument prototype would still apply. */
4677 char rl_callback_handler_install();
4680 rl_callback_handler_install()
4683 if { (eval echo configure
:4684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4685 eval "ac_cv_lib_$ac_lib_var=yes"
4687 echo "configure: failed program was:" >&5
4688 cat conftest.
$ac_ext >&5
4690 eval "ac_cv_lib_$ac_lib_var=no"
4693 LIBS
="$ac_save_LIBS"
4696 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4697 echo "$ac_t""yes" 1>&6
4698 TERMLIBS
="-lreadline $TERMLIBS"
4699 cat >> confdefs.h
<<\EOF
4700 #define HAVE_LIBREADLINE 1
4705 echo "$ac_t""no" 1>&6
4710 echo "$ac_t""no" 1>&6
4716 echo "$ac_t""no" 1>&6
4719 echo "$ac_t""yes" 1>&6
4721 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4722 # alternate readline path
4724 _cppflags
=${CPPFLAGS}
4726 # Add additional search path
4727 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4728 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4730 for ac_hdr
in readline.h
history.h readline
/readline.h
4732 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4733 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4734 echo "configure:4735: checking for $ac_hdr" >&5
4735 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4736 echo $ac_n "(cached) $ac_c" 1>&6
4738 cat > conftest.
$ac_ext <<EOF
4739 #line 4740 "configure"
4740 #include "confdefs.h"
4743 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4744 { (eval echo configure
:4745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4745 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4746 if test -z "$ac_err"; then
4748 eval "ac_cv_header_$ac_safe=yes"
4751 echo "configure: failed program was:" >&5
4752 cat conftest.
$ac_ext >&5
4754 eval "ac_cv_header_$ac_safe=no"
4758 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4759 echo "$ac_t""yes" 1>&6
4760 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4761 cat >> confdefs.h
<<EOF
4762 #define $ac_tr_hdr 1
4766 echo "$ac_t""no" 1>&6
4770 for ac_hdr
in readline
/history.h
4772 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4773 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4774 echo "configure:4775: checking for $ac_hdr" >&5
4775 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4776 echo $ac_n "(cached) $ac_c" 1>&6
4778 cat > conftest.
$ac_ext <<EOF
4779 #line 4780 "configure"
4780 #include "confdefs.h"
4783 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4784 { (eval echo configure
:4785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4785 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4786 if test -z "$ac_err"; then
4788 eval "ac_cv_header_$ac_safe=yes"
4791 echo "configure: failed program was:" >&5
4792 cat conftest.
$ac_ext >&5
4794 eval "ac_cv_header_$ac_safe=no"
4798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4799 echo "$ac_t""yes" 1>&6
4800 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4801 cat >> confdefs.h
<<EOF
4802 #define $ac_tr_hdr 1
4806 echo "$ac_t""no" 1>&6
4811 for ac_hdr
in readline.h readline
/readline.h
4813 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4815 echo "configure:4816: checking for $ac_hdr" >&5
4816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4817 echo $ac_n "(cached) $ac_c" 1>&6
4819 cat > conftest.
$ac_ext <<EOF
4820 #line 4821 "configure"
4821 #include "confdefs.h"
4824 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4825 { (eval echo configure
:4826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4826 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4827 if test -z "$ac_err"; then
4829 eval "ac_cv_header_$ac_safe=yes"
4832 echo "configure: failed program was:" >&5
4833 cat conftest.
$ac_ext >&5
4835 eval "ac_cv_header_$ac_safe=no"
4839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4840 echo "$ac_t""yes" 1>&6
4841 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4842 cat >> confdefs.h
<<EOF
4843 #define $ac_tr_hdr 1
4846 for termlib
in ncurses curses termcap terminfo termlib
; do
4847 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4848 echo "configure:4849: checking for tgetent in -l${termlib}" >&5
4849 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4850 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4851 echo $ac_n "(cached) $ac_c" 1>&6
4853 ac_save_LIBS
="$LIBS"
4854 LIBS
="-l${termlib} $LIBS"
4855 cat > conftest.
$ac_ext <<EOF
4856 #line 4857 "configure"
4857 #include "confdefs.h"
4858 /* Override any gcc2 internal prototype to avoid an error. */
4859 /* We use char because int might match the return type of a gcc2
4860 builtin and then its argument prototype would still apply. */
4867 if { (eval echo configure
:4868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4869 eval "ac_cv_lib_$ac_lib_var=yes"
4871 echo "configure: failed program was:" >&5
4872 cat conftest.
$ac_ext >&5
4874 eval "ac_cv_lib_$ac_lib_var=no"
4877 LIBS
="$ac_save_LIBS"
4880 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4881 echo "$ac_t""yes" 1>&6
4882 TERMLIBS
="-l${termlib}"; break
4884 echo "$ac_t""no" 1>&6
4888 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4889 echo "configure:4890: checking for rl_callback_handler_install in -lreadline" >&5
4890 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4891 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4892 echo $ac_n "(cached) $ac_c" 1>&6
4894 ac_save_LIBS
="$LIBS"
4895 LIBS
="-lreadline $TERMLIBS $LIBS"
4896 cat > conftest.
$ac_ext <<EOF
4897 #line 4898 "configure"
4898 #include "confdefs.h"
4899 /* Override any gcc2 internal prototype to avoid an error. */
4900 /* We use char because int might match the return type of a gcc2
4901 builtin and then its argument prototype would still apply. */
4902 char rl_callback_handler_install();
4905 rl_callback_handler_install()
4908 if { (eval echo configure
:4909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4910 eval "ac_cv_lib_$ac_lib_var=yes"
4912 echo "configure: failed program was:" >&5
4913 cat conftest.
$ac_ext >&5
4915 eval "ac_cv_lib_$ac_lib_var=no"
4918 LIBS
="$ac_save_LIBS"
4921 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4922 echo "$ac_t""yes" 1>&6
4923 TERMLDFLAGS
="-L$with_readline/lib"
4924 TERMCPPFLAGS
="-I$with_readline/include"
4925 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4926 TERMLIBS
="-lreadline $TERMLIBS"
4927 cat >> confdefs.h
<<\EOF
4928 #define HAVE_LIBREADLINE 1
4933 echo "$ac_t""no" 1>&6
4934 TERMLIBS
= CPPFLAGS
=$_cppflags
4938 echo "$ac_t""no" 1>&6
4947 echo "$ac_t""no" 1>&6
4954 # The readline API changed slightly from readline3 to readline4, so
4955 # code will generate warnings on one of them unless we have a few
4957 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
4958 echo "configure:4959: checking for rl_completion_matches in -lreadline" >&5
4959 ac_lib_var
=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
4960 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4961 echo $ac_n "(cached) $ac_c" 1>&6
4963 ac_save_LIBS
="$LIBS"
4964 LIBS
="-lreadline $TERMLIBS $LIBS"
4965 cat > conftest.
$ac_ext <<EOF
4966 #line 4967 "configure"
4967 #include "confdefs.h"
4968 /* Override any gcc2 internal prototype to avoid an error. */
4969 /* We use char because int might match the return type of a gcc2
4970 builtin and then its argument prototype would still apply. */
4971 char rl_completion_matches();
4974 rl_completion_matches()
4977 if { (eval echo configure
:4978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4979 eval "ac_cv_lib_$ac_lib_var=yes"
4981 echo "configure: failed program was:" >&5
4982 cat conftest.
$ac_ext >&5
4984 eval "ac_cv_lib_$ac_lib_var=no"
4987 LIBS
="$ac_save_LIBS"
4990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4991 echo "$ac_t""yes" 1>&6
4992 cat >> confdefs.h
<<\EOF
4993 #define HAVE_NEW_LIBREADLINE 1
4997 echo "$ac_t""no" 1>&6
5001 # The following test taken from the cvs sources
5002 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
5003 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
5004 # libsocket.so which has a bad implementation of gethostbyname (it
5005 # only looks in /etc/hosts), so we only look for -lsocket if we need
5007 for ac_func
in connect
5009 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5010 echo "configure:5011: checking for $ac_func" >&5
5011 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5012 echo $ac_n "(cached) $ac_c" 1>&6
5014 cat > conftest.
$ac_ext <<EOF
5015 #line 5016 "configure"
5016 #include "confdefs.h"
5017 /* System header to define __stub macros and hopefully few prototypes,
5018 which can conflict with char $ac_func(); below. */
5020 /* Override any gcc2 internal prototype to avoid an error. */
5021 /* We use char because int might match the return type of a gcc2
5022 builtin and then its argument prototype would still apply. */
5027 /* The GNU C library defines this for functions which it implements
5028 to always fail with ENOSYS. Some functions are actually named
5029 something starting with __ and the normal name is an alias. */
5030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5038 if { (eval echo configure
:5039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5040 eval "ac_cv_func_$ac_func=yes"
5042 echo "configure: failed program was:" >&5
5043 cat conftest.
$ac_ext >&5
5045 eval "ac_cv_func_$ac_func=no"
5050 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5051 echo "$ac_t""yes" 1>&6
5052 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5053 cat >> confdefs.h
<<EOF
5054 #define $ac_tr_func 1
5058 echo "$ac_t""no" 1>&6
5062 if test x
"$ac_cv_func_connect" = x
"no"; then
5065 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
5066 echo "configure:5067: checking for printf in -lnsl_s" >&5
5067 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
5068 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5069 echo $ac_n "(cached) $ac_c" 1>&6
5071 ac_save_LIBS
="$LIBS"
5072 LIBS
="-lnsl_s $LIBS"
5073 cat > conftest.
$ac_ext <<EOF
5074 #line 5075 "configure"
5075 #include "confdefs.h"
5076 /* Override any gcc2 internal prototype to avoid an error. */
5077 /* We use char because int might match the return type of a gcc2
5078 builtin and then its argument prototype would still apply. */
5085 if { (eval echo configure
:5086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5087 eval "ac_cv_lib_$ac_lib_var=yes"
5089 echo "configure: failed program was:" >&5
5090 cat conftest.
$ac_ext >&5
5092 eval "ac_cv_lib_$ac_lib_var=no"
5095 LIBS
="$ac_save_LIBS"
5098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5099 echo "$ac_t""yes" 1>&6
5100 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5101 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5102 cat >> confdefs.h
<<EOF
5103 #define $ac_tr_lib 1
5106 LIBS
="-lnsl_s $LIBS"
5109 echo "$ac_t""no" 1>&6
5115 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5116 echo "configure:5117: checking for printf in -lnsl" >&5
5117 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5118 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5119 echo $ac_n "(cached) $ac_c" 1>&6
5121 ac_save_LIBS
="$LIBS"
5123 cat > conftest.
$ac_ext <<EOF
5124 #line 5125 "configure"
5125 #include "confdefs.h"
5126 /* Override any gcc2 internal prototype to avoid an error. */
5127 /* We use char because int might match the return type of a gcc2
5128 builtin and then its argument prototype would still apply. */
5135 if { (eval echo configure
:5136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5137 eval "ac_cv_lib_$ac_lib_var=yes"
5139 echo "configure: failed program was:" >&5
5140 cat conftest.
$ac_ext >&5
5142 eval "ac_cv_lib_$ac_lib_var=no"
5145 LIBS
="$ac_save_LIBS"
5148 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5149 echo "$ac_t""yes" 1>&6
5150 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5151 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5152 cat >> confdefs.h
<<EOF
5153 #define $ac_tr_lib 1
5159 echo "$ac_t""no" 1>&6
5165 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5166 echo "configure:5167: checking for connect in -lsocket" >&5
5167 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5168 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5169 echo $ac_n "(cached) $ac_c" 1>&6
5171 ac_save_LIBS
="$LIBS"
5172 LIBS
="-lsocket $LIBS"
5173 cat > conftest.
$ac_ext <<EOF
5174 #line 5175 "configure"
5175 #include "confdefs.h"
5176 /* Override any gcc2 internal prototype to avoid an error. */
5177 /* We use char because int might match the return type of a gcc2
5178 builtin and then its argument prototype would still apply. */
5185 if { (eval echo configure
:5186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5187 eval "ac_cv_lib_$ac_lib_var=yes"
5189 echo "configure: failed program was:" >&5
5190 cat conftest.
$ac_ext >&5
5192 eval "ac_cv_lib_$ac_lib_var=no"
5195 LIBS
="$ac_save_LIBS"
5198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5199 echo "$ac_t""yes" 1>&6
5200 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5201 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5202 cat >> confdefs.h
<<EOF
5203 #define $ac_tr_lib 1
5206 LIBS
="-lsocket $LIBS"
5209 echo "$ac_t""no" 1>&6
5215 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5216 echo "configure:5217: checking for connect in -linet" >&5
5217 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5218 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5219 echo $ac_n "(cached) $ac_c" 1>&6
5221 ac_save_LIBS
="$LIBS"
5223 cat > conftest.
$ac_ext <<EOF
5224 #line 5225 "configure"
5225 #include "confdefs.h"
5226 /* Override any gcc2 internal prototype to avoid an error. */
5227 /* We use char because int might match the return type of a gcc2
5228 builtin and then its argument prototype would still apply. */
5235 if { (eval echo configure
:5236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5237 eval "ac_cv_lib_$ac_lib_var=yes"
5239 echo "configure: failed program was:" >&5
5240 cat conftest.
$ac_ext >&5
5242 eval "ac_cv_lib_$ac_lib_var=no"
5245 LIBS
="$ac_save_LIBS"
5248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5249 echo "$ac_t""yes" 1>&6
5250 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5251 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5252 cat >> confdefs.h
<<EOF
5253 #define $ac_tr_lib 1
5259 echo "$ac_t""no" 1>&6
5263 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
5264 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
5265 # ac_cv_func_connect=yes
5266 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5267 cat >> confdefs.h
<<\EOF
5268 #define HAVE_CONNECT 1
5274 ###############################################
5275 # test for where we get get_yp_default_domain() from
5276 for ac_func
in yp_get_default_domain
5278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5279 echo "configure:5280: checking for $ac_func" >&5
5280 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5281 echo $ac_n "(cached) $ac_c" 1>&6
5283 cat > conftest.
$ac_ext <<EOF
5284 #line 5285 "configure"
5285 #include "confdefs.h"
5286 /* System header to define __stub macros and hopefully few prototypes,
5287 which can conflict with char $ac_func(); below. */
5289 /* Override any gcc2 internal prototype to avoid an error. */
5290 /* We use char because int might match the return type of a gcc2
5291 builtin and then its argument prototype would still apply. */
5296 /* The GNU C library defines this for functions which it implements
5297 to always fail with ENOSYS. Some functions are actually named
5298 something starting with __ and the normal name is an alias. */
5299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5307 if { (eval echo configure
:5308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5309 eval "ac_cv_func_$ac_func=yes"
5311 echo "configure: failed program was:" >&5
5312 cat conftest.
$ac_ext >&5
5314 eval "ac_cv_func_$ac_func=no"
5319 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5320 echo "$ac_t""yes" 1>&6
5321 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5322 cat >> confdefs.h
<<EOF
5323 #define $ac_tr_func 1
5327 echo "$ac_t""no" 1>&6
5331 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
5332 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5333 echo "configure:5334: checking for yp_get_default_domain in -lnsl" >&5
5334 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5335 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5336 echo $ac_n "(cached) $ac_c" 1>&6
5338 ac_save_LIBS
="$LIBS"
5340 cat > conftest.
$ac_ext <<EOF
5341 #line 5342 "configure"
5342 #include "confdefs.h"
5343 /* Override any gcc2 internal prototype to avoid an error. */
5344 /* We use char because int might match the return type of a gcc2
5345 builtin and then its argument prototype would still apply. */
5346 char yp_get_default_domain();
5349 yp_get_default_domain()
5352 if { (eval echo configure
:5353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5354 eval "ac_cv_lib_$ac_lib_var=yes"
5356 echo "configure: failed program was:" >&5
5357 cat conftest.
$ac_ext >&5
5359 eval "ac_cv_lib_$ac_lib_var=no"
5362 LIBS
="$ac_save_LIBS"
5365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5366 echo "$ac_t""yes" 1>&6
5368 cat >> confdefs.h
<<\EOF
5369 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5373 echo "$ac_t""no" 1>&6
5378 # Check if we have execl, if not we need to compile smbrun.
5379 for ac_func
in execl
5381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5382 echo "configure:5383: checking for $ac_func" >&5
5383 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5384 echo $ac_n "(cached) $ac_c" 1>&6
5386 cat > conftest.
$ac_ext <<EOF
5387 #line 5388 "configure"
5388 #include "confdefs.h"
5389 /* System header to define __stub macros and hopefully few prototypes,
5390 which can conflict with char $ac_func(); below. */
5392 /* Override any gcc2 internal prototype to avoid an error. */
5393 /* We use char because int might match the return type of a gcc2
5394 builtin and then its argument prototype would still apply. */
5399 /* The GNU C library defines this for functions which it implements
5400 to always fail with ENOSYS. Some functions are actually named
5401 something starting with __ and the normal name is an alias. */
5402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5410 if { (eval echo configure
:5411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5412 eval "ac_cv_func_$ac_func=yes"
5414 echo "configure: failed program was:" >&5
5415 cat conftest.
$ac_ext >&5
5417 eval "ac_cv_func_$ac_func=no"
5422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5423 echo "$ac_t""yes" 1>&6
5424 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5425 cat >> confdefs.h
<<EOF
5426 #define $ac_tr_func 1
5430 echo "$ac_t""no" 1>&6
5434 if test x
"$ac_cv_func_execl" = x
"no"; then
5435 RUNPROG
="bin/smbrun"
5440 for ac_func
in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown
chmod fchmod chroot link mknod mknod64
5442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5443 echo "configure:5444: checking for $ac_func" >&5
5444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5445 echo $ac_n "(cached) $ac_c" 1>&6
5447 cat > conftest.
$ac_ext <<EOF
5448 #line 5449 "configure"
5449 #include "confdefs.h"
5450 /* System header to define __stub macros and hopefully few prototypes,
5451 which can conflict with char $ac_func(); below. */
5453 /* Override any gcc2 internal prototype to avoid an error. */
5454 /* We use char because int might match the return type of a gcc2
5455 builtin and then its argument prototype would still apply. */
5460 /* The GNU C library defines this for functions which it implements
5461 to always fail with ENOSYS. Some functions are actually named
5462 something starting with __ and the normal name is an alias. */
5463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5471 if { (eval echo configure
:5472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5473 eval "ac_cv_func_$ac_func=yes"
5475 echo "configure: failed program was:" >&5
5476 cat conftest.
$ac_ext >&5
5478 eval "ac_cv_func_$ac_func=no"
5483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5484 echo "$ac_t""yes" 1>&6
5485 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5486 cat >> confdefs.h
<<EOF
5487 #define $ac_tr_func 1
5491 echo "$ac_t""no" 1>&6
5495 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
5497 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5498 echo "configure:5499: checking for $ac_func" >&5
5499 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5500 echo $ac_n "(cached) $ac_c" 1>&6
5502 cat > conftest.
$ac_ext <<EOF
5503 #line 5504 "configure"
5504 #include "confdefs.h"
5505 /* System header to define __stub macros and hopefully few prototypes,
5506 which can conflict with char $ac_func(); below. */
5508 /* Override any gcc2 internal prototype to avoid an error. */
5509 /* We use char because int might match the return type of a gcc2
5510 builtin and then its argument prototype would still apply. */
5515 /* The GNU C library defines this for functions which it implements
5516 to always fail with ENOSYS. Some functions are actually named
5517 something starting with __ and the normal name is an alias. */
5518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5526 if { (eval echo configure
:5527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5528 eval "ac_cv_func_$ac_func=yes"
5530 echo "configure: failed program was:" >&5
5531 cat conftest.
$ac_ext >&5
5533 eval "ac_cv_func_$ac_func=no"
5538 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5539 echo "$ac_t""yes" 1>&6
5540 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5541 cat >> confdefs.h
<<EOF
5542 #define $ac_tr_func 1
5546 echo "$ac_t""no" 1>&6
5550 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5553 echo "configure:5554: checking for $ac_func" >&5
5554 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5555 echo $ac_n "(cached) $ac_c" 1>&6
5557 cat > conftest.
$ac_ext <<EOF
5558 #line 5559 "configure"
5559 #include "confdefs.h"
5560 /* System header to define __stub macros and hopefully few prototypes,
5561 which can conflict with char $ac_func(); below. */
5563 /* Override any gcc2 internal prototype to avoid an error. */
5564 /* We use char because int might match the return type of a gcc2
5565 builtin and then its argument prototype would still apply. */
5570 /* The GNU C library defines this for functions which it implements
5571 to always fail with ENOSYS. Some functions are actually named
5572 something starting with __ and the normal name is an alias. */
5573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5581 if { (eval echo configure
:5582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5583 eval "ac_cv_func_$ac_func=yes"
5585 echo "configure: failed program was:" >&5
5586 cat conftest.
$ac_ext >&5
5588 eval "ac_cv_func_$ac_func=no"
5593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5594 echo "$ac_t""yes" 1>&6
5595 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5596 cat >> confdefs.h
<<EOF
5597 #define $ac_tr_func 1
5601 echo "$ac_t""no" 1>&6
5605 for ac_func
in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5607 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5608 echo "configure:5609: checking for $ac_func" >&5
5609 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5610 echo $ac_n "(cached) $ac_c" 1>&6
5612 cat > conftest.
$ac_ext <<EOF
5613 #line 5614 "configure"
5614 #include "confdefs.h"
5615 /* System header to define __stub macros and hopefully few prototypes,
5616 which can conflict with char $ac_func(); below. */
5618 /* Override any gcc2 internal prototype to avoid an error. */
5619 /* We use char because int might match the return type of a gcc2
5620 builtin and then its argument prototype would still apply. */
5625 /* The GNU C library defines this for functions which it implements
5626 to always fail with ENOSYS. Some functions are actually named
5627 something starting with __ and the normal name is an alias. */
5628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5636 if { (eval echo configure
:5637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5638 eval "ac_cv_func_$ac_func=yes"
5640 echo "configure: failed program was:" >&5
5641 cat conftest.
$ac_ext >&5
5643 eval "ac_cv_func_$ac_func=no"
5648 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5649 echo "$ac_t""yes" 1>&6
5650 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5651 cat >> confdefs.h
<<EOF
5652 #define $ac_tr_func 1
5656 echo "$ac_t""no" 1>&6
5660 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf realpath
5662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5663 echo "configure:5664: checking for $ac_func" >&5
5664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5665 echo $ac_n "(cached) $ac_c" 1>&6
5667 cat > conftest.
$ac_ext <<EOF
5668 #line 5669 "configure"
5669 #include "confdefs.h"
5670 /* System header to define __stub macros and hopefully few prototypes,
5671 which can conflict with char $ac_func(); below. */
5673 /* Override any gcc2 internal prototype to avoid an error. */
5674 /* We use char because int might match the return type of a gcc2
5675 builtin and then its argument prototype would still apply. */
5680 /* The GNU C library defines this for functions which it implements
5681 to always fail with ENOSYS. Some functions are actually named
5682 something starting with __ and the normal name is an alias. */
5683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5691 if { (eval echo configure
:5692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5693 eval "ac_cv_func_$ac_func=yes"
5695 echo "configure: failed program was:" >&5
5696 cat conftest.
$ac_ext >&5
5698 eval "ac_cv_func_$ac_func=no"
5703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5704 echo "$ac_t""yes" 1>&6
5705 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5706 cat >> confdefs.h
<<EOF
5707 #define $ac_tr_func 1
5711 echo "$ac_t""no" 1>&6
5715 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5717 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5718 echo "configure:5719: checking for $ac_func" >&5
5719 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5720 echo $ac_n "(cached) $ac_c" 1>&6
5722 cat > conftest.
$ac_ext <<EOF
5723 #line 5724 "configure"
5724 #include "confdefs.h"
5725 /* System header to define __stub macros and hopefully few prototypes,
5726 which can conflict with char $ac_func(); below. */
5728 /* Override any gcc2 internal prototype to avoid an error. */
5729 /* We use char because int might match the return type of a gcc2
5730 builtin and then its argument prototype would still apply. */
5735 /* The GNU C library defines this for functions which it implements
5736 to always fail with ENOSYS. Some functions are actually named
5737 something starting with __ and the normal name is an alias. */
5738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5746 if { (eval echo configure
:5747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5748 eval "ac_cv_func_$ac_func=yes"
5750 echo "configure: failed program was:" >&5
5751 cat conftest.
$ac_ext >&5
5753 eval "ac_cv_func_$ac_func=no"
5758 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5759 echo "$ac_t""yes" 1>&6
5760 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5761 cat >> confdefs.h
<<EOF
5762 #define $ac_tr_func 1
5766 echo "$ac_t""no" 1>&6
5770 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5773 echo "configure:5774: checking for $ac_func" >&5
5774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5775 echo $ac_n "(cached) $ac_c" 1>&6
5777 cat > conftest.
$ac_ext <<EOF
5778 #line 5779 "configure"
5779 #include "confdefs.h"
5780 /* System header to define __stub macros and hopefully few prototypes,
5781 which can conflict with char $ac_func(); below. */
5783 /* Override any gcc2 internal prototype to avoid an error. */
5784 /* We use char because int might match the return type of a gcc2
5785 builtin and then its argument prototype would still apply. */
5790 /* The GNU C library defines this for functions which it implements
5791 to always fail with ENOSYS. Some functions are actually named
5792 something starting with __ and the normal name is an alias. */
5793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5801 if { (eval echo configure
:5802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5803 eval "ac_cv_func_$ac_func=yes"
5805 echo "configure: failed program was:" >&5
5806 cat conftest.
$ac_ext >&5
5808 eval "ac_cv_func_$ac_func=no"
5813 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5814 echo "$ac_t""yes" 1>&6
5815 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5816 cat >> confdefs.h
<<EOF
5817 #define $ac_tr_func 1
5821 echo "$ac_t""no" 1>&6
5825 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5827 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5828 echo "configure:5829: checking for $ac_func" >&5
5829 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5830 echo $ac_n "(cached) $ac_c" 1>&6
5832 cat > conftest.
$ac_ext <<EOF
5833 #line 5834 "configure"
5834 #include "confdefs.h"
5835 /* System header to define __stub macros and hopefully few prototypes,
5836 which can conflict with char $ac_func(); below. */
5838 /* Override any gcc2 internal prototype to avoid an error. */
5839 /* We use char because int might match the return type of a gcc2
5840 builtin and then its argument prototype would still apply. */
5845 /* The GNU C library defines this for functions which it implements
5846 to always fail with ENOSYS. Some functions are actually named
5847 something starting with __ and the normal name is an alias. */
5848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5856 if { (eval echo configure
:5857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5858 eval "ac_cv_func_$ac_func=yes"
5860 echo "configure: failed program was:" >&5
5861 cat conftest.
$ac_ext >&5
5863 eval "ac_cv_func_$ac_func=no"
5868 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5869 echo "$ac_t""yes" 1>&6
5870 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5871 cat >> confdefs.h
<<EOF
5872 #define $ac_tr_func 1
5876 echo "$ac_t""no" 1>&6
5880 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl symlink readlink
5882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5883 echo "configure:5884: checking for $ac_func" >&5
5884 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5885 echo $ac_n "(cached) $ac_c" 1>&6
5887 cat > conftest.
$ac_ext <<EOF
5888 #line 5889 "configure"
5889 #include "confdefs.h"
5890 /* System header to define __stub macros and hopefully few prototypes,
5891 which can conflict with char $ac_func(); below. */
5893 /* Override any gcc2 internal prototype to avoid an error. */
5894 /* We use char because int might match the return type of a gcc2
5895 builtin and then its argument prototype would still apply. */
5900 /* The GNU C library defines this for functions which it implements
5901 to always fail with ENOSYS. Some functions are actually named
5902 something starting with __ and the normal name is an alias. */
5903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5911 if { (eval echo configure
:5912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5913 eval "ac_cv_func_$ac_func=yes"
5915 echo "configure: failed program was:" >&5
5916 cat conftest.
$ac_ext >&5
5918 eval "ac_cv_func_$ac_func=no"
5923 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5924 echo "$ac_t""yes" 1>&6
5925 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5926 cat >> confdefs.h
<<EOF
5927 #define $ac_tr_func 1
5931 echo "$ac_t""no" 1>&6
5935 for ac_func
in syslog vsyslog
5937 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5938 echo "configure:5939: checking for $ac_func" >&5
5939 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5940 echo $ac_n "(cached) $ac_c" 1>&6
5942 cat > conftest.
$ac_ext <<EOF
5943 #line 5944 "configure"
5944 #include "confdefs.h"
5945 /* System header to define __stub macros and hopefully few prototypes,
5946 which can conflict with char $ac_func(); below. */
5948 /* Override any gcc2 internal prototype to avoid an error. */
5949 /* We use char because int might match the return type of a gcc2
5950 builtin and then its argument prototype would still apply. */
5955 /* The GNU C library defines this for functions which it implements
5956 to always fail with ENOSYS. Some functions are actually named
5957 something starting with __ and the normal name is an alias. */
5958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5966 if { (eval echo configure
:5967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5968 eval "ac_cv_func_$ac_func=yes"
5970 echo "configure: failed program was:" >&5
5971 cat conftest.
$ac_ext >&5
5973 eval "ac_cv_func_$ac_func=no"
5978 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5979 echo "$ac_t""yes" 1>&6
5980 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5981 cat >> confdefs.h
<<EOF
5982 #define $ac_tr_func 1
5986 echo "$ac_t""no" 1>&6
5990 # setbuffer is needed for smbtorture
5991 for ac_func
in setbuffer
5993 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5994 echo "configure:5995: checking for $ac_func" >&5
5995 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5996 echo $ac_n "(cached) $ac_c" 1>&6
5998 cat > conftest.
$ac_ext <<EOF
5999 #line 6000 "configure"
6000 #include "confdefs.h"
6001 /* System header to define __stub macros and hopefully few prototypes,
6002 which can conflict with char $ac_func(); below. */
6004 /* Override any gcc2 internal prototype to avoid an error. */
6005 /* We use char because int might match the return type of a gcc2
6006 builtin and then its argument prototype would still apply. */
6011 /* The GNU C library defines this for functions which it implements
6012 to always fail with ENOSYS. Some functions are actually named
6013 something starting with __ and the normal name is an alias. */
6014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6022 if { (eval echo configure
:6023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6024 eval "ac_cv_func_$ac_func=yes"
6026 echo "configure: failed program was:" >&5
6027 cat conftest.
$ac_ext >&5
6029 eval "ac_cv_func_$ac_func=no"
6034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6035 echo "$ac_t""yes" 1>&6
6036 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6037 cat >> confdefs.h
<<EOF
6038 #define $ac_tr_func 1
6042 echo "$ac_t""no" 1>&6
6047 # syscall() is needed for smbwrapper.
6048 for ac_func
in syscall
6050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6051 echo "configure:6052: checking for $ac_func" >&5
6052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6053 echo $ac_n "(cached) $ac_c" 1>&6
6055 cat > conftest.
$ac_ext <<EOF
6056 #line 6057 "configure"
6057 #include "confdefs.h"
6058 /* System header to define __stub macros and hopefully few prototypes,
6059 which can conflict with char $ac_func(); below. */
6061 /* Override any gcc2 internal prototype to avoid an error. */
6062 /* We use char because int might match the return type of a gcc2
6063 builtin and then its argument prototype would still apply. */
6068 /* The GNU C library defines this for functions which it implements
6069 to always fail with ENOSYS. Some functions are actually named
6070 something starting with __ and the normal name is an alias. */
6071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6079 if { (eval echo configure
:6080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6081 eval "ac_cv_func_$ac_func=yes"
6083 echo "configure: failed program was:" >&5
6084 cat conftest.
$ac_ext >&5
6086 eval "ac_cv_func_$ac_func=no"
6091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6092 echo "$ac_t""yes" 1>&6
6093 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6094 cat >> confdefs.h
<<EOF
6095 #define $ac_tr_func 1
6099 echo "$ac_t""no" 1>&6
6104 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
6106 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6107 echo "configure:6108: checking for $ac_func" >&5
6108 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6109 echo $ac_n "(cached) $ac_c" 1>&6
6111 cat > conftest.
$ac_ext <<EOF
6112 #line 6113 "configure"
6113 #include "confdefs.h"
6114 /* System header to define __stub macros and hopefully few prototypes,
6115 which can conflict with char $ac_func(); below. */
6117 /* Override any gcc2 internal prototype to avoid an error. */
6118 /* We use char because int might match the return type of a gcc2
6119 builtin and then its argument prototype would still apply. */
6124 /* The GNU C library defines this for functions which it implements
6125 to always fail with ENOSYS. Some functions are actually named
6126 something starting with __ and the normal name is an alias. */
6127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6135 if { (eval echo configure
:6136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6137 eval "ac_cv_func_$ac_func=yes"
6139 echo "configure: failed program was:" >&5
6140 cat conftest.
$ac_ext >&5
6142 eval "ac_cv_func_$ac_func=no"
6147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6148 echo "$ac_t""yes" 1>&6
6149 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6150 cat >> confdefs.h
<<EOF
6151 #define $ac_tr_func 1
6155 echo "$ac_t""no" 1>&6
6159 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6161 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6162 echo "configure:6163: checking for $ac_func" >&5
6163 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6164 echo $ac_n "(cached) $ac_c" 1>&6
6166 cat > conftest.
$ac_ext <<EOF
6167 #line 6168 "configure"
6168 #include "confdefs.h"
6169 /* System header to define __stub macros and hopefully few prototypes,
6170 which can conflict with char $ac_func(); below. */
6172 /* Override any gcc2 internal prototype to avoid an error. */
6173 /* We use char because int might match the return type of a gcc2
6174 builtin and then its argument prototype would still apply. */
6179 /* The GNU C library defines this for functions which it implements
6180 to always fail with ENOSYS. Some functions are actually named
6181 something starting with __ and the normal name is an alias. */
6182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6190 if { (eval echo configure
:6191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6192 eval "ac_cv_func_$ac_func=yes"
6194 echo "configure: failed program was:" >&5
6195 cat conftest.
$ac_ext >&5
6197 eval "ac_cv_func_$ac_func=no"
6202 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6203 echo "$ac_t""yes" 1>&6
6204 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6205 cat >> confdefs.h
<<EOF
6206 #define $ac_tr_func 1
6210 echo "$ac_t""no" 1>&6
6214 for ac_func
in __getcwd _getcwd
6216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6217 echo "configure:6218: checking for $ac_func" >&5
6218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6219 echo $ac_n "(cached) $ac_c" 1>&6
6221 cat > conftest.
$ac_ext <<EOF
6222 #line 6223 "configure"
6223 #include "confdefs.h"
6224 /* System header to define __stub macros and hopefully few prototypes,
6225 which can conflict with char $ac_func(); below. */
6227 /* Override any gcc2 internal prototype to avoid an error. */
6228 /* We use char because int might match the return type of a gcc2
6229 builtin and then its argument prototype would still apply. */
6234 /* The GNU C library defines this for functions which it implements
6235 to always fail with ENOSYS. Some functions are actually named
6236 something starting with __ and the normal name is an alias. */
6237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6245 if { (eval echo configure
:6246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6247 eval "ac_cv_func_$ac_func=yes"
6249 echo "configure: failed program was:" >&5
6250 cat conftest.
$ac_ext >&5
6252 eval "ac_cv_func_$ac_func=no"
6257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6258 echo "$ac_t""yes" 1>&6
6259 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6260 cat >> confdefs.h
<<EOF
6261 #define $ac_tr_func 1
6265 echo "$ac_t""no" 1>&6
6269 for ac_func
in __xstat __fxstat __lxstat
6271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6272 echo "configure:6273: checking for $ac_func" >&5
6273 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6274 echo $ac_n "(cached) $ac_c" 1>&6
6276 cat > conftest.
$ac_ext <<EOF
6277 #line 6278 "configure"
6278 #include "confdefs.h"
6279 /* System header to define __stub macros and hopefully few prototypes,
6280 which can conflict with char $ac_func(); below. */
6282 /* Override any gcc2 internal prototype to avoid an error. */
6283 /* We use char because int might match the return type of a gcc2
6284 builtin and then its argument prototype would still apply. */
6289 /* The GNU C library defines this for functions which it implements
6290 to always fail with ENOSYS. Some functions are actually named
6291 something starting with __ and the normal name is an alias. */
6292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6300 if { (eval echo configure
:6301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6302 eval "ac_cv_func_$ac_func=yes"
6304 echo "configure: failed program was:" >&5
6305 cat conftest.
$ac_ext >&5
6307 eval "ac_cv_func_$ac_func=no"
6312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6313 echo "$ac_t""yes" 1>&6
6314 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6315 cat >> confdefs.h
<<EOF
6316 #define $ac_tr_func 1
6320 echo "$ac_t""no" 1>&6
6324 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
6326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6327 echo "configure:6328: checking for $ac_func" >&5
6328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6329 echo $ac_n "(cached) $ac_c" 1>&6
6331 cat > conftest.
$ac_ext <<EOF
6332 #line 6333 "configure"
6333 #include "confdefs.h"
6334 /* System header to define __stub macros and hopefully few prototypes,
6335 which can conflict with char $ac_func(); below. */
6337 /* Override any gcc2 internal prototype to avoid an error. */
6338 /* We use char because int might match the return type of a gcc2
6339 builtin and then its argument prototype would still apply. */
6344 /* The GNU C library defines this for functions which it implements
6345 to always fail with ENOSYS. Some functions are actually named
6346 something starting with __ and the normal name is an alias. */
6347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6355 if { (eval echo configure
:6356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6357 eval "ac_cv_func_$ac_func=yes"
6359 echo "configure: failed program was:" >&5
6360 cat conftest.
$ac_ext >&5
6362 eval "ac_cv_func_$ac_func=no"
6367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6368 echo "$ac_t""yes" 1>&6
6369 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6370 cat >> confdefs.h
<<EOF
6371 #define $ac_tr_func 1
6375 echo "$ac_t""no" 1>&6
6379 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
6381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6382 echo "configure:6383: checking for $ac_func" >&5
6383 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6384 echo $ac_n "(cached) $ac_c" 1>&6
6386 cat > conftest.
$ac_ext <<EOF
6387 #line 6388 "configure"
6388 #include "confdefs.h"
6389 /* System header to define __stub macros and hopefully few prototypes,
6390 which can conflict with char $ac_func(); below. */
6392 /* Override any gcc2 internal prototype to avoid an error. */
6393 /* We use char because int might match the return type of a gcc2
6394 builtin and then its argument prototype would still apply. */
6399 /* The GNU C library defines this for functions which it implements
6400 to always fail with ENOSYS. Some functions are actually named
6401 something starting with __ and the normal name is an alias. */
6402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6410 if { (eval echo configure
:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6412 eval "ac_cv_func_$ac_func=yes"
6414 echo "configure: failed program was:" >&5
6415 cat conftest.
$ac_ext >&5
6417 eval "ac_cv_func_$ac_func=no"
6422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6423 echo "$ac_t""yes" 1>&6
6424 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6425 cat >> confdefs.h
<<EOF
6426 #define $ac_tr_func 1
6430 echo "$ac_t""no" 1>&6
6434 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
6436 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6437 echo "configure:6438: checking for $ac_func" >&5
6438 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6439 echo $ac_n "(cached) $ac_c" 1>&6
6441 cat > conftest.
$ac_ext <<EOF
6442 #line 6443 "configure"
6443 #include "confdefs.h"
6444 /* System header to define __stub macros and hopefully few prototypes,
6445 which can conflict with char $ac_func(); below. */
6447 /* Override any gcc2 internal prototype to avoid an error. */
6448 /* We use char because int might match the return type of a gcc2
6449 builtin and then its argument prototype would still apply. */
6454 /* The GNU C library defines this for functions which it implements
6455 to always fail with ENOSYS. Some functions are actually named
6456 something starting with __ and the normal name is an alias. */
6457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6465 if { (eval echo configure
:6466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6467 eval "ac_cv_func_$ac_func=yes"
6469 echo "configure: failed program was:" >&5
6470 cat conftest.
$ac_ext >&5
6472 eval "ac_cv_func_$ac_func=no"
6477 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6478 echo "$ac_t""yes" 1>&6
6479 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6480 cat >> confdefs.h
<<EOF
6481 #define $ac_tr_func 1
6485 echo "$ac_t""no" 1>&6
6489 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
6491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6492 echo "configure:6493: checking for $ac_func" >&5
6493 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6494 echo $ac_n "(cached) $ac_c" 1>&6
6496 cat > conftest.
$ac_ext <<EOF
6497 #line 6498 "configure"
6498 #include "confdefs.h"
6499 /* System header to define __stub macros and hopefully few prototypes,
6500 which can conflict with char $ac_func(); below. */
6502 /* Override any gcc2 internal prototype to avoid an error. */
6503 /* We use char because int might match the return type of a gcc2
6504 builtin and then its argument prototype would still apply. */
6509 /* The GNU C library defines this for functions which it implements
6510 to always fail with ENOSYS. Some functions are actually named
6511 something starting with __ and the normal name is an alias. */
6512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6520 if { (eval echo configure
:6521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6522 eval "ac_cv_func_$ac_func=yes"
6524 echo "configure: failed program was:" >&5
6525 cat conftest.
$ac_ext >&5
6527 eval "ac_cv_func_$ac_func=no"
6532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6533 echo "$ac_t""yes" 1>&6
6534 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6535 cat >> confdefs.h
<<EOF
6536 #define $ac_tr_func 1
6540 echo "$ac_t""no" 1>&6
6544 for ac_func
in _write __write _fork __fork
6546 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6547 echo "configure:6548: checking for $ac_func" >&5
6548 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6549 echo $ac_n "(cached) $ac_c" 1>&6
6551 cat > conftest.
$ac_ext <<EOF
6552 #line 6553 "configure"
6553 #include "confdefs.h"
6554 /* System header to define __stub macros and hopefully few prototypes,
6555 which can conflict with char $ac_func(); below. */
6557 /* Override any gcc2 internal prototype to avoid an error. */
6558 /* We use char because int might match the return type of a gcc2
6559 builtin and then its argument prototype would still apply. */
6564 /* The GNU C library defines this for functions which it implements
6565 to always fail with ENOSYS. Some functions are actually named
6566 something starting with __ and the normal name is an alias. */
6567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6575 if { (eval echo configure
:6576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6577 eval "ac_cv_func_$ac_func=yes"
6579 echo "configure: failed program was:" >&5
6580 cat conftest.
$ac_ext >&5
6582 eval "ac_cv_func_$ac_func=no"
6587 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6588 echo "$ac_t""yes" 1>&6
6589 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6590 cat >> confdefs.h
<<EOF
6591 #define $ac_tr_func 1
6595 echo "$ac_t""no" 1>&6
6599 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6601 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6602 echo "configure:6603: checking for $ac_func" >&5
6603 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6604 echo $ac_n "(cached) $ac_c" 1>&6
6606 cat > conftest.
$ac_ext <<EOF
6607 #line 6608 "configure"
6608 #include "confdefs.h"
6609 /* System header to define __stub macros and hopefully few prototypes,
6610 which can conflict with char $ac_func(); below. */
6612 /* Override any gcc2 internal prototype to avoid an error. */
6613 /* We use char because int might match the return type of a gcc2
6614 builtin and then its argument prototype would still apply. */
6619 /* The GNU C library defines this for functions which it implements
6620 to always fail with ENOSYS. Some functions are actually named
6621 something starting with __ and the normal name is an alias. */
6622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6630 if { (eval echo configure
:6631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6632 eval "ac_cv_func_$ac_func=yes"
6634 echo "configure: failed program was:" >&5
6635 cat conftest.
$ac_ext >&5
6637 eval "ac_cv_func_$ac_func=no"
6642 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6643 echo "$ac_t""yes" 1>&6
6644 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6645 cat >> confdefs.h
<<EOF
6646 #define $ac_tr_func 1
6650 echo "$ac_t""no" 1>&6
6654 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6656 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6657 echo "configure:6658: checking for $ac_func" >&5
6658 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6659 echo $ac_n "(cached) $ac_c" 1>&6
6661 cat > conftest.
$ac_ext <<EOF
6662 #line 6663 "configure"
6663 #include "confdefs.h"
6664 /* System header to define __stub macros and hopefully few prototypes,
6665 which can conflict with char $ac_func(); below. */
6667 /* Override any gcc2 internal prototype to avoid an error. */
6668 /* We use char because int might match the return type of a gcc2
6669 builtin and then its argument prototype would still apply. */
6674 /* The GNU C library defines this for functions which it implements
6675 to always fail with ENOSYS. Some functions are actually named
6676 something starting with __ and the normal name is an alias. */
6677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6685 if { (eval echo configure
:6686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6687 eval "ac_cv_func_$ac_func=yes"
6689 echo "configure: failed program was:" >&5
6690 cat conftest.
$ac_ext >&5
6692 eval "ac_cv_func_$ac_func=no"
6697 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6698 echo "$ac_t""yes" 1>&6
6699 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6700 cat >> confdefs.h
<<EOF
6701 #define $ac_tr_func 1
6705 echo "$ac_t""no" 1>&6
6709 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6711 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6712 echo "configure:6713: checking for $ac_func" >&5
6713 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6714 echo $ac_n "(cached) $ac_c" 1>&6
6716 cat > conftest.
$ac_ext <<EOF
6717 #line 6718 "configure"
6718 #include "confdefs.h"
6719 /* System header to define __stub macros and hopefully few prototypes,
6720 which can conflict with char $ac_func(); below. */
6722 /* Override any gcc2 internal prototype to avoid an error. */
6723 /* We use char because int might match the return type of a gcc2
6724 builtin and then its argument prototype would still apply. */
6729 /* The GNU C library defines this for functions which it implements
6730 to always fail with ENOSYS. Some functions are actually named
6731 something starting with __ and the normal name is an alias. */
6732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6740 if { (eval echo configure
:6741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6742 eval "ac_cv_func_$ac_func=yes"
6744 echo "configure: failed program was:" >&5
6745 cat conftest.
$ac_ext >&5
6747 eval "ac_cv_func_$ac_func=no"
6752 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6753 echo "$ac_t""yes" 1>&6
6754 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6755 cat >> confdefs.h
<<EOF
6756 #define $ac_tr_func 1
6760 echo "$ac_t""no" 1>&6
6764 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6766 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6767 echo "configure:6768: checking for $ac_func" >&5
6768 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6769 echo $ac_n "(cached) $ac_c" 1>&6
6771 cat > conftest.
$ac_ext <<EOF
6772 #line 6773 "configure"
6773 #include "confdefs.h"
6774 /* System header to define __stub macros and hopefully few prototypes,
6775 which can conflict with char $ac_func(); below. */
6777 /* Override any gcc2 internal prototype to avoid an error. */
6778 /* We use char because int might match the return type of a gcc2
6779 builtin and then its argument prototype would still apply. */
6784 /* The GNU C library defines this for functions which it implements
6785 to always fail with ENOSYS. Some functions are actually named
6786 something starting with __ and the normal name is an alias. */
6787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6795 if { (eval echo configure
:6796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6797 eval "ac_cv_func_$ac_func=yes"
6799 echo "configure: failed program was:" >&5
6800 cat conftest.
$ac_ext >&5
6802 eval "ac_cv_func_$ac_func=no"
6807 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6808 echo "$ac_t""yes" 1>&6
6809 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6810 cat >> confdefs.h
<<EOF
6811 #define $ac_tr_func 1
6815 echo "$ac_t""no" 1>&6
6819 for ac_func
in open64 _open64 __open64 creat64
6821 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6822 echo "configure:6823: checking for $ac_func" >&5
6823 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6824 echo $ac_n "(cached) $ac_c" 1>&6
6826 cat > conftest.
$ac_ext <<EOF
6827 #line 6828 "configure"
6828 #include "confdefs.h"
6829 /* System header to define __stub macros and hopefully few prototypes,
6830 which can conflict with char $ac_func(); below. */
6832 /* Override any gcc2 internal prototype to avoid an error. */
6833 /* We use char because int might match the return type of a gcc2
6834 builtin and then its argument prototype would still apply. */
6839 /* The GNU C library defines this for functions which it implements
6840 to always fail with ENOSYS. Some functions are actually named
6841 something starting with __ and the normal name is an alias. */
6842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6850 if { (eval echo configure
:6851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6852 eval "ac_cv_func_$ac_func=yes"
6854 echo "configure: failed program was:" >&5
6855 cat conftest.
$ac_ext >&5
6857 eval "ac_cv_func_$ac_func=no"
6862 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6863 echo "$ac_t""yes" 1>&6
6864 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6865 cat >> confdefs.h
<<EOF
6866 #define $ac_tr_func 1
6870 echo "$ac_t""no" 1>&6
6876 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6879 if test x
$ac_cv_func_stat64 = xno
; then
6880 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6881 echo "configure:6882: checking for stat64 in <sys/stat.h>" >&5
6882 cat > conftest.
$ac_ext <<EOF
6883 #line 6884 "configure"
6884 #include "confdefs.h"
6886 #if defined(HAVE_UNISTD_H)
6889 #include <sys/stat.h>
6892 struct stat64 st64; exit(stat64(".",&st64));
6895 if { (eval echo configure
:6896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6897 ac_cv_func_stat64
=yes
6899 echo "configure: failed program was:" >&5
6900 cat conftest.
$ac_ext >&5
6903 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6904 if test x
$ac_cv_func_stat64 = xyes
; then
6905 cat >> confdefs.h
<<\EOF
6906 #define HAVE_STAT64 1
6912 if test x
$ac_cv_func_lstat64 = xno
; then
6913 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6914 echo "configure:6915: checking for lstat64 in <sys/stat.h>" >&5
6915 cat > conftest.
$ac_ext <<EOF
6916 #line 6917 "configure"
6917 #include "confdefs.h"
6919 #if defined(HAVE_UNISTD_H)
6922 #include <sys/stat.h>
6925 struct stat64 st64; exit(lstat64(".",&st64));
6928 if { (eval echo configure
:6929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6930 ac_cv_func_lstat64
=yes
6932 echo "configure: failed program was:" >&5
6933 cat conftest.
$ac_ext >&5
6936 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6937 if test x
$ac_cv_func_lstat64 = xyes
; then
6938 cat >> confdefs.h
<<\EOF
6939 #define HAVE_LSTAT64 1
6945 if test x
$ac_cv_func_fstat64 = xno
; then
6946 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6947 echo "configure:6948: checking for fstat64 in <sys/stat.h>" >&5
6948 cat > conftest.
$ac_ext <<EOF
6949 #line 6950 "configure"
6950 #include "confdefs.h"
6952 #if defined(HAVE_UNISTD_H)
6955 #include <sys/stat.h>
6958 struct stat64 st64; exit(fstat64(0,&st64));
6961 if { (eval echo configure
:6962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6963 ac_cv_func_fstat64
=yes
6965 echo "configure: failed program was:" >&5
6966 cat conftest.
$ac_ext >&5
6969 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6970 if test x
$ac_cv_func_fstat64 = xyes
; then
6971 cat >> confdefs.h
<<\EOF
6972 #define HAVE_FSTAT64 1
6978 #####################################
6979 # we might need the resolv library on some systems
6980 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
6981 echo "configure:6982: checking for dn_expand in -lresolv" >&5
6982 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
6983 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6984 echo $ac_n "(cached) $ac_c" 1>&6
6986 ac_save_LIBS
="$LIBS"
6987 LIBS
="-lresolv $LIBS"
6988 cat > conftest.
$ac_ext <<EOF
6989 #line 6990 "configure"
6990 #include "confdefs.h"
6991 /* Override any gcc2 internal prototype to avoid an error. */
6992 /* We use char because int might match the return type of a gcc2
6993 builtin and then its argument prototype would still apply. */
7000 if { (eval echo configure
:7001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7002 eval "ac_cv_lib_$ac_lib_var=yes"
7004 echo "configure: failed program was:" >&5
7005 cat conftest.
$ac_ext >&5
7007 eval "ac_cv_lib_$ac_lib_var=no"
7010 LIBS
="$ac_save_LIBS"
7013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7014 echo "$ac_t""yes" 1>&6
7015 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7016 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7017 cat >> confdefs.h
<<EOF
7018 #define $ac_tr_lib 1
7021 LIBS
="-lresolv $LIBS"
7024 echo "$ac_t""no" 1>&6
7029 # Check for the functions putprpwnam, set_auth_parameters,
7030 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
7031 # Needed for OSF1 and HPUX.
7035 *-lsecurity*) for ac_func
in putprpwnam
7037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7038 echo "configure:7039: checking for $ac_func" >&5
7039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7040 echo $ac_n "(cached) $ac_c" 1>&6
7042 cat > conftest.
$ac_ext <<EOF
7043 #line 7044 "configure"
7044 #include "confdefs.h"
7045 /* System header to define __stub macros and hopefully few prototypes,
7046 which can conflict with char $ac_func(); below. */
7048 /* Override any gcc2 internal prototype to avoid an error. */
7049 /* We use char because int might match the return type of a gcc2
7050 builtin and then its argument prototype would still apply. */
7055 /* The GNU C library defines this for functions which it implements
7056 to always fail with ENOSYS. Some functions are actually named
7057 something starting with __ and the normal name is an alias. */
7058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7066 if { (eval echo configure
:7067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7068 eval "ac_cv_func_$ac_func=yes"
7070 echo "configure: failed program was:" >&5
7071 cat conftest.
$ac_ext >&5
7073 eval "ac_cv_func_$ac_func=no"
7078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7079 echo "$ac_t""yes" 1>&6
7080 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7081 cat >> confdefs.h
<<EOF
7082 #define $ac_tr_func 1
7086 echo "$ac_t""no" 1>&6
7090 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
7091 echo "configure:7092: checking for putprpwnam in -lsecurity" >&5
7092 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
7093 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7094 echo $ac_n "(cached) $ac_c" 1>&6
7096 ac_save_LIBS
="$LIBS"
7097 LIBS
="-lsecurity $LIBS"
7098 cat > conftest.
$ac_ext <<EOF
7099 #line 7100 "configure"
7100 #include "confdefs.h"
7101 /* Override any gcc2 internal prototype to avoid an error. */
7102 /* We use char because int might match the return type of a gcc2
7103 builtin and then its argument prototype would still apply. */
7110 if { (eval echo configure
:7111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7112 eval "ac_cv_lib_$ac_lib_var=yes"
7114 echo "configure: failed program was:" >&5
7115 cat conftest.
$ac_ext >&5
7117 eval "ac_cv_lib_$ac_lib_var=no"
7120 LIBS
="$ac_save_LIBS"
7123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7124 echo "$ac_t""yes" 1>&6
7125 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7126 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7127 cat >> confdefs.h
<<EOF
7128 #define $ac_tr_lib 1
7131 LIBS
="-lsecurity $LIBS"
7134 echo "$ac_t""no" 1>&6
7137 for ac_func
in putprpwnam
7139 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7140 echo "configure:7141: checking for $ac_func" >&5
7141 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7142 echo $ac_n "(cached) $ac_c" 1>&6
7144 cat > conftest.
$ac_ext <<EOF
7145 #line 7146 "configure"
7146 #include "confdefs.h"
7147 /* System header to define __stub macros and hopefully few prototypes,
7148 which can conflict with char $ac_func(); below. */
7150 /* Override any gcc2 internal prototype to avoid an error. */
7151 /* We use char because int might match the return type of a gcc2
7152 builtin and then its argument prototype would still apply. */
7157 /* The GNU C library defines this for functions which it implements
7158 to always fail with ENOSYS. Some functions are actually named
7159 something starting with __ and the normal name is an alias. */
7160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7168 if { (eval echo configure
:7169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7170 eval "ac_cv_func_$ac_func=yes"
7172 echo "configure: failed program was:" >&5
7173 cat conftest.
$ac_ext >&5
7175 eval "ac_cv_func_$ac_func=no"
7180 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7181 echo "$ac_t""yes" 1>&6
7182 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7183 cat >> confdefs.h
<<EOF
7184 #define $ac_tr_func 1
7188 echo "$ac_t""no" 1>&6
7196 *-lsec*) for ac_func
in putprpwnam
7198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7199 echo "configure:7200: checking for $ac_func" >&5
7200 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7201 echo $ac_n "(cached) $ac_c" 1>&6
7203 cat > conftest.
$ac_ext <<EOF
7204 #line 7205 "configure"
7205 #include "confdefs.h"
7206 /* System header to define __stub macros and hopefully few prototypes,
7207 which can conflict with char $ac_func(); below. */
7209 /* Override any gcc2 internal prototype to avoid an error. */
7210 /* We use char because int might match the return type of a gcc2
7211 builtin and then its argument prototype would still apply. */
7216 /* The GNU C library defines this for functions which it implements
7217 to always fail with ENOSYS. Some functions are actually named
7218 something starting with __ and the normal name is an alias. */
7219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7227 if { (eval echo configure
:7228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7229 eval "ac_cv_func_$ac_func=yes"
7231 echo "configure: failed program was:" >&5
7232 cat conftest.
$ac_ext >&5
7234 eval "ac_cv_func_$ac_func=no"
7239 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7240 echo "$ac_t""yes" 1>&6
7241 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7242 cat >> confdefs.h
<<EOF
7243 #define $ac_tr_func 1
7247 echo "$ac_t""no" 1>&6
7251 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7252 echo "configure:7253: checking for putprpwnam in -lsec" >&5
7253 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7254 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7255 echo $ac_n "(cached) $ac_c" 1>&6
7257 ac_save_LIBS
="$LIBS"
7259 cat > conftest.
$ac_ext <<EOF
7260 #line 7261 "configure"
7261 #include "confdefs.h"
7262 /* Override any gcc2 internal prototype to avoid an error. */
7263 /* We use char because int might match the return type of a gcc2
7264 builtin and then its argument prototype would still apply. */
7271 if { (eval echo configure
:7272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7273 eval "ac_cv_lib_$ac_lib_var=yes"
7275 echo "configure: failed program was:" >&5
7276 cat conftest.
$ac_ext >&5
7278 eval "ac_cv_lib_$ac_lib_var=no"
7281 LIBS
="$ac_save_LIBS"
7284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7285 echo "$ac_t""yes" 1>&6
7286 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7287 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7288 cat >> confdefs.h
<<EOF
7289 #define $ac_tr_lib 1
7295 echo "$ac_t""no" 1>&6
7298 for ac_func
in putprpwnam
7300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7301 echo "configure:7302: checking for $ac_func" >&5
7302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7303 echo $ac_n "(cached) $ac_c" 1>&6
7305 cat > conftest.
$ac_ext <<EOF
7306 #line 7307 "configure"
7307 #include "confdefs.h"
7308 /* System header to define __stub macros and hopefully few prototypes,
7309 which can conflict with char $ac_func(); below. */
7311 /* Override any gcc2 internal prototype to avoid an error. */
7312 /* We use char because int might match the return type of a gcc2
7313 builtin and then its argument prototype would still apply. */
7318 /* The GNU C library defines this for functions which it implements
7319 to always fail with ENOSYS. Some functions are actually named
7320 something starting with __ and the normal name is an alias. */
7321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7329 if { (eval echo configure
:7330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7331 eval "ac_cv_func_$ac_func=yes"
7333 echo "configure: failed program was:" >&5
7334 cat conftest.
$ac_ext >&5
7336 eval "ac_cv_func_$ac_func=no"
7341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7342 echo "$ac_t""yes" 1>&6
7343 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7344 cat >> confdefs.h
<<EOF
7345 #define $ac_tr_func 1
7349 echo "$ac_t""no" 1>&6
7358 *-lsecurity*) for ac_func
in set_auth_parameters
7360 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7361 echo "configure:7362: checking for $ac_func" >&5
7362 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7363 echo $ac_n "(cached) $ac_c" 1>&6
7365 cat > conftest.
$ac_ext <<EOF
7366 #line 7367 "configure"
7367 #include "confdefs.h"
7368 /* System header to define __stub macros and hopefully few prototypes,
7369 which can conflict with char $ac_func(); below. */
7371 /* Override any gcc2 internal prototype to avoid an error. */
7372 /* We use char because int might match the return type of a gcc2
7373 builtin and then its argument prototype would still apply. */
7378 /* The GNU C library defines this for functions which it implements
7379 to always fail with ENOSYS. Some functions are actually named
7380 something starting with __ and the normal name is an alias. */
7381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7389 if { (eval echo configure
:7390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7391 eval "ac_cv_func_$ac_func=yes"
7393 echo "configure: failed program was:" >&5
7394 cat conftest.
$ac_ext >&5
7396 eval "ac_cv_func_$ac_func=no"
7401 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7402 echo "$ac_t""yes" 1>&6
7403 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7404 cat >> confdefs.h
<<EOF
7405 #define $ac_tr_func 1
7409 echo "$ac_t""no" 1>&6
7413 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7414 echo "configure:7415: checking for set_auth_parameters in -lsecurity" >&5
7415 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7416 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7417 echo $ac_n "(cached) $ac_c" 1>&6
7419 ac_save_LIBS
="$LIBS"
7420 LIBS
="-lsecurity $LIBS"
7421 cat > conftest.
$ac_ext <<EOF
7422 #line 7423 "configure"
7423 #include "confdefs.h"
7424 /* Override any gcc2 internal prototype to avoid an error. */
7425 /* We use char because int might match the return type of a gcc2
7426 builtin and then its argument prototype would still apply. */
7427 char set_auth_parameters();
7430 set_auth_parameters()
7433 if { (eval echo configure
:7434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7435 eval "ac_cv_lib_$ac_lib_var=yes"
7437 echo "configure: failed program was:" >&5
7438 cat conftest.
$ac_ext >&5
7440 eval "ac_cv_lib_$ac_lib_var=no"
7443 LIBS
="$ac_save_LIBS"
7446 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7447 echo "$ac_t""yes" 1>&6
7448 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7449 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7450 cat >> confdefs.h
<<EOF
7451 #define $ac_tr_lib 1
7454 LIBS
="-lsecurity $LIBS"
7457 echo "$ac_t""no" 1>&6
7460 for ac_func
in set_auth_parameters
7462 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7463 echo "configure:7464: checking for $ac_func" >&5
7464 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7465 echo $ac_n "(cached) $ac_c" 1>&6
7467 cat > conftest.
$ac_ext <<EOF
7468 #line 7469 "configure"
7469 #include "confdefs.h"
7470 /* System header to define __stub macros and hopefully few prototypes,
7471 which can conflict with char $ac_func(); below. */
7473 /* Override any gcc2 internal prototype to avoid an error. */
7474 /* We use char because int might match the return type of a gcc2
7475 builtin and then its argument prototype would still apply. */
7480 /* The GNU C library defines this for functions which it implements
7481 to always fail with ENOSYS. Some functions are actually named
7482 something starting with __ and the normal name is an alias. */
7483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7491 if { (eval echo configure
:7492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7493 eval "ac_cv_func_$ac_func=yes"
7495 echo "configure: failed program was:" >&5
7496 cat conftest.
$ac_ext >&5
7498 eval "ac_cv_func_$ac_func=no"
7503 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7504 echo "$ac_t""yes" 1>&6
7505 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7506 cat >> confdefs.h
<<EOF
7507 #define $ac_tr_func 1
7511 echo "$ac_t""no" 1>&6
7519 *-lsec*) for ac_func
in set_auth_parameters
7521 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7522 echo "configure:7523: checking for $ac_func" >&5
7523 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7524 echo $ac_n "(cached) $ac_c" 1>&6
7526 cat > conftest.
$ac_ext <<EOF
7527 #line 7528 "configure"
7528 #include "confdefs.h"
7529 /* System header to define __stub macros and hopefully few prototypes,
7530 which can conflict with char $ac_func(); below. */
7532 /* Override any gcc2 internal prototype to avoid an error. */
7533 /* We use char because int might match the return type of a gcc2
7534 builtin and then its argument prototype would still apply. */
7539 /* The GNU C library defines this for functions which it implements
7540 to always fail with ENOSYS. Some functions are actually named
7541 something starting with __ and the normal name is an alias. */
7542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7550 if { (eval echo configure
:7551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7552 eval "ac_cv_func_$ac_func=yes"
7554 echo "configure: failed program was:" >&5
7555 cat conftest.
$ac_ext >&5
7557 eval "ac_cv_func_$ac_func=no"
7562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7563 echo "$ac_t""yes" 1>&6
7564 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7565 cat >> confdefs.h
<<EOF
7566 #define $ac_tr_func 1
7570 echo "$ac_t""no" 1>&6
7574 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7575 echo "configure:7576: checking for set_auth_parameters in -lsec" >&5
7576 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7577 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7578 echo $ac_n "(cached) $ac_c" 1>&6
7580 ac_save_LIBS
="$LIBS"
7582 cat > conftest.
$ac_ext <<EOF
7583 #line 7584 "configure"
7584 #include "confdefs.h"
7585 /* Override any gcc2 internal prototype to avoid an error. */
7586 /* We use char because int might match the return type of a gcc2
7587 builtin and then its argument prototype would still apply. */
7588 char set_auth_parameters();
7591 set_auth_parameters()
7594 if { (eval echo configure
:7595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7596 eval "ac_cv_lib_$ac_lib_var=yes"
7598 echo "configure: failed program was:" >&5
7599 cat conftest.
$ac_ext >&5
7601 eval "ac_cv_lib_$ac_lib_var=no"
7604 LIBS
="$ac_save_LIBS"
7607 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7608 echo "$ac_t""yes" 1>&6
7609 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7610 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7611 cat >> confdefs.h
<<EOF
7612 #define $ac_tr_lib 1
7618 echo "$ac_t""no" 1>&6
7621 for ac_func
in set_auth_parameters
7623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7624 echo "configure:7625: checking for $ac_func" >&5
7625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7626 echo $ac_n "(cached) $ac_c" 1>&6
7628 cat > conftest.
$ac_ext <<EOF
7629 #line 7630 "configure"
7630 #include "confdefs.h"
7631 /* System header to define __stub macros and hopefully few prototypes,
7632 which can conflict with char $ac_func(); below. */
7634 /* Override any gcc2 internal prototype to avoid an error. */
7635 /* We use char because int might match the return type of a gcc2
7636 builtin and then its argument prototype would still apply. */
7641 /* The GNU C library defines this for functions which it implements
7642 to always fail with ENOSYS. Some functions are actually named
7643 something starting with __ and the normal name is an alias. */
7644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7652 if { (eval echo configure
:7653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7654 eval "ac_cv_func_$ac_func=yes"
7656 echo "configure: failed program was:" >&5
7657 cat conftest.
$ac_ext >&5
7659 eval "ac_cv_func_$ac_func=no"
7664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7665 echo "$ac_t""yes" 1>&6
7666 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7667 cat >> confdefs.h
<<EOF
7668 #define $ac_tr_func 1
7672 echo "$ac_t""no" 1>&6
7680 # UnixWare 7.x has its getspnam in -lgen
7682 *-lgen*) for ac_func
in getspnam
7684 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7685 echo "configure:7686: checking for $ac_func" >&5
7686 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7687 echo $ac_n "(cached) $ac_c" 1>&6
7689 cat > conftest.
$ac_ext <<EOF
7690 #line 7691 "configure"
7691 #include "confdefs.h"
7692 /* System header to define __stub macros and hopefully few prototypes,
7693 which can conflict with char $ac_func(); below. */
7695 /* Override any gcc2 internal prototype to avoid an error. */
7696 /* We use char because int might match the return type of a gcc2
7697 builtin and then its argument prototype would still apply. */
7702 /* The GNU C library defines this for functions which it implements
7703 to always fail with ENOSYS. Some functions are actually named
7704 something starting with __ and the normal name is an alias. */
7705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7713 if { (eval echo configure
:7714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7715 eval "ac_cv_func_$ac_func=yes"
7717 echo "configure: failed program was:" >&5
7718 cat conftest.
$ac_ext >&5
7720 eval "ac_cv_func_$ac_func=no"
7725 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7726 echo "$ac_t""yes" 1>&6
7727 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7728 cat >> confdefs.h
<<EOF
7729 #define $ac_tr_func 1
7733 echo "$ac_t""no" 1>&6
7737 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7738 echo "configure:7739: checking for getspnam in -lgen" >&5
7739 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7740 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7741 echo $ac_n "(cached) $ac_c" 1>&6
7743 ac_save_LIBS
="$LIBS"
7745 cat > conftest.
$ac_ext <<EOF
7746 #line 7747 "configure"
7747 #include "confdefs.h"
7748 /* Override any gcc2 internal prototype to avoid an error. */
7749 /* We use char because int might match the return type of a gcc2
7750 builtin and then its argument prototype would still apply. */
7757 if { (eval echo configure
:7758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7759 eval "ac_cv_lib_$ac_lib_var=yes"
7761 echo "configure: failed program was:" >&5
7762 cat conftest.
$ac_ext >&5
7764 eval "ac_cv_lib_$ac_lib_var=no"
7767 LIBS
="$ac_save_LIBS"
7770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7771 echo "$ac_t""yes" 1>&6
7772 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7773 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7774 cat >> confdefs.h
<<EOF
7775 #define $ac_tr_lib 1
7781 echo "$ac_t""no" 1>&6
7784 for ac_func
in getspnam
7786 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7787 echo "configure:7788: checking for $ac_func" >&5
7788 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7789 echo $ac_n "(cached) $ac_c" 1>&6
7791 cat > conftest.
$ac_ext <<EOF
7792 #line 7793 "configure"
7793 #include "confdefs.h"
7794 /* System header to define __stub macros and hopefully few prototypes,
7795 which can conflict with char $ac_func(); below. */
7797 /* Override any gcc2 internal prototype to avoid an error. */
7798 /* We use char because int might match the return type of a gcc2
7799 builtin and then its argument prototype would still apply. */
7804 /* The GNU C library defines this for functions which it implements
7805 to always fail with ENOSYS. Some functions are actually named
7806 something starting with __ and the normal name is an alias. */
7807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7815 if { (eval echo configure
:7816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7817 eval "ac_cv_func_$ac_func=yes"
7819 echo "configure: failed program was:" >&5
7820 cat conftest.
$ac_ext >&5
7822 eval "ac_cv_func_$ac_func=no"
7827 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7828 echo "$ac_t""yes" 1>&6
7829 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7830 cat >> confdefs.h
<<EOF
7831 #define $ac_tr_func 1
7835 echo "$ac_t""no" 1>&6
7844 *-lsecurity*) for ac_func
in getspnam
7846 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7847 echo "configure:7848: checking for $ac_func" >&5
7848 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7849 echo $ac_n "(cached) $ac_c" 1>&6
7851 cat > conftest.
$ac_ext <<EOF
7852 #line 7853 "configure"
7853 #include "confdefs.h"
7854 /* System header to define __stub macros and hopefully few prototypes,
7855 which can conflict with char $ac_func(); below. */
7857 /* Override any gcc2 internal prototype to avoid an error. */
7858 /* We use char because int might match the return type of a gcc2
7859 builtin and then its argument prototype would still apply. */
7864 /* The GNU C library defines this for functions which it implements
7865 to always fail with ENOSYS. Some functions are actually named
7866 something starting with __ and the normal name is an alias. */
7867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7875 if { (eval echo configure
:7876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7877 eval "ac_cv_func_$ac_func=yes"
7879 echo "configure: failed program was:" >&5
7880 cat conftest.
$ac_ext >&5
7882 eval "ac_cv_func_$ac_func=no"
7887 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7888 echo "$ac_t""yes" 1>&6
7889 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7890 cat >> confdefs.h
<<EOF
7891 #define $ac_tr_func 1
7895 echo "$ac_t""no" 1>&6
7899 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7900 echo "configure:7901: checking for getspnam in -lsecurity" >&5
7901 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7902 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7903 echo $ac_n "(cached) $ac_c" 1>&6
7905 ac_save_LIBS
="$LIBS"
7906 LIBS
="-lsecurity $LIBS"
7907 cat > conftest.
$ac_ext <<EOF
7908 #line 7909 "configure"
7909 #include "confdefs.h"
7910 /* Override any gcc2 internal prototype to avoid an error. */
7911 /* We use char because int might match the return type of a gcc2
7912 builtin and then its argument prototype would still apply. */
7919 if { (eval echo configure
:7920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7921 eval "ac_cv_lib_$ac_lib_var=yes"
7923 echo "configure: failed program was:" >&5
7924 cat conftest.
$ac_ext >&5
7926 eval "ac_cv_lib_$ac_lib_var=no"
7929 LIBS
="$ac_save_LIBS"
7932 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7933 echo "$ac_t""yes" 1>&6
7934 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7935 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7936 cat >> confdefs.h
<<EOF
7937 #define $ac_tr_lib 1
7940 LIBS
="-lsecurity $LIBS"
7943 echo "$ac_t""no" 1>&6
7946 for ac_func
in getspnam
7948 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7949 echo "configure:7950: checking for $ac_func" >&5
7950 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7951 echo $ac_n "(cached) $ac_c" 1>&6
7953 cat > conftest.
$ac_ext <<EOF
7954 #line 7955 "configure"
7955 #include "confdefs.h"
7956 /* System header to define __stub macros and hopefully few prototypes,
7957 which can conflict with char $ac_func(); below. */
7959 /* Override any gcc2 internal prototype to avoid an error. */
7960 /* We use char because int might match the return type of a gcc2
7961 builtin and then its argument prototype would still apply. */
7966 /* The GNU C library defines this for functions which it implements
7967 to always fail with ENOSYS. Some functions are actually named
7968 something starting with __ and the normal name is an alias. */
7969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7977 if { (eval echo configure
:7978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7979 eval "ac_cv_func_$ac_func=yes"
7981 echo "configure: failed program was:" >&5
7982 cat conftest.
$ac_ext >&5
7984 eval "ac_cv_func_$ac_func=no"
7989 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7990 echo "$ac_t""yes" 1>&6
7991 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7992 cat >> confdefs.h
<<EOF
7993 #define $ac_tr_func 1
7997 echo "$ac_t""no" 1>&6
8005 *-lsec*) for ac_func
in getspnam
8007 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8008 echo "configure:8009: checking for $ac_func" >&5
8009 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8010 echo $ac_n "(cached) $ac_c" 1>&6
8012 cat > conftest.
$ac_ext <<EOF
8013 #line 8014 "configure"
8014 #include "confdefs.h"
8015 /* System header to define __stub macros and hopefully few prototypes,
8016 which can conflict with char $ac_func(); below. */
8018 /* Override any gcc2 internal prototype to avoid an error. */
8019 /* We use char because int might match the return type of a gcc2
8020 builtin and then its argument prototype would still apply. */
8025 /* The GNU C library defines this for functions which it implements
8026 to always fail with ENOSYS. Some functions are actually named
8027 something starting with __ and the normal name is an alias. */
8028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8036 if { (eval echo configure
:8037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8038 eval "ac_cv_func_$ac_func=yes"
8040 echo "configure: failed program was:" >&5
8041 cat conftest.
$ac_ext >&5
8043 eval "ac_cv_func_$ac_func=no"
8048 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8049 echo "$ac_t""yes" 1>&6
8050 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8051 cat >> confdefs.h
<<EOF
8052 #define $ac_tr_func 1
8056 echo "$ac_t""no" 1>&6
8060 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
8061 echo "configure:8062: checking for getspnam in -lsec" >&5
8062 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
8063 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8064 echo $ac_n "(cached) $ac_c" 1>&6
8066 ac_save_LIBS
="$LIBS"
8068 cat > conftest.
$ac_ext <<EOF
8069 #line 8070 "configure"
8070 #include "confdefs.h"
8071 /* Override any gcc2 internal prototype to avoid an error. */
8072 /* We use char because int might match the return type of a gcc2
8073 builtin and then its argument prototype would still apply. */
8080 if { (eval echo configure
:8081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8082 eval "ac_cv_lib_$ac_lib_var=yes"
8084 echo "configure: failed program was:" >&5
8085 cat conftest.
$ac_ext >&5
8087 eval "ac_cv_lib_$ac_lib_var=no"
8090 LIBS
="$ac_save_LIBS"
8093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8094 echo "$ac_t""yes" 1>&6
8095 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8096 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8097 cat >> confdefs.h
<<EOF
8098 #define $ac_tr_lib 1
8104 echo "$ac_t""no" 1>&6
8107 for ac_func
in getspnam
8109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8110 echo "configure:8111: checking for $ac_func" >&5
8111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8112 echo $ac_n "(cached) $ac_c" 1>&6
8114 cat > conftest.
$ac_ext <<EOF
8115 #line 8116 "configure"
8116 #include "confdefs.h"
8117 /* System header to define __stub macros and hopefully few prototypes,
8118 which can conflict with char $ac_func(); below. */
8120 /* Override any gcc2 internal prototype to avoid an error. */
8121 /* We use char because int might match the return type of a gcc2
8122 builtin and then its argument prototype would still apply. */
8127 /* The GNU C library defines this for functions which it implements
8128 to always fail with ENOSYS. Some functions are actually named
8129 something starting with __ and the normal name is an alias. */
8130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8138 if { (eval echo configure
:8139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8140 eval "ac_cv_func_$ac_func=yes"
8142 echo "configure: failed program was:" >&5
8143 cat conftest.
$ac_ext >&5
8145 eval "ac_cv_func_$ac_func=no"
8150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8151 echo "$ac_t""yes" 1>&6
8152 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8153 cat >> confdefs.h
<<EOF
8154 #define $ac_tr_func 1
8158 echo "$ac_t""no" 1>&6
8167 *-lsecurity*) for ac_func
in bigcrypt
8169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8170 echo "configure:8171: checking for $ac_func" >&5
8171 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8172 echo $ac_n "(cached) $ac_c" 1>&6
8174 cat > conftest.
$ac_ext <<EOF
8175 #line 8176 "configure"
8176 #include "confdefs.h"
8177 /* System header to define __stub macros and hopefully few prototypes,
8178 which can conflict with char $ac_func(); below. */
8180 /* Override any gcc2 internal prototype to avoid an error. */
8181 /* We use char because int might match the return type of a gcc2
8182 builtin and then its argument prototype would still apply. */
8187 /* The GNU C library defines this for functions which it implements
8188 to always fail with ENOSYS. Some functions are actually named
8189 something starting with __ and the normal name is an alias. */
8190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8198 if { (eval echo configure
:8199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8200 eval "ac_cv_func_$ac_func=yes"
8202 echo "configure: failed program was:" >&5
8203 cat conftest.
$ac_ext >&5
8205 eval "ac_cv_func_$ac_func=no"
8210 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8211 echo "$ac_t""yes" 1>&6
8212 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8213 cat >> confdefs.h
<<EOF
8214 #define $ac_tr_func 1
8218 echo "$ac_t""no" 1>&6
8222 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8223 echo "configure:8224: checking for bigcrypt in -lsecurity" >&5
8224 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8225 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8226 echo $ac_n "(cached) $ac_c" 1>&6
8228 ac_save_LIBS
="$LIBS"
8229 LIBS
="-lsecurity $LIBS"
8230 cat > conftest.
$ac_ext <<EOF
8231 #line 8232 "configure"
8232 #include "confdefs.h"
8233 /* Override any gcc2 internal prototype to avoid an error. */
8234 /* We use char because int might match the return type of a gcc2
8235 builtin and then its argument prototype would still apply. */
8242 if { (eval echo configure
:8243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8244 eval "ac_cv_lib_$ac_lib_var=yes"
8246 echo "configure: failed program was:" >&5
8247 cat conftest.
$ac_ext >&5
8249 eval "ac_cv_lib_$ac_lib_var=no"
8252 LIBS
="$ac_save_LIBS"
8255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8256 echo "$ac_t""yes" 1>&6
8257 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8258 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8259 cat >> confdefs.h
<<EOF
8260 #define $ac_tr_lib 1
8263 LIBS
="-lsecurity $LIBS"
8266 echo "$ac_t""no" 1>&6
8269 for ac_func
in bigcrypt
8271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8272 echo "configure:8273: checking for $ac_func" >&5
8273 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8274 echo $ac_n "(cached) $ac_c" 1>&6
8276 cat > conftest.
$ac_ext <<EOF
8277 #line 8278 "configure"
8278 #include "confdefs.h"
8279 /* System header to define __stub macros and hopefully few prototypes,
8280 which can conflict with char $ac_func(); below. */
8282 /* Override any gcc2 internal prototype to avoid an error. */
8283 /* We use char because int might match the return type of a gcc2
8284 builtin and then its argument prototype would still apply. */
8289 /* The GNU C library defines this for functions which it implements
8290 to always fail with ENOSYS. Some functions are actually named
8291 something starting with __ and the normal name is an alias. */
8292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8300 if { (eval echo configure
:8301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8302 eval "ac_cv_func_$ac_func=yes"
8304 echo "configure: failed program was:" >&5
8305 cat conftest.
$ac_ext >&5
8307 eval "ac_cv_func_$ac_func=no"
8312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8313 echo "$ac_t""yes" 1>&6
8314 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8315 cat >> confdefs.h
<<EOF
8316 #define $ac_tr_func 1
8320 echo "$ac_t""no" 1>&6
8328 *-lsec*) for ac_func
in bigcrypt
8330 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8331 echo "configure:8332: checking for $ac_func" >&5
8332 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8333 echo $ac_n "(cached) $ac_c" 1>&6
8335 cat > conftest.
$ac_ext <<EOF
8336 #line 8337 "configure"
8337 #include "confdefs.h"
8338 /* System header to define __stub macros and hopefully few prototypes,
8339 which can conflict with char $ac_func(); below. */
8341 /* Override any gcc2 internal prototype to avoid an error. */
8342 /* We use char because int might match the return type of a gcc2
8343 builtin and then its argument prototype would still apply. */
8348 /* The GNU C library defines this for functions which it implements
8349 to always fail with ENOSYS. Some functions are actually named
8350 something starting with __ and the normal name is an alias. */
8351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8359 if { (eval echo configure
:8360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8361 eval "ac_cv_func_$ac_func=yes"
8363 echo "configure: failed program was:" >&5
8364 cat conftest.
$ac_ext >&5
8366 eval "ac_cv_func_$ac_func=no"
8371 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8372 echo "$ac_t""yes" 1>&6
8373 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8374 cat >> confdefs.h
<<EOF
8375 #define $ac_tr_func 1
8379 echo "$ac_t""no" 1>&6
8383 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8384 echo "configure:8385: checking for bigcrypt in -lsec" >&5
8385 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8386 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8387 echo $ac_n "(cached) $ac_c" 1>&6
8389 ac_save_LIBS
="$LIBS"
8391 cat > conftest.
$ac_ext <<EOF
8392 #line 8393 "configure"
8393 #include "confdefs.h"
8394 /* Override any gcc2 internal prototype to avoid an error. */
8395 /* We use char because int might match the return type of a gcc2
8396 builtin and then its argument prototype would still apply. */
8403 if { (eval echo configure
:8404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8405 eval "ac_cv_lib_$ac_lib_var=yes"
8407 echo "configure: failed program was:" >&5
8408 cat conftest.
$ac_ext >&5
8410 eval "ac_cv_lib_$ac_lib_var=no"
8413 LIBS
="$ac_save_LIBS"
8416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8417 echo "$ac_t""yes" 1>&6
8418 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8419 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8420 cat >> confdefs.h
<<EOF
8421 #define $ac_tr_lib 1
8427 echo "$ac_t""no" 1>&6
8430 for ac_func
in bigcrypt
8432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8433 echo "configure:8434: checking for $ac_func" >&5
8434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8435 echo $ac_n "(cached) $ac_c" 1>&6
8437 cat > conftest.
$ac_ext <<EOF
8438 #line 8439 "configure"
8439 #include "confdefs.h"
8440 /* System header to define __stub macros and hopefully few prototypes,
8441 which can conflict with char $ac_func(); below. */
8443 /* Override any gcc2 internal prototype to avoid an error. */
8444 /* We use char because int might match the return type of a gcc2
8445 builtin and then its argument prototype would still apply. */
8450 /* The GNU C library defines this for functions which it implements
8451 to always fail with ENOSYS. Some functions are actually named
8452 something starting with __ and the normal name is an alias. */
8453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8461 if { (eval echo configure
:8462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8463 eval "ac_cv_func_$ac_func=yes"
8465 echo "configure: failed program was:" >&5
8466 cat conftest.
$ac_ext >&5
8468 eval "ac_cv_func_$ac_func=no"
8473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8474 echo "$ac_t""yes" 1>&6
8475 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8476 cat >> confdefs.h
<<EOF
8477 #define $ac_tr_func 1
8481 echo "$ac_t""no" 1>&6
8490 *-lsecurity*) for ac_func
in getprpwnam
8492 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8493 echo "configure:8494: checking for $ac_func" >&5
8494 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8495 echo $ac_n "(cached) $ac_c" 1>&6
8497 cat > conftest.
$ac_ext <<EOF
8498 #line 8499 "configure"
8499 #include "confdefs.h"
8500 /* System header to define __stub macros and hopefully few prototypes,
8501 which can conflict with char $ac_func(); below. */
8503 /* Override any gcc2 internal prototype to avoid an error. */
8504 /* We use char because int might match the return type of a gcc2
8505 builtin and then its argument prototype would still apply. */
8510 /* The GNU C library defines this for functions which it implements
8511 to always fail with ENOSYS. Some functions are actually named
8512 something starting with __ and the normal name is an alias. */
8513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8521 if { (eval echo configure
:8522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8523 eval "ac_cv_func_$ac_func=yes"
8525 echo "configure: failed program was:" >&5
8526 cat conftest.
$ac_ext >&5
8528 eval "ac_cv_func_$ac_func=no"
8533 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8534 echo "$ac_t""yes" 1>&6
8535 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8536 cat >> confdefs.h
<<EOF
8537 #define $ac_tr_func 1
8541 echo "$ac_t""no" 1>&6
8545 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8546 echo "configure:8547: checking for getprpwnam in -lsecurity" >&5
8547 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8548 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8549 echo $ac_n "(cached) $ac_c" 1>&6
8551 ac_save_LIBS
="$LIBS"
8552 LIBS
="-lsecurity $LIBS"
8553 cat > conftest.
$ac_ext <<EOF
8554 #line 8555 "configure"
8555 #include "confdefs.h"
8556 /* Override any gcc2 internal prototype to avoid an error. */
8557 /* We use char because int might match the return type of a gcc2
8558 builtin and then its argument prototype would still apply. */
8565 if { (eval echo configure
:8566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8567 eval "ac_cv_lib_$ac_lib_var=yes"
8569 echo "configure: failed program was:" >&5
8570 cat conftest.
$ac_ext >&5
8572 eval "ac_cv_lib_$ac_lib_var=no"
8575 LIBS
="$ac_save_LIBS"
8578 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8579 echo "$ac_t""yes" 1>&6
8580 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8581 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8582 cat >> confdefs.h
<<EOF
8583 #define $ac_tr_lib 1
8586 LIBS
="-lsecurity $LIBS"
8589 echo "$ac_t""no" 1>&6
8592 for ac_func
in getprpwnam
8594 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8595 echo "configure:8596: checking for $ac_func" >&5
8596 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8597 echo $ac_n "(cached) $ac_c" 1>&6
8599 cat > conftest.
$ac_ext <<EOF
8600 #line 8601 "configure"
8601 #include "confdefs.h"
8602 /* System header to define __stub macros and hopefully few prototypes,
8603 which can conflict with char $ac_func(); below. */
8605 /* Override any gcc2 internal prototype to avoid an error. */
8606 /* We use char because int might match the return type of a gcc2
8607 builtin and then its argument prototype would still apply. */
8612 /* The GNU C library defines this for functions which it implements
8613 to always fail with ENOSYS. Some functions are actually named
8614 something starting with __ and the normal name is an alias. */
8615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8623 if { (eval echo configure
:8624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8625 eval "ac_cv_func_$ac_func=yes"
8627 echo "configure: failed program was:" >&5
8628 cat conftest.
$ac_ext >&5
8630 eval "ac_cv_func_$ac_func=no"
8635 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8636 echo "$ac_t""yes" 1>&6
8637 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8638 cat >> confdefs.h
<<EOF
8639 #define $ac_tr_func 1
8643 echo "$ac_t""no" 1>&6
8651 *-lsec*) for ac_func
in getprpwnam
8653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8654 echo "configure:8655: checking for $ac_func" >&5
8655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8656 echo $ac_n "(cached) $ac_c" 1>&6
8658 cat > conftest.
$ac_ext <<EOF
8659 #line 8660 "configure"
8660 #include "confdefs.h"
8661 /* System header to define __stub macros and hopefully few prototypes,
8662 which can conflict with char $ac_func(); below. */
8664 /* Override any gcc2 internal prototype to avoid an error. */
8665 /* We use char because int might match the return type of a gcc2
8666 builtin and then its argument prototype would still apply. */
8671 /* The GNU C library defines this for functions which it implements
8672 to always fail with ENOSYS. Some functions are actually named
8673 something starting with __ and the normal name is an alias. */
8674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8682 if { (eval echo configure
:8683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8684 eval "ac_cv_func_$ac_func=yes"
8686 echo "configure: failed program was:" >&5
8687 cat conftest.
$ac_ext >&5
8689 eval "ac_cv_func_$ac_func=no"
8694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8695 echo "$ac_t""yes" 1>&6
8696 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8697 cat >> confdefs.h
<<EOF
8698 #define $ac_tr_func 1
8702 echo "$ac_t""no" 1>&6
8706 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8707 echo "configure:8708: checking for getprpwnam in -lsec" >&5
8708 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8709 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8710 echo $ac_n "(cached) $ac_c" 1>&6
8712 ac_save_LIBS
="$LIBS"
8714 cat > conftest.
$ac_ext <<EOF
8715 #line 8716 "configure"
8716 #include "confdefs.h"
8717 /* Override any gcc2 internal prototype to avoid an error. */
8718 /* We use char because int might match the return type of a gcc2
8719 builtin and then its argument prototype would still apply. */
8726 if { (eval echo configure
:8727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8728 eval "ac_cv_lib_$ac_lib_var=yes"
8730 echo "configure: failed program was:" >&5
8731 cat conftest.
$ac_ext >&5
8733 eval "ac_cv_lib_$ac_lib_var=no"
8736 LIBS
="$ac_save_LIBS"
8739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8740 echo "$ac_t""yes" 1>&6
8741 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8742 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8743 cat >> confdefs.h
<<EOF
8744 #define $ac_tr_lib 1
8750 echo "$ac_t""no" 1>&6
8753 for ac_func
in getprpwnam
8755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8756 echo "configure:8757: checking for $ac_func" >&5
8757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8758 echo $ac_n "(cached) $ac_c" 1>&6
8760 cat > conftest.
$ac_ext <<EOF
8761 #line 8762 "configure"
8762 #include "confdefs.h"
8763 /* System header to define __stub macros and hopefully few prototypes,
8764 which can conflict with char $ac_func(); below. */
8766 /* Override any gcc2 internal prototype to avoid an error. */
8767 /* We use char because int might match the return type of a gcc2
8768 builtin and then its argument prototype would still apply. */
8773 /* The GNU C library defines this for functions which it implements
8774 to always fail with ENOSYS. Some functions are actually named
8775 something starting with __ and the normal name is an alias. */
8776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8784 if { (eval echo configure
:8785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8786 eval "ac_cv_func_$ac_func=yes"
8788 echo "configure: failed program was:" >&5
8789 cat conftest.
$ac_ext >&5
8791 eval "ac_cv_func_$ac_func=no"
8796 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8797 echo "$ac_t""yes" 1>&6
8798 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8799 cat >> confdefs.h
<<EOF
8800 #define $ac_tr_func 1
8804 echo "$ac_t""no" 1>&6
8812 # this bit needs to be modified for each OS that is suported by
8813 # smbwrapper. You need to specify how to created a shared library and
8814 # how to compile C code to produce PIC object files
8816 # these are the defaults, good for lots of systems
8825 # Assume non-shared by default and override below
8827 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8828 echo "configure:8829: checking ability to build shared libraries" >&5
8830 # and these are for particular systems
8832 *linux
*) cat >> confdefs.h
<<\EOF
8838 DYNEXP
="-Wl,--export-dynamic"
8840 SONAMEFLAG
="-Wl,-soname="
8841 cat >> confdefs.h
<<\EOF
8842 #define STAT_ST_BLOCKSIZE 512
8846 *solaris
*) cat >> confdefs.h
<<\EOF
8853 if test "${GCC}" = "yes"; then
8855 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
8860 ## ${CFLAGS} added for building 64-bit shared
8861 ## libs using Sun's Compiler
8862 LDSHFLAGS
="-G \${CFLAGS}"
8866 cat >> confdefs.h
<<\EOF
8867 #define STAT_ST_BLOCKSIZE 512
8871 *sunos
*) cat >> confdefs.h
<<\EOF
8877 SONAMEFLAG
="-Wl,-h,"
8878 PICFLAG
="-KPIC" # Is this correct for SunOS
8880 *bsd
*) BLDSHARED
="true"
8882 DYNEXP
="-Wl,-Bdynamic"
8883 SONAMEFLAG
="-Wl,-soname,"
8885 cat >> confdefs.h
<<\EOF
8886 #define STAT_ST_BLOCKSIZE 512
8890 *irix
*) cat >> confdefs.h
<<\EOF
8895 *irix6
*) cat >> confdefs.h
<<\EOF
8901 ATTEMPT_WRAP32_BUILD
=yes
8903 LDSHFLAGS
="-set_version sgi1.0 -shared"
8904 SONAMEFLAG
="-soname "
8906 if test "${GCC}" = "yes"; then
8911 cat >> confdefs.h
<<\EOF
8912 #define STAT_ST_BLOCKSIZE 512
8916 *aix
*) cat >> confdefs.h
<<\EOF
8921 LDSHFLAGS
="-Wl,-bexpall,-bM:SRE,-bnoentry"
8922 DYNEXP
="-Wl,-brtl,-bexpall"
8923 if test "${GCC}" = "yes"; then
8926 PICFLAG
="-O2 -qmaxmem=6000"
8927 ## for funky AIX compiler using strncpy()
8928 CFLAGS
="$CFLAGS -D_LINUX_SOURCE_COMPAT"
8931 cat >> confdefs.h
<<\EOF
8932 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8936 *hpux
*) cat >> confdefs.h
<<\EOF
8941 # Use special PIC flags for the native HP-UX compiler.
8942 if test $ac_cv_prog_cc_Ae = yes; then
8945 LDSHFLAGS
="-B symbolic -b -z"
8950 cat >> confdefs.h
<<\EOF
8951 #define STAT_ST_BLOCKSIZE 8192
8955 *qnx
*) cat >> confdefs.h
<<\EOF
8959 *osf
*) cat >> confdefs.h
<<\EOF
8965 SONAMEFLAG
="-Wl,-soname,"
8968 *sco
*) cat >> confdefs.h
<<\EOF
8972 *unixware
*) cat >> confdefs.h
<<\EOF
8978 SONAMEFLAG
="-Wl,-soname,"
8981 *next2
*) cat >> confdefs.h
<<\EOF
8985 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
8986 set dummy
groff; ac_word
=$2
8987 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8988 echo "configure:8989: checking for $ac_word" >&5
8989 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8990 echo $ac_n "(cached) $ac_c" 1>&6
8992 if test -n "$ROFF"; then
8993 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
8995 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8997 for ac_dir
in $ac_dummy; do
8998 test -z "$ac_dir" && ac_dir
=.
8999 if test -f $ac_dir/$ac_word; then
9000 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
9007 ROFF
="$ac_cv_prog_ROFF"
9008 if test -n "$ROFF"; then
9009 echo "$ac_t""$ROFF" 1>&6
9011 echo "$ac_t""no" 1>&6
9016 *-univel-*) if test "$GCC" != yes ; then
9017 cat >> confdefs.h
<<\EOF
9018 #define HAVE_MEMSET 1
9025 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
9026 #define RELIANTUNIX 1
9033 if test "$GCC" != yes ; then
9034 cat >> confdefs.h
<<\EOF
9035 #define HAVE_MEMSET 1
9043 echo "$ac_t""$BLDSHARED" 1>&6
9044 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
9045 echo "configure:9046: checking linker flags for shared libraries" >&5
9046 echo "$ac_t""$LDSHFLAGS" 1>&6
9047 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
9048 echo "configure:9049: checking compiler flags for position-independent code" >&5
9049 echo "$ac_t""$PICFLAGS" 1>&6
9051 #######################################################
9052 # test whether building a shared library actually works
9053 if test $BLDSHARED = true
; then
9054 echo $ac_n "checking whether building shared libraries actually works""... $ac_c" 1>&6
9055 echo "configure:9056: checking whether building shared libraries actually works" >&5
9056 if eval "test \"`echo '$''{'ac_cv_shlib_works'+set}'`\" = set"; then
9057 echo $ac_n "(cached) $ac_c" 1>&6
9060 ac_cv_shlib_works
=no
9061 # try building a trivial shared library
9062 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po
${srcdir-.}/tests
/shlib.c
&&
9063 $CC $CPPFLAGS $CFLAGS $LDSHFLAGS -o shlib.so shlib.po
&&
9064 ac_cv_shlib_works
=yes
9065 rm -f shlib.so shlib.po
9069 echo "$ac_t""$ac_cv_shlib_works" 1>&6
9070 if test $ac_cv_shlib_works = no
; then
9076 # this updates our target list if we can build shared libs
9077 if test $BLDSHARED = true
; then
9078 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
9080 LIBSMBCLIENT_SHARED
=
9085 echo $ac_n "checking for long long""... $ac_c" 1>&6
9086 echo "configure:9087: checking for long long" >&5
9087 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
9088 echo $ac_n "(cached) $ac_c" 1>&6
9091 if test "$cross_compiling" = yes; then
9092 samba_cv_have_longlong
=cross
9094 cat > conftest.
$ac_ext <<EOF
9095 #line 9096 "configure"
9096 #include "confdefs.h"
9098 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
9100 if { (eval echo configure
:9101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9102 samba_cv_have_longlong
=yes
9104 echo "configure: failed program was:" >&5
9105 cat conftest.
$ac_ext >&5
9107 samba_cv_have_longlong
=no
9114 echo "$ac_t""$samba_cv_have_longlong" 1>&6
9115 if test x
"$samba_cv_have_longlong" = x
"yes"; then
9116 cat >> confdefs.h
<<\EOF
9117 #define HAVE_LONGLONG 1
9123 # Check if the compiler supports the LL prefix on long long integers.
9126 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9127 echo "configure:9128: checking for LL suffix on long long integers" >&5
9128 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9129 echo $ac_n "(cached) $ac_c" 1>&6
9132 cat > conftest.
$ac_ext <<EOF
9133 #line 9134 "configure"
9134 #include "confdefs.h"
9137 long long i = 0x8000000000LL
9140 if { (eval echo configure
:9141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9142 samba_cv_compiler_supports_ll
=yes
9144 echo "configure: failed program was:" >&5
9145 cat conftest.
$ac_ext >&5
9147 samba_cv_compiler_supports_ll
=no
9152 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9153 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
9154 cat >> confdefs.h
<<\EOF
9155 #define COMPILER_SUPPORTS_LL 1
9161 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9162 echo "configure:9163: checking for 64 bit off_t" >&5
9163 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9164 echo $ac_n "(cached) $ac_c" 1>&6
9167 if test "$cross_compiling" = yes; then
9168 samba_cv_SIZEOF_OFF_T
=cross
9170 cat > conftest.
$ac_ext <<EOF
9171 #line 9172 "configure"
9172 #include "confdefs.h"
9174 #include <sys/stat.h>
9175 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9177 if { (eval echo configure
:9178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9179 samba_cv_SIZEOF_OFF_T
=yes
9181 echo "configure: failed program was:" >&5
9182 cat conftest.
$ac_ext >&5
9184 samba_cv_SIZEOF_OFF_T
=no
9191 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9192 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
9193 cat >> confdefs.h
<<\EOF
9194 #define SIZEOF_OFF_T 8
9199 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9200 echo "configure:9201: checking for off64_t" >&5
9201 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9202 echo $ac_n "(cached) $ac_c" 1>&6
9205 if test "$cross_compiling" = yes; then
9206 samba_cv_HAVE_OFF64_T
=cross
9208 cat > conftest.
$ac_ext <<EOF
9209 #line 9210 "configure"
9210 #include "confdefs.h"
9212 #if defined(HAVE_UNISTD_H)
9216 #include <sys/stat.h>
9217 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9219 if { (eval echo configure
:9220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9221 samba_cv_HAVE_OFF64_T
=yes
9223 echo "configure: failed program was:" >&5
9224 cat conftest.
$ac_ext >&5
9226 samba_cv_HAVE_OFF64_T
=no
9233 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9234 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
9235 cat >> confdefs.h
<<\EOF
9236 #define HAVE_OFF64_T 1
9241 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9242 echo "configure:9243: checking for 64 bit ino_t" >&5
9243 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9244 echo $ac_n "(cached) $ac_c" 1>&6
9247 if test "$cross_compiling" = yes; then
9248 samba_cv_SIZEOF_INO_T
=cross
9250 cat > conftest.
$ac_ext <<EOF
9251 #line 9252 "configure"
9252 #include "confdefs.h"
9254 #include <sys/stat.h>
9255 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9257 if { (eval echo configure
:9258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9259 samba_cv_SIZEOF_INO_T
=yes
9261 echo "configure: failed program was:" >&5
9262 cat conftest.
$ac_ext >&5
9264 samba_cv_SIZEOF_INO_T
=no
9271 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9272 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
9273 cat >> confdefs.h
<<\EOF
9274 #define SIZEOF_INO_T 8
9279 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9280 echo "configure:9281: checking for ino64_t" >&5
9281 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9282 echo $ac_n "(cached) $ac_c" 1>&6
9285 if test "$cross_compiling" = yes; then
9286 samba_cv_HAVE_INO64_T
=cross
9288 cat > conftest.
$ac_ext <<EOF
9289 #line 9290 "configure"
9290 #include "confdefs.h"
9292 #if defined(HAVE_UNISTD_H)
9296 #include <sys/stat.h>
9297 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9299 if { (eval echo configure
:9300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9301 samba_cv_HAVE_INO64_T
=yes
9303 echo "configure: failed program was:" >&5
9304 cat conftest.
$ac_ext >&5
9306 samba_cv_HAVE_INO64_T
=no
9313 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9314 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
9315 cat >> confdefs.h
<<\EOF
9316 #define HAVE_INO64_T 1
9321 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9322 echo "configure:9323: checking for dev64_t" >&5
9323 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9324 echo $ac_n "(cached) $ac_c" 1>&6
9327 if test "$cross_compiling" = yes; then
9328 samba_cv_HAVE_DEV64_T
=cross
9330 cat > conftest.
$ac_ext <<EOF
9331 #line 9332 "configure"
9332 #include "confdefs.h"
9334 #if defined(HAVE_UNISTD_H)
9338 #include <sys/stat.h>
9339 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9341 if { (eval echo configure
:9342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9343 samba_cv_HAVE_DEV64_T
=yes
9345 echo "configure: failed program was:" >&5
9346 cat conftest.
$ac_ext >&5
9348 samba_cv_HAVE_DEV64_T
=no
9355 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9356 if test x
"$samba_cv_HAVE_DEV64_T" = x
"yes"; then
9357 cat >> confdefs.h
<<\EOF
9358 #define HAVE_DEV64_T 1
9363 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9364 echo "configure:9365: checking for struct dirent64" >&5
9365 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9366 echo $ac_n "(cached) $ac_c" 1>&6
9369 cat > conftest.
$ac_ext <<EOF
9370 #line 9371 "configure"
9371 #include "confdefs.h"
9373 #if defined(HAVE_UNISTD_H)
9376 #include <sys/types.h>
9382 if { (eval echo configure
:9383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9384 samba_cv_HAVE_STRUCT_DIRENT64
=yes
9386 echo "configure: failed program was:" >&5
9387 cat conftest.
$ac_ext >&5
9389 samba_cv_HAVE_STRUCT_DIRENT64
=no
9394 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9395 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes" && test x
"$ac_cv_func_readdir64" = x
"yes"; then
9396 cat >> confdefs.h
<<\EOF
9397 #define HAVE_STRUCT_DIRENT64 1
9402 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9403 echo "configure:9404: checking for major macro" >&5
9404 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9405 echo $ac_n "(cached) $ac_c" 1>&6
9408 if test "$cross_compiling" = yes; then
9409 samba_cv_HAVE_DEVICE_MAJOR_FN
=cross
9411 cat > conftest.
$ac_ext <<EOF
9412 #line 9413 "configure"
9413 #include "confdefs.h"
9415 #if defined(HAVE_UNISTD_H)
9418 #include <sys/types.h>
9419 main() { dev_t dev; int i = major(dev); return 0; }
9421 if { (eval echo configure
:9422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9423 samba_cv_HAVE_DEVICE_MAJOR_FN
=yes
9425 echo "configure: failed program was:" >&5
9426 cat conftest.
$ac_ext >&5
9428 samba_cv_HAVE_DEVICE_MAJOR_FN
=no
9435 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9436 if test x
"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x
"yes"; then
9437 cat >> confdefs.h
<<\EOF
9438 #define HAVE_DEVICE_MAJOR_FN 1
9443 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9444 echo "configure:9445: checking for minor macro" >&5
9445 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9446 echo $ac_n "(cached) $ac_c" 1>&6
9449 if test "$cross_compiling" = yes; then
9450 samba_cv_HAVE_DEVICE_MINOR_FN
=cross
9452 cat > conftest.
$ac_ext <<EOF
9453 #line 9454 "configure"
9454 #include "confdefs.h"
9456 #if defined(HAVE_UNISTD_H)
9459 #include <sys/types.h>
9460 main() { dev_t dev; int i = minor(dev); return 0; }
9462 if { (eval echo configure
:9463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9464 samba_cv_HAVE_DEVICE_MINOR_FN
=yes
9466 echo "configure: failed program was:" >&5
9467 cat conftest.
$ac_ext >&5
9469 samba_cv_HAVE_DEVICE_MINOR_FN
=no
9476 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9477 if test x
"$samba_cv_HAVE_DEVICE_MINOR_FN" = x
"yes"; then
9478 cat >> confdefs.h
<<\EOF
9479 #define HAVE_DEVICE_MINOR_FN 1
9484 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9485 echo "configure:9486: checking for unsigned char" >&5
9486 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9487 echo $ac_n "(cached) $ac_c" 1>&6
9490 if test "$cross_compiling" = yes; then
9491 samba_cv_HAVE_UNSIGNED_CHAR
=cross
9493 cat > conftest.
$ac_ext <<EOF
9494 #line 9495 "configure"
9495 #include "confdefs.h"
9497 main() { char c; c=250; exit((c > 0)?0:1); }
9499 if { (eval echo configure
:9500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9501 samba_cv_HAVE_UNSIGNED_CHAR
=yes
9503 echo "configure: failed program was:" >&5
9504 cat conftest.
$ac_ext >&5
9506 samba_cv_HAVE_UNSIGNED_CHAR
=no
9513 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9514 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
9515 cat >> confdefs.h
<<\EOF
9516 #define HAVE_UNSIGNED_CHAR 1
9521 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9522 echo "configure:9523: checking for sin_len in sock" >&5
9523 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9524 echo $ac_n "(cached) $ac_c" 1>&6
9527 cat > conftest.
$ac_ext <<EOF
9528 #line 9529 "configure"
9529 #include "confdefs.h"
9530 #include <sys/types.h>
9531 #include <sys/socket.h>
9532 #include <netinet/in.h>
9534 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9537 if { (eval echo configure
:9538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9539 samba_cv_HAVE_SOCK_SIN_LEN
=yes
9541 echo "configure: failed program was:" >&5
9542 cat conftest.
$ac_ext >&5
9544 samba_cv_HAVE_SOCK_SIN_LEN
=no
9549 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9550 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
9551 cat >> confdefs.h
<<\EOF
9552 #define HAVE_SOCK_SIN_LEN 1
9557 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9558 echo "configure:9559: checking whether seekdir returns void" >&5
9559 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9560 echo $ac_n "(cached) $ac_c" 1>&6
9563 cat > conftest.
$ac_ext <<EOF
9564 #line 9565 "configure"
9565 #include "confdefs.h"
9566 #include <sys/types.h>
9568 void seekdir(DIR *d, long loc) { return; }
9573 if { (eval echo configure
:9574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9575 samba_cv_SEEKDIR_RETURNS_VOID
=yes
9577 echo "configure: failed program was:" >&5
9578 cat conftest.
$ac_ext >&5
9580 samba_cv_SEEKDIR_RETURNS_VOID
=no
9585 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9586 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
9587 cat >> confdefs.h
<<\EOF
9588 #define SEEKDIR_RETURNS_VOID 1
9593 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9594 echo "configure:9595: checking for __FILE__ macro" >&5
9595 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9596 echo $ac_n "(cached) $ac_c" 1>&6
9599 cat > conftest.
$ac_ext <<EOF
9600 #line 9601 "configure"
9601 #include "confdefs.h"
9604 printf("%s\n", __FILE__);
9607 if { (eval echo configure
:9608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9609 samba_cv_HAVE_FILE_MACRO
=yes
9611 echo "configure: failed program was:" >&5
9612 cat conftest.
$ac_ext >&5
9614 samba_cv_HAVE_FILE_MACRO
=no
9619 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9620 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
9621 cat >> confdefs.h
<<\EOF
9622 #define HAVE_FILE_MACRO 1
9627 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9628 echo "configure:9629: checking for __FUNCTION__ macro" >&5
9629 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9630 echo $ac_n "(cached) $ac_c" 1>&6
9633 cat > conftest.
$ac_ext <<EOF
9634 #line 9635 "configure"
9635 #include "confdefs.h"
9638 printf("%s\n", __FUNCTION__);
9641 if { (eval echo configure
:9642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9643 samba_cv_HAVE_FUNCTION_MACRO
=yes
9645 echo "configure: failed program was:" >&5
9646 cat conftest.
$ac_ext >&5
9648 samba_cv_HAVE_FUNCTION_MACRO
=no
9653 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9654 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
9655 cat >> confdefs.h
<<\EOF
9656 #define HAVE_FUNCTION_MACRO 1
9661 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9662 echo "configure:9663: checking if gettimeofday takes tz argument" >&5
9663 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9664 echo $ac_n "(cached) $ac_c" 1>&6
9667 if test "$cross_compiling" = yes; then
9668 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
9670 cat > conftest.
$ac_ext <<EOF
9671 #line 9672 "configure"
9672 #include "confdefs.h"
9674 #include <sys/time.h>
9676 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9678 if { (eval echo configure
:9679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9680 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
9682 echo "configure: failed program was:" >&5
9683 cat conftest.
$ac_ext >&5
9685 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
9692 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9693 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
9694 cat >> confdefs.h
<<\EOF
9695 #define HAVE_GETTIMEOFDAY_TZ 1
9700 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9701 echo "configure:9702: checking for __va_copy" >&5
9702 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9703 echo $ac_n "(cached) $ac_c" 1>&6
9706 cat > conftest.
$ac_ext <<EOF
9707 #line 9708 "configure"
9708 #include "confdefs.h"
9715 if { (eval echo configure
:9716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9717 samba_cv_HAVE_VA_COPY
=yes
9719 echo "configure: failed program was:" >&5
9720 cat conftest.
$ac_ext >&5
9722 samba_cv_HAVE_VA_COPY
=no
9727 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9728 if test x
"$samba_cv_HAVE_VA_COPY" = x
"yes"; then
9729 cat >> confdefs.h
<<\EOF
9730 #define HAVE_VA_COPY 1
9735 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9736 echo "configure:9737: checking for C99 vsnprintf" >&5
9737 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9738 echo $ac_n "(cached) $ac_c" 1>&6
9741 if test "$cross_compiling" = yes; then
9742 samba_cv_HAVE_C99_VSNPRINTF
=cross
9744 cat > conftest.
$ac_ext <<EOF
9745 #line 9746 "configure"
9746 #include "confdefs.h"
9748 #include <sys/types.h>
9750 void foo(const char *format, ...) {
9755 va_start(ap, format);
9756 len = vsnprintf(buf, 0, format, ap);
9758 if (len != 5) exit(1);
9760 va_start(ap, format);
9761 len = vsnprintf(0, 0, format, ap);
9763 if (len != 5) exit(1);
9765 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9769 main() { foo("hello"); }
9772 if { (eval echo configure
:9773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9774 samba_cv_HAVE_C99_VSNPRINTF
=yes
9776 echo "configure: failed program was:" >&5
9777 cat conftest.
$ac_ext >&5
9779 samba_cv_HAVE_C99_VSNPRINTF
=no
9786 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9787 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
9788 cat >> confdefs.h
<<\EOF
9789 #define HAVE_C99_VSNPRINTF 1
9794 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9795 echo "configure:9796: checking for broken readdir" >&5
9796 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9797 echo $ac_n "(cached) $ac_c" 1>&6
9800 if test "$cross_compiling" = yes; then
9801 samba_cv_HAVE_BROKEN_READDIR
=cross
9803 cat > conftest.
$ac_ext <<EOF
9804 #line 9805 "configure"
9805 #include "confdefs.h"
9806 #include <sys/types.h>
9808 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9809 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9810 di->d_name[0] == 0) exit(0); exit(1);}
9812 if { (eval echo configure
:9813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9814 samba_cv_HAVE_BROKEN_READDIR
=yes
9816 echo "configure: failed program was:" >&5
9817 cat conftest.
$ac_ext >&5
9819 samba_cv_HAVE_BROKEN_READDIR
=no
9826 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9827 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
9828 cat >> confdefs.h
<<\EOF
9829 #define HAVE_BROKEN_READDIR 1
9834 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9835 echo "configure:9836: checking for utimbuf" >&5
9836 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9837 echo $ac_n "(cached) $ac_c" 1>&6
9840 cat > conftest.
$ac_ext <<EOF
9841 #line 9842 "configure"
9842 #include "confdefs.h"
9843 #include <sys/types.h>
9846 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9849 if { (eval echo configure
:9850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9851 samba_cv_HAVE_UTIMBUF
=yes
9853 echo "configure: failed program was:" >&5
9854 cat conftest.
$ac_ext >&5
9856 samba_cv_HAVE_UTIMBUF
=no
9861 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9862 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
9863 cat >> confdefs.h
<<\EOF
9864 #define HAVE_UTIMBUF 1
9870 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
9872 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9873 echo "configure:9874: checking for $ac_func" >&5
9874 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9875 echo $ac_n "(cached) $ac_c" 1>&6
9877 cat > conftest.
$ac_ext <<EOF
9878 #line 9879 "configure"
9879 #include "confdefs.h"
9880 /* System header to define __stub macros and hopefully few prototypes,
9881 which can conflict with char $ac_func(); below. */
9883 /* Override any gcc2 internal prototype to avoid an error. */
9884 /* We use char because int might match the return type of a gcc2
9885 builtin and then its argument prototype would still apply. */
9890 /* The GNU C library defines this for functions which it implements
9891 to always fail with ENOSYS. Some functions are actually named
9892 something starting with __ and the normal name is an alias. */
9893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9901 if { (eval echo configure
:9902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9903 eval "ac_cv_func_$ac_func=yes"
9905 echo "configure: failed program was:" >&5
9906 cat conftest.
$ac_ext >&5
9908 eval "ac_cv_func_$ac_func=no"
9913 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9914 echo "$ac_t""yes" 1>&6
9915 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9916 cat >> confdefs.h
<<EOF
9917 #define $ac_tr_func 1
9921 echo "$ac_t""no" 1>&6
9926 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9927 echo "configure:9928: checking for ut_name in utmp" >&5
9928 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9929 echo $ac_n "(cached) $ac_c" 1>&6
9932 cat > conftest.
$ac_ext <<EOF
9933 #line 9934 "configure"
9934 #include "confdefs.h"
9935 #include <sys/types.h>
9938 struct utmp ut; ut.ut_name[0] = 'a';
9941 if { (eval echo configure
:9942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9943 samba_cv_HAVE_UT_UT_NAME
=yes
9945 echo "configure: failed program was:" >&5
9946 cat conftest.
$ac_ext >&5
9948 samba_cv_HAVE_UT_UT_NAME
=no
9953 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9954 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
9955 cat >> confdefs.h
<<\EOF
9956 #define HAVE_UT_UT_NAME 1
9961 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9962 echo "configure:9963: checking for ut_user in utmp" >&5
9963 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9964 echo $ac_n "(cached) $ac_c" 1>&6
9967 cat > conftest.
$ac_ext <<EOF
9968 #line 9969 "configure"
9969 #include "confdefs.h"
9970 #include <sys/types.h>
9973 struct utmp ut; ut.ut_user[0] = 'a';
9976 if { (eval echo configure
:9977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9978 samba_cv_HAVE_UT_UT_USER
=yes
9980 echo "configure: failed program was:" >&5
9981 cat conftest.
$ac_ext >&5
9983 samba_cv_HAVE_UT_UT_USER
=no
9988 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9989 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
9990 cat >> confdefs.h
<<\EOF
9991 #define HAVE_UT_UT_USER 1
9996 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9997 echo "configure:9998: checking for ut_id in utmp" >&5
9998 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9999 echo $ac_n "(cached) $ac_c" 1>&6
10002 cat > conftest.
$ac_ext <<EOF
10003 #line 10004 "configure"
10004 #include "confdefs.h"
10005 #include <sys/types.h>
10008 struct utmp ut; ut.ut_id[0] = 'a';
10011 if { (eval echo configure
:10012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10013 samba_cv_HAVE_UT_UT_ID
=yes
10015 echo "configure: failed program was:" >&5
10016 cat conftest.
$ac_ext >&5
10018 samba_cv_HAVE_UT_UT_ID
=no
10023 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
10024 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
10025 cat >> confdefs.h
<<\EOF
10026 #define HAVE_UT_UT_ID 1
10031 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
10032 echo "configure:10033: checking for ut_host in utmp" >&5
10033 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
10034 echo $ac_n "(cached) $ac_c" 1>&6
10037 cat > conftest.
$ac_ext <<EOF
10038 #line 10039 "configure"
10039 #include "confdefs.h"
10040 #include <sys/types.h>
10043 struct utmp ut; ut.ut_host[0] = 'a';
10046 if { (eval echo configure
:10047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10048 samba_cv_HAVE_UT_UT_HOST
=yes
10050 echo "configure: failed program was:" >&5
10051 cat conftest.
$ac_ext >&5
10053 samba_cv_HAVE_UT_UT_HOST
=no
10058 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
10059 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
10060 cat >> confdefs.h
<<\EOF
10061 #define HAVE_UT_UT_HOST 1
10066 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
10067 echo "configure:10068: checking for ut_time in utmp" >&5
10068 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
10069 echo $ac_n "(cached) $ac_c" 1>&6
10072 cat > conftest.
$ac_ext <<EOF
10073 #line 10074 "configure"
10074 #include "confdefs.h"
10075 #include <sys/types.h>
10078 struct utmp ut; time_t t; ut.ut_time = t;
10081 if { (eval echo configure
:10082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10083 samba_cv_HAVE_UT_UT_TIME
=yes
10085 echo "configure: failed program was:" >&5
10086 cat conftest.
$ac_ext >&5
10088 samba_cv_HAVE_UT_UT_TIME
=no
10093 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10094 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
10095 cat >> confdefs.h
<<\EOF
10096 #define HAVE_UT_UT_TIME 1
10101 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10102 echo "configure:10103: checking for ut_tv in utmp" >&5
10103 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10104 echo $ac_n "(cached) $ac_c" 1>&6
10107 cat > conftest.
$ac_ext <<EOF
10108 #line 10109 "configure"
10109 #include "confdefs.h"
10110 #include <sys/types.h>
10113 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10116 if { (eval echo configure
:10117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10118 samba_cv_HAVE_UT_UT_TV
=yes
10120 echo "configure: failed program was:" >&5
10121 cat conftest.
$ac_ext >&5
10123 samba_cv_HAVE_UT_UT_TV
=no
10128 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10129 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
10130 cat >> confdefs.h
<<\EOF
10131 #define HAVE_UT_UT_TV 1
10136 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10137 echo "configure:10138: checking for ut_type in utmp" >&5
10138 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10139 echo $ac_n "(cached) $ac_c" 1>&6
10142 cat > conftest.
$ac_ext <<EOF
10143 #line 10144 "configure"
10144 #include "confdefs.h"
10145 #include <sys/types.h>
10148 struct utmp ut; ut.ut_type = 0;
10151 if { (eval echo configure
:10152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10153 samba_cv_HAVE_UT_UT_TYPE
=yes
10155 echo "configure: failed program was:" >&5
10156 cat conftest.
$ac_ext >&5
10158 samba_cv_HAVE_UT_UT_TYPE
=no
10163 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10164 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
10165 cat >> confdefs.h
<<\EOF
10166 #define HAVE_UT_UT_TYPE 1
10171 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10172 echo "configure:10173: checking for ut_pid in utmp" >&5
10173 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10174 echo $ac_n "(cached) $ac_c" 1>&6
10177 cat > conftest.
$ac_ext <<EOF
10178 #line 10179 "configure"
10179 #include "confdefs.h"
10180 #include <sys/types.h>
10183 struct utmp ut; ut.ut_pid = 0;
10186 if { (eval echo configure
:10187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10188 samba_cv_HAVE_UT_UT_PID
=yes
10190 echo "configure: failed program was:" >&5
10191 cat conftest.
$ac_ext >&5
10193 samba_cv_HAVE_UT_UT_PID
=no
10198 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10199 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
10200 cat >> confdefs.h
<<\EOF
10201 #define HAVE_UT_UT_PID 1
10206 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10207 echo "configure:10208: checking for ut_exit in utmp" >&5
10208 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10209 echo $ac_n "(cached) $ac_c" 1>&6
10212 cat > conftest.
$ac_ext <<EOF
10213 #line 10214 "configure"
10214 #include "confdefs.h"
10215 #include <sys/types.h>
10218 struct utmp ut; ut.ut_exit.e_exit = 0;
10221 if { (eval echo configure
:10222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10223 samba_cv_HAVE_UT_UT_EXIT
=yes
10225 echo "configure: failed program was:" >&5
10226 cat conftest.
$ac_ext >&5
10228 samba_cv_HAVE_UT_UT_EXIT
=no
10233 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10234 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
10235 cat >> confdefs.h
<<\EOF
10236 #define HAVE_UT_UT_EXIT 1
10241 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10242 echo "configure:10243: checking for ut_addr in utmp" >&5
10243 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10244 echo $ac_n "(cached) $ac_c" 1>&6
10247 cat > conftest.
$ac_ext <<EOF
10248 #line 10249 "configure"
10249 #include "confdefs.h"
10250 #include <sys/types.h>
10253 struct utmp ut; ut.ut_addr = 0;
10256 if { (eval echo configure
:10257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10258 samba_cv_HAVE_UT_UT_ADDR
=yes
10260 echo "configure: failed program was:" >&5
10261 cat conftest.
$ac_ext >&5
10263 samba_cv_HAVE_UT_UT_ADDR
=no
10268 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10269 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
10270 cat >> confdefs.h
<<\EOF
10271 #define HAVE_UT_UT_ADDR 1
10276 if test x
$ac_cv_func_pututline = xyes
; then
10277 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10278 echo "configure:10279: checking whether pututline returns pointer" >&5
10279 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10280 echo $ac_n "(cached) $ac_c" 1>&6
10283 cat > conftest.
$ac_ext <<EOF
10284 #line 10285 "configure"
10285 #include "confdefs.h"
10286 #include <sys/types.h>
10289 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10292 if { (eval echo configure
:10293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10294 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
10296 echo "configure: failed program was:" >&5
10297 cat conftest.
$ac_ext >&5
10299 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
10304 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10305 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
10306 cat >> confdefs.h
<<\EOF
10307 #define PUTUTLINE_RETURNS_UTMP 1
10313 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10314 echo "configure:10315: checking for ut_syslen in utmpx" >&5
10315 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10316 echo $ac_n "(cached) $ac_c" 1>&6
10319 cat > conftest.
$ac_ext <<EOF
10320 #line 10321 "configure"
10321 #include "confdefs.h"
10322 #include <sys/types.h>
10325 struct utmpx ux; ux.ut_syslen = 0;
10328 if { (eval echo configure
:10329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10330 samba_cv_HAVE_UX_UT_SYSLEN
=yes
10332 echo "configure: failed program was:" >&5
10333 cat conftest.
$ac_ext >&5
10335 samba_cv_HAVE_UX_UT_SYSLEN
=no
10340 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10341 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
10342 cat >> confdefs.h
<<\EOF
10343 #define HAVE_UX_UT_SYSLEN 1
10349 #################################################
10350 # check for libiconv support
10351 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
10352 echo "configure:10353: checking whether to use libiconv" >&5
10353 # Check whether --with-libiconv or --without-libiconv was given.
10354 if test "${with_libiconv+set}" = set; then
10355 withval
="$with_libiconv"
10358 echo "$ac_t""no" 1>&6
10361 echo "$ac_t""yes" 1>&6
10362 CFLAGS
="$CFLAGS -I$withval/include"
10363 LDFLAGS
="$LDFLAGS -L$withval/lib"
10364 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
10365 echo "configure:10366: checking for iconv_open in -liconv" >&5
10366 ac_lib_var
=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
10367 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10368 echo $ac_n "(cached) $ac_c" 1>&6
10370 ac_save_LIBS
="$LIBS"
10371 LIBS
="-liconv $LIBS"
10372 cat > conftest.
$ac_ext <<EOF
10373 #line 10374 "configure"
10374 #include "confdefs.h"
10375 /* Override any gcc2 internal prototype to avoid an error. */
10376 /* We use char because int might match the return type of a gcc2
10377 builtin and then its argument prototype would still apply. */
10384 if { (eval echo configure
:10385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10386 eval "ac_cv_lib_$ac_lib_var=yes"
10388 echo "configure: failed program was:" >&5
10389 cat conftest.
$ac_ext >&5
10391 eval "ac_cv_lib_$ac_lib_var=no"
10394 LIBS
="$ac_save_LIBS"
10397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10398 echo "$ac_t""yes" 1>&6
10399 ac_tr_lib
=HAVE_LIB
`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10400 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10401 cat >> confdefs.h
<<EOF
10402 #define $ac_tr_lib 1
10405 LIBS
="-liconv $LIBS"
10408 echo "$ac_t""no" 1>&6
10411 cat >> confdefs.h
<<EOF
10412 #define WITH_LIBICONV "${withval}"
10418 echo "$ac_t""no" 1>&6
10425 # check for iconv in libc
10426 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
10427 echo "configure:10428: checking for working iconv" >&5
10428 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
10429 echo $ac_n "(cached) $ac_c" 1>&6
10432 if test "$cross_compiling" = yes; then
10433 samba_cv_HAVE_NATIVE_ICONV
=cross
10435 cat > conftest.
$ac_ext <<EOF
10436 #line 10437 "configure"
10437 #include "confdefs.h"
10441 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
10442 if (cd == 0 || cd == (iconv_t)-1) return -1;
10447 if { (eval echo configure
:10448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10449 samba_cv_HAVE_NATIVE_ICONV
=yes
10451 echo "configure: failed program was:" >&5
10452 cat conftest.
$ac_ext >&5
10454 samba_cv_HAVE_NATIVE_ICONV
=no
10461 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
10462 if test x
"$samba_cv_HAVE_NATIVE_ICONV" = x
"yes"; then
10463 cat >> confdefs.h
<<\EOF
10464 #define HAVE_NATIVE_ICONV 1
10470 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10471 echo "configure:10472: checking for Linux kernel oplocks" >&5
10472 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10473 echo $ac_n "(cached) $ac_c" 1>&6
10476 if test "$cross_compiling" = yes; then
10477 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
10479 cat > conftest.
$ac_ext <<EOF
10480 #line 10481 "configure"
10481 #include "confdefs.h"
10483 #include <sys/types.h>
10486 #define F_GETLEASE 1025
10489 int fd = open("/dev/null", O_RDONLY);
10490 return fcntl(fd, F_GETLEASE, 0) == -1;
10494 if { (eval echo configure
:10495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10496 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
10498 echo "configure: failed program was:" >&5
10499 cat conftest.
$ac_ext >&5
10501 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
10508 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10509 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
10510 cat >> confdefs.h
<<\EOF
10511 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10516 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10517 echo "configure:10518: checking for kernel change notify support" >&5
10518 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10519 echo $ac_n "(cached) $ac_c" 1>&6
10522 if test "$cross_compiling" = yes; then
10523 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
10525 cat > conftest.
$ac_ext <<EOF
10526 #line 10527 "configure"
10527 #include "confdefs.h"
10529 #include <sys/types.h>
10531 #include <signal.h>
10533 #define F_NOTIFY 1026
10536 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10540 if { (eval echo configure
:10541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10542 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
10544 echo "configure: failed program was:" >&5
10545 cat conftest.
$ac_ext >&5
10547 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
10554 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10555 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
10556 cat >> confdefs.h
<<\EOF
10557 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10562 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10563 echo "configure:10564: checking for kernel share modes" >&5
10564 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10565 echo $ac_n "(cached) $ac_c" 1>&6
10568 if test "$cross_compiling" = yes; then
10569 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
10571 cat > conftest.
$ac_ext <<EOF
10572 #line 10573 "configure"
10573 #include "confdefs.h"
10575 #include <sys/types.h>
10577 #include <signal.h>
10578 #include <sys/file.h>
10580 #define LOCK_MAND 32
10581 #define LOCK_READ 64
10584 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10588 if { (eval echo configure
:10589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10590 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
10592 echo "configure: failed program was:" >&5
10593 cat conftest.
$ac_ext >&5
10595 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
10602 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10603 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
10604 cat >> confdefs.h
<<\EOF
10605 #define HAVE_KERNEL_SHARE_MODES 1
10613 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10614 echo "configure:10615: checking for IRIX kernel oplock type definitions" >&5
10615 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10616 echo $ac_n "(cached) $ac_c" 1>&6
10619 cat > conftest.
$ac_ext <<EOF
10620 #line 10621 "configure"
10621 #include "confdefs.h"
10622 #include <sys/types.h>
10625 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10628 if { (eval echo configure
:10629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10630 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
10632 echo "configure: failed program was:" >&5
10633 cat conftest.
$ac_ext >&5
10635 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
10640 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10641 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
10642 cat >> confdefs.h
<<\EOF
10643 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10648 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10649 echo "configure:10650: checking for irix specific capabilities" >&5
10650 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10651 echo $ac_n "(cached) $ac_c" 1>&6
10654 if test "$cross_compiling" = yes; then
10655 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
10657 cat > conftest.
$ac_ext <<EOF
10658 #line 10659 "configure"
10659 #include "confdefs.h"
10660 #include <sys/types.h>
10661 #include <sys/capability.h>
10664 if ((cap = cap_get_proc()) == NULL)
10666 cap->cap_effective |= CAP_NETWORK_MGT;
10667 cap->cap_inheritable |= CAP_NETWORK_MGT;
10673 if { (eval echo configure
:10674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10675 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
10677 echo "configure: failed program was:" >&5
10678 cat conftest.
$ac_ext >&5
10680 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
10687 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10688 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
10689 cat >> confdefs.h
<<\EOF
10690 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10696 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10697 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10700 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10701 echo "configure:10702: checking for int16 typedef included by rpc/rpc.h" >&5
10702 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10703 echo $ac_n "(cached) $ac_c" 1>&6
10706 cat > conftest.
$ac_ext <<EOF
10707 #line 10708 "configure"
10708 #include "confdefs.h"
10709 #include <sys/types.h>
10710 #if defined(HAVE_RPC_RPC_H)
10711 #include <rpc/rpc.h>
10717 if { (eval echo configure
:10718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10719 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
10721 echo "configure: failed program was:" >&5
10722 cat conftest.
$ac_ext >&5
10724 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
10729 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10730 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
10731 cat >> confdefs.h
<<\EOF
10732 #define HAVE_INT16_FROM_RPC_RPC_H 1
10737 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10738 echo "configure:10739: checking for uint16 typedef included by rpc/rpc.h" >&5
10739 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10740 echo $ac_n "(cached) $ac_c" 1>&6
10743 cat > conftest.
$ac_ext <<EOF
10744 #line 10745 "configure"
10745 #include "confdefs.h"
10746 #include <sys/types.h>
10747 #if defined(HAVE_RPC_RPC_H)
10748 #include <rpc/rpc.h>
10754 if { (eval echo configure
:10755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10756 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
10758 echo "configure: failed program was:" >&5
10759 cat conftest.
$ac_ext >&5
10761 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
10766 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10767 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
10768 cat >> confdefs.h
<<\EOF
10769 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10774 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10775 echo "configure:10776: checking for int32 typedef included by rpc/rpc.h" >&5
10776 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10777 echo $ac_n "(cached) $ac_c" 1>&6
10780 cat > conftest.
$ac_ext <<EOF
10781 #line 10782 "configure"
10782 #include "confdefs.h"
10783 #include <sys/types.h>
10784 #if defined(HAVE_RPC_RPC_H)
10785 #include <rpc/rpc.h>
10791 if { (eval echo configure
:10792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10793 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
10795 echo "configure: failed program was:" >&5
10796 cat conftest.
$ac_ext >&5
10798 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
10803 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10804 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
10805 cat >> confdefs.h
<<\EOF
10806 #define HAVE_INT32_FROM_RPC_RPC_H 1
10811 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10812 echo "configure:10813: checking for uint32 typedef included by rpc/rpc.h" >&5
10813 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10814 echo $ac_n "(cached) $ac_c" 1>&6
10817 cat > conftest.
$ac_ext <<EOF
10818 #line 10819 "configure"
10819 #include "confdefs.h"
10820 #include <sys/types.h>
10821 #if defined(HAVE_RPC_RPC_H)
10822 #include <rpc/rpc.h>
10828 if { (eval echo configure
:10829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10830 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
10832 echo "configure: failed program was:" >&5
10833 cat conftest.
$ac_ext >&5
10835 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
10840 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10841 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
10842 cat >> confdefs.h
<<\EOF
10843 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10849 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10850 echo "configure:10851: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10851 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10852 echo $ac_n "(cached) $ac_c" 1>&6
10855 cat > conftest.
$ac_ext <<EOF
10856 #line 10857 "configure"
10857 #include "confdefs.h"
10858 #include <sys/types.h>
10859 #ifdef HAVE_SYS_SECURITY_H
10860 #include <sys/security.h>
10862 #endif /* HAVE_SYS_SECURITY_H */
10863 #if defined(HAVE_RPC_RPC_H)
10864 #include <rpc/rpc.h>
10870 if { (eval echo configure
:10871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10872 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
10874 echo "configure: failed program was:" >&5
10875 cat conftest.
$ac_ext >&5
10877 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
10882 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10883 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
10884 cat >> confdefs.h
<<\EOF
10885 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10890 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10891 echo "configure:10892: checking for test routines" >&5
10892 if test "$cross_compiling" = yes; then
10893 echo "configure: warning: cannot run when cross-compiling" 1>&2
10895 cat > conftest.
$ac_ext <<EOF
10896 #line 10897 "configure"
10897 #include "confdefs.h"
10898 #include "${srcdir-.}/tests/trivial.c"
10900 if { (eval echo configure
:10901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10902 echo "$ac_t""yes" 1>&6
10904 echo "configure: failed program was:" >&5
10905 cat conftest.
$ac_ext >&5
10907 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10913 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10914 echo "configure:10915: checking for ftruncate extend" >&5
10915 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10916 echo $ac_n "(cached) $ac_c" 1>&6
10919 if test "$cross_compiling" = yes; then
10920 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
10922 cat > conftest.
$ac_ext <<EOF
10923 #line 10924 "configure"
10924 #include "confdefs.h"
10925 #include "${srcdir-.}/tests/ftruncate.c"
10927 if { (eval echo configure
:10928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10929 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
10931 echo "configure: failed program was:" >&5
10932 cat conftest.
$ac_ext >&5
10934 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
10941 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10942 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
10943 cat >> confdefs.h
<<\EOF
10944 #define HAVE_FTRUNCATE_EXTEND 1
10949 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10950 echo "configure:10951: checking for AF_LOCAL socket support" >&5
10951 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10952 echo $ac_n "(cached) $ac_c" 1>&6
10955 if test "$cross_compiling" = yes; then
10956 samba_cv_HAVE_WORKING_AF_LOCAL
=cross
10958 cat > conftest.
$ac_ext <<EOF
10959 #line 10960 "configure"
10960 #include "confdefs.h"
10961 #include "${srcdir-.}/tests/unixsock.c"
10963 if { (eval echo configure
:10964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10965 samba_cv_HAVE_WORKING_AF_LOCAL
=yes
10967 echo "configure: failed program was:" >&5
10968 cat conftest.
$ac_ext >&5
10970 samba_cv_HAVE_WORKING_AF_LOCAL
=no
10977 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
10978 if test x
"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
10980 cat >> confdefs.h
<<\EOF
10981 #define HAVE_WORKING_AF_LOCAL 1
10986 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10987 echo "configure:10988: checking for broken getgroups" >&5
10988 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10989 echo $ac_n "(cached) $ac_c" 1>&6
10992 if test "$cross_compiling" = yes; then
10993 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
10995 cat > conftest.
$ac_ext <<EOF
10996 #line 10997 "configure"
10997 #include "confdefs.h"
10998 #include "${srcdir-.}/tests/getgroups.c"
11000 if { (eval echo configure
:11001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11002 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
11004 echo "configure: failed program was:" >&5
11005 cat conftest.
$ac_ext >&5
11007 samba_cv_HAVE_BROKEN_GETGROUPS
=no
11014 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
11015 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
11016 cat >> confdefs.h
<<\EOF
11017 #define HAVE_BROKEN_GETGROUPS 1
11022 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
11023 echo "configure:11024: checking whether getpass should be replaced" >&5
11024 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
11025 echo $ac_n "(cached) $ac_c" 1>&6
11028 SAVE_CPPFLAGS
="$CPPFLAGS"
11029 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
11030 cat > conftest.
$ac_ext <<EOF
11031 #line 11032 "configure"
11032 #include "confdefs.h"
11034 #define REPLACE_GETPASS 1
11035 #define NO_CONFIG_H 1
11036 #define main dont_declare_main
11037 #include "${srcdir-.}/lib/getsmbpass.c"
11044 if { (eval echo configure
:11045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11046 samba_cv_REPLACE_GETPASS
=yes
11048 echo "configure: failed program was:" >&5
11049 cat conftest.
$ac_ext >&5
11051 samba_cv_REPLACE_GETPASS
=no
11054 CPPFLAGS
="$SAVE_CPPFLAGS"
11058 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
11059 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
11060 cat >> confdefs.h
<<\EOF
11061 #define REPLACE_GETPASS 1
11066 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
11067 echo "configure:11068: checking for broken inet_ntoa" >&5
11068 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
11069 echo $ac_n "(cached) $ac_c" 1>&6
11072 if test "$cross_compiling" = yes; then
11073 samba_cv_REPLACE_INET_NTOA
=cross
11075 cat > conftest.
$ac_ext <<EOF
11076 #line 11077 "configure"
11077 #include "confdefs.h"
11080 #include <sys/types.h>
11081 #include <netinet/in.h>
11082 #ifdef HAVE_ARPA_INET_H
11083 #include <arpa/inet.h>
11085 main() { struct in_addr ip; ip.s_addr = 0x12345678;
11086 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
11087 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
11090 if { (eval echo configure
:11091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11092 samba_cv_REPLACE_INET_NTOA
=yes
11094 echo "configure: failed program was:" >&5
11095 cat conftest.
$ac_ext >&5
11097 samba_cv_REPLACE_INET_NTOA
=no
11104 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
11105 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
11106 cat >> confdefs.h
<<\EOF
11107 #define REPLACE_INET_NTOA 1
11112 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
11113 echo "configure:11114: checking for secure mkstemp" >&5
11114 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
11115 echo $ac_n "(cached) $ac_c" 1>&6
11118 if test "$cross_compiling" = yes; then
11119 samba_cv_HAVE_SECURE_MKSTEMP
=cross
11121 cat > conftest.
$ac_ext <<EOF
11122 #line 11123 "configure"
11123 #include "confdefs.h"
11124 #include <stdlib.h>
11125 #include <sys/types.h>
11126 #include <sys/stat.h>
11127 #include <unistd.h>
11130 char tpl[20]="/tmp/test.XXXXXX";
11131 int fd = mkstemp(tpl);
11132 if (fd == -1) exit(1);
11134 if (fstat(fd, &st) != 0) exit(1);
11135 if ((st.st_mode & 0777) != 0600) exit(1);
11139 if { (eval echo configure
:11140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11141 samba_cv_HAVE_SECURE_MKSTEMP
=yes
11143 echo "configure: failed program was:" >&5
11144 cat conftest.
$ac_ext >&5
11146 samba_cv_HAVE_SECURE_MKSTEMP
=no
11153 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
11154 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
11155 cat >> confdefs.h
<<\EOF
11156 #define HAVE_SECURE_MKSTEMP 1
11161 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
11162 echo "configure:11163: checking for sysconf(_SC_NGROUPS_MAX)" >&5
11163 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
11164 echo $ac_n "(cached) $ac_c" 1>&6
11167 if test "$cross_compiling" = yes; then
11168 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
11170 cat > conftest.
$ac_ext <<EOF
11171 #line 11172 "configure"
11172 #include "confdefs.h"
11173 #include <unistd.h>
11174 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
11176 if { (eval echo configure
:11177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11178 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
11180 echo "configure: failed program was:" >&5
11181 cat conftest.
$ac_ext >&5
11183 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
11190 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
11191 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
11192 cat >> confdefs.h
<<\EOF
11193 #define SYSCONF_SC_NGROUPS_MAX 1
11198 echo $ac_n "checking for root""... $ac_c" 1>&6
11199 echo "configure:11200: checking for root" >&5
11200 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
11201 echo $ac_n "(cached) $ac_c" 1>&6
11204 if test "$cross_compiling" = yes; then
11205 samba_cv_HAVE_ROOT
=cross
11207 cat > conftest.
$ac_ext <<EOF
11208 #line 11209 "configure"
11209 #include "confdefs.h"
11210 main() { exit(getuid() != 0); }
11212 if { (eval echo configure
:11213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11214 samba_cv_HAVE_ROOT
=yes
11216 echo "configure: failed program was:" >&5
11217 cat conftest.
$ac_ext >&5
11219 samba_cv_HAVE_ROOT
=no
11226 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
11227 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
11228 cat >> confdefs.h
<<\EOF
11229 #define HAVE_ROOT 1
11233 echo "configure: warning: running as non-root will disable some tests" 1>&2
11237 # look for a method of finding the list of network interfaces
11239 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11240 echo "configure:11241: checking for iface AIX" >&5
11241 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11242 echo $ac_n "(cached) $ac_c" 1>&6
11245 if test "$cross_compiling" = yes; then
11246 samba_cv_HAVE_IFACE_AIX
=cross
11248 cat > conftest.
$ac_ext <<EOF
11249 #line 11250 "configure"
11250 #include "confdefs.h"
11252 #define HAVE_IFACE_AIX 1
11253 #define AUTOCONF_TEST 1
11254 #include "confdefs.h"
11255 #include "${srcdir-.}/lib/interfaces.c"
11257 if { (eval echo configure
:11258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11259 samba_cv_HAVE_IFACE_AIX
=yes
11261 echo "configure: failed program was:" >&5
11262 cat conftest.
$ac_ext >&5
11264 samba_cv_HAVE_IFACE_AIX
=no
11271 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11272 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
11273 iface
=yes;cat >> confdefs.h
<<\EOF
11274 #define HAVE_IFACE_AIX 1
11279 if test $iface = no
; then
11280 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11281 echo "configure:11282: checking for iface ifconf" >&5
11282 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11283 echo $ac_n "(cached) $ac_c" 1>&6
11286 if test "$cross_compiling" = yes; then
11287 samba_cv_HAVE_IFACE_IFCONF
=cross
11289 cat > conftest.
$ac_ext <<EOF
11290 #line 11291 "configure"
11291 #include "confdefs.h"
11293 #define HAVE_IFACE_IFCONF 1
11294 #define AUTOCONF_TEST 1
11295 #include "confdefs.h"
11296 #include "${srcdir-.}/lib/interfaces.c"
11298 if { (eval echo configure
:11299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11300 samba_cv_HAVE_IFACE_IFCONF
=yes
11302 echo "configure: failed program was:" >&5
11303 cat conftest.
$ac_ext >&5
11305 samba_cv_HAVE_IFACE_IFCONF
=no
11312 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11313 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
11314 iface
=yes;cat >> confdefs.h
<<\EOF
11315 #define HAVE_IFACE_IFCONF 1
11321 if test $iface = no
; then
11322 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11323 echo "configure:11324: checking for iface ifreq" >&5
11324 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11325 echo $ac_n "(cached) $ac_c" 1>&6
11328 if test "$cross_compiling" = yes; then
11329 samba_cv_HAVE_IFACE_IFREQ
=cross
11331 cat > conftest.
$ac_ext <<EOF
11332 #line 11333 "configure"
11333 #include "confdefs.h"
11335 #define HAVE_IFACE_IFREQ 1
11336 #define AUTOCONF_TEST 1
11337 #include "confdefs.h"
11338 #include "${srcdir-.}/lib/interfaces.c"
11340 if { (eval echo configure
:11341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11342 samba_cv_HAVE_IFACE_IFREQ
=yes
11344 echo "configure: failed program was:" >&5
11345 cat conftest.
$ac_ext >&5
11347 samba_cv_HAVE_IFACE_IFREQ
=no
11354 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11355 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
11356 iface
=yes;cat >> confdefs.h
<<\EOF
11357 #define HAVE_IFACE_IFREQ 1
11364 ################################################
11365 # look for a method of setting the effective uid
11367 if test $seteuid = no
; then
11368 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11369 echo "configure:11370: checking for setresuid" >&5
11370 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11371 echo $ac_n "(cached) $ac_c" 1>&6
11374 if test "$cross_compiling" = yes; then
11375 samba_cv_USE_SETRESUID
=cross
11377 cat > conftest.
$ac_ext <<EOF
11378 #line 11379 "configure"
11379 #include "confdefs.h"
11381 #define AUTOCONF_TEST 1
11382 #define USE_SETRESUID 1
11383 #include "confdefs.h"
11384 #include "${srcdir-.}/lib/util_sec.c"
11386 if { (eval echo configure
:11387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11388 samba_cv_USE_SETRESUID
=yes
11390 echo "configure: failed program was:" >&5
11391 cat conftest.
$ac_ext >&5
11393 samba_cv_USE_SETRESUID
=no
11400 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11401 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
11402 seteuid
=yes;cat >> confdefs.h
<<\EOF
11403 #define USE_SETRESUID 1
11410 if test $seteuid = no
; then
11411 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11412 echo "configure:11413: checking for setreuid" >&5
11413 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11414 echo $ac_n "(cached) $ac_c" 1>&6
11417 if test "$cross_compiling" = yes; then
11418 samba_cv_USE_SETREUID
=cross
11420 cat > conftest.
$ac_ext <<EOF
11421 #line 11422 "configure"
11422 #include "confdefs.h"
11424 #define AUTOCONF_TEST 1
11425 #define USE_SETREUID 1
11426 #include "confdefs.h"
11427 #include "${srcdir-.}/lib/util_sec.c"
11429 if { (eval echo configure
:11430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11431 samba_cv_USE_SETREUID
=yes
11433 echo "configure: failed program was:" >&5
11434 cat conftest.
$ac_ext >&5
11436 samba_cv_USE_SETREUID
=no
11443 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11444 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
11445 seteuid
=yes;cat >> confdefs.h
<<\EOF
11446 #define USE_SETREUID 1
11452 if test $seteuid = no
; then
11453 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11454 echo "configure:11455: checking for seteuid" >&5
11455 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11456 echo $ac_n "(cached) $ac_c" 1>&6
11459 if test "$cross_compiling" = yes; then
11460 samba_cv_USE_SETEUID
=cross
11462 cat > conftest.
$ac_ext <<EOF
11463 #line 11464 "configure"
11464 #include "confdefs.h"
11466 #define AUTOCONF_TEST 1
11467 #define USE_SETEUID 1
11468 #include "confdefs.h"
11469 #include "${srcdir-.}/lib/util_sec.c"
11471 if { (eval echo configure
:11472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11473 samba_cv_USE_SETEUID
=yes
11475 echo "configure: failed program was:" >&5
11476 cat conftest.
$ac_ext >&5
11478 samba_cv_USE_SETEUID
=no
11485 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11486 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
11487 seteuid
=yes;cat >> confdefs.h
<<\EOF
11488 #define USE_SETEUID 1
11494 if test $seteuid = no
; then
11495 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11496 echo "configure:11497: checking for setuidx" >&5
11497 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11498 echo $ac_n "(cached) $ac_c" 1>&6
11501 if test "$cross_compiling" = yes; then
11502 samba_cv_USE_SETUIDX
=cross
11504 cat > conftest.
$ac_ext <<EOF
11505 #line 11506 "configure"
11506 #include "confdefs.h"
11508 #define AUTOCONF_TEST 1
11509 #define USE_SETUIDX 1
11510 #include "confdefs.h"
11511 #include "${srcdir-.}/lib/util_sec.c"
11513 if { (eval echo configure
:11514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11515 samba_cv_USE_SETUIDX
=yes
11517 echo "configure: failed program was:" >&5
11518 cat conftest.
$ac_ext >&5
11520 samba_cv_USE_SETUIDX
=no
11527 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11528 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
11529 seteuid
=yes;cat >> confdefs.h
<<\EOF
11530 #define USE_SETUIDX 1
11537 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11538 echo "configure:11539: checking for working mmap" >&5
11539 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11540 echo $ac_n "(cached) $ac_c" 1>&6
11543 if test "$cross_compiling" = yes; then
11544 samba_cv_HAVE_MMAP
=cross
11546 cat > conftest.
$ac_ext <<EOF
11547 #line 11548 "configure"
11548 #include "confdefs.h"
11549 #include "${srcdir-.}/tests/shared_mmap.c"
11551 if { (eval echo configure
:11552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11553 samba_cv_HAVE_MMAP
=yes
11555 echo "configure: failed program was:" >&5
11556 cat conftest.
$ac_ext >&5
11558 samba_cv_HAVE_MMAP
=no
11565 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11566 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
11567 cat >> confdefs.h
<<\EOF
11568 #define HAVE_MMAP 1
11573 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11574 echo "configure:11575: checking for ftruncate needs root" >&5
11575 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11576 echo $ac_n "(cached) $ac_c" 1>&6
11579 if test "$cross_compiling" = yes; then
11580 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
11582 cat > conftest.
$ac_ext <<EOF
11583 #line 11584 "configure"
11584 #include "confdefs.h"
11585 #include "${srcdir-.}/tests/ftruncroot.c"
11587 if { (eval echo configure
:11588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11589 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
11591 echo "configure: failed program was:" >&5
11592 cat conftest.
$ac_ext >&5
11594 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
11601 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11602 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
11603 cat >> confdefs.h
<<\EOF
11604 #define FTRUNCATE_NEEDS_ROOT 1
11609 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11610 echo "configure:11611: checking for fcntl locking" >&5
11611 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11612 echo $ac_n "(cached) $ac_c" 1>&6
11615 if test "$cross_compiling" = yes; then
11616 samba_cv_HAVE_FCNTL_LOCK
=cross
11618 cat > conftest.
$ac_ext <<EOF
11619 #line 11620 "configure"
11620 #include "confdefs.h"
11621 #include "${srcdir-.}/tests/fcntl_lock.c"
11623 if { (eval echo configure
:11624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11625 samba_cv_HAVE_FCNTL_LOCK
=yes
11627 echo "configure: failed program was:" >&5
11628 cat conftest.
$ac_ext >&5
11630 samba_cv_HAVE_FCNTL_LOCK
=no
11637 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11638 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
11639 cat >> confdefs.h
<<\EOF
11640 #define HAVE_FCNTL_LOCK 1
11645 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11646 echo "configure:11647: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11647 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11648 echo $ac_n "(cached) $ac_c" 1>&6
11651 if test "$cross_compiling" = yes; then
11652 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
11654 cat > conftest.
$ac_ext <<EOF
11655 #line 11656 "configure"
11656 #include "confdefs.h"
11657 #include "${srcdir-.}/tests/fcntl_lock64.c"
11659 if { (eval echo configure
:11660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11661 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
11663 echo "configure: failed program was:" >&5
11664 cat conftest.
$ac_ext >&5
11666 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
11673 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11674 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
11675 cat >> confdefs.h
<<\EOF
11676 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11683 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11684 echo "configure:11685: checking for 64 bit fcntl locking" >&5
11685 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11686 echo $ac_n "(cached) $ac_c" 1>&6
11689 if test "$cross_compiling" = yes; then
11690 samba_cv_HAVE_STRUCT_FLOCK64
=cross
11692 cat > conftest.
$ac_ext <<EOF
11693 #line 11694 "configure"
11694 #include "confdefs.h"
11696 #if defined(HAVE_UNISTD_H)
11697 #include <unistd.h>
11700 #include <stdlib.h>
11702 #ifdef HAVE_FCNTL_H
11706 #ifdef HAVE_SYS_FCNTL_H
11707 #include <sys/fcntl.h>
11709 main() { struct flock64 fl64;
11710 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11717 if { (eval echo configure
:11718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11719 samba_cv_HAVE_STRUCT_FLOCK64
=yes
11721 echo "configure: failed program was:" >&5
11722 cat conftest.
$ac_ext >&5
11724 samba_cv_HAVE_STRUCT_FLOCK64
=no
11731 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11733 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
11734 cat >> confdefs.h
<<\EOF
11735 #define HAVE_STRUCT_FLOCK64 1
11741 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11742 echo "configure:11743: checking for st_blocks in struct stat" >&5
11743 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11744 echo $ac_n "(cached) $ac_c" 1>&6
11747 cat > conftest.
$ac_ext <<EOF
11748 #line 11749 "configure"
11749 #include "confdefs.h"
11750 #include <sys/types.h>
11751 #include <sys/stat.h>
11752 #include <unistd.h>
11754 struct stat st; st.st_blocks = 0;
11757 if { (eval echo configure
:11758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11759 samba_cv_HAVE_STAT_ST_BLOCKS
=yes
11761 echo "configure: failed program was:" >&5
11762 cat conftest.
$ac_ext >&5
11764 samba_cv_HAVE_STAT_ST_BLOCKS
=no
11769 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11770 if test x
"$samba_cv_HAVE_STAT_ST_BLOCKS" = x
"yes"; then
11771 cat >> confdefs.h
<<\EOF
11772 #define HAVE_STAT_ST_BLOCKS 1
11779 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11780 echo "configure:11781: checking for broken RedHat 7.2 system header files" >&5
11781 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11782 echo $ac_n "(cached) $ac_c" 1>&6
11785 cat > conftest.
$ac_ext <<EOF
11786 #line 11787 "configure"
11787 #include "confdefs.h"
11789 #ifdef HAVE_SYS_VFS_H
11790 #include <sys/vfs.h>
11792 #ifdef HAVE_SYS_CAPABILITY_H
11793 #include <sys/capability.h>
11800 if { (eval echo configure
:11801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11802 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=no
11804 echo "configure: failed program was:" >&5
11805 cat conftest.
$ac_ext >&5
11807 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=yes
11812 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11813 if test x
"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x
"yes"; then
11814 cat >> confdefs.h
<<\EOF
11815 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11822 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11823 echo "configure:11824: checking for broken nisplus include files" >&5
11824 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11825 echo $ac_n "(cached) $ac_c" 1>&6
11828 cat > conftest.
$ac_ext <<EOF
11829 #line 11830 "configure"
11830 #include "confdefs.h"
11831 #include <sys/acl.h>
11832 #if defined(HAVE_RPCSVC_NIS_H)
11833 #include <rpcsvc/nis.h>
11839 if { (eval echo configure
:11840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11841 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
11843 echo "configure: failed program was:" >&5
11844 cat conftest.
$ac_ext >&5
11846 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
11851 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11852 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
11853 cat >> confdefs.h
<<\EOF
11854 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11860 #################################################
11861 # check for smbwrapper support
11862 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11863 echo "configure:11864: checking whether to use smbwrapper" >&5
11864 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11865 if test "${with_smbwrapper+set}" = set; then
11866 withval
="$with_smbwrapper"
11869 echo "$ac_t""yes" 1>&6
11870 cat >> confdefs.h
<<\EOF
11871 #define WITH_SMBWRAPPER 1
11874 WRAPPROG
="bin/smbsh"
11875 WRAP
="bin/smbwrapper.$SHLIBEXT"
11877 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
11880 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
11883 # Conditions under which smbwrapper should not be built.
11885 if test x
$PICFLAG = x
; then
11886 echo No support
for PIC code
- disabling smbwrapper and smbsh
11890 elif test x
$ac_cv_func_syscall = xno
; then
11891 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11898 echo "$ac_t""no" 1>&6
11902 echo "$ac_t""no" 1>&6
11907 #################################################
11908 # check for AFS clear-text auth support
11909 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
11910 echo "configure:11911: checking whether to use AFS clear-text auth" >&5
11911 # Check whether --with-afs or --without-afs was given.
11912 if test "${with_afs+set}" = set; then
11913 withval
="$with_afs"
11916 echo "$ac_t""yes" 1>&6
11917 cat >> confdefs.h
<<\EOF
11923 echo "$ac_t""no" 1>&6
11927 echo "$ac_t""no" 1>&6
11933 #################################################
11934 # check for the DFS clear-text auth system
11935 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
11936 echo "configure:11937: checking whether to use DFS clear-text auth" >&5
11937 # Check whether --with-dfs or --without-dfs was given.
11938 if test "${with_dfs+set}" = set; then
11939 withval
="$with_dfs"
11942 echo "$ac_t""yes" 1>&6
11943 cat >> confdefs.h
<<\EOF
11949 echo "$ac_t""no" 1>&6
11953 echo "$ac_t""no" 1>&6
11959 #################################################
11960 # see if this box has the RedHat location for kerberos
11961 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
11962 echo "configure:11963: checking for /usr/kerberos" >&5
11963 if test -d /usr
/kerberos
; then
11964 LDFLAGS
="$LDFLAGS -L/usr/kerberos/lib"
11965 CFLAGS
="$CFLAGS -I/usr/kerberos/include"
11966 CPPFLAGS
="$CPPFLAGS -I/usr/kerberos/include"
11967 echo "$ac_t""yes" 1>&6
11969 echo "$ac_t""no" 1>&6
11972 #################################################
11973 # check for location of Kerberos 5 install
11974 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
11975 echo "configure:11976: checking for kerberos 5 install path" >&5
11976 # Check whether --with-krb5 or --without-krb5 was given.
11977 if test "${with_krb5+set}" = set; then
11978 withval
="$with_krb5"
11981 echo "$ac_t""no" 1>&6
11984 echo "$ac_t""yes" 1>&6
11985 LIBS
="$LIBS -lkrb5"
11986 CFLAGS
="$CFLAGS -I$withval/include"
11987 CPPFLAGS
="$CPPFLAGS -I$withval/include"
11988 LDFLAGS
="$LDFLAGS -L$withval/lib"
11992 echo "$ac_t""no" 1>&6
11997 # now check for krb5.h. Some systems have the libraries without the headers!
11998 # note that this check is done here to allow for different kerberos
12000 for ac_hdr
in krb5.h
12002 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12003 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12004 echo "configure:12005: checking for $ac_hdr" >&5
12005 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12006 echo $ac_n "(cached) $ac_c" 1>&6
12008 cat > conftest.
$ac_ext <<EOF
12009 #line 12010 "configure"
12010 #include "confdefs.h"
12013 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12014 { (eval echo configure
:12015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12015 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12016 if test -z "$ac_err"; then
12018 eval "ac_cv_header_$ac_safe=yes"
12021 echo "configure: failed program was:" >&5
12022 cat conftest.
$ac_ext >&5
12024 eval "ac_cv_header_$ac_safe=no"
12028 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12029 echo "$ac_t""yes" 1>&6
12030 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12031 cat >> confdefs.h
<<EOF
12032 #define $ac_tr_hdr 1
12036 echo "$ac_t""no" 1>&6
12041 # now check for gssapi headers. This is also done here to allow for
12042 # different kerberos include paths
12043 for ac_hdr
in gssapi
/gssapi_generic.h gssapi
/gssapi.h
12045 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12046 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12047 echo "configure:12048: checking for $ac_hdr" >&5
12048 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12049 echo $ac_n "(cached) $ac_c" 1>&6
12051 cat > conftest.
$ac_ext <<EOF
12052 #line 12053 "configure"
12053 #include "confdefs.h"
12056 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12057 { (eval echo configure
:12058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12058 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12059 if test -z "$ac_err"; then
12061 eval "ac_cv_header_$ac_safe=yes"
12064 echo "configure: failed program was:" >&5
12065 cat conftest.
$ac_ext >&5
12067 eval "ac_cv_header_$ac_safe=no"
12071 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12072 echo "$ac_t""yes" 1>&6
12073 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12074 cat >> confdefs.h
<<EOF
12075 #define $ac_tr_hdr 1
12079 echo "$ac_t""no" 1>&6
12084 ##################################################################
12085 # we might need the k5crypto and com_err libraries on some systems
12086 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
12087 echo "configure:12088: checking for _et_list in -lcom_err" >&5
12088 ac_lib_var
=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
12089 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12090 echo $ac_n "(cached) $ac_c" 1>&6
12092 ac_save_LIBS
="$LIBS"
12093 LIBS
="-lcom_err $LIBS"
12094 cat > conftest.
$ac_ext <<EOF
12095 #line 12096 "configure"
12096 #include "confdefs.h"
12097 /* Override any gcc2 internal prototype to avoid an error. */
12098 /* We use char because int might match the return type of a gcc2
12099 builtin and then its argument prototype would still apply. */
12106 if { (eval echo configure
:12107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12108 eval "ac_cv_lib_$ac_lib_var=yes"
12110 echo "configure: failed program was:" >&5
12111 cat conftest.
$ac_ext >&5
12113 eval "ac_cv_lib_$ac_lib_var=no"
12116 LIBS
="$ac_save_LIBS"
12119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12120 echo "$ac_t""yes" 1>&6
12121 LIBS
="$LIBS -lcom_err"
12123 echo "$ac_t""no" 1>&6
12126 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
12127 echo "configure:12128: checking for krb5_encrypt_data in -lk5crypto" >&5
12128 ac_lib_var
=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
12129 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12130 echo $ac_n "(cached) $ac_c" 1>&6
12132 ac_save_LIBS
="$LIBS"
12133 LIBS
="-lk5crypto $LIBS"
12134 cat > conftest.
$ac_ext <<EOF
12135 #line 12136 "configure"
12136 #include "confdefs.h"
12137 /* Override any gcc2 internal prototype to avoid an error. */
12138 /* We use char because int might match the return type of a gcc2
12139 builtin and then its argument prototype would still apply. */
12140 char krb5_encrypt_data();
12143 krb5_encrypt_data()
12146 if { (eval echo configure
:12147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12148 eval "ac_cv_lib_$ac_lib_var=yes"
12150 echo "configure: failed program was:" >&5
12151 cat conftest.
$ac_ext >&5
12153 eval "ac_cv_lib_$ac_lib_var=no"
12156 LIBS
="$ac_save_LIBS"
12159 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12160 echo "$ac_t""yes" 1>&6
12161 LIBS
="$LIBS -lk5crypto"
12163 echo "$ac_t""no" 1>&6
12167 ########################################################
12168 # now see if we can find the krb5 libs in standard paths
12169 # or as specified above
12170 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
12171 echo "configure:12172: checking for krb5_mk_req_extended in -lkrb5" >&5
12172 ac_lib_var
=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
12173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12174 echo $ac_n "(cached) $ac_c" 1>&6
12176 ac_save_LIBS
="$LIBS"
12177 LIBS
="-lkrb5 $LIBS"
12178 cat > conftest.
$ac_ext <<EOF
12179 #line 12180 "configure"
12180 #include "confdefs.h"
12181 /* Override any gcc2 internal prototype to avoid an error. */
12182 /* We use char because int might match the return type of a gcc2
12183 builtin and then its argument prototype would still apply. */
12184 char krb5_mk_req_extended();
12187 krb5_mk_req_extended()
12190 if { (eval echo configure
:12191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12192 eval "ac_cv_lib_$ac_lib_var=yes"
12194 echo "configure: failed program was:" >&5
12195 cat conftest.
$ac_ext >&5
12197 eval "ac_cv_lib_$ac_lib_var=no"
12200 LIBS
="$ac_save_LIBS"
12203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12204 echo "$ac_t""yes" 1>&6
12205 LIBS
="$LIBS -lkrb5";
12206 cat >> confdefs.h
<<\EOF
12207 #define HAVE_KRB5 1
12211 echo "$ac_t""no" 1>&6
12215 ########################################################
12216 # now see if we can find the gssapi libs in standard paths
12217 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
12218 echo "configure:12219: checking for gss_display_status in -lgssapi_krb5" >&5
12219 ac_lib_var
=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
12220 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12221 echo $ac_n "(cached) $ac_c" 1>&6
12223 ac_save_LIBS
="$LIBS"
12224 LIBS
="-lgssapi_krb5 $LIBS"
12225 cat > conftest.
$ac_ext <<EOF
12226 #line 12227 "configure"
12227 #include "confdefs.h"
12228 /* Override any gcc2 internal prototype to avoid an error. */
12229 /* We use char because int might match the return type of a gcc2
12230 builtin and then its argument prototype would still apply. */
12231 char gss_display_status();
12234 gss_display_status()
12237 if { (eval echo configure
:12238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12239 eval "ac_cv_lib_$ac_lib_var=yes"
12241 echo "configure: failed program was:" >&5
12242 cat conftest.
$ac_ext >&5
12244 eval "ac_cv_lib_$ac_lib_var=no"
12247 LIBS
="$ac_save_LIBS"
12250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12251 echo "$ac_t""yes" 1>&6
12252 LIBS
="$LIBS -lgssapi_krb5";
12253 cat >> confdefs.h
<<\EOF
12254 #define HAVE_GSSAPI 1
12258 echo "$ac_t""no" 1>&6
12262 ##################################################################
12263 # we might need the lber lib on some systems. To avoid link errors
12264 # this test must be before the libldap test
12265 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
12266 echo "configure:12267: checking for ber_scanf in -llber" >&5
12267 ac_lib_var
=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
12268 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12269 echo $ac_n "(cached) $ac_c" 1>&6
12271 ac_save_LIBS
="$LIBS"
12272 LIBS
="-llber $LIBS"
12273 cat > conftest.
$ac_ext <<EOF
12274 #line 12275 "configure"
12275 #include "confdefs.h"
12276 /* Override any gcc2 internal prototype to avoid an error. */
12277 /* We use char because int might match the return type of a gcc2
12278 builtin and then its argument prototype would still apply. */
12285 if { (eval echo configure
:12286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12287 eval "ac_cv_lib_$ac_lib_var=yes"
12289 echo "configure: failed program was:" >&5
12290 cat conftest.
$ac_ext >&5
12292 eval "ac_cv_lib_$ac_lib_var=no"
12295 LIBS
="$ac_save_LIBS"
12298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12299 echo "$ac_t""yes" 1>&6
12300 LIBS
="$LIBS -llber"
12302 echo "$ac_t""no" 1>&6
12306 ########################################################
12307 # now see if we can find the ldap libs in standard paths
12308 if test x
$have_ldap != xyes
; then
12309 echo $ac_n "checking for ldap_domain2hostlist in -lldap""... $ac_c" 1>&6
12310 echo "configure:12311: checking for ldap_domain2hostlist in -lldap" >&5
12311 ac_lib_var
=`echo ldap'_'ldap_domain2hostlist | sed 'y%./+-%__p_%'`
12312 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12313 echo $ac_n "(cached) $ac_c" 1>&6
12315 ac_save_LIBS
="$LIBS"
12316 LIBS
="-lldap $LIBS"
12317 cat > conftest.
$ac_ext <<EOF
12318 #line 12319 "configure"
12319 #include "confdefs.h"
12320 /* Override any gcc2 internal prototype to avoid an error. */
12321 /* We use char because int might match the return type of a gcc2
12322 builtin and then its argument prototype would still apply. */
12323 char ldap_domain2hostlist();
12326 ldap_domain2hostlist()
12329 if { (eval echo configure
:12330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12331 eval "ac_cv_lib_$ac_lib_var=yes"
12333 echo "configure: failed program was:" >&5
12334 cat conftest.
$ac_ext >&5
12336 eval "ac_cv_lib_$ac_lib_var=no"
12339 LIBS
="$ac_save_LIBS"
12342 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12343 echo "$ac_t""yes" 1>&6
12344 LIBS
="$LIBS -lldap";
12345 cat >> confdefs.h
<<\EOF
12346 #define HAVE_LDAP 1
12350 echo "$ac_t""no" 1>&6
12354 ########################################################
12355 # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
12356 # Check found in pam_ldap 145.
12357 for ac_func
in ldap_set_rebind_proc
12359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12360 echo "configure:12361: checking for $ac_func" >&5
12361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12362 echo $ac_n "(cached) $ac_c" 1>&6
12364 cat > conftest.
$ac_ext <<EOF
12365 #line 12366 "configure"
12366 #include "confdefs.h"
12367 /* System header to define __stub macros and hopefully few prototypes,
12368 which can conflict with char $ac_func(); below. */
12369 #include <assert.h>
12370 /* Override any gcc2 internal prototype to avoid an error. */
12371 /* We use char because int might match the return type of a gcc2
12372 builtin and then its argument prototype would still apply. */
12377 /* The GNU C library defines this for functions which it implements
12378 to always fail with ENOSYS. Some functions are actually named
12379 something starting with __ and the normal name is an alias. */
12380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12388 if { (eval echo configure
:12389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12390 eval "ac_cv_func_$ac_func=yes"
12392 echo "configure: failed program was:" >&5
12393 cat conftest.
$ac_ext >&5
12395 eval "ac_cv_func_$ac_func=no"
12400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12401 echo "$ac_t""yes" 1>&6
12402 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12403 cat >> confdefs.h
<<EOF
12404 #define $ac_tr_func 1
12408 echo "$ac_t""no" 1>&6
12412 echo $ac_n "checking whether ldap_set_rebind_proc takes 3 arguments""... $ac_c" 1>&6
12413 echo "configure:12414: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
12414 if eval "test \"`echo '$''{'pam_ldap_cv_ldap_set_rebind_proc'+set}'`\" = set"; then
12415 echo $ac_n "(cached) $ac_c" 1>&6
12418 cat > conftest.
$ac_ext <<EOF
12419 #line 12420 "configure"
12420 #include "confdefs.h"
12425 ldap_set_rebind_proc(0, 0, 0);
12428 if { (eval echo configure
:12429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12430 pam_ldap_cv_ldap_set_rebind_proc
=3
12432 echo "configure: failed program was:" >&5
12433 cat conftest.
$ac_ext >&5
12435 pam_ldap_cv_ldap_set_rebind_proc
=2
12440 echo "$ac_t""$pam_ldap_cv_ldap_set_rebind_proc" 1>&6
12441 cat >> confdefs.h
<<EOF
12442 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
12447 #################################################
12448 # check for automount support
12449 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
12450 echo "configure:12451: checking whether to use AUTOMOUNT" >&5
12451 # Check whether --with-automount or --without-automount was given.
12452 if test "${with_automount+set}" = set; then
12453 withval
="$with_automount"
12456 echo "$ac_t""yes" 1>&6
12457 cat >> confdefs.h
<<\EOF
12458 #define WITH_AUTOMOUNT 1
12463 echo "$ac_t""no" 1>&6
12467 echo "$ac_t""no" 1>&6
12472 #################################################
12473 # check for smbmount support
12474 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
12475 echo "configure:12476: checking whether to use SMBMOUNT" >&5
12476 # Check whether --with-smbmount or --without-smbmount was given.
12477 if test "${with_smbmount+set}" = set; then
12478 withval
="$with_smbmount"
12483 echo "$ac_t""yes" 1>&6
12484 cat >> confdefs.h
<<\EOF
12485 #define WITH_SMBMOUNT 1
12488 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
12491 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
12496 echo "$ac_t""no" 1>&6
12501 echo "$ac_t""no" 1>&6
12508 #################################################
12509 # check for a PAM clear-text auth, accounts, password and session support
12510 with_pam_for_crypt
=no
12511 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
12512 echo "configure:12513: checking whether to use PAM" >&5
12513 # Check whether --with-pam or --without-pam was given.
12514 if test "${with_pam+set}" = set; then
12515 withval
="$with_pam"
12518 echo "$ac_t""yes" 1>&6
12519 cat >> confdefs.h
<<\EOF
12524 with_pam_for_crypt
=yes
12527 echo "$ac_t""no" 1>&6
12531 echo "$ac_t""no" 1>&6
12536 # we can't build a pam module if we don't have pam.
12537 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
12538 echo "configure:12539: checking for pam_get_data in -lpam" >&5
12539 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
12540 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12541 echo $ac_n "(cached) $ac_c" 1>&6
12543 ac_save_LIBS
="$LIBS"
12545 cat > conftest.
$ac_ext <<EOF
12546 #line 12547 "configure"
12547 #include "confdefs.h"
12548 /* Override any gcc2 internal prototype to avoid an error. */
12549 /* We use char because int might match the return type of a gcc2
12550 builtin and then its argument prototype would still apply. */
12551 char pam_get_data();
12557 if { (eval echo configure
:12558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12559 eval "ac_cv_lib_$ac_lib_var=yes"
12561 echo "configure: failed program was:" >&5
12562 cat conftest.
$ac_ext >&5
12564 eval "ac_cv_lib_$ac_lib_var=no"
12567 LIBS
="$ac_save_LIBS"
12570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12571 echo "$ac_t""yes" 1>&6
12572 cat >> confdefs.h
<<\EOF
12573 #define HAVE_LIBPAM 1
12577 echo "$ac_t""no" 1>&6
12581 #################################################
12582 # check for pam_smbpass support
12583 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
12584 echo "configure:12585: checking whether to use pam_smbpass" >&5
12585 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
12586 if test "${with_pam_smbpass+set}" = set; then
12587 withval
="$with_pam_smbpass"
12590 echo "$ac_t""yes" 1>&6
12592 # Conditions under which pam_smbpass should not be built.
12594 if test x
$PICFLAG = x
; then
12595 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
12597 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
12598 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
12601 PAM_MOD
="bin/pam_smbpass.so"
12605 echo "$ac_t""no" 1>&6
12609 echo "$ac_t""no" 1>&6
12615 ###############################################
12616 # test for where we get crypt() from, but only
12618 if test $with_pam_for_crypt = no
; then
12619 for ac_func
in crypt
12621 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12622 echo "configure:12623: checking for $ac_func" >&5
12623 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12624 echo $ac_n "(cached) $ac_c" 1>&6
12626 cat > conftest.
$ac_ext <<EOF
12627 #line 12628 "configure"
12628 #include "confdefs.h"
12629 /* System header to define __stub macros and hopefully few prototypes,
12630 which can conflict with char $ac_func(); below. */
12631 #include <assert.h>
12632 /* Override any gcc2 internal prototype to avoid an error. */
12633 /* We use char because int might match the return type of a gcc2
12634 builtin and then its argument prototype would still apply. */
12639 /* The GNU C library defines this for functions which it implements
12640 to always fail with ENOSYS. Some functions are actually named
12641 something starting with __ and the normal name is an alias. */
12642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12650 if { (eval echo configure
:12651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12652 eval "ac_cv_func_$ac_func=yes"
12654 echo "configure: failed program was:" >&5
12655 cat conftest.
$ac_ext >&5
12657 eval "ac_cv_func_$ac_func=no"
12662 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12663 echo "$ac_t""yes" 1>&6
12664 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12665 cat >> confdefs.h
<<EOF
12666 #define $ac_tr_func 1
12670 echo "$ac_t""no" 1>&6
12674 if test x
"$ac_cv_func_crypt" = x
"no"; then
12675 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12676 echo "configure:12677: checking for crypt in -lcrypt" >&5
12677 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12678 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12679 echo $ac_n "(cached) $ac_c" 1>&6
12681 ac_save_LIBS
="$LIBS"
12682 LIBS
="-lcrypt $LIBS"
12683 cat > conftest.
$ac_ext <<EOF
12684 #line 12685 "configure"
12685 #include "confdefs.h"
12686 /* Override any gcc2 internal prototype to avoid an error. */
12687 /* We use char because int might match the return type of a gcc2
12688 builtin and then its argument prototype would still apply. */
12695 if { (eval echo configure
:12696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12697 eval "ac_cv_lib_$ac_lib_var=yes"
12699 echo "configure: failed program was:" >&5
12700 cat conftest.
$ac_ext >&5
12702 eval "ac_cv_lib_$ac_lib_var=no"
12705 LIBS
="$ac_save_LIBS"
12708 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12709 echo "$ac_t""yes" 1>&6
12710 LIBS
="$LIBS -lcrypt";
12711 cat >> confdefs.h
<<\EOF
12712 #define HAVE_CRYPT 1
12716 echo "$ac_t""no" 1>&6
12723 ## moved after the check for -lcrypt in order to
12724 ## ensure that the necessary libraries are included
12725 ## check checking for truncated salt. Wrapped by the
12726 ## $with_pam_for_crypt variable as above --jerry
12728 if test $with_pam_for_crypt = no
; then
12729 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12730 echo "configure:12731: checking for a crypt that needs truncated salt" >&5
12731 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12732 echo $ac_n "(cached) $ac_c" 1>&6
12735 if test "$cross_compiling" = yes; then
12736 samba_cv_HAVE_TRUNCATED_SALT
=cross
12738 cat > conftest.
$ac_ext <<EOF
12739 #line 12740 "configure"
12740 #include "confdefs.h"
12741 #include "${srcdir-.}/tests/crypttest.c"
12743 if { (eval echo configure
:12744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12745 samba_cv_HAVE_TRUNCATED_SALT
=no
12747 echo "configure: failed program was:" >&5
12748 cat conftest.
$ac_ext >&5
12750 samba_cv_HAVE_TRUNCATED_SALT
=yes
12757 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12758 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
12759 cat >> confdefs.h
<<\EOF
12760 #define HAVE_TRUNCATED_SALT 1
12768 ########################################################################################
12770 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12772 ########################################################################################
12774 #################################################
12775 # check for a TDB password database
12776 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12777 echo "configure:12778: checking whether to use TDB SAM database" >&5
12778 # Check whether --with-tdbsam or --without-tdbsam was given.
12779 if test "${with_tdbsam+set}" = set; then
12780 withval
="$with_tdbsam"
12783 echo "$ac_t""yes" 1>&6
12784 cat >> confdefs.h
<<\EOF
12785 #define WITH_TDB_SAM 1
12790 echo "$ac_t""no" 1>&6
12794 echo "$ac_t""no" 1>&6
12799 #################################################
12800 # check for a NISPLUS password database
12801 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12802 echo "configure:12803: checking whether to use NISPLUS SAM database" >&5
12803 # Check whether --with-nisplussam or --without-nisplussam was given.
12804 if test "${with_nisplussam+set}" = set; then
12805 withval
="$with_nisplussam"
12808 echo "$ac_t""yes" 1>&6
12809 cat >> confdefs.h
<<\EOF
12810 #define WITH_NISPLUS_SAM 1
12815 echo "$ac_t""no" 1>&6
12819 echo "$ac_t""no" 1>&6
12824 ########################################################################################
12826 ## END OF TESTS FOR SAM BACKENDS.
12828 ########################################################################################
12830 #################################################
12831 # check for a NISPLUS_HOME support
12832 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12833 echo "configure:12834: checking whether to use NISPLUS_HOME" >&5
12834 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12835 if test "${with_nisplus_home+set}" = set; then
12836 withval
="$with_nisplus_home"
12839 echo "$ac_t""yes" 1>&6
12840 cat >> confdefs.h
<<\EOF
12841 #define WITH_NISPLUS_HOME 1
12846 echo "$ac_t""no" 1>&6
12850 echo "$ac_t""no" 1>&6
12855 #################################################
12856 # check for syslog logging
12857 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12858 echo "configure:12859: checking whether to use syslog logging" >&5
12859 # Check whether --with-syslog or --without-syslog was given.
12860 if test "${with_syslog+set}" = set; then
12861 withval
="$with_syslog"
12864 echo "$ac_t""yes" 1>&6
12865 cat >> confdefs.h
<<\EOF
12866 #define WITH_SYSLOG 1
12871 echo "$ac_t""no" 1>&6
12875 echo "$ac_t""no" 1>&6
12880 #################################################
12881 # check for a shared memory profiling support
12882 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12883 echo "configure:12884: checking whether to use profiling" >&5
12884 # Check whether --with-profiling-data or --without-profiling-data was given.
12885 if test "${with_profiling_data+set}" = set; then
12886 withval
="$with_profiling_data"
12889 echo "$ac_t""yes" 1>&6
12890 cat >> confdefs.h
<<\EOF
12891 #define WITH_PROFILE 1
12896 echo "$ac_t""no" 1>&6
12900 echo "$ac_t""no" 1>&6
12906 #################################################
12907 # check for experimental disk-quotas support
12908 QUOTAOBJS
=smbd
/noquotas.o
12910 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12911 echo "configure:12912: checking whether to support disk-quotas" >&5
12912 # Check whether --with-quotas or --without-quotas was given.
12913 if test "${with_quotas+set}" = set; then
12914 withval
="$with_quotas"
12917 echo "$ac_t""yes" 1>&6
12920 # Check for kernel 2.4.x quota braindamage...
12921 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
12922 echo "configure:12923: checking for linux 2.4.x quota braindamage.." >&5
12923 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
12924 echo $ac_n "(cached) $ac_c" 1>&6
12927 cat > conftest.
$ac_ext <<EOF
12928 #line 12929 "configure"
12929 #include "confdefs.h"
12931 #include <sys/types.h>
12932 #include <asm/types.h>
12933 #include <linux/quota.h>
12934 #include <mntent.h>
12935 #include <linux/unistd.h>
12937 struct mem_dqblk D;
12940 if { (eval echo configure
:12941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12942 samba_cv_linux_2_4_quota_braindamage
=yes
12944 echo "configure: failed program was:" >&5
12945 cat conftest.
$ac_ext >&5
12947 samba_cv_linux_2_4_quota_braindamage
=no
12952 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
12953 if test x
"$samba_cv_linux_2_4_quota_braindamage" = x
"yes"; then
12954 cat >> confdefs.h
<<\EOF
12955 #define LINUX_QUOTAS_2 1
12959 cat >> confdefs.h
<<\EOF
12960 #define LINUX_QUOTAS_1 1
12968 QUOTAOBJS
=smbd
/quotas.o
12969 cat >> confdefs.h
<<\EOF
12970 #define WITH_QUOTAS 1
12975 echo "$ac_t""no" 1>&6
12979 echo "$ac_t""no" 1>&6
12985 #################################################
12986 # check for experimental utmp accounting
12988 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12989 echo "configure:12990: checking whether to support utmp accounting" >&5
12990 # Check whether --with-utmp or --without-utmp was given.
12991 if test "${with_utmp+set}" = set; then
12992 withval
="$with_utmp"
12995 echo "$ac_t""yes" 1>&6
12996 cat >> confdefs.h
<<\EOF
12997 #define WITH_UTMP 1
13002 echo "$ac_t""no" 1>&6
13006 echo "$ac_t""no" 1>&6
13011 #################################################
13012 # choose native language(s) of man pages
13013 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
13014 echo "configure:13015: checking chosen man pages' language(s)" >&5
13015 # Check whether --with-manpages-langs or --without-manpages-langs was given.
13016 if test "${with_manpages_langs+set}" = set; then
13017 withval
="$with_manpages_langs"
13020 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
13024 manlangs
="$withval"
13028 echo "$ac_t""$manlangs" 1>&6
13029 manlangs
=`echo $manlangs | sed "s/,/ /"` # replacing commas with spaces to produce a list
13033 echo "$ac_t""$manlangs" 1>&6
13039 #################################################
13040 # should we build libsmbclient?
13042 LIBSMBCLIENT_SHARED
=
13044 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
13045 echo "configure:13046: checking whether to build the libsmbclient shared library" >&5
13046 # Check whether --with-libsmbclient or --without-libsmbclient was given.
13047 if test "${with_libsmbclient+set}" = set; then
13048 withval
="$with_libsmbclient"
13051 echo "$ac_t""no" 1>&6
13054 if test $BLDSHARED = true
; then
13055 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
13056 LIBSMBCLIENT
=libsmbclient
13057 echo "$ac_t""yes" 1>&6
13059 echo "$ac_t""no shared library support" 1>&6
13064 echo "$ac_t""yes" 1>&6
13070 #################################################
13071 # these tests are taken from the GNU fileutils package
13072 echo "checking how to get filesystem space usage" 1>&6
13073 echo "configure:13074: checking how to get filesystem space usage" >&5
13076 # Test for statvfs64.
13077 if test $space = no
; then
13079 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
13080 echo "configure:13081: checking statvfs64 function (SVR4)" >&5
13081 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
13082 echo $ac_n "(cached) $ac_c" 1>&6
13084 if test "$cross_compiling" = yes; then
13085 fu_cv_sys_stat_statvfs64
=cross
13087 cat > conftest.
$ac_ext <<EOF
13088 #line 13089 "configure"
13089 #include "confdefs.h"
13091 #if defined(HAVE_UNISTD_H)
13092 #include <unistd.h>
13094 #include <sys/types.h>
13095 #include <sys/statvfs.h>
13098 struct statvfs64 fsd;
13099 exit (statvfs64 (".", &fsd));
13102 if { (eval echo configure
:13103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13104 fu_cv_sys_stat_statvfs64
=yes
13106 echo "configure: failed program was:" >&5
13107 cat conftest.
$ac_ext >&5
13109 fu_cv_sys_stat_statvfs64
=no
13116 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
13117 if test $fu_cv_sys_stat_statvfs64 = yes; then
13119 cat >> confdefs.h
<<\EOF
13120 #define STAT_STATVFS64 1
13126 # Perform only the link test since it seems there are no variants of the
13127 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
13128 # because that got a false positive on SCO OSR5. Adding the declaration
13129 # of a `struct statvfs' causes this test to fail (as it should) on such
13130 # systems. That system is reported to work fine with STAT_STATFS4 which
13131 # is what it gets when this test fails.
13132 if test $space = no
; then
13134 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
13135 echo "configure:13136: checking statvfs function (SVR4)" >&5
13136 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
13137 echo $ac_n "(cached) $ac_c" 1>&6
13139 cat > conftest.
$ac_ext <<EOF
13140 #line 13141 "configure"
13141 #include "confdefs.h"
13142 #include <sys/types.h>
13143 #include <sys/statvfs.h>
13145 struct statvfs fsd; statvfs (0, &fsd);
13148 if { (eval echo configure
:13149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13150 fu_cv_sys_stat_statvfs
=yes
13152 echo "configure: failed program was:" >&5
13153 cat conftest.
$ac_ext >&5
13155 fu_cv_sys_stat_statvfs
=no
13160 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
13161 if test $fu_cv_sys_stat_statvfs = yes; then
13163 cat >> confdefs.h
<<\EOF
13164 #define STAT_STATVFS 1
13170 if test $space = no
; then
13171 # DEC Alpha running OSF/1
13172 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
13173 echo "configure:13174: checking for 3-argument statfs function (DEC OSF/1)" >&5
13174 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
13175 echo $ac_n "(cached) $ac_c" 1>&6
13177 if test "$cross_compiling" = yes; then
13178 fu_cv_sys_stat_statfs3_osf1
=no
13180 cat > conftest.
$ac_ext <<EOF
13181 #line 13182 "configure"
13182 #include "confdefs.h"
13184 #include <sys/param.h>
13185 #include <sys/types.h>
13186 #include <sys/mount.h>
13191 exit (statfs (".", &fsd, sizeof (struct statfs)));
13194 if { (eval echo configure
:13195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13196 fu_cv_sys_stat_statfs3_osf1
=yes
13198 echo "configure: failed program was:" >&5
13199 cat conftest.
$ac_ext >&5
13201 fu_cv_sys_stat_statfs3_osf1
=no
13208 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
13209 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
13211 cat >> confdefs.h
<<\EOF
13212 #define STAT_STATFS3_OSF1 1
13218 if test $space = no
; then
13220 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
13221 echo "configure:13222: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
13222 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
13223 echo $ac_n "(cached) $ac_c" 1>&6
13225 if test "$cross_compiling" = yes; then
13226 fu_cv_sys_stat_statfs2_bsize
=no
13228 cat > conftest.
$ac_ext <<EOF
13229 #line 13230 "configure"
13230 #include "confdefs.h"
13232 #ifdef HAVE_SYS_PARAM_H
13233 #include <sys/param.h>
13235 #ifdef HAVE_SYS_MOUNT_H
13236 #include <sys/mount.h>
13238 #ifdef HAVE_SYS_VFS_H
13239 #include <sys/vfs.h>
13245 exit (statfs (".", &fsd));
13248 if { (eval echo configure
:13249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13250 fu_cv_sys_stat_statfs2_bsize
=yes
13252 echo "configure: failed program was:" >&5
13253 cat conftest.
$ac_ext >&5
13255 fu_cv_sys_stat_statfs2_bsize
=no
13262 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
13263 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
13265 cat >> confdefs.h
<<\EOF
13266 #define STAT_STATFS2_BSIZE 1
13272 if test $space = no
; then
13274 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
13275 echo "configure:13276: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
13276 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
13277 echo $ac_n "(cached) $ac_c" 1>&6
13279 if test "$cross_compiling" = yes; then
13280 fu_cv_sys_stat_statfs4
=no
13282 cat > conftest.
$ac_ext <<EOF
13283 #line 13284 "configure"
13284 #include "confdefs.h"
13285 #include <sys/types.h>
13286 #include <sys/statfs.h>
13290 exit (statfs (".", &fsd, sizeof fsd, 0));
13293 if { (eval echo configure
:13294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13295 fu_cv_sys_stat_statfs4
=yes
13297 echo "configure: failed program was:" >&5
13298 cat conftest.
$ac_ext >&5
13300 fu_cv_sys_stat_statfs4
=no
13307 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
13308 if test $fu_cv_sys_stat_statfs4 = yes; then
13310 cat >> confdefs.h
<<\EOF
13311 #define STAT_STATFS4 1
13317 if test $space = no
; then
13318 # 4.4BSD and NetBSD
13319 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
13320 echo "configure:13321: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
13321 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
13322 echo $ac_n "(cached) $ac_c" 1>&6
13324 if test "$cross_compiling" = yes; then
13325 fu_cv_sys_stat_statfs2_fsize
=no
13327 cat > conftest.
$ac_ext <<EOF
13328 #line 13329 "configure"
13329 #include "confdefs.h"
13330 #include <sys/types.h>
13331 #ifdef HAVE_SYS_PARAM_H
13332 #include <sys/param.h>
13334 #ifdef HAVE_SYS_MOUNT_H
13335 #include <sys/mount.h>
13341 exit (statfs (".", &fsd));
13344 if { (eval echo configure
:13345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13346 fu_cv_sys_stat_statfs2_fsize
=yes
13348 echo "configure: failed program was:" >&5
13349 cat conftest.
$ac_ext >&5
13351 fu_cv_sys_stat_statfs2_fsize
=no
13358 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
13359 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
13361 cat >> confdefs.h
<<\EOF
13362 #define STAT_STATFS2_FSIZE 1
13368 if test $space = no
; then
13370 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
13371 echo "configure:13372: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13372 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
13373 echo $ac_n "(cached) $ac_c" 1>&6
13375 if test "$cross_compiling" = yes; then
13376 fu_cv_sys_stat_fs_data
=no
13378 cat > conftest.
$ac_ext <<EOF
13379 #line 13380 "configure"
13380 #include "confdefs.h"
13381 #include <sys/types.h>
13382 #ifdef HAVE_SYS_PARAM_H
13383 #include <sys/param.h>
13385 #ifdef HAVE_SYS_MOUNT_H
13386 #include <sys/mount.h>
13388 #ifdef HAVE_SYS_FS_TYPES_H
13389 #include <sys/fs_types.h>
13393 struct fs_data fsd;
13394 /* Ultrix's statfs returns 1 for success,
13395 0 for not mounted, -1 for failure. */
13396 exit (statfs (".", &fsd) != 1);
13399 if { (eval echo configure
:13400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13401 fu_cv_sys_stat_fs_data
=yes
13403 echo "configure: failed program was:" >&5
13404 cat conftest.
$ac_ext >&5
13406 fu_cv_sys_stat_fs_data
=no
13413 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
13414 if test $fu_cv_sys_stat_fs_data = yes; then
13416 cat >> confdefs.h
<<\EOF
13417 #define STAT_STATFS2_FS_DATA 1
13424 # As a gating factor for large file support, in order to
13425 # use <4GB files we must have the following minimal support
13427 # long long, and a 64 bit off_t or off64_t.
13428 # If we don't have all of these then disable large
13431 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
13432 echo "configure:13433: checking if large file support can be enabled" >&5
13433 cat > conftest.
$ac_ext <<EOF
13434 #line 13435 "configure"
13435 #include "confdefs.h"
13437 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13438 #include <sys/types.h>
13447 if { (eval echo configure
:13448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13449 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
13451 echo "configure: failed program was:" >&5
13452 cat conftest.
$ac_ext >&5
13454 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
13457 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
13458 cat >> confdefs.h
<<\EOF
13459 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13463 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
13465 # Check whether --with-spinlocks or --without-spinlocks was given.
13466 if test "${with_spinlocks+set}" = set; then
13467 withval
="$with_spinlocks"
13471 if test "x$with_spinlocks" = "xyes"; then
13472 cat >> confdefs.h
<<\EOF
13473 #define USE_SPINLOCKS 1
13477 case "$host_cpu" in
13479 cat >> confdefs.h
<<\EOF
13480 #define SPARC_SPINLOCKS 1
13485 i386|i486|i586|i686
)
13486 cat >> confdefs.h
<<\EOF
13487 #define INTEL_SPINLOCKS 1
13493 cat >> confdefs.h
<<\EOF
13494 #define MIPS_SPINLOCKS 1
13500 cat >> confdefs.h
<<\EOF
13501 #define POWERPC_SPINLOCKS 1
13508 #################################################
13509 # check for ACL support
13511 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13512 echo "configure:13513: checking whether to support ACLs" >&5
13513 # Check whether --with-acl-support or --without-acl-support was given.
13514 if test "${with_acl_support+set}" = set; then
13515 withval
="$with_acl_support"
13521 echo "$ac_t""Using UnixWare ACLs" 1>&6
13522 cat >> confdefs.h
<<\EOF
13523 #define HAVE_UNIXWARE_ACLS 1
13528 echo "$ac_t""Using solaris ACLs" 1>&6
13529 cat >> confdefs.h
<<\EOF
13530 #define HAVE_SOLARIS_ACLS 1
13535 echo "$ac_t""Using HPUX ACLs" 1>&6
13536 cat >> confdefs.h
<<\EOF
13537 #define HAVE_HPUX_ACLS 1
13542 echo "$ac_t""Using IRIX ACLs" 1>&6
13543 cat >> confdefs.h
<<\EOF
13544 #define HAVE_IRIX_ACLS 1
13549 echo "$ac_t""Using AIX ACLs" 1>&6
13550 cat >> confdefs.h
<<\EOF
13551 #define HAVE_AIX_ACLS 1
13556 echo "$ac_t""Using Tru64 ACLs" 1>&6
13557 cat >> confdefs.h
<<\EOF
13558 #define HAVE_TRU64_ACLS 1
13561 LIBS
="$LIBS -lpacl"
13564 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13565 echo "configure:13566: checking for acl_get_file in -lacl" >&5
13566 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13567 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13568 echo $ac_n "(cached) $ac_c" 1>&6
13570 ac_save_LIBS
="$LIBS"
13572 cat > conftest.
$ac_ext <<EOF
13573 #line 13574 "configure"
13574 #include "confdefs.h"
13575 /* Override any gcc2 internal prototype to avoid an error. */
13576 /* We use char because int might match the return type of a gcc2
13577 builtin and then its argument prototype would still apply. */
13578 char acl_get_file();
13584 if { (eval echo configure
:13585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13586 eval "ac_cv_lib_$ac_lib_var=yes"
13588 echo "configure: failed program was:" >&5
13589 cat conftest.
$ac_ext >&5
13591 eval "ac_cv_lib_$ac_lib_var=no"
13594 LIBS
="$ac_save_LIBS"
13597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13598 echo "$ac_t""yes" 1>&6
13599 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13600 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13601 cat >> confdefs.h
<<EOF
13602 #define $ac_tr_lib 1
13608 echo "$ac_t""no" 1>&6
13611 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13612 echo "configure:13613: checking for ACL support" >&5
13613 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13614 echo $ac_n "(cached) $ac_c" 1>&6
13617 cat > conftest.
$ac_ext <<EOF
13618 #line 13619 "configure"
13619 #include "confdefs.h"
13620 #include <sys/types.h>
13621 #include <sys/acl.h>
13623 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13626 if { (eval echo configure
:13627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13628 samba_cv_HAVE_POSIX_ACLS
=yes
13630 echo "configure: failed program was:" >&5
13631 cat conftest.
$ac_ext >&5
13633 samba_cv_HAVE_POSIX_ACLS
=no
13638 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13639 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
13640 echo "$ac_t""Using posix ACLs" 1>&6
13641 cat >> confdefs.h
<<\EOF
13642 #define HAVE_POSIX_ACLS 1
13645 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13646 echo "configure:13647: checking for acl_get_perm_np" >&5
13647 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13648 echo $ac_n "(cached) $ac_c" 1>&6
13651 cat > conftest.
$ac_ext <<EOF
13652 #line 13653 "configure"
13653 #include "confdefs.h"
13654 #include <sys/types.h>
13655 #include <sys/acl.h>
13657 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13660 if { (eval echo configure
:13661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13662 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
13664 echo "configure: failed program was:" >&5
13665 cat conftest.
$ac_ext >&5
13667 samba_cv_HAVE_ACL_GET_PERM_NP
=no
13672 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13673 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
13674 cat >> confdefs.h
<<\EOF
13675 #define HAVE_ACL_GET_PERM_NP 1
13684 echo "$ac_t""no" 1>&6
13685 cat >> confdefs.h
<<\EOF
13686 #define HAVE_NO_ACLS 1
13692 cat >> confdefs.h
<<\EOF
13693 #define HAVE_NO_ACLS 1
13696 echo "$ac_t""no" 1>&6
13701 #################################################
13702 # Check whether winbind is supported on this platform. If so we need to
13703 # build and install client programs (WINBIND_TARGETS), sbin programs
13704 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13706 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13707 echo "configure:13708: checking whether to build winbind" >&5
13709 # Initially, the value of $host_os decides whether winbind is supported
13717 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
13718 WINBIND_NSS_EXTRA_LIBS
="-lsocket"
13722 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
13726 winbind_no_reason
=", unsupported on $host_os"
13730 # Check the setting of --with-winbindd
13732 # Check whether --with-winbind or --without-winbind was given.
13733 if test "${with_winbind+set}" = set; then
13734 withval
="$with_winbind"
13748 # We need unix domain sockets for winbind
13750 if test x
"$HAVE_WINBIND" = x
"yes"; then
13751 if test x
"$samba_cv_unixsocket" = x
"no"; then
13752 winbind_no_reason
=", no unix domain socket support on $host_os"
13757 # Display test results
13760 WINBIND_STARGETS
=""
13761 WINBIND_LTARGETS
=""
13762 WINBIND_PAM_PROGS
=""
13764 if test x
"$HAVE_WINBIND" = x
"yes"; then
13765 echo "$ac_t""yes" 1>&6
13767 WINBIND_TARGETS
="bin/wbinfo"
13768 WINBIND_STARGETS
="bin/winbindd"
13769 if test x
"$BLDSHARED" = x
"true"; then
13770 WINBIND_LTARGETS
="nsswitch/libnss_winbind.so"
13771 if test x
"$with_pam" = x
"yes"; then
13772 WINBIND_PAM_TARGETS
="nsswitch/pam_winbind.so"
13776 echo "$ac_t""no$winbind_no_reason" 1>&6
13780 # Check for FreeBSD problem with getgroups
13781 # It returns EGID too many times in the list of groups
13782 # and causes a security problem
13783 echo $ac_n "checking whether or not getgroups returns EGID too many times""... $ac_c" 1>&6
13784 echo "configure:13785: checking whether or not getgroups returns EGID too many times" >&5
13785 if eval "test \"`echo '$''{'samba_cv_have_getgroups_too_many_egids'+set}'`\" = set"; then
13786 echo $ac_n "(cached) $ac_c" 1>&6
13788 if test "$cross_compiling" = yes; then
13789 samba_cv_have_getgroups_too_many_egids
=cross
13791 cat > conftest.
$ac_ext <<EOF
13792 #line 13793 "configure"
13793 #include "confdefs.h"
13795 #include <sys/types.h>
13798 int main(int argc, char *argv[])
13803 n = getgroups(n, &groups);
13804 /* Could actually pass back the number of EGIDs there ... */
13805 exit((n > 1 && groups[0] == getegid() && groups[1] == getegid()) ? 1 : 0);
13808 if { (eval echo configure
:13809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13810 samba_cv_have_getgroups_too_many_egids
=no
13812 echo "configure: failed program was:" >&5
13813 cat conftest.
$ac_ext >&5
13815 samba_cv_have_getgroups_too_many_egids
=yes
13822 echo "$ac_t""$samba_cv_have_getgroups_too_many_egids" 1>&6
13823 if test x
"$samba_cv_have_getgroups_too_many_egids" = x
"yes"; then
13824 cat >> confdefs.h
<<\EOF
13825 #define HAVE_GETGROUPS_TOO_MANY_EGIDS 1
13832 # Substitution time!
13841 # Solaris has some extra fields in struct passwd that need to be
13842 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
13843 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
13846 #AC_CHECK_MEMBER(struct passwd.pw_comment,
13847 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
13848 # [#include <pwd.h>])
13850 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
13851 echo "configure:13852: checking whether struct passwd has pw_comment" >&5
13852 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
13853 echo $ac_n "(cached) $ac_c" 1>&6
13856 cat > conftest.
$ac_ext <<EOF
13857 #line 13858 "configure"
13858 #include "confdefs.h"
13861 struct passwd p; p.pw_comment;
13864 if { (eval echo configure
:13865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13866 samba_cv_passwd_pw_comment
=yes
13868 echo "configure: failed program was:" >&5
13869 cat conftest.
$ac_ext >&5
13871 samba_cv_passwd_pw_comment
=no
13876 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
13877 if test x
"$samba_cv_passwd_pw_comment" = x
"yes"; then
13878 cat >> confdefs.h
<<\EOF
13879 #define HAVE_PASSWD_PW_COMMENT 1
13884 #AC_CHECK_MEMBER(struct passwd.pw_age,
13885 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
13886 # [#include <pwd.h>])
13888 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
13889 echo "configure:13890: checking whether struct passwd has pw_age" >&5
13890 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
13891 echo $ac_n "(cached) $ac_c" 1>&6
13894 cat > conftest.
$ac_ext <<EOF
13895 #line 13896 "configure"
13896 #include "confdefs.h"
13899 struct passwd p; p.pw_age;
13902 if { (eval echo configure
:13903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13904 samba_cv_passwd_pw_age
=yes
13906 echo "configure: failed program was:" >&5
13907 cat conftest.
$ac_ext >&5
13909 samba_cv_passwd_pw_age
=no
13914 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
13915 if test x
"$samba_cv_passwd_pw_age" = x
"yes"; then
13916 cat >> confdefs.h
<<\EOF
13917 #define HAVE_PASSWD_PW_AGE 1
13922 #################################################
13923 # Check to see if we should use the included popt
13925 # Check whether --with-included-popt or --without-included-popt was given.
13926 if test "${with_included_popt+set}" = set; then
13927 withval
="$with_included_popt"
13939 if test x
"$INCLUDED_POPT" != x
"yes"; then
13940 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13941 echo "configure:13942: checking for poptGetContext in -lpopt" >&5
13942 ac_lib_var
=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13943 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13944 echo $ac_n "(cached) $ac_c" 1>&6
13946 ac_save_LIBS
="$LIBS"
13947 LIBS
="-lpopt $LIBS"
13948 cat > conftest.
$ac_ext <<EOF
13949 #line 13950 "configure"
13950 #include "confdefs.h"
13951 /* Override any gcc2 internal prototype to avoid an error. */
13952 /* We use char because int might match the return type of a gcc2
13953 builtin and then its argument prototype would still apply. */
13954 char poptGetContext();
13960 if { (eval echo configure
:13961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13962 eval "ac_cv_lib_$ac_lib_var=yes"
13964 echo "configure: failed program was:" >&5
13965 cat conftest.
$ac_ext >&5
13967 eval "ac_cv_lib_$ac_lib_var=no"
13970 LIBS
="$ac_save_LIBS"
13973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13974 echo "$ac_t""yes" 1>&6
13977 echo "$ac_t""no" 1>&6
13983 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
13984 echo "configure:13985: checking whether to use included popt" >&5
13985 if test x
"$INCLUDED_POPT" = x
"yes"; then
13986 echo "$ac_t""$srcdir/popt" 1>&6
13987 BUILD_POPT
='$(POPT_OBJS)'
13988 FLAGS1
="-I$srcdir/popt"
13990 echo "$ac_t""no" 1>&6
13991 LIBS
="$LIBS -lpopt"
13996 #################################################
13997 # do extra things if we are running insure
13999 if test "${ac_cv_prog_CC}" = "insure"; then
14000 CPPFLAGS
="$CPPFLAGS -D__INSURE__"
14003 #################################################
14004 # final configure stuff
14006 echo $ac_n "checking configure summary""... $ac_c" 1>&6
14007 echo "configure:14008: checking configure summary" >&5
14008 if test "$cross_compiling" = yes; then
14009 echo "configure: warning: cannot run when cross-compiling" 1>&2
14011 cat > conftest.
$ac_ext <<EOF
14012 #line 14013 "configure"
14013 #include "confdefs.h"
14014 #include "${srcdir-.}/tests/summary.c"
14016 if { (eval echo configure
:14017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14018 echo "$ac_t""yes" 1>&6
14020 echo "configure: failed program was:" >&5
14021 cat conftest.
$ac_ext >&5
14023 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
14033 cat > confcache
<<\EOF
14034 # This file is a shell script that caches the results of configure
14035 # tests run on this system so they can be shared between configure
14036 # scripts and configure runs. It is not useful on other systems.
14037 # If it contains results you don't want to keep, you may remove or edit it.
14039 # By default, configure uses ./config.cache as the cache file,
14040 # creating it if it does not exist already. You can give configure
14041 # the --cache-file=FILE option to use a different cache file; that is
14042 # what configure does when it calls configure scripts in
14043 # subdirectories, so they share the cache.
14044 # Giving --cache-file=/dev/null disables caching, for debugging configure.
14045 # config.status only pays attention to the cache file if you give it the
14046 # --recheck option to rerun configure.
14049 # The following way of writing the cache mishandles newlines in values,
14050 # but we know of no workaround that is simple, portable, and efficient.
14051 # So, don't put newlines in cache variables' values.
14052 # Ultrix sh set writes to stderr and can't be redirected directly,
14053 # and sets the high bit in the cache file unless we assign to the vars.
14055 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14057 # `set' does not quote correctly, so add quotes (double-quote substitution
14058 # turns \\\\ into \\, and sed turns \\ into \).
14060 -e "s/'/'\\\\''/g" \
14061 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14064 # `set' quotes correctly as required by POSIX, so do not add quotes.
14065 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14068 if cmp -s $cache_file confcache
; then
14071 if test -w $cache_file; then
14072 echo "updating cache $cache_file"
14073 cat confcache
> $cache_file
14075 echo "not updating unwritable cache $cache_file"
14080 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14082 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14083 # Let make expand exec_prefix.
14084 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14086 # Any assignment to VPATH causes Sun make to only execute
14087 # the first set of double-colon rules, so remove it if not needed.
14088 # If there is a colon in the path, we need to keep it.
14089 if test "x$srcdir" = x.
; then
14090 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
14093 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14095 DEFS
=-DHAVE_CONFIG_H
14097 # Without the "./", some shells look in PATH for config.status.
14098 : ${CONFIG_STATUS=./config.status}
14100 echo creating
$CONFIG_STATUS
14101 rm -f $CONFIG_STATUS
14102 cat > $CONFIG_STATUS <<EOF
14104 # Generated automatically by configure.
14105 # Run this file to recreate the current configuration.
14106 # This directory was configured as follows,
14107 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14109 # $0 $ac_configure_args
14111 # Compiler output produced by configure, useful for debugging
14112 # configure, is in ./config.log if it exists.
14114 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14117 case "\$ac_option" in
14118 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14119 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14120 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14121 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14122 echo "$CONFIG_STATUS generated by autoconf version 2.13"
14124 -help | --help | --hel | --he | --h)
14125 echo "\$ac_cs_usage"; exit 0 ;;
14126 *) echo "\$ac_cs_usage"; exit 1 ;;
14130 ac_given_srcdir=$srcdir
14131 ac_given_INSTALL="$INSTALL"
14133 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14135 cat >> $CONFIG_STATUS <<EOF
14137 # Protect against being on the right side of a sed subst in config.status.
14138 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14139 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14143 s%@CFLAGS@%$CFLAGS%g
14144 s%@CPPFLAGS@%$CPPFLAGS%g
14145 s%@CXXFLAGS@%$CXXFLAGS%g
14146 s%@FFLAGS@%$FFLAGS%g
14148 s%@LDFLAGS@%$LDFLAGS%g
14150 s%@exec_prefix@%$exec_prefix%g
14151 s%@prefix@%$prefix%g
14152 s%@program_transform_name@%$program_transform_name%g
14153 s%@bindir@%$bindir%g
14154 s%@sbindir@%$sbindir%g
14155 s%@libexecdir@%$libexecdir%g
14156 s%@datadir@%$datadir%g
14157 s%@sysconfdir@%$sysconfdir%g
14158 s%@sharedstatedir@%$sharedstatedir%g
14159 s%@localstatedir@%$localstatedir%g
14160 s%@libdir@%$libdir%g
14161 s%@includedir@%$includedir%g
14162 s%@oldincludedir@%$oldincludedir%g
14163 s%@infodir@%$infodir%g
14164 s%@mandir@%$mandir%g
14165 s%@configdir@%$configdir%g
14166 s%@lockdir@%$lockdir%g
14167 s%@piddir@%$piddir%g
14168 s%@logfilebase@%$logfilebase%g
14169 s%@privatedir@%$privatedir%g
14170 s%@swatdir@%$swatdir%g
14171 s%@RUNPROG@%$RUNPROG%g
14172 s%@MPROGS@%$MPROGS%g
14173 s%@LDSHFLAGS@%$LDSHFLAGS%g
14174 s%@SONAMEFLAG@%$SONAMEFLAG%g
14176 s%@HOST_OS@%$HOST_OS%g
14177 s%@PAM_MOD@%$PAM_MOD%g
14179 s%@WRAP32@%$WRAP32%g
14180 s%@WRAPPROG@%$WRAPPROG%g
14181 s%@PICFLAG@%$PICFLAG%g
14182 s%@PICSUFFIX@%$PICSUFFIX%g
14183 s%@POBAD_CC@%$POBAD_CC%g
14184 s%@SHLIBEXT@%$SHLIBEXT%g
14185 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
14186 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
14188 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14189 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14190 s%@INSTALL_DATA@%$INSTALL_DATA%g
14192 s%@BROKEN_CC@%$BROKEN_CC%g
14194 s%@host_alias@%$host_alias%g
14195 s%@host_cpu@%$host_cpu%g
14196 s%@host_vendor@%$host_vendor%g
14197 s%@host_os@%$host_os%g
14198 s%@target@%$target%g
14199 s%@target_alias@%$target_alias%g
14200 s%@target_cpu@%$target_cpu%g
14201 s%@target_vendor@%$target_vendor%g
14202 s%@target_os@%$target_os%g
14204 s%@build_alias@%$build_alias%g
14205 s%@build_cpu@%$build_cpu%g
14206 s%@build_vendor@%$build_vendor%g
14207 s%@build_os@%$build_os%g
14209 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
14210 s%@LIBOBJS@%$LIBOBJS%g
14211 s%@TERMLIBS@%$TERMLIBS%g
14212 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
14214 s%@DYNEXP@%$DYNEXP%g
14215 s%@QUOTAOBJS@%$QUOTAOBJS%g
14216 s%@manlangs@%$manlangs%g
14217 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
14218 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
14219 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
14220 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
14221 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
14222 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
14223 s%@BUILD_POPT@%$BUILD_POPT%g
14224 s%@FLAGS1@%$FLAGS1%g
14225 s%@builddir@%$builddir%g
14230 cat >> $CONFIG_STATUS <<\EOF
14232 # Split the substitutions into bite-sized pieces for seds with
14233 # small command number limits, like on Digital OSF/1 and HP-UX.
14234 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
14235 ac_file
=1 # Number of current file.
14236 ac_beg
=1 # First line for current file.
14237 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
14240 while $ac_more_lines; do
14241 if test $ac_beg -gt 1; then
14242 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
14244 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
14246 if test ! -s conftest.s
$ac_file; then
14247 ac_more_lines
=false
14248 rm -f conftest.s
$ac_file
14250 if test -z "$ac_sed_cmds"; then
14251 ac_sed_cmds
="sed -f conftest.s$ac_file"
14253 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
14255 ac_file
=`expr $ac_file + 1`
14257 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
14260 if test -z "$ac_sed_cmds"; then
14265 cat >> $CONFIG_STATUS <<EOF
14267 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
14269 cat >> $CONFIG_STATUS <<\EOF
14270 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
14271 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14273 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
14274 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
14275 *) ac_file_in
="${ac_file}.in" ;;
14278 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14280 # Remove last slash and all that follows it. Not all systems have dirname.
14281 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14282 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
14283 # The file is in a subdirectory.
14284 test ! -d "$ac_dir" && mkdir
"$ac_dir"
14285 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
14286 # A "../" for each directory in $ac_dir_suffix.
14287 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14289 ac_dir_suffix
= ac_dots
=
14292 case "$ac_given_srcdir" in
14294 if test -z "$ac_dots"; then top_srcdir
=.
14295 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14296 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
14297 *) # Relative path.
14298 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14299 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
14302 case "$ac_given_INSTALL" in
14303 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
14304 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
14307 echo creating
"$ac_file"
14309 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14311 *Makefile
*) ac_comsub
="1i\\
14312 # $configure_input" ;;
14316 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14318 s%@configure_input@%$configure_input%g
14319 s%@srcdir@%$srcdir%g
14320 s%@top_srcdir@%$top_srcdir%g
14321 s%@INSTALL@%$INSTALL%g
14322 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
14326 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14327 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14329 # ac_d sets the value in "#define NAME VALUE" lines.
14330 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14331 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
14334 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14335 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14336 ac_uB
='\([ ]\)%\1#\2define\3'
14339 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14340 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14341 ac_eB
='$%\1#\2define\3'
14345 if test "${CONFIG_HEADERS+set}" != set; then
14347 cat >> $CONFIG_STATUS <<EOF
14348 CONFIG_HEADERS="include/config.h"
14350 cat >> $CONFIG_STATUS <<\EOF
14352 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
14353 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14355 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
14356 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
14357 *) ac_file_in
="${ac_file}.in" ;;
14360 echo creating
$ac_file
14362 rm -f conftest.frag conftest.
in conftest.out
14363 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14364 cat $ac_file_inputs > conftest.
in
14368 # Transform confdefs.h into a sed script conftest.vals that substitutes
14369 # the proper values into config.h.in to produce config.h. And first:
14370 # Protect against being on the right side of a sed subst in config.status.
14371 # Protect against being in an unquoted here document in config.status.
14372 rm -f conftest.vals
14373 cat > conftest.hdr
<<\EOF
14376 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14380 sed -n -f conftest.hdr confdefs.h > conftest.vals
14383 # This sed command replaces #undef with comments. This is necessary, for
14384 # example, in the case of _POSIX_SOURCE, which is predefined and required
14385 # on some systems where configure will not decide to define it.
14386 cat >> conftest.vals <<\EOF
14387 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14390 # Break up conftest.vals because some shells have a limit on
14391 # the size of here documents, and old seds have small limits too.
14393 rm -f conftest.tail
14396 ac_lines=`grep -c . conftest.vals
`
14397 # grep -c gives empty output for an empty file on some AIX systems.
14398 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14399 # Write a limited-size here document to conftest.frag.
14400 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14401 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14403 sed -f conftest.frag conftest.in > conftest.out
14405 mv conftest.out conftest.in
14406 ' >> $CONFIG_STATUS
14407 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14408 rm -f conftest.vals
14409 mv conftest.tail conftest.vals
14411 rm -f conftest.vals
14413 cat >> $CONFIG_STATUS <<\EOF
14414 rm -f conftest.frag conftest.h
14415 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14416 cat conftest.in >> conftest.h
14418 if cmp -s $ac_file conftest.h 2>/dev/null; then
14419 echo "$ac_file is unchanged"
14422 # Remove last slash and all that follows it. Not all systems have dirname.
14423 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
14424 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14425 # The file is in a subdirectory.
14426 test ! -d "$ac_dir" && mkdir "$ac_dir"
14429 mv conftest.h $ac_file
14434 cat >> $CONFIG_STATUS <<EOF
14437 cat >> $CONFIG_STATUS <<\EOF
14441 chmod +x $CONFIG_STATUS
14442 rm -fr confdefs* $ac_clean_files
14443 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
14446 #################################################
14447 # Print very concise instructions on building/use
14448 if test "x$enable_dmalloc" = xyes
14450 echo "$ac_t""Note: The dmalloc debug library will be included. To turn it on use" 1>&6
14451 echo "$ac_t"" \$ eval \`dmalloc samba\
`." 1>&6