3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/samba
16 --with-fhs Use FHS-compliant paths (default=no)"
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
22 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)"
24 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
26 --with-configdir=DIR Where to put configuration files (\$libdir)"
28 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
30 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
32 --enable-debug Turn on compiler debugging information (default=no)"
34 --enable-cups Turn on CUPS support (default=auto)"
36 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto)"
38 --with-smbwrapper Include SMB wrapper support (default=no)"
40 --with-afs Include AFS support (default=no)"
42 --with-dce-dfs Include DCE/DFS support (default=no)"
44 --with-krb4=base-dir Include Kerberos IV support (default=no)"
46 --with-krb5=base-dir Include Kerberos 5 support (default=no)"
48 --with-automount Include AUTOMOUNT support (default=no)"
50 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
52 --with-pam Include PAM password database support (default=no)"
54 --with-pam_smbpass Include the smbpass PAM module (default=no)"
56 --with-tdbsam Include experimental TDB SAM support (default=no)"
58 --with-ldapsam Include experimental LDAP SAM support (default=no)"
60 --with-nisplussam Include NISPLUS SAM support (default=no)"
62 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
64 --with-ssl Include SSL support (default=no)
65 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
66 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
68 --with-syslog Include experimental SYSLOG support (default=no)"
70 --with-profiling-data Include gathering source code profile information (default=no)"
72 --with-quotas Include experimental disk-quota support (default=no)"
74 --with-utmp Include experimental utmp accounting (default=no)"
76 --with-msdfs Include MS Dfs support (default=no)"
78 --with-libsmbclient Build the libsmbclient shared library (default=no)"
80 --with-spinlocks Use spin locks instead of fcntl locks (default=no)"
82 --with-acl-support Include ACL support (default=no)"
84 --with-winbind Build winbind (default, if supported by OS)"
86 --with-included-popt use bundled popt library, not from system"
88 # Initialize some variables set by options.
89 # The variables have the same names as the options, with
90 # dashes changed to underlines.
92 cache_file
=.
/config.cache
101 program_transform_name
=s
,x
,x
,
109 bindir
='${exec_prefix}/bin'
110 sbindir
='${exec_prefix}/sbin'
111 libexecdir
='${exec_prefix}/libexec'
112 datadir
='${prefix}/share'
113 sysconfdir
='${prefix}/etc'
114 sharedstatedir
='${prefix}/com'
115 localstatedir
='${prefix}/var'
116 libdir
='${exec_prefix}/lib'
117 includedir
='${prefix}/include'
118 oldincludedir
='/usr/include'
119 infodir
='${prefix}/info'
120 mandir
='${prefix}/man'
122 # Initialize some other variables.
125 SHELL
=${CONFIG_SHELL-/bin/sh}
126 # Maximum number of lines to put in a shell here document.
133 # If the previous option needs an argument, assign it.
134 if test -n "$ac_prev"; then
135 eval "$ac_prev=\$ac_option"
141 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
145 # Accept the important Cygnus configure options, so we can diagnose typos.
149 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
151 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
152 bindir
="$ac_optarg" ;;
154 -build |
--build |
--buil |
--bui |
--bu)
156 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
157 build
="$ac_optarg" ;;
159 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
160 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
161 ac_prev
=cache_file
;;
162 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
163 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
164 cache_file
="$ac_optarg" ;;
166 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
168 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
170 datadir
="$ac_optarg" ;;
172 -disable-* |
--disable-*)
173 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
174 # Reject names that are not valid shell variable names.
175 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
176 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
179 eval "enable_${ac_feature}=no" ;;
181 -enable-* |
--enable-*)
182 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
183 # Reject names that are not valid shell variable names.
184 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
185 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
187 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
192 eval "enable_${ac_feature}='$ac_optarg'" ;;
194 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
195 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
196 |
--exec |
--exe |
--ex)
197 ac_prev
=exec_prefix
;;
198 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
199 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
200 |
--exec=* |
--exe=* |
--ex=*)
201 exec_prefix
="$ac_optarg" ;;
203 -gas |
--gas |
--ga |
--g)
204 # Obsolete; use --with-gas.
207 -help |
--help |
--hel |
--he)
208 # Omit some internal or obsolete options to make the list less imposing.
209 # This message is too long to be a string in the A/UX 3.1 sh.
211 Usage: configure [options] [host]
212 Options: [defaults in brackets after descriptions]
214 --cache-file=FILE cache test results in FILE
215 --help print this message
216 --no-create do not create output files
217 --quiet, --silent do not print \`checking...' messages
218 --version print the version of autoconf that created configure
219 Directory and file names:
220 --prefix=PREFIX install architecture-independent files in PREFIX
222 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
224 --bindir=DIR user executables in DIR [EPREFIX/bin]
225 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
226 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
227 --datadir=DIR read-only architecture-independent data in DIR
229 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
230 --sharedstatedir=DIR modifiable architecture-independent data in DIR
232 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
233 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
234 --includedir=DIR C header files in DIR [PREFIX/include]
235 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
236 --infodir=DIR info documentation in DIR [PREFIX/info]
237 --mandir=DIR man documentation in DIR [PREFIX/man]
238 --srcdir=DIR find the sources in DIR [configure dir or ..]
239 --program-prefix=PREFIX prepend PREFIX to installed program names
240 --program-suffix=SUFFIX append SUFFIX to installed program names
241 --program-transform-name=PROGRAM
242 run sed PROGRAM on installed program names
246 --build=BUILD configure for building on BUILD [BUILD=HOST]
247 --host=HOST configure for HOST [guessed]
248 --target=TARGET configure for TARGET [TARGET=HOST]
249 Features and packages:
250 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
251 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
252 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
253 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
254 --x-includes=DIR X include files are in DIR
255 --x-libraries=DIR X library files are in DIR
257 if test -n "$ac_help"; then
258 echo "--enable and --with options recognized:$ac_help"
262 -host |
--host |
--hos |
--ho)
264 -host=* |
--host=* |
--hos=* |
--ho=*)
267 -includedir |
--includedir |
--includedi |
--included |
--include \
268 |
--includ |
--inclu |
--incl |
--inc)
269 ac_prev
=includedir
;;
270 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
271 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
272 includedir
="$ac_optarg" ;;
274 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
276 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
277 infodir
="$ac_optarg" ;;
279 -libdir |
--libdir |
--libdi |
--libd)
281 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
282 libdir
="$ac_optarg" ;;
284 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
285 |
--libexe |
--libex |
--libe)
286 ac_prev
=libexecdir
;;
287 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
288 |
--libexe=* |
--libex=* |
--libe=*)
289 libexecdir
="$ac_optarg" ;;
291 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
292 |
--localstate |
--localstat |
--localsta |
--localst \
293 |
--locals |
--local |
--loca |
--loc |
--lo)
294 ac_prev
=localstatedir
;;
295 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
296 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
297 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
298 localstatedir
="$ac_optarg" ;;
300 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
302 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
303 mandir
="$ac_optarg" ;;
306 # Obsolete; use --without-fp.
309 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
313 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
314 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
317 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
318 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
319 |
--oldin |
--oldi |
--old |
--ol |
--o)
320 ac_prev
=oldincludedir
;;
321 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
322 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
323 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
324 oldincludedir
="$ac_optarg" ;;
326 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
328 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
329 prefix
="$ac_optarg" ;;
331 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
332 |
--program-pre |
--program-pr |
--program-p)
333 ac_prev
=program_prefix
;;
334 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
335 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
336 program_prefix
="$ac_optarg" ;;
338 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
339 |
--program-suf |
--program-su |
--program-s)
340 ac_prev
=program_suffix
;;
341 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
342 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
343 program_suffix
="$ac_optarg" ;;
345 -program-transform-name |
--program-transform-name \
346 |
--program-transform-nam |
--program-transform-na \
347 |
--program-transform-n |
--program-transform- \
348 |
--program-transform |
--program-transfor \
349 |
--program-transfo |
--program-transf \
350 |
--program-trans |
--program-tran \
351 |
--progr-tra |
--program-tr |
--program-t)
352 ac_prev
=program_transform_name
;;
353 -program-transform-name=* |
--program-transform-name=* \
354 |
--program-transform-nam=* |
--program-transform-na=* \
355 |
--program-transform-n=* |
--program-transform-=* \
356 |
--program-transform=* |
--program-transfor=* \
357 |
--program-transfo=* |
--program-transf=* \
358 |
--program-trans=* |
--program-tran=* \
359 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
360 program_transform_name
="$ac_optarg" ;;
362 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
363 |
-silent |
--silent |
--silen |
--sile |
--sil)
366 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
368 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
370 sbindir
="$ac_optarg" ;;
372 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
373 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
374 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
376 ac_prev
=sharedstatedir
;;
377 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
378 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
379 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
381 sharedstatedir
="$ac_optarg" ;;
383 -site |
--site |
--sit)
385 -site=* |
--site=* |
--sit=*)
388 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
390 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
391 srcdir
="$ac_optarg" ;;
393 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
394 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
395 ac_prev
=sysconfdir
;;
396 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
397 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
398 sysconfdir
="$ac_optarg" ;;
400 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
402 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
403 target
="$ac_optarg" ;;
405 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
408 -version |
--version |
--versio |
--versi |
--vers)
409 echo "configure generated by autoconf version 2.13"
413 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package
=`echo $ac_package| sed 's/-/_/g'`
423 eval "with_${ac_package}='$ac_optarg'" ;;
425 -without-* |
--without-*)
426 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
427 # Reject names that are not valid shell variable names.
428 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
429 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
431 ac_package
=`echo $ac_package| sed 's/-/_/g'`
432 eval "with_${ac_package}=no" ;;
435 # Obsolete; use --with-x.
438 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
439 |
--x-incl |
--x-inc |
--x-in |
--x-i)
440 ac_prev
=x_includes
;;
441 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
442 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
443 x_includes
="$ac_optarg" ;;
445 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
446 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
447 ac_prev
=x_libraries
;;
448 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
449 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
450 x_libraries
="$ac_optarg" ;;
452 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
456 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
457 echo "configure: warning: $ac_option: invalid host type" 1>&2
459 if test "x$nonopt" != xNONE
; then
460 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
468 if test -n "$ac_prev"; then
469 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
472 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
474 # File descriptor usage:
477 # 2 errors and warnings
478 # 3 some systems may open it to /dev/tty
479 # 4 used on the Kubota Titan
480 # 6 checking for... messages and results
481 # 5 compiler messages saved in config.log
482 if test "$silent" = yes; then
490 This file contains any messages produced by compilers while
491 running configure, to aid debugging if configure makes a mistake.
494 # Strip out --no-create and --no-recursion so they do not pile up.
495 # Also quote any args containing shell metacharacters.
500 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
501 |
--no-cr |
--no-c) ;;
502 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
503 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
504 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
505 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
506 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
511 # Only set these to C if already set. These must not be set unconditionally
512 # because not all systems understand e.g. LANG=C (notably SCO).
513 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
514 # Non-C LC_CTYPE values break the ctype check.
515 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
516 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
517 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
518 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
521 rm -rf conftest
* confdefs.h
522 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
525 # A filename unique to this package, relative to the directory that
526 # configure is in, which we can look for to find out if srcdir is correct.
527 ac_unique_file
=include
/includes.h
529 # Find the source files, if location was not specified.
530 if test -z "$srcdir"; then
531 ac_srcdir_defaulted
=yes
532 # Try the directory containing this script, then its parent.
534 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
535 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
537 if test ! -r $srcdir/$ac_unique_file; then
541 ac_srcdir_defaulted
=no
543 if test ! -r $srcdir/$ac_unique_file; then
544 if test "$ac_srcdir_defaulted" = yes; then
545 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
547 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
550 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
552 # Prefer explicitly selected file to automatically selected ones.
553 if test -z "$CONFIG_SITE"; then
554 if test "x$prefix" != xNONE
; then
555 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
557 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
560 for ac_site_file
in $CONFIG_SITE; do
561 if test -r "$ac_site_file"; then
562 echo "loading site script $ac_site_file"
567 if test -r "$cache_file"; then
568 echo "loading cache $cache_file"
571 echo "creating cache $cache_file"
576 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
577 ac_cpp
='$CPP $CPPFLAGS'
578 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
579 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
580 cross_compiling
=$ac_cv_prog_cc_cross
584 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
585 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
586 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
593 ac_n
= ac_c
='\c' ac_t
=
599 #################################################
600 # Directory handling stuff to support both the
601 # legacy SAMBA directories and FHS compliant
605 # Check whether --with-fhs or --without-fhs was given.
606 if test "${with_fhs+set}" = set; then
608 codepagedir
="\$(DATADIR)/samba/codepages"
609 configdir
="${sysconfdir}/samba"
610 lockdir
="\${VARDIR}/cache/samba"
611 piddir
="\$(VARDIR)/run/samba"
612 logfilebase
="\${VARDIR}/log/samba"
613 privatedir
="\${CONFIGDIR}/private"
614 swatdir
="\${DATADIR}/samba/swat"
616 codepagedir
="\$(LIBDIR)/codepages"
617 configdir
="\$(LIBDIR)"
618 logfilebase
="\$(VARDIR)"
619 lockdir
="\${VARDIR}/locks"
620 piddir
="\$(VARDIR)/locks"
621 privatedir
="\${prefix}/private"
622 swatdir
="\${prefix}/swat"
626 #################################################
627 # set private directory location
628 # Check whether --with-privatedir or --without-privatedir was given.
629 if test "${with_privatedir+set}" = set; then
630 withval
="$with_privatedir"
634 # Just in case anybody calls it without argument
636 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
639 privatedir
="$withval"
645 #################################################
646 # set lock directory location
647 # Check whether --with-lockdir or --without-lockdir was given.
648 if test "${with_lockdir+set}" = set; then
649 withval
="$with_lockdir"
653 # Just in case anybody calls it without argument
655 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
664 #################################################
665 # set pid directory location
666 # Check whether --with-piddir or --without-piddir was given.
667 if test "${with_piddir+set}" = set; then
668 withval
="$with_piddir"
672 # Just in case anybody calls it without argument
674 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
683 #################################################
684 # set SWAT directory location
685 # Check whether --with-swatdir or --without-swatdir was given.
686 if test "${with_swatdir+set}" = set; then
687 withval
="$with_swatdir"
691 # Just in case anybody does it
693 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
702 #################################################
703 # set configuration directory location
704 # Check whether --with-configdir or --without-configdir was given.
705 if test "${with_configdir+set}" = set; then
706 withval
="$with_configdir"
710 # Just in case anybody does it
712 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
721 #################################################
722 # set codepage directory location
723 # Check whether --with-codepagedir or --without-codepagedir was given.
724 if test "${with_codepagedir+set}" = set; then
725 withval
="$with_codepagedir"
729 # Just in case anybody does it
731 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
734 codepagedir
="$withval"
740 #################################################
741 # set log directory location
742 # Check whether --with-logfilebase or --without-logfilebase was given.
743 if test "${with_logfilebase+set}" = set; then
744 withval
="$with_logfilebase"
748 # Just in case anybody does it
750 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
753 logfilebase
="$withval"
788 # compile with optimization and without debugging by default
789 CFLAGS
="-O ${CFLAGS}"
791 # Check whether --enable-debug or --disable-debug was given.
792 if test "${enable_debug+set}" = set; then
793 enableval
="$enable_debug"
794 if eval "test x$enable_debug = xyes"; then
795 CFLAGS
="${CFLAGS} -g"
802 # Extract the first word of "gcc", so it can be a program name with args.
803 set dummy gcc
; ac_word
=$2
804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
805 echo "configure:806: checking for $ac_word" >&5
806 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
809 if test -n "$CC"; then
810 ac_cv_prog_CC
="$CC" # Let the user override the test.
812 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
814 for ac_dir
in $ac_dummy; do
815 test -z "$ac_dir" && ac_dir
=.
816 if test -f $ac_dir/$ac_word; then
825 if test -n "$CC"; then
826 echo "$ac_t""$CC" 1>&6
828 echo "$ac_t""no" 1>&6
831 if test -z "$CC"; then
832 # Extract the first word of "cc", so it can be a program name with args.
833 set dummy cc
; ac_word
=$2
834 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
835 echo "configure:836: checking for $ac_word" >&5
836 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
837 echo $ac_n "(cached) $ac_c" 1>&6
839 if test -n "$CC"; then
840 ac_cv_prog_CC
="$CC" # Let the user override the test.
842 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
845 for ac_dir
in $ac_dummy; do
846 test -z "$ac_dir" && ac_dir
=.
847 if test -f $ac_dir/$ac_word; then
848 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
857 if test $ac_prog_rejected = yes; then
858 # We found a bogon in the path, so make sure we never use it.
859 set dummy
$ac_cv_prog_CC
861 if test $# -gt 0; then
862 # We chose a different compiler from the bogus one.
863 # However, it has the same basename, so the bogon will be chosen
864 # first if we set CC to just the basename; use the full file name.
866 set dummy
"$ac_dir/$ac_word" "$@"
874 if test -n "$CC"; then
875 echo "$ac_t""$CC" 1>&6
877 echo "$ac_t""no" 1>&6
880 if test -z "$CC"; then
883 # Extract the first word of "cl", so it can be a program name with args.
884 set dummy cl
; ac_word
=$2
885 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
886 echo "configure:887: checking for $ac_word" >&5
887 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
888 echo $ac_n "(cached) $ac_c" 1>&6
890 if test -n "$CC"; then
891 ac_cv_prog_CC
="$CC" # Let the user override the test.
893 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
895 for ac_dir
in $ac_dummy; do
896 test -z "$ac_dir" && ac_dir
=.
897 if test -f $ac_dir/$ac_word; then
906 if test -n "$CC"; then
907 echo "$ac_t""$CC" 1>&6
909 echo "$ac_t""no" 1>&6
914 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
917 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
918 echo "configure:919: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
921 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
922 ac_cpp
='$CPP $CPPFLAGS'
923 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
924 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
925 cross_compiling
=$ac_cv_prog_cc_cross
927 cat > conftest.
$ac_ext << EOF
929 #line 930 "configure"
930 #include "confdefs.h"
934 if { (eval echo configure
:935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
935 ac_cv_prog_cc_works
=yes
936 # If we can't run a trivial program, we are probably using a cross compiler.
937 if (.
/conftest
; exit) 2>/dev
/null
; then
938 ac_cv_prog_cc_cross
=no
940 ac_cv_prog_cc_cross
=yes
943 echo "configure: failed program was:" >&5
944 cat conftest.
$ac_ext >&5
945 ac_cv_prog_cc_works
=no
949 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
950 ac_cpp
='$CPP $CPPFLAGS'
951 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
952 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
953 cross_compiling
=$ac_cv_prog_cc_cross
955 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
956 if test $ac_cv_prog_cc_works = no
; then
957 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
959 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
960 echo "configure:961: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
961 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
962 cross_compiling
=$ac_cv_prog_cc_cross
964 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
965 echo "configure:966: checking whether we are using GNU C" >&5
966 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
969 cat > conftest.c
<<EOF
974 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
981 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
983 if test $ac_cv_prog_gcc = yes; then
989 ac_test_CFLAGS
="${CFLAGS+set}"
990 ac_save_CFLAGS
="$CFLAGS"
992 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
993 echo "configure:994: checking whether ${CC-cc} accepts -g" >&5
994 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
997 echo 'void f(){}' > conftest.c
998 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1007 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1008 if test "$ac_test_CFLAGS" = set; then
1009 CFLAGS
="$ac_save_CFLAGS"
1010 elif test $ac_cv_prog_cc_g = yes; then
1011 if test "$GCC" = yes; then
1017 if test "$GCC" = yes; then
1025 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1026 if test -f $ac_dir/install-sh
; then
1028 ac_install_sh
="$ac_aux_dir/install-sh -c"
1030 elif test -f $ac_dir/install.sh
; then
1032 ac_install_sh
="$ac_aux_dir/install.sh -c"
1036 if test -z "$ac_aux_dir"; then
1037 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1039 ac_config_guess
=$ac_aux_dir/config.guess
1040 ac_config_sub
=$ac_aux_dir/config.sub
1041 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1043 # Find a good install program. We prefer a C program (faster),
1044 # so one script is as good as another. But avoid the broken or
1045 # incompatible versions:
1046 # SysV /etc/install, /usr/sbin/install
1047 # SunOS /usr/etc/install
1048 # IRIX /sbin/install
1050 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1051 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1052 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1053 # ./install, which can be erroneously created by make from ./install.sh.
1054 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1055 echo "configure:1056: checking for a BSD compatible install" >&5
1056 if test -z "$INSTALL"; then
1057 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1058 echo $ac_n "(cached) $ac_c" 1>&6
1060 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1061 for ac_dir
in $PATH; do
1062 # Account for people who put trailing slashes in PATH elements.
1064 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1066 # OSF1 and SCO ODT 3.0 have their own names for install.
1067 # Don't use installbsd from OSF since it installs stuff as root
1069 for ac_prog
in ginstall scoinst
install; do
1070 if test -f $ac_dir/$ac_prog; then
1071 if test $ac_prog = install &&
1072 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1073 # AIX install. It has an incompatible calling convention.
1076 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1087 if test "${ac_cv_path_install+set}" = set; then
1088 INSTALL
="$ac_cv_path_install"
1090 # As a last resort, use the slow shell script. We don't cache a
1091 # path for INSTALL within a source directory, because that will
1092 # break other packages using the cache if that directory is
1093 # removed, or if the path is relative.
1094 INSTALL
="$ac_install_sh"
1097 echo "$ac_t""$INSTALL" 1>&6
1099 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1100 # It thinks the first close brace ends the variable substitution.
1101 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1103 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1105 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1107 for ac_prog
in gawk mawk nawk
awk
1109 # Extract the first word of "$ac_prog", so it can be a program name with args.
1110 set dummy
$ac_prog; ac_word
=$2
1111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1112 echo "configure:1113: checking for $ac_word" >&5
1113 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1116 if test -n "$AWK"; then
1117 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1119 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1121 for ac_dir
in $ac_dummy; do
1122 test -z "$ac_dir" && ac_dir
=.
1123 if test -f $ac_dir/$ac_word; then
1124 ac_cv_prog_AWK
="$ac_prog"
1131 AWK
="$ac_cv_prog_AWK"
1132 if test -n "$AWK"; then
1133 echo "$ac_t""$AWK" 1>&6
1135 echo "$ac_t""no" 1>&6
1138 test -n "$AWK" && break
1141 # Extract the first word of "passwd", so it can be a program name with args.
1142 set dummy passwd
; ac_word
=$2
1143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1144 echo "configure:1145: checking for $ac_word" >&5
1145 if eval "test \"`echo '$''{'ac_cv_path_passwd_program'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1148 case "$passwd_program" in
1150 ac_cv_path_passwd_program
="$passwd_program" # Let the user override the test with a path.
1153 ac_cv_path_passwd_program
="$passwd_program" # Let the user override the test with a dos path.
1156 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1158 for ac_dir
in $ac_dummy; do
1159 test -z "$ac_dir" && ac_dir
=.
1160 if test -f $ac_dir/$ac_word; then
1161 ac_cv_path_passwd_program
="$ac_dir/$ac_word"
1166 test -z "$ac_cv_path_passwd_program" && ac_cv_path_passwd_program
="/bin/passwd"
1170 passwd_program
="$ac_cv_path_passwd_program"
1171 if test -n "$passwd_program"; then
1172 echo "$ac_t""$passwd_program" 1>&6
1174 echo "$ac_t""no" 1>&6
1179 if test "x$CC" != xcc
; then
1180 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1181 echo "configure:1182: checking whether $CC and cc understand -c and -o together" >&5
1183 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1184 echo "configure:1185: checking whether cc understands -c and -o together" >&5
1186 set dummy
$CC; ac_cc
="`echo $2 |
1187 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1188 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1189 echo $ac_n "(cached) $ac_c" 1>&6
1191 echo 'foo(){}' > conftest.c
1192 # Make sure it works both with $CC and with simple cc.
1193 # We do the test twice because some compilers refuse to overwrite an
1194 # existing .o file with -o, though they will create one.
1195 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1196 if { (eval echo configure
:1197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1197 test -f conftest.o
&& { (eval echo configure
:1198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1199 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1200 if test "x$CC" != xcc
; then
1201 # Test first that cc exists at all.
1202 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1203 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1204 if { (eval echo configure
:1205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1205 test -f conftest.o
&& { (eval echo configure
:1206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1210 # cc exists but doesn't like -o.
1211 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1216 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1221 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1222 echo "$ac_t""yes" 1>&6
1224 echo "$ac_t""no" 1>&6
1225 cat >> confdefs.h
<<\EOF
1226 #define NO_MINUS_C_MINUS_O 1
1231 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1238 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1239 echo "configure:1240: checking that the C compiler understands volatile" >&5
1240 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1241 echo $ac_n "(cached) $ac_c" 1>&6
1244 cat > conftest.
$ac_ext <<EOF
1245 #line 1246 "configure"
1246 #include "confdefs.h"
1247 #include <sys/types.h>
1252 if { (eval echo configure
:1253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1254 samba_cv_volatile
=yes
1256 echo "configure: failed program was:" >&5
1257 cat conftest.
$ac_ext >&5
1259 samba_cv_volatile
=no
1264 echo "$ac_t""$samba_cv_volatile" 1>&6
1265 if test x
"$samba_cv_volatile" = x
"yes"; then
1266 cat >> confdefs.h
<<\EOF
1267 #define HAVE_VOLATILE 1
1275 # Do some error checking and defaulting for the host and target type.
1277 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1280 # 1. You are not allowed to specify --host, --target, and nonopt at the
1282 # 2. Host defaults to nonopt.
1283 # 3. If nonopt is not specified, then host defaults to the current host,
1284 # as determined by config.guess.
1285 # 4. Target and build default to nonopt.
1286 # 5. If nonopt is not specified, then target and build default to host.
1288 # The aliases save the names the user supplied, while $host etc.
1289 # will get canonicalized.
1290 case $host---$target---$nonopt in
1291 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1292 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1296 # Make sure we can run config.sub.
1297 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1298 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1301 echo $ac_n "checking host system type""... $ac_c" 1>&6
1302 echo "configure:1303: checking host system type" >&5
1305 case "$host_alias" in
1309 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1310 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1312 *) host_alias
=$nonopt ;;
1316 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1317 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1318 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1319 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1320 echo "$ac_t""$host" 1>&6
1322 echo $ac_n "checking target system type""... $ac_c" 1>&6
1323 echo "configure:1324: checking target system type" >&5
1325 target_alias
=$target
1326 case "$target_alias" in
1329 NONE
) target_alias
=$host_alias ;;
1330 *) target_alias
=$nonopt ;;
1334 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1335 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1336 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1337 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1338 echo "$ac_t""$target" 1>&6
1340 echo $ac_n "checking build system type""... $ac_c" 1>&6
1341 echo "configure:1342: checking build system type" >&5
1344 case "$build_alias" in
1347 NONE
) build_alias
=$host_alias ;;
1348 *) build_alias
=$nonopt ;;
1352 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1353 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1354 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1355 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1356 echo "$ac_t""$build" 1>&6
1358 test "$host_alias" != "$target_alias" &&
1359 test "$program_prefix$program_suffix$program_transform_name" = \
1361 program_prefix
=${target_alias}-
1365 *irix6
*) cat >> confdefs.h
<<\EOF
1366 #include <standards.h>
1374 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1375 echo "configure:1376: checking config.cache system type" >&5
1376 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1377 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1378 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1379 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1380 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1381 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1382 echo "$ac_t""different" 1>&6
1383 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1385 echo "$ac_t""same" 1>&6
1387 ac_cv_host_system_type
="$host"
1388 ac_cv_build_system_type
="$build"
1389 ac_cv_target_system_type
="$target"
1395 # Config CPPFLAG settings for strange OS's that must be set
1396 # before other tests.
1399 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1401 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1402 echo "configure:1403: checking whether ${CC-cc} accepts -Ae" >&5
1403 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1404 echo $ac_n "(cached) $ac_c" 1>&6
1406 echo 'void f(){}' > conftest.c
1407 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1408 ac_cv_prog_cc_Ae
=yes
1416 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1417 # mmap on HPUX is completely broken...
1418 cat >> confdefs.h
<<\EOF
1419 #define MMAP_BLACKLIST 1
1422 if test $ac_cv_prog_cc_Ae = yes; then
1423 CPPFLAGS
="$CPPFLAGS -Ae"
1426 # Defines needed for HPUX support.
1427 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1428 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1432 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1433 cat >> confdefs.h
<<\EOF
1434 #define USE_BOTH_CRYPT_CALLS 1
1437 cat >> confdefs.h
<<\EOF
1438 #define _HPUX_SOURCE 1
1441 cat >> confdefs.h
<<\EOF
1442 #define _POSIX_SOURCE 1
1445 cat >> confdefs.h
<<\EOF
1446 #define _ALIGNMENT_REQUIRED 1
1449 cat >> confdefs.h
<<\EOF
1450 #define _MAX_ALIGNMENT 4
1455 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1456 cat >> confdefs.h
<<\EOF
1457 #define _HPUX_SOURCE 1
1460 cat >> confdefs.h
<<\EOF
1461 #define _POSIX_SOURCE 1
1464 cat >> confdefs.h
<<\EOF
1465 #define _LARGEFILE64_SOURCE 1
1468 cat >> confdefs.h
<<\EOF
1469 #define _ALIGNMENT_REQUIRED 1
1472 cat >> confdefs.h
<<\EOF
1473 #define _MAX_ALIGNMENT 4
1476 cat >> confdefs.h
<<\EOF
1477 #define USE_BOTH_CRYPT_CALLS 1
1487 # CRAY Unicos has broken const handling
1489 echo "$ac_t""disabling const" 1>&6
1490 CPPFLAGS
="$CPPFLAGS -Dconst="
1494 # AIX4.x doesn't even admit to having large
1495 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1498 echo "$ac_t""enabling large file support" 1>&6
1499 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1500 cat >> confdefs.h
<<\EOF
1501 #define _LARGE_FILES 1
1506 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1507 # to the existance of large files..
1508 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1509 # recommendations on large file support, however it makes the
1510 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1511 # recommendation makes the compile fail on gcc2.7. JRA.
1515 5.0*|
5.1*|
5.2*|
5.3*|
5.5*)
1516 echo "$ac_t""no large file support" 1>&6
1519 echo "$ac_t""enabling large file support" 1>&6
1520 if test "$ac_cv_prog_gcc" = yes; then
1521 ${CC-cc} -v >conftest.c
2>&1
1522 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1524 case "$ac_cv_gcc_compiler_version_number" in
1525 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1526 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1527 cat >> confdefs.h
<<\EOF
1528 #define _LARGEFILE64_SOURCE 1
1533 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1534 cat >> confdefs.h
<<\EOF
1535 #define _LARGEFILE64_SOURCE 1
1538 cat >> confdefs.h
<<\EOF
1539 #define _FILE_OFFSET_BITS 64
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
1559 # Tests needed for SINIX large file support.
1562 if test $host = mips-sni-sysv4
; then
1563 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1564 echo "configure:1565: checking for LFS support" >&5
1565 old_CPPFLAGS
="$CPPFLAGS"
1566 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1567 if test "$cross_compiling" = yes; then
1568 SINIX_LFS_SUPPORT
=cross
1570 cat > conftest.
$ac_ext <<EOF
1571 #line 1572 "configure"
1572 #include "confdefs.h"
1576 #if _LFS64_LARGEFILE == 1
1583 if { (eval echo configure
:1584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1585 SINIX_LFS_SUPPORT
=yes
1587 echo "configure: failed program was:" >&5
1588 cat conftest.
$ac_ext >&5
1590 SINIX_LFS_SUPPORT
=no
1595 CPPFLAGS
="$old_CPPFLAGS"
1596 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1597 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1598 cat >> confdefs.h
<<\EOF
1599 #define _LARGEFILE64_SOURCE 1
1602 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1603 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1604 LIBS
="`getconf LFS64_LIBS` $LIBS"
1606 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1610 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1613 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1614 echo "configure:1615: checking for LFS support" >&5
1615 old_CPPFLAGS
="$CPPFLAGS"
1616 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1617 if test "$cross_compiling" = yes; then
1618 LINUX_LFS_SUPPORT
=cross
1620 cat > conftest.
$ac_ext <<EOF
1621 #line 1622 "configure"
1622 #include "confdefs.h"
1625 #include <sys/utsname.h>
1627 #if _LFS64_LARGEFILE == 1
1632 /* Ensure this is glibc 2.2 or higher */
1633 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1634 int libc_major = __GLIBC__;
1635 int libc_minor = __GLIBC_MINOR__;
1643 /* Ensure this is kernel 2.4 or higher */
1646 release = uts.release;
1647 major = atoi(strsep(&release, "."));
1648 minor = atoi(strsep(&release, "."));
1650 if (major > 2 || (major == 2 && minor > 3))
1659 if { (eval echo configure
:1660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1661 LINUX_LFS_SUPPORT
=yes
1663 echo "configure: failed program was:" >&5
1664 cat conftest.
$ac_ext >&5
1666 LINUX_LFS_SUPPORT
=no
1671 CPPFLAGS
="$old_CPPFLAGS"
1672 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1673 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1674 cat >> confdefs.h
<<\EOF
1675 #define _LARGEFILE64_SOURCE 1
1678 cat >> confdefs.h
<<\EOF
1679 #define _FILE_OFFSET_BITS 64
1682 cat >> confdefs.h
<<\EOF
1683 #define _GNU_SOURCE 1
1687 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1691 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1692 echo "configure:1693: checking for LFS support" >&5
1693 old_CPPFLAGS
="$CPPFLAGS"
1694 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1695 if test "$cross_compiling" = yes; then
1696 GLIBC_LFS_SUPPORT
=cross
1698 cat > conftest.
$ac_ext <<EOF
1699 #line 1700 "configure"
1700 #include "confdefs.h"
1704 #if _LFS64_LARGEFILE == 1
1711 if { (eval echo configure
:1712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1713 GLIBC_LFS_SUPPORT
=yes
1715 echo "configure: failed program was:" >&5
1716 cat conftest.
$ac_ext >&5
1718 GLIBC_LFS_SUPPORT
=no
1723 CPPFLAGS
="$old_CPPFLAGS"
1724 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1725 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1726 cat >> confdefs.h
<<\EOF
1727 #define _LARGEFILE64_SOURCE 1
1730 cat >> confdefs.h
<<\EOF
1731 #define _GNU_SOURCE 1
1735 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1740 echo $ac_n "checking for inline""... $ac_c" 1>&6
1741 echo "configure:1742: checking for inline" >&5
1742 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1743 echo $ac_n "(cached) $ac_c" 1>&6
1746 for ac_kw
in inline __inline__ __inline
; do
1747 cat > conftest.
$ac_ext <<EOF
1748 #line 1749 "configure"
1749 #include "confdefs.h"
1755 if { (eval echo configure
:1756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1757 ac_cv_c_inline
=$ac_kw; break
1759 echo "configure: failed program was:" >&5
1760 cat conftest.
$ac_ext >&5
1767 echo "$ac_t""$ac_cv_c_inline" 1>&6
1768 case "$ac_cv_c_inline" in
1770 no
) cat >> confdefs.h
<<\EOF
1774 *) cat >> confdefs.h
<<EOF
1775 #define inline $ac_cv_c_inline
1780 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1781 echo "configure:1782: checking how to run the C preprocessor" >&5
1782 # On Suns, sometimes $CPP names a directory.
1783 if test -n "$CPP" && test -d "$CPP"; then
1786 if test -z "$CPP"; then
1787 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1788 echo $ac_n "(cached) $ac_c" 1>&6
1790 # This must be in double quotes, not single quotes, because CPP may get
1791 # substituted into the Makefile and "${CC-cc}" will confuse make.
1793 # On the NeXT, cc -E runs the code through the compiler's parser,
1794 # not just through cpp.
1795 cat > conftest.
$ac_ext <<EOF
1796 #line 1797 "configure"
1797 #include "confdefs.h"
1801 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1802 { (eval echo configure
:1803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1803 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1804 if test -z "$ac_err"; then
1808 echo "configure: failed program was:" >&5
1809 cat conftest.
$ac_ext >&5
1811 CPP
="${CC-cc} -E -traditional-cpp"
1812 cat > conftest.
$ac_ext <<EOF
1813 #line 1814 "configure"
1814 #include "confdefs.h"
1818 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1819 { (eval echo configure
:1820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1820 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1821 if test -z "$ac_err"; then
1825 echo "configure: failed program was:" >&5
1826 cat conftest.
$ac_ext >&5
1828 CPP
="${CC-cc} -nologo -E"
1829 cat > conftest.
$ac_ext <<EOF
1830 #line 1831 "configure"
1831 #include "confdefs.h"
1835 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1836 { (eval echo configure
:1837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1837 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1838 if test -z "$ac_err"; then
1842 echo "configure: failed program was:" >&5
1843 cat conftest.
$ac_ext >&5
1852 ac_cv_prog_CPP
="$CPP"
1854 CPP
="$ac_cv_prog_CPP"
1856 ac_cv_prog_CPP
="$CPP"
1858 echo "$ac_t""$CPP" 1>&6
1860 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1861 echo "configure:1862: checking for ANSI C header files" >&5
1862 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1863 echo $ac_n "(cached) $ac_c" 1>&6
1865 cat > conftest.
$ac_ext <<EOF
1866 #line 1867 "configure"
1867 #include "confdefs.h"
1873 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1874 { (eval echo configure
:1875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1875 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1876 if test -z "$ac_err"; then
1878 ac_cv_header_stdc
=yes
1881 echo "configure: failed program was:" >&5
1882 cat conftest.
$ac_ext >&5
1884 ac_cv_header_stdc
=no
1888 if test $ac_cv_header_stdc = yes; then
1889 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1890 cat > conftest.
$ac_ext <<EOF
1891 #line 1892 "configure"
1892 #include "confdefs.h"
1895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1896 egrep "memchr" >/dev
/null
2>&1; then
1900 ac_cv_header_stdc
=no
1906 if test $ac_cv_header_stdc = yes; then
1907 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1908 cat > conftest.
$ac_ext <<EOF
1909 #line 1910 "configure"
1910 #include "confdefs.h"
1913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1914 egrep "free" >/dev
/null
2>&1; then
1918 ac_cv_header_stdc
=no
1924 if test $ac_cv_header_stdc = yes; then
1925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1926 if test "$cross_compiling" = yes; then
1929 cat > conftest.
$ac_ext <<EOF
1930 #line 1931 "configure"
1931 #include "confdefs.h"
1933 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1934 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1935 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1936 int main () { int i; for (i = 0; i < 256; i++)
1937 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1941 if { (eval echo configure
:1942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1945 echo "configure: failed program was:" >&5
1946 cat conftest.
$ac_ext >&5
1948 ac_cv_header_stdc
=no
1956 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1957 if test $ac_cv_header_stdc = yes; then
1958 cat >> confdefs.h
<<\EOF
1959 #define STDC_HEADERS 1
1965 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1967 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1968 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1969 echo "configure:1970: checking for $ac_hdr that defines DIR" >&5
1970 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1971 echo $ac_n "(cached) $ac_c" 1>&6
1973 cat > conftest.
$ac_ext <<EOF
1974 #line 1975 "configure"
1975 #include "confdefs.h"
1976 #include <sys/types.h>
1982 if { (eval echo configure
:1983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1984 eval "ac_cv_header_dirent_$ac_safe=yes"
1986 echo "configure: failed program was:" >&5
1987 cat conftest.
$ac_ext >&5
1989 eval "ac_cv_header_dirent_$ac_safe=no"
1993 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1994 echo "$ac_t""yes" 1>&6
1995 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1996 cat >> confdefs.h
<<EOF
1997 #define $ac_tr_hdr 1
1999 ac_header_dirent
=$ac_hdr; break
2001 echo "$ac_t""no" 1>&6
2004 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2005 if test $ac_header_dirent = dirent.h
; then
2006 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2007 echo "configure:2008: checking for opendir in -ldir" >&5
2008 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2009 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2010 echo $ac_n "(cached) $ac_c" 1>&6
2012 ac_save_LIBS
="$LIBS"
2014 cat > conftest.
$ac_ext <<EOF
2015 #line 2016 "configure"
2016 #include "confdefs.h"
2017 /* Override any gcc2 internal prototype to avoid an error. */
2018 /* We use char because int might match the return type of a gcc2
2019 builtin and then its argument prototype would still apply. */
2026 if { (eval echo configure
:2027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2028 eval "ac_cv_lib_$ac_lib_var=yes"
2030 echo "configure: failed program was:" >&5
2031 cat conftest.
$ac_ext >&5
2033 eval "ac_cv_lib_$ac_lib_var=no"
2036 LIBS
="$ac_save_LIBS"
2039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2040 echo "$ac_t""yes" 1>&6
2043 echo "$ac_t""no" 1>&6
2047 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2048 echo "configure:2049: checking for opendir in -lx" >&5
2049 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2050 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2051 echo $ac_n "(cached) $ac_c" 1>&6
2053 ac_save_LIBS
="$LIBS"
2055 cat > conftest.
$ac_ext <<EOF
2056 #line 2057 "configure"
2057 #include "confdefs.h"
2058 /* Override any gcc2 internal prototype to avoid an error. */
2059 /* We use char because int might match the return type of a gcc2
2060 builtin and then its argument prototype would still apply. */
2067 if { (eval echo configure
:2068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2069 eval "ac_cv_lib_$ac_lib_var=yes"
2071 echo "configure: failed program was:" >&5
2072 cat conftest.
$ac_ext >&5
2074 eval "ac_cv_lib_$ac_lib_var=no"
2077 LIBS
="$ac_save_LIBS"
2080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2081 echo "$ac_t""yes" 1>&6
2084 echo "$ac_t""no" 1>&6
2089 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2090 echo "configure:2091: checking whether time.h and sys/time.h may both be included" >&5
2091 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2092 echo $ac_n "(cached) $ac_c" 1>&6
2094 cat > conftest.
$ac_ext <<EOF
2095 #line 2096 "configure"
2096 #include "confdefs.h"
2097 #include <sys/types.h>
2098 #include <sys/time.h>
2104 if { (eval echo configure
:2105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2106 ac_cv_header_time
=yes
2108 echo "configure: failed program was:" >&5
2109 cat conftest.
$ac_ext >&5
2111 ac_cv_header_time
=no
2116 echo "$ac_t""$ac_cv_header_time" 1>&6
2117 if test $ac_cv_header_time = yes; then
2118 cat >> confdefs.h
<<\EOF
2119 #define TIME_WITH_SYS_TIME 1
2124 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2125 echo "configure:2126: checking for sys/wait.h that is POSIX.1 compatible" >&5
2126 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2129 cat > conftest.
$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2132 #include <sys/types.h>
2133 #include <sys/wait.h>
2135 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2138 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2143 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2146 if { (eval echo configure
:2147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2148 ac_cv_header_sys_wait_h
=yes
2150 echo "configure: failed program was:" >&5
2151 cat conftest.
$ac_ext >&5
2153 ac_cv_header_sys_wait_h
=no
2158 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2159 if test $ac_cv_header_sys_wait_h = yes; then
2160 cat >> confdefs.h
<<\EOF
2161 #define HAVE_SYS_WAIT_H 1
2166 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2168 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2169 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2170 echo "configure:2171: checking for $ac_hdr" >&5
2171 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2172 echo $ac_n "(cached) $ac_c" 1>&6
2174 cat > conftest.
$ac_ext <<EOF
2175 #line 2176 "configure"
2176 #include "confdefs.h"
2179 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2180 { (eval echo configure
:2181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2181 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2182 if test -z "$ac_err"; then
2184 eval "ac_cv_header_$ac_safe=yes"
2187 echo "configure: failed program was:" >&5
2188 cat conftest.
$ac_ext >&5
2190 eval "ac_cv_header_$ac_safe=no"
2194 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2195 echo "$ac_t""yes" 1>&6
2196 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2197 cat >> confdefs.h
<<EOF
2198 #define $ac_tr_hdr 1
2202 echo "$ac_t""no" 1>&6
2206 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2208 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2209 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2210 echo "configure:2211: checking for $ac_hdr" >&5
2211 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2212 echo $ac_n "(cached) $ac_c" 1>&6
2214 cat > conftest.
$ac_ext <<EOF
2215 #line 2216 "configure"
2216 #include "confdefs.h"
2219 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2220 { (eval echo configure
:2221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2221 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2222 if test -z "$ac_err"; then
2224 eval "ac_cv_header_$ac_safe=yes"
2227 echo "configure: failed program was:" >&5
2228 cat conftest.
$ac_ext >&5
2230 eval "ac_cv_header_$ac_safe=no"
2234 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2235 echo "$ac_t""yes" 1>&6
2236 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2237 cat >> confdefs.h
<<EOF
2238 #define $ac_tr_hdr 1
2242 echo "$ac_t""no" 1>&6
2246 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2248 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2249 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2250 echo "configure:2251: checking for $ac_hdr" >&5
2251 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2252 echo $ac_n "(cached) $ac_c" 1>&6
2254 cat > conftest.
$ac_ext <<EOF
2255 #line 2256 "configure"
2256 #include "confdefs.h"
2259 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2260 { (eval echo configure
:2261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2261 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2262 if test -z "$ac_err"; then
2264 eval "ac_cv_header_$ac_safe=yes"
2267 echo "configure: failed program was:" >&5
2268 cat conftest.
$ac_ext >&5
2270 eval "ac_cv_header_$ac_safe=no"
2274 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2275 echo "$ac_t""yes" 1>&6
2276 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2277 cat >> confdefs.h
<<EOF
2278 #define $ac_tr_hdr 1
2282 echo "$ac_t""no" 1>&6
2286 for ac_hdr
in stdlib.h string.h
strings.h syslog.h sys
/file.h
2288 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2289 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2290 echo "configure:2291: checking for $ac_hdr" >&5
2291 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2292 echo $ac_n "(cached) $ac_c" 1>&6
2294 cat > conftest.
$ac_ext <<EOF
2295 #line 2296 "configure"
2296 #include "confdefs.h"
2299 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2300 { (eval echo configure
:2301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2301 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2302 if test -z "$ac_err"; then
2304 eval "ac_cv_header_$ac_safe=yes"
2307 echo "configure: failed program was:" >&5
2308 cat conftest.
$ac_ext >&5
2310 eval "ac_cv_header_$ac_safe=no"
2314 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2315 echo "$ac_t""yes" 1>&6
2316 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2317 cat >> confdefs.h
<<EOF
2318 #define $ac_tr_hdr 1
2322 echo "$ac_t""no" 1>&6
2326 for ac_hdr
in sys
/param.h ctype.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/ipc.h sys
/mode.h
2328 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2329 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2330 echo "configure:2331: checking for $ac_hdr" >&5
2331 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2334 cat > conftest.
$ac_ext <<EOF
2335 #line 2336 "configure"
2336 #include "confdefs.h"
2339 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2340 { (eval echo configure
:2341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2341 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2342 if test -z "$ac_err"; then
2344 eval "ac_cv_header_$ac_safe=yes"
2347 echo "configure: failed program was:" >&5
2348 cat conftest.
$ac_ext >&5
2350 eval "ac_cv_header_$ac_safe=no"
2354 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2355 echo "$ac_t""yes" 1>&6
2356 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2357 cat >> confdefs.h
<<EOF
2358 #define $ac_tr_hdr 1
2362 echo "$ac_t""no" 1>&6
2366 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h sys
/shm.h sys
/socket.h
2368 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2369 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2370 echo "configure:2371: checking for $ac_hdr" >&5
2371 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 cat > conftest.
$ac_ext <<EOF
2375 #line 2376 "configure"
2376 #include "confdefs.h"
2379 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2380 { (eval echo configure
:2381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2381 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2382 if test -z "$ac_err"; then
2384 eval "ac_cv_header_$ac_safe=yes"
2387 echo "configure: failed program was:" >&5
2388 cat conftest.
$ac_ext >&5
2390 eval "ac_cv_header_$ac_safe=no"
2394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2395 echo "$ac_t""yes" 1>&6
2396 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2397 cat >> confdefs.h
<<EOF
2398 #define $ac_tr_hdr 1
2402 echo "$ac_t""no" 1>&6
2406 for ac_hdr
in syslog.h sys
/syslog.h sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2408 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2409 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2410 echo "configure:2411: checking for $ac_hdr" >&5
2411 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2412 echo $ac_n "(cached) $ac_c" 1>&6
2414 cat > conftest.
$ac_ext <<EOF
2415 #line 2416 "configure"
2416 #include "confdefs.h"
2419 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2420 { (eval echo configure
:2421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2421 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2422 if test -z "$ac_err"; then
2424 eval "ac_cv_header_$ac_safe=yes"
2427 echo "configure: failed program was:" >&5
2428 cat conftest.
$ac_ext >&5
2430 eval "ac_cv_header_$ac_safe=no"
2434 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2435 echo "$ac_t""yes" 1>&6
2436 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2437 cat >> confdefs.h
<<EOF
2438 #define $ac_tr_hdr 1
2442 echo "$ac_t""no" 1>&6
2446 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2448 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2449 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2450 echo "configure:2451: checking for $ac_hdr" >&5
2451 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2452 echo $ac_n "(cached) $ac_c" 1>&6
2454 cat > conftest.
$ac_ext <<EOF
2455 #line 2456 "configure"
2456 #include "confdefs.h"
2459 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2460 { (eval echo configure
:2461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2461 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2462 if test -z "$ac_err"; then
2464 eval "ac_cv_header_$ac_safe=yes"
2467 echo "configure: failed program was:" >&5
2468 cat conftest.
$ac_ext >&5
2470 eval "ac_cv_header_$ac_safe=no"
2474 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2475 echo "$ac_t""yes" 1>&6
2476 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2477 cat >> confdefs.h
<<EOF
2478 #define $ac_tr_hdr 1
2482 echo "$ac_t""no" 1>&6
2486 for ac_hdr
in security
/pam_modules.h security
/_pam_macros.h dlfcn.h synch.h pthread.h nsswitch.h
2488 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2489 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2490 echo "configure:2491: checking for $ac_hdr" >&5
2491 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2492 echo $ac_n "(cached) $ac_c" 1>&6
2494 cat > conftest.
$ac_ext <<EOF
2495 #line 2496 "configure"
2496 #include "confdefs.h"
2499 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2500 { (eval echo configure
:2501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2501 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2502 if test -z "$ac_err"; then
2504 eval "ac_cv_header_$ac_safe=yes"
2507 echo "configure: failed program was:" >&5
2508 cat conftest.
$ac_ext >&5
2510 eval "ac_cv_header_$ac_safe=no"
2514 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2515 echo "$ac_t""yes" 1>&6
2516 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2517 cat >> confdefs.h
<<EOF
2518 #define $ac_tr_hdr 1
2522 echo "$ac_t""no" 1>&6
2528 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2529 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2533 cat > conftest.
$ac_ext <<EOF
2534 #line 2535 "configure"
2535 #include "confdefs.h"
2541 if { (eval echo configure
:2542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2543 ac_cv_header_shadow_h
=yes
2545 echo "configure: failed program was:" >&5
2546 cat conftest.
$ac_ext >&5
2548 ac_cv_header_shadow_h
=no
2551 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2552 cat >> confdefs.h
<<\EOF
2553 #define HAVE_SHADOW_H 1
2559 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2561 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2562 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2563 echo "configure:2564: checking for $ac_hdr" >&5
2564 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2565 echo $ac_n "(cached) $ac_c" 1>&6
2567 cat > conftest.
$ac_ext <<EOF
2568 #line 2569 "configure"
2569 #include "confdefs.h"
2572 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2573 { (eval echo configure
:2574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2574 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2575 if test -z "$ac_err"; then
2577 eval "ac_cv_header_$ac_safe=yes"
2580 echo "configure: failed program was:" >&5
2581 cat conftest.
$ac_ext >&5
2583 eval "ac_cv_header_$ac_safe=no"
2587 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2588 echo "$ac_t""yes" 1>&6
2589 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2590 cat >> confdefs.h
<<EOF
2591 #define $ac_tr_hdr 1
2595 echo "$ac_t""no" 1>&6
2599 for ac_hdr
in nss.h nss_common.h ns_api.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2601 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2602 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2603 echo "configure:2604: checking for $ac_hdr" >&5
2604 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2605 echo $ac_n "(cached) $ac_c" 1>&6
2607 cat > conftest.
$ac_ext <<EOF
2608 #line 2609 "configure"
2609 #include "confdefs.h"
2612 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2613 { (eval echo configure
:2614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2614 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2615 if test -z "$ac_err"; then
2617 eval "ac_cv_header_$ac_safe=yes"
2620 echo "configure: failed program was:" >&5
2621 cat conftest.
$ac_ext >&5
2623 eval "ac_cv_header_$ac_safe=no"
2627 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2628 echo "$ac_t""yes" 1>&6
2629 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2630 cat >> confdefs.h
<<EOF
2631 #define $ac_tr_hdr 1
2635 echo "$ac_t""no" 1>&6
2639 for ac_hdr
in stropts.h poll.h
2641 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2642 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2643 echo "configure:2644: checking for $ac_hdr" >&5
2644 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2645 echo $ac_n "(cached) $ac_c" 1>&6
2647 cat > conftest.
$ac_ext <<EOF
2648 #line 2649 "configure"
2649 #include "confdefs.h"
2652 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2653 { (eval echo configure
:2654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2654 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2655 if test -z "$ac_err"; then
2657 eval "ac_cv_header_$ac_safe=yes"
2660 echo "configure: failed program was:" >&5
2661 cat conftest.
$ac_ext >&5
2663 eval "ac_cv_header_$ac_safe=no"
2667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2668 echo "$ac_t""yes" 1>&6
2669 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2670 cat >> confdefs.h
<<EOF
2671 #define $ac_tr_hdr 1
2675 echo "$ac_t""no" 1>&6
2679 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2681 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2682 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2683 echo "configure:2684: checking for $ac_hdr" >&5
2684 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2685 echo $ac_n "(cached) $ac_c" 1>&6
2687 cat > conftest.
$ac_ext <<EOF
2688 #line 2689 "configure"
2689 #include "confdefs.h"
2692 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2693 { (eval echo configure
:2694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2694 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2695 if test -z "$ac_err"; then
2697 eval "ac_cv_header_$ac_safe=yes"
2700 echo "configure: failed program was:" >&5
2701 cat conftest.
$ac_ext >&5
2703 eval "ac_cv_header_$ac_safe=no"
2707 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2708 echo "$ac_t""yes" 1>&6
2709 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2710 cat >> confdefs.h
<<EOF
2711 #define $ac_tr_hdr 1
2715 echo "$ac_t""no" 1>&6
2719 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2721 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2722 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2723 echo "configure:2724: checking for $ac_hdr" >&5
2724 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2725 echo $ac_n "(cached) $ac_c" 1>&6
2727 cat > conftest.
$ac_ext <<EOF
2728 #line 2729 "configure"
2729 #include "confdefs.h"
2732 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2733 { (eval echo configure
:2734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2734 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2735 if test -z "$ac_err"; then
2737 eval "ac_cv_header_$ac_safe=yes"
2740 echo "configure: failed program was:" >&5
2741 cat conftest.
$ac_ext >&5
2743 eval "ac_cv_header_$ac_safe=no"
2747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2748 echo "$ac_t""yes" 1>&6
2749 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2750 cat >> confdefs.h
<<EOF
2751 #define $ac_tr_hdr 1
2755 echo "$ac_t""no" 1>&6
2760 # For experimental utmp support (lastlog on some BSD-like systems)
2761 for ac_hdr
in utmp.h utmpx.h lastlog.h
2763 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2764 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2765 echo "configure:2766: checking for $ac_hdr" >&5
2766 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2767 echo $ac_n "(cached) $ac_c" 1>&6
2769 cat > conftest.
$ac_ext <<EOF
2770 #line 2771 "configure"
2771 #include "confdefs.h"
2774 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2775 { (eval echo configure
:2776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2776 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2777 if test -z "$ac_err"; then
2779 eval "ac_cv_header_$ac_safe=yes"
2782 echo "configure: failed program was:" >&5
2783 cat conftest.
$ac_ext >&5
2785 eval "ac_cv_header_$ac_safe=no"
2789 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2790 echo "$ac_t""yes" 1>&6
2791 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2792 cat >> confdefs.h
<<EOF
2793 #define $ac_tr_hdr 1
2797 echo "$ac_t""no" 1>&6
2802 # For quotas on Veritas VxFS filesystems
2803 for ac_hdr
in sys
/fs
/vx_quota.h
2805 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2806 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2807 echo "configure:2808: checking for $ac_hdr" >&5
2808 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2809 echo $ac_n "(cached) $ac_c" 1>&6
2811 cat > conftest.
$ac_ext <<EOF
2812 #line 2813 "configure"
2813 #include "confdefs.h"
2816 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2817 { (eval echo configure
:2818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2818 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2819 if test -z "$ac_err"; then
2821 eval "ac_cv_header_$ac_safe=yes"
2824 echo "configure: failed program was:" >&5
2825 cat conftest.
$ac_ext >&5
2827 eval "ac_cv_header_$ac_safe=no"
2831 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2832 echo "$ac_t""yes" 1>&6
2833 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2834 cat >> confdefs.h
<<EOF
2835 #define $ac_tr_hdr 1
2839 echo "$ac_t""no" 1>&6
2844 # For quotas on Linux XFS filesystems
2845 for ac_hdr
in linux
/xqm.h
2847 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2848 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2849 echo "configure:2850: checking for $ac_hdr" >&5
2850 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2851 echo $ac_n "(cached) $ac_c" 1>&6
2853 cat > conftest.
$ac_ext <<EOF
2854 #line 2855 "configure"
2855 #include "confdefs.h"
2858 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2859 { (eval echo configure
:2860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2860 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2861 if test -z "$ac_err"; then
2863 eval "ac_cv_header_$ac_safe=yes"
2866 echo "configure: failed program was:" >&5
2867 cat conftest.
$ac_ext >&5
2869 eval "ac_cv_header_$ac_safe=no"
2873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2874 echo "$ac_t""yes" 1>&6
2875 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2876 cat >> confdefs.h
<<EOF
2877 #define $ac_tr_hdr 1
2881 echo "$ac_t""no" 1>&6
2886 echo $ac_n "checking size of int""... $ac_c" 1>&6
2887 echo "configure:2888: checking size of int" >&5
2888 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2889 echo $ac_n "(cached) $ac_c" 1>&6
2891 if test "$cross_compiling" = yes; then
2892 ac_cv_sizeof_int
=cross
2894 cat > conftest.
$ac_ext <<EOF
2895 #line 2896 "configure"
2896 #include "confdefs.h"
2900 FILE *f=fopen("conftestval", "w");
2902 fprintf(f, "%d\n", sizeof(int));
2906 if { (eval echo configure
:2907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2908 ac_cv_sizeof_int
=`cat conftestval`
2910 echo "configure: failed program was:" >&5
2911 cat conftest.
$ac_ext >&5
2919 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2920 cat >> confdefs.h
<<EOF
2921 #define SIZEOF_INT $ac_cv_sizeof_int
2925 echo $ac_n "checking size of long""... $ac_c" 1>&6
2926 echo "configure:2927: checking size of long" >&5
2927 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2928 echo $ac_n "(cached) $ac_c" 1>&6
2930 if test "$cross_compiling" = yes; then
2931 ac_cv_sizeof_long
=cross
2933 cat > conftest.
$ac_ext <<EOF
2934 #line 2935 "configure"
2935 #include "confdefs.h"
2939 FILE *f=fopen("conftestval", "w");
2941 fprintf(f, "%d\n", sizeof(long));
2945 if { (eval echo configure
:2946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2947 ac_cv_sizeof_long
=`cat conftestval`
2949 echo "configure: failed program was:" >&5
2950 cat conftest.
$ac_ext >&5
2958 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2959 cat >> confdefs.h
<<EOF
2960 #define SIZEOF_LONG $ac_cv_sizeof_long
2964 echo $ac_n "checking size of short""... $ac_c" 1>&6
2965 echo "configure:2966: checking size of short" >&5
2966 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2967 echo $ac_n "(cached) $ac_c" 1>&6
2969 if test "$cross_compiling" = yes; then
2970 ac_cv_sizeof_short
=cross
2972 cat > conftest.
$ac_ext <<EOF
2973 #line 2974 "configure"
2974 #include "confdefs.h"
2978 FILE *f=fopen("conftestval", "w");
2980 fprintf(f, "%d\n", sizeof(short));
2984 if { (eval echo configure
:2985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2986 ac_cv_sizeof_short
=`cat conftestval`
2988 echo "configure: failed program was:" >&5
2989 cat conftest.
$ac_ext >&5
2991 ac_cv_sizeof_short
=0
2997 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2998 cat >> confdefs.h
<<EOF
2999 #define SIZEOF_SHORT $ac_cv_sizeof_short
3004 echo $ac_n "checking for working const""... $ac_c" 1>&6
3005 echo "configure:3006: checking for working const" >&5
3006 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3007 echo $ac_n "(cached) $ac_c" 1>&6
3009 cat > conftest.
$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3015 /* Ultrix mips cc rejects this. */
3016 typedef int charset[2]; const charset x;
3017 /* SunOS 4.1.1 cc rejects this. */
3018 char const *const *ccp;
3020 /* NEC SVR4.0.2 mips cc rejects this. */
3021 struct point {int x, y;};
3022 static struct point const zero = {0,0};
3023 /* AIX XL C 1.02.0.0 rejects this.
3024 It does not let you subtract one const X* pointer from another in an arm
3025 of an if-expression whose if-part is not a constant expression */
3026 const char *g = "string";
3027 ccp = &g + (g ? g-g : 0);
3028 /* HPUX 7.0 cc rejects these. */
3031 ccp = (char const *const *) p;
3032 { /* SCO 3.2v4 cc rejects this. */
3034 char const *s = 0 ? (char *) 0 : (char const *) 0;
3038 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3040 const int *foo = &x[0];
3043 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3044 typedef const int *iptr;
3048 { /* AIX XL C 1.02.0.0 rejects this saying
3049 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3050 struct s { int j; const int *ap[3]; };
3051 struct s *b; b->j = 5;
3053 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3059 if { (eval echo configure
:3060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3063 echo "configure: failed program was:" >&5
3064 cat conftest.
$ac_ext >&5
3071 echo "$ac_t""$ac_cv_c_const" 1>&6
3072 if test $ac_cv_c_const = no
; then
3073 cat >> confdefs.h
<<\EOF
3079 echo $ac_n "checking for inline""... $ac_c" 1>&6
3080 echo "configure:3081: checking for inline" >&5
3081 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3085 for ac_kw
in inline __inline__ __inline
; do
3086 cat > conftest.
$ac_ext <<EOF
3087 #line 3088 "configure"
3088 #include "confdefs.h"
3094 if { (eval echo configure
:3095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3096 ac_cv_c_inline
=$ac_kw; break
3098 echo "configure: failed program was:" >&5
3099 cat conftest.
$ac_ext >&5
3106 echo "$ac_t""$ac_cv_c_inline" 1>&6
3107 case "$ac_cv_c_inline" in
3109 no
) cat >> confdefs.h
<<\EOF
3113 *) cat >> confdefs.h
<<EOF
3114 #define inline $ac_cv_c_inline
3119 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3120 echo "configure:3121: checking whether byte ordering is bigendian" >&5
3121 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3122 echo $ac_n "(cached) $ac_c" 1>&6
3124 ac_cv_c_bigendian
=unknown
3125 # See if sys/param.h defines the BYTE_ORDER macro.
3126 cat > conftest.
$ac_ext <<EOF
3127 #line 3128 "configure"
3128 #include "confdefs.h"
3129 #include <sys/types.h>
3130 #include <sys/param.h>
3133 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3138 if { (eval echo configure
:3139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3140 # It does; now see whether it defined to BIG_ENDIAN or not.
3141 cat > conftest.
$ac_ext <<EOF
3142 #line 3143 "configure"
3143 #include "confdefs.h"
3144 #include <sys/types.h>
3145 #include <sys/param.h>
3148 #if BYTE_ORDER != BIG_ENDIAN
3153 if { (eval echo configure
:3154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3155 ac_cv_c_bigendian
=yes
3157 echo "configure: failed program was:" >&5
3158 cat conftest.
$ac_ext >&5
3160 ac_cv_c_bigendian
=no
3164 echo "configure: failed program was:" >&5
3165 cat conftest.
$ac_ext >&5
3168 if test $ac_cv_c_bigendian = unknown
; then
3169 if test "$cross_compiling" = yes; then
3170 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3172 cat > conftest.
$ac_ext <<EOF
3173 #line 3174 "configure"
3174 #include "confdefs.h"
3176 /* Are we little or big endian? From Harbison&Steele. */
3180 char c[sizeof (long)];
3183 exit (u.c[sizeof (long) - 1] == 1);
3186 if { (eval echo configure
:3187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3188 ac_cv_c_bigendian
=no
3190 echo "configure: failed program was:" >&5
3191 cat conftest.
$ac_ext >&5
3193 ac_cv_c_bigendian
=yes
3201 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3202 if test $ac_cv_c_bigendian = yes; then
3203 cat >> confdefs.h
<<\EOF
3204 #define WORDS_BIGENDIAN 1
3209 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3210 echo "configure:3211: checking whether char is unsigned" >&5
3211 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3212 echo $ac_n "(cached) $ac_c" 1>&6
3214 if test "$GCC" = yes; then
3215 # GCC predefines this symbol on systems where it applies.
3216 cat > conftest.
$ac_ext <<EOF
3217 #line 3218 "configure"
3218 #include "confdefs.h"
3219 #ifdef __CHAR_UNSIGNED__
3224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3225 egrep "yes" >/dev
/null
2>&1; then
3227 ac_cv_c_char_unsigned
=yes
3230 ac_cv_c_char_unsigned
=no
3235 if test "$cross_compiling" = yes; then
3236 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3238 cat > conftest.
$ac_ext <<EOF
3239 #line 3240 "configure"
3240 #include "confdefs.h"
3241 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3242 #if !defined(__STDC__) || __STDC__ != 1
3246 volatile char c = 255; exit(c < 0);
3249 if { (eval echo configure
:3250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3251 ac_cv_c_char_unsigned
=yes
3253 echo "configure: failed program was:" >&5
3254 cat conftest.
$ac_ext >&5
3256 ac_cv_c_char_unsigned
=no
3264 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3265 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3266 cat >> confdefs.h
<<\EOF
3267 #define __CHAR_UNSIGNED__ 1
3273 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3274 echo "configure:3275: checking return type of signal handlers" >&5
3275 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3276 echo $ac_n "(cached) $ac_c" 1>&6
3278 cat > conftest.
$ac_ext <<EOF
3279 #line 3280 "configure"
3280 #include "confdefs.h"
3281 #include <sys/types.h>
3287 extern "C" void (*signal (int, void (*)(int)))(int);
3289 void (*signal ()) ();
3296 if { (eval echo configure
:3297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3298 ac_cv_type_signal
=void
3300 echo "configure: failed program was:" >&5
3301 cat conftest.
$ac_ext >&5
3303 ac_cv_type_signal
=int
3308 echo "$ac_t""$ac_cv_type_signal" 1>&6
3309 cat >> confdefs.h
<<EOF
3310 #define RETSIGTYPE $ac_cv_type_signal
3314 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3315 echo "configure:3316: checking for uid_t in sys/types.h" >&5
3316 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3319 cat > conftest.
$ac_ext <<EOF
3320 #line 3321 "configure"
3321 #include "confdefs.h"
3322 #include <sys/types.h>
3324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3325 egrep "uid_t" >/dev
/null
2>&1; then
3327 ac_cv_type_uid_t
=yes
3336 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3337 if test $ac_cv_type_uid_t = no
; then
3338 cat >> confdefs.h
<<\EOF
3342 cat >> confdefs.h
<<\EOF
3348 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3349 echo "configure:3350: checking for mode_t" >&5
3350 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3351 echo $ac_n "(cached) $ac_c" 1>&6
3353 cat > conftest.
$ac_ext <<EOF
3354 #line 3355 "configure"
3355 #include "confdefs.h"
3356 #include <sys/types.h>
3362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3363 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3365 ac_cv_type_mode_t
=yes
3368 ac_cv_type_mode_t
=no
3373 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3374 if test $ac_cv_type_mode_t = no
; then
3375 cat >> confdefs.h
<<\EOF
3381 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3382 echo "configure:3383: checking for off_t" >&5
3383 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3384 echo $ac_n "(cached) $ac_c" 1>&6
3386 cat > conftest.
$ac_ext <<EOF
3387 #line 3388 "configure"
3388 #include "confdefs.h"
3389 #include <sys/types.h>
3395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3396 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3398 ac_cv_type_off_t
=yes
3406 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3407 if test $ac_cv_type_off_t = no
; then
3408 cat >> confdefs.h
<<\EOF
3414 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3415 echo "configure:3416: checking for size_t" >&5
3416 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3417 echo $ac_n "(cached) $ac_c" 1>&6
3419 cat > conftest.
$ac_ext <<EOF
3420 #line 3421 "configure"
3421 #include "confdefs.h"
3422 #include <sys/types.h>
3428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3429 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3431 ac_cv_type_size_t
=yes
3434 ac_cv_type_size_t
=no
3439 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3440 if test $ac_cv_type_size_t = no
; then
3441 cat >> confdefs.h
<<\EOF
3442 #define size_t unsigned
3447 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3448 echo "configure:3449: checking for pid_t" >&5
3449 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3450 echo $ac_n "(cached) $ac_c" 1>&6
3452 cat > conftest.
$ac_ext <<EOF
3453 #line 3454 "configure"
3454 #include "confdefs.h"
3455 #include <sys/types.h>
3461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3462 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3464 ac_cv_type_pid_t
=yes
3472 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3473 if test $ac_cv_type_pid_t = no
; then
3474 cat >> confdefs.h
<<\EOF
3480 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3481 echo "configure:3482: checking for st_rdev in struct stat" >&5
3482 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3483 echo $ac_n "(cached) $ac_c" 1>&6
3485 cat > conftest.
$ac_ext <<EOF
3486 #line 3487 "configure"
3487 #include "confdefs.h"
3488 #include <sys/types.h>
3489 #include <sys/stat.h>
3491 struct stat s; s.st_rdev;
3494 if { (eval echo configure
:3495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3496 ac_cv_struct_st_rdev
=yes
3498 echo "configure: failed program was:" >&5
3499 cat conftest.
$ac_ext >&5
3501 ac_cv_struct_st_rdev
=no
3506 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3507 if test $ac_cv_struct_st_rdev = yes; then
3508 cat >> confdefs.h
<<\EOF
3509 #define HAVE_ST_RDEV 1
3514 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3515 echo "configure:3516: checking for d_off in dirent" >&5
3516 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3517 echo $ac_n "(cached) $ac_c" 1>&6
3519 cat > conftest.
$ac_ext <<EOF
3520 #line 3521 "configure"
3521 #include "confdefs.h"
3524 #include <sys/types.h>
3527 struct dirent d; d.d_off;
3530 if { (eval echo configure
:3531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3532 ac_cv_dirent_d_off
=yes
3534 echo "configure: failed program was:" >&5
3535 cat conftest.
$ac_ext >&5
3537 ac_cv_dirent_d_off
=no
3542 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3543 if test $ac_cv_dirent_d_off = yes; then
3544 cat >> confdefs.h
<<\EOF
3545 #define HAVE_DIRENT_D_OFF 1
3550 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3551 echo "configure:3552: checking for ino_t" >&5
3552 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3555 cat > conftest.
$ac_ext <<EOF
3556 #line 3557 "configure"
3557 #include "confdefs.h"
3558 #include <sys/types.h>
3564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3565 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3567 ac_cv_type_ino_t
=yes
3575 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3576 if test $ac_cv_type_ino_t = no
; then
3577 cat >> confdefs.h
<<\EOF
3578 #define ino_t unsigned
3583 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3584 echo "configure:3585: checking for loff_t" >&5
3585 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3586 echo $ac_n "(cached) $ac_c" 1>&6
3588 cat > conftest.
$ac_ext <<EOF
3589 #line 3590 "configure"
3590 #include "confdefs.h"
3591 #include <sys/types.h>
3597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3598 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3600 ac_cv_type_loff_t
=yes
3603 ac_cv_type_loff_t
=no
3608 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3609 if test $ac_cv_type_loff_t = no
; then
3610 cat >> confdefs.h
<<\EOF
3611 #define loff_t off_t
3616 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3617 echo "configure:3618: checking for offset_t" >&5
3618 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3619 echo $ac_n "(cached) $ac_c" 1>&6
3621 cat > conftest.
$ac_ext <<EOF
3622 #line 3623 "configure"
3623 #include "confdefs.h"
3624 #include <sys/types.h>
3630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3631 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3633 ac_cv_type_offset_t
=yes
3636 ac_cv_type_offset_t
=no
3641 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3642 if test $ac_cv_type_offset_t = no
; then
3643 cat >> confdefs.h
<<\EOF
3644 #define offset_t loff_t
3649 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3650 echo "configure:3651: checking for ssize_t" >&5
3651 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3652 echo $ac_n "(cached) $ac_c" 1>&6
3654 cat > conftest.
$ac_ext <<EOF
3655 #line 3656 "configure"
3656 #include "confdefs.h"
3657 #include <sys/types.h>
3663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3664 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3666 ac_cv_type_ssize_t
=yes
3669 ac_cv_type_ssize_t
=no
3674 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3675 if test $ac_cv_type_ssize_t = no
; then
3676 cat >> confdefs.h
<<\EOF
3682 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3683 echo "configure:3684: checking for wchar_t" >&5
3684 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3685 echo $ac_n "(cached) $ac_c" 1>&6
3687 cat > conftest.
$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3690 #include <sys/types.h>
3696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3697 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3699 ac_cv_type_wchar_t
=yes
3702 ac_cv_type_wchar_t
=no
3707 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3708 if test $ac_cv_type_wchar_t = no
; then
3709 cat >> confdefs.h
<<\EOF
3710 #define wchar_t unsigned short
3716 ############################################
3717 # for cups support we need libcups, and a handful of header files
3719 # Check whether --enable-cups or --disable-cups was given.
3720 if test "${enable_cups+set}" = set; then
3721 enableval
="$enable_cups"
3726 if test x
$enable_cups != xno
; then
3727 # Extract the first word of "cups-config", so it can be a program name with args.
3728 set dummy cups-config
; ac_word
=$2
3729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3730 echo "configure:3731: checking for $ac_word" >&5
3731 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3732 echo $ac_n "(cached) $ac_c" 1>&6
3734 case "$CUPS_CONFIG" in
3736 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a path.
3739 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a dos path.
3742 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3744 for ac_dir
in $ac_dummy; do
3745 test -z "$ac_dir" && ac_dir
=.
3746 if test -f $ac_dir/$ac_word; then
3747 ac_cv_path_CUPS_CONFIG
="$ac_dir/$ac_word"
3755 CUPS_CONFIG
="$ac_cv_path_CUPS_CONFIG"
3756 if test -n "$CUPS_CONFIG"; then
3757 echo "$ac_t""$CUPS_CONFIG" 1>&6
3759 echo "$ac_t""no" 1>&6
3763 if test "x$CUPS_CONFIG" != x
; then
3764 cat >> confdefs.h
<<\EOF
3768 CFLAGS
="$CFLAGS `$CUPS_CONFIG --cflags`"
3769 LDFLAGS
="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3770 LIBS
="$LIBS `$CUPS_CONFIG --libs`"
3774 ############################################
3775 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3776 for ac_func
in dlopen
3778 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3779 echo "configure:3780: checking for $ac_func" >&5
3780 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3781 echo $ac_n "(cached) $ac_c" 1>&6
3783 cat > conftest.
$ac_ext <<EOF
3784 #line 3785 "configure"
3785 #include "confdefs.h"
3786 /* System header to define __stub macros and hopefully few prototypes,
3787 which can conflict with char $ac_func(); below. */
3789 /* Override any gcc2 internal prototype to avoid an error. */
3790 /* We use char because int might match the return type of a gcc2
3791 builtin and then its argument prototype would still apply. */
3796 /* The GNU C library defines this for functions which it implements
3797 to always fail with ENOSYS. Some functions are actually named
3798 something starting with __ and the normal name is an alias. */
3799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3807 if { (eval echo configure
:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3809 eval "ac_cv_func_$ac_func=yes"
3811 echo "configure: failed program was:" >&5
3812 cat conftest.
$ac_ext >&5
3814 eval "ac_cv_func_$ac_func=no"
3819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3820 echo "$ac_t""yes" 1>&6
3821 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3822 cat >> confdefs.h
<<EOF
3823 #define $ac_tr_func 1
3827 echo "$ac_t""no" 1>&6
3831 if test x
"$ac_cv_func_dlopen" = x
"no"; then
3832 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3833 echo "configure:3834: checking for dlopen in -ldl" >&5
3834 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3835 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3836 echo $ac_n "(cached) $ac_c" 1>&6
3838 ac_save_LIBS
="$LIBS"
3840 cat > conftest.
$ac_ext <<EOF
3841 #line 3842 "configure"
3842 #include "confdefs.h"
3843 /* Override any gcc2 internal prototype to avoid an error. */
3844 /* We use char because int might match the return type of a gcc2
3845 builtin and then its argument prototype would still apply. */
3852 if { (eval echo configure
:3853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3854 eval "ac_cv_lib_$ac_lib_var=yes"
3856 echo "configure: failed program was:" >&5
3857 cat conftest.
$ac_ext >&5
3859 eval "ac_cv_lib_$ac_lib_var=no"
3862 LIBS
="$ac_save_LIBS"
3865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3866 echo "$ac_t""yes" 1>&6
3868 cat >> confdefs.h
<<\EOF
3869 #define HAVE_DLOPEN 1
3873 echo "$ac_t""no" 1>&6
3877 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3879 ############################################
3880 # check if the compiler can do immediate structures
3881 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3882 echo "configure:3883: checking for immediate structures" >&5
3883 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3884 echo $ac_n "(cached) $ac_c" 1>&6
3887 cat > conftest.
$ac_ext <<EOF
3888 #line 3889 "configure"
3889 #include "confdefs.h"
3894 typedef struct {unsigned x;} FOOBAR;
3895 #define X_FOOBAR(x) ((FOOBAR) { x })
3896 #define FOO_ONE X_FOOBAR(1)
3906 if { (eval echo configure
:3907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3908 samba_cv_immediate_structures
=yes
3910 echo "configure: failed program was:" >&5
3911 cat conftest.
$ac_ext >&5
3913 samba_cv_immediate_structures
=no
3918 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3919 if test x
"$samba_cv_immediate_structures" = x
"yes"; then
3920 cat >> confdefs.h
<<\EOF
3921 #define HAVE_IMMEDIATE_STRUCTURES 1
3926 ############################################
3927 # check for unix domain sockets
3928 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3929 echo "configure:3930: checking for unix domain sockets" >&5
3930 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3931 echo $ac_n "(cached) $ac_c" 1>&6
3934 cat > conftest.
$ac_ext <<EOF
3935 #line 3936 "configure"
3936 #include "confdefs.h"
3938 #include <sys/types.h>
3941 #include <sys/socket.h>
3945 struct sockaddr_un sunaddr;
3946 sunaddr.sun_family = AF_UNIX;
3950 if { (eval echo configure
:3951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3952 samba_cv_unixsocket
=yes
3954 echo "configure: failed program was:" >&5
3955 cat conftest.
$ac_ext >&5
3957 samba_cv_unixsocket
=no
3962 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3963 if test x
"$samba_cv_unixsocket" = x
"yes"; then
3964 cat >> confdefs.h
<<\EOF
3965 #define HAVE_UNIXSOCKET 1
3970 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3971 echo "configure:3972: checking for socklen_t type" >&5
3972 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3973 echo $ac_n "(cached) $ac_c" 1>&6
3976 cat > conftest.
$ac_ext <<EOF
3977 #line 3978 "configure"
3978 #include "confdefs.h"
3980 #include <sys/types.h>
3985 #include <sys/socket.h>
3990 if { (eval echo configure
:3991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3992 samba_cv_socklen_t
=yes
3994 echo "configure: failed program was:" >&5
3995 cat conftest.
$ac_ext >&5
3997 samba_cv_socklen_t
=no
4002 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4003 if test x
"$samba_cv_socklen_t" = x
"yes"; then
4004 cat >> confdefs.h
<<\EOF
4005 #define HAVE_SOCKLEN_T_TYPE 1
4010 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4011 echo "configure:4012: checking for sig_atomic_t type" >&5
4012 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4013 echo $ac_n "(cached) $ac_c" 1>&6
4016 cat > conftest.
$ac_ext <<EOF
4017 #line 4018 "configure"
4018 #include "confdefs.h"
4020 #include <sys/types.h>
4030 if { (eval echo configure
:4031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4032 samba_cv_sig_atomic_t
=yes
4034 echo "configure: failed program was:" >&5
4035 cat conftest.
$ac_ext >&5
4037 samba_cv_sig_atomic_t
=no
4042 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4043 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
4044 cat >> confdefs.h
<<\EOF
4045 #define HAVE_SIG_ATOMIC_T_TYPE 1
4050 # stupid headers have the functions but no declaration. grrrr.
4052 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4053 echo "configure:4054: checking for errno declaration" >&5
4054 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4055 echo $ac_n "(cached) $ac_c" 1>&6
4058 cat > conftest.
$ac_ext <<EOF
4059 #line 4060 "configure"
4060 #include "confdefs.h"
4066 if { (eval echo configure
:4067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4068 ac_cv_have_errno_decl
=yes
4070 echo "configure: failed program was:" >&5
4071 cat conftest.
$ac_ext >&5
4073 ac_cv_have_errno_decl
=no
4078 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4079 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
4080 cat >> confdefs.h
<<\EOF
4081 #define HAVE_ERRNO_DECL 1
4087 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4088 echo "configure:4089: checking for setresuid declaration" >&5
4089 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4090 echo $ac_n "(cached) $ac_c" 1>&6
4093 cat > conftest.
$ac_ext <<EOF
4094 #line 4095 "configure"
4095 #include "confdefs.h"
4098 int i = (int)setresuid
4101 if { (eval echo configure
:4102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4103 ac_cv_have_setresuid_decl
=yes
4105 echo "configure: failed program was:" >&5
4106 cat conftest.
$ac_ext >&5
4108 ac_cv_have_setresuid_decl
=no
4113 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4114 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
4115 cat >> confdefs.h
<<\EOF
4116 #define HAVE_SETRESUID_DECL 1
4122 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4123 echo "configure:4124: checking for setresgid declaration" >&5
4124 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4125 echo $ac_n "(cached) $ac_c" 1>&6
4128 cat > conftest.
$ac_ext <<EOF
4129 #line 4130 "configure"
4130 #include "confdefs.h"
4133 int i = (int)setresgid
4136 if { (eval echo configure
:4137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4138 ac_cv_have_setresgid_decl
=yes
4140 echo "configure: failed program was:" >&5
4141 cat conftest.
$ac_ext >&5
4143 ac_cv_have_setresgid_decl
=no
4148 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4149 if test x
"$ac_cv_have_setresgid_decl" = x
"yes"; then
4150 cat >> confdefs.h
<<\EOF
4151 #define HAVE_SETRESGID_DECL 1
4157 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4158 echo "configure:4159: checking for asprintf declaration" >&5
4159 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4160 echo $ac_n "(cached) $ac_c" 1>&6
4163 cat > conftest.
$ac_ext <<EOF
4164 #line 4165 "configure"
4165 #include "confdefs.h"
4168 int i = (int)asprintf
4171 if { (eval echo configure
:4172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4173 ac_cv_have_asprintf_decl
=yes
4175 echo "configure: failed program was:" >&5
4176 cat conftest.
$ac_ext >&5
4178 ac_cv_have_asprintf_decl
=no
4183 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4184 if test x
"$ac_cv_have_asprintf_decl" = x
"yes"; then
4185 cat >> confdefs.h
<<\EOF
4186 #define HAVE_ASPRINTF_DECL 1
4192 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4193 echo "configure:4194: checking for vasprintf declaration" >&5
4194 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4195 echo $ac_n "(cached) $ac_c" 1>&6
4198 cat > conftest.
$ac_ext <<EOF
4199 #line 4200 "configure"
4200 #include "confdefs.h"
4203 int i = (int)vasprintf
4206 if { (eval echo configure
:4207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4208 ac_cv_have_vasprintf_decl
=yes
4210 echo "configure: failed program was:" >&5
4211 cat conftest.
$ac_ext >&5
4213 ac_cv_have_vasprintf_decl
=no
4218 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4219 if test x
"$ac_cv_have_vasprintf_decl" = x
"yes"; then
4220 cat >> confdefs.h
<<\EOF
4221 #define HAVE_VASPRINTF_DECL 1
4227 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4228 echo "configure:4229: checking for vsnprintf declaration" >&5
4229 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4230 echo $ac_n "(cached) $ac_c" 1>&6
4233 cat > conftest.
$ac_ext <<EOF
4234 #line 4235 "configure"
4235 #include "confdefs.h"
4238 int i = (int)vsnprintf
4241 if { (eval echo configure
:4242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4243 ac_cv_have_vsnprintf_decl
=yes
4245 echo "configure: failed program was:" >&5
4246 cat conftest.
$ac_ext >&5
4248 ac_cv_have_vsnprintf_decl
=no
4253 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4254 if test x
"$ac_cv_have_vsnprintf_decl" = x
"yes"; then
4255 cat >> confdefs.h
<<\EOF
4256 #define HAVE_VSNPRINTF_DECL 1
4262 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4263 echo "configure:4264: checking for snprintf declaration" >&5
4264 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4265 echo $ac_n "(cached) $ac_c" 1>&6
4268 cat > conftest.
$ac_ext <<EOF
4269 #line 4270 "configure"
4270 #include "confdefs.h"
4273 int i = (int)snprintf
4276 if { (eval echo configure
:4277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4278 ac_cv_have_snprintf_decl
=yes
4280 echo "configure: failed program was:" >&5
4281 cat conftest.
$ac_ext >&5
4283 ac_cv_have_snprintf_decl
=no
4288 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4289 if test x
"$ac_cv_have_snprintf_decl" = x
"yes"; then
4290 cat >> confdefs.h
<<\EOF
4291 #define HAVE_SNPRINTF_DECL 1
4297 # and glibc has setresuid under linux but the function does
4298 # nothing until kernel 2.1.44! very dumb.
4299 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4300 echo "configure:4301: checking for real setresuid" >&5
4301 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4302 echo $ac_n "(cached) $ac_c" 1>&6
4305 if test "$cross_compiling" = yes; then
4306 samba_cv_have_setresuid
=cross
4308 cat > conftest.
$ac_ext <<EOF
4309 #line 4310 "configure"
4310 #include "confdefs.h"
4312 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4314 if { (eval echo configure
:4315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4316 samba_cv_have_setresuid
=yes
4318 echo "configure: failed program was:" >&5
4319 cat conftest.
$ac_ext >&5
4321 samba_cv_have_setresuid
=no
4328 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4329 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4330 cat >> confdefs.h
<<\EOF
4331 #define HAVE_SETRESUID 1
4336 # Do the same check for setresguid...
4338 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4339 echo "configure:4340: checking for real setresgid" >&5
4340 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4341 echo $ac_n "(cached) $ac_c" 1>&6
4344 if test "$cross_compiling" = yes; then
4345 samba_cv_have_setresgid
=cross
4347 cat > conftest.
$ac_ext <<EOF
4348 #line 4349 "configure"
4349 #include "confdefs.h"
4352 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4354 if { (eval echo configure
:4355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4356 samba_cv_have_setresgid
=yes
4358 echo "configure: failed program was:" >&5
4359 cat conftest.
$ac_ext >&5
4361 samba_cv_have_setresgid
=no
4368 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4369 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4370 cat >> confdefs.h
<<\EOF
4371 #define HAVE_SETRESGID 1
4376 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4377 echo "configure:4378: checking for 8-bit clean memcmp" >&5
4378 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4379 echo $ac_n "(cached) $ac_c" 1>&6
4381 if test "$cross_compiling" = yes; then
4382 ac_cv_func_memcmp_clean
=no
4384 cat > conftest.
$ac_ext <<EOF
4385 #line 4386 "configure"
4386 #include "confdefs.h"
4390 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4391 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4395 if { (eval echo configure
:4396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4397 ac_cv_func_memcmp_clean
=yes
4399 echo "configure: failed program was:" >&5
4400 cat conftest.
$ac_ext >&5
4402 ac_cv_func_memcmp_clean
=no
4409 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4410 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4413 ###############################################
4414 # Readline included by default unless explicitly asked not to
4415 test "${with_readline+set}" != "set" && with_readline
=yes
4417 # test for where we get readline() from
4418 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4419 echo "configure:4420: checking whether to use readline" >&5
4420 # Check whether --with-readline or --without-readline was given.
4421 if test "${with_readline+set}" = set; then
4422 withval
="$with_readline"
4423 case "$with_readline" in
4425 echo "$ac_t""yes" 1>&6
4427 for ac_hdr
in readline.h
history.h readline
/readline.h
4429 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4430 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4431 echo "configure:4432: checking for $ac_hdr" >&5
4432 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4433 echo $ac_n "(cached) $ac_c" 1>&6
4435 cat > conftest.
$ac_ext <<EOF
4436 #line 4437 "configure"
4437 #include "confdefs.h"
4440 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4441 { (eval echo configure
:4442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4442 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4443 if test -z "$ac_err"; then
4445 eval "ac_cv_header_$ac_safe=yes"
4448 echo "configure: failed program was:" >&5
4449 cat conftest.
$ac_ext >&5
4451 eval "ac_cv_header_$ac_safe=no"
4455 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4456 echo "$ac_t""yes" 1>&6
4457 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4458 cat >> confdefs.h
<<EOF
4459 #define $ac_tr_hdr 1
4463 echo "$ac_t""no" 1>&6
4467 for ac_hdr
in readline
/history.h
4469 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4470 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4471 echo "configure:4472: checking for $ac_hdr" >&5
4472 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4473 echo $ac_n "(cached) $ac_c" 1>&6
4475 cat > conftest.
$ac_ext <<EOF
4476 #line 4477 "configure"
4477 #include "confdefs.h"
4480 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4481 { (eval echo configure
:4482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4482 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4483 if test -z "$ac_err"; then
4485 eval "ac_cv_header_$ac_safe=yes"
4488 echo "configure: failed program was:" >&5
4489 cat conftest.
$ac_ext >&5
4491 eval "ac_cv_header_$ac_safe=no"
4495 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4496 echo "$ac_t""yes" 1>&6
4497 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4498 cat >> confdefs.h
<<EOF
4499 #define $ac_tr_hdr 1
4503 echo "$ac_t""no" 1>&6
4508 for ac_hdr
in readline.h readline
/readline.h
4510 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4511 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4512 echo "configure:4513: checking for $ac_hdr" >&5
4513 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4514 echo $ac_n "(cached) $ac_c" 1>&6
4516 cat > conftest.
$ac_ext <<EOF
4517 #line 4518 "configure"
4518 #include "confdefs.h"
4521 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4522 { (eval echo configure
:4523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4523 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4524 if test -z "$ac_err"; then
4526 eval "ac_cv_header_$ac_safe=yes"
4529 echo "configure: failed program was:" >&5
4530 cat conftest.
$ac_ext >&5
4532 eval "ac_cv_header_$ac_safe=no"
4536 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4537 echo "$ac_t""yes" 1>&6
4538 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4539 cat >> confdefs.h
<<EOF
4540 #define $ac_tr_hdr 1
4543 for termlib
in ncurses curses termcap terminfo termlib
; do
4544 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4545 echo "configure:4546: checking for tgetent in -l${termlib}" >&5
4546 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4547 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4548 echo $ac_n "(cached) $ac_c" 1>&6
4550 ac_save_LIBS
="$LIBS"
4551 LIBS
="-l${termlib} $LIBS"
4552 cat > conftest.
$ac_ext <<EOF
4553 #line 4554 "configure"
4554 #include "confdefs.h"
4555 /* Override any gcc2 internal prototype to avoid an error. */
4556 /* We use char because int might match the return type of a gcc2
4557 builtin and then its argument prototype would still apply. */
4564 if { (eval echo configure
:4565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4566 eval "ac_cv_lib_$ac_lib_var=yes"
4568 echo "configure: failed program was:" >&5
4569 cat conftest.
$ac_ext >&5
4571 eval "ac_cv_lib_$ac_lib_var=no"
4574 LIBS
="$ac_save_LIBS"
4577 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4578 echo "$ac_t""yes" 1>&6
4579 TERMLIBS
="-l${termlib}"; break
4581 echo "$ac_t""no" 1>&6
4585 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4586 echo "configure:4587: checking for rl_callback_handler_install in -lreadline" >&5
4587 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4588 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4589 echo $ac_n "(cached) $ac_c" 1>&6
4591 ac_save_LIBS
="$LIBS"
4592 LIBS
="-lreadline $TERMLIBS $LIBS"
4593 cat > conftest.
$ac_ext <<EOF
4594 #line 4595 "configure"
4595 #include "confdefs.h"
4596 /* Override any gcc2 internal prototype to avoid an error. */
4597 /* We use char because int might match the return type of a gcc2
4598 builtin and then its argument prototype would still apply. */
4599 char rl_callback_handler_install();
4602 rl_callback_handler_install()
4605 if { (eval echo configure
:4606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4607 eval "ac_cv_lib_$ac_lib_var=yes"
4609 echo "configure: failed program was:" >&5
4610 cat conftest.
$ac_ext >&5
4612 eval "ac_cv_lib_$ac_lib_var=no"
4615 LIBS
="$ac_save_LIBS"
4618 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4619 echo "$ac_t""yes" 1>&6
4620 TERMLIBS
="-lreadline $TERMLIBS"
4621 cat >> confdefs.h
<<\EOF
4622 #define HAVE_LIBREADLINE 1
4627 echo "$ac_t""no" 1>&6
4632 echo "$ac_t""no" 1>&6
4638 echo "$ac_t""no" 1>&6
4641 echo "$ac_t""yes" 1>&6
4643 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4644 # alternate readline path
4646 _cppflags
=${CPPFLAGS}
4648 # Add additional search path
4649 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4650 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4652 for ac_hdr
in readline.h
history.h readline
/readline.h
4654 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4655 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4656 echo "configure:4657: checking for $ac_hdr" >&5
4657 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4658 echo $ac_n "(cached) $ac_c" 1>&6
4660 cat > conftest.
$ac_ext <<EOF
4661 #line 4662 "configure"
4662 #include "confdefs.h"
4665 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4666 { (eval echo configure
:4667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4667 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4668 if test -z "$ac_err"; then
4670 eval "ac_cv_header_$ac_safe=yes"
4673 echo "configure: failed program was:" >&5
4674 cat conftest.
$ac_ext >&5
4676 eval "ac_cv_header_$ac_safe=no"
4680 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4681 echo "$ac_t""yes" 1>&6
4682 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4683 cat >> confdefs.h
<<EOF
4684 #define $ac_tr_hdr 1
4688 echo "$ac_t""no" 1>&6
4692 for ac_hdr
in readline
/history.h
4694 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4695 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4696 echo "configure:4697: checking for $ac_hdr" >&5
4697 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4698 echo $ac_n "(cached) $ac_c" 1>&6
4700 cat > conftest.
$ac_ext <<EOF
4701 #line 4702 "configure"
4702 #include "confdefs.h"
4705 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4706 { (eval echo configure
:4707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4707 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4708 if test -z "$ac_err"; then
4710 eval "ac_cv_header_$ac_safe=yes"
4713 echo "configure: failed program was:" >&5
4714 cat conftest.
$ac_ext >&5
4716 eval "ac_cv_header_$ac_safe=no"
4720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4721 echo "$ac_t""yes" 1>&6
4722 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4723 cat >> confdefs.h
<<EOF
4724 #define $ac_tr_hdr 1
4728 echo "$ac_t""no" 1>&6
4733 for ac_hdr
in readline.h readline
/readline.h
4735 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4737 echo "configure:4738: checking for $ac_hdr" >&5
4738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4739 echo $ac_n "(cached) $ac_c" 1>&6
4741 cat > conftest.
$ac_ext <<EOF
4742 #line 4743 "configure"
4743 #include "confdefs.h"
4746 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4747 { (eval echo configure
:4748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4748 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4749 if test -z "$ac_err"; then
4751 eval "ac_cv_header_$ac_safe=yes"
4754 echo "configure: failed program was:" >&5
4755 cat conftest.
$ac_ext >&5
4757 eval "ac_cv_header_$ac_safe=no"
4761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4762 echo "$ac_t""yes" 1>&6
4763 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4764 cat >> confdefs.h
<<EOF
4765 #define $ac_tr_hdr 1
4768 for termlib
in ncurses curses termcap terminfo termlib
; do
4769 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4770 echo "configure:4771: checking for tgetent in -l${termlib}" >&5
4771 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4772 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4773 echo $ac_n "(cached) $ac_c" 1>&6
4775 ac_save_LIBS
="$LIBS"
4776 LIBS
="-l${termlib} $LIBS"
4777 cat > conftest.
$ac_ext <<EOF
4778 #line 4779 "configure"
4779 #include "confdefs.h"
4780 /* Override any gcc2 internal prototype to avoid an error. */
4781 /* We use char because int might match the return type of a gcc2
4782 builtin and then its argument prototype would still apply. */
4789 if { (eval echo configure
:4790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4791 eval "ac_cv_lib_$ac_lib_var=yes"
4793 echo "configure: failed program was:" >&5
4794 cat conftest.
$ac_ext >&5
4796 eval "ac_cv_lib_$ac_lib_var=no"
4799 LIBS
="$ac_save_LIBS"
4802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4803 echo "$ac_t""yes" 1>&6
4804 TERMLIBS
="-l${termlib}"; break
4806 echo "$ac_t""no" 1>&6
4810 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4811 echo "configure:4812: checking for rl_callback_handler_install in -lreadline" >&5
4812 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4813 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4814 echo $ac_n "(cached) $ac_c" 1>&6
4816 ac_save_LIBS
="$LIBS"
4817 LIBS
="-lreadline $TERMLIBS $LIBS"
4818 cat > conftest.
$ac_ext <<EOF
4819 #line 4820 "configure"
4820 #include "confdefs.h"
4821 /* Override any gcc2 internal prototype to avoid an error. */
4822 /* We use char because int might match the return type of a gcc2
4823 builtin and then its argument prototype would still apply. */
4824 char rl_callback_handler_install();
4827 rl_callback_handler_install()
4830 if { (eval echo configure
:4831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4832 eval "ac_cv_lib_$ac_lib_var=yes"
4834 echo "configure: failed program was:" >&5
4835 cat conftest.
$ac_ext >&5
4837 eval "ac_cv_lib_$ac_lib_var=no"
4840 LIBS
="$ac_save_LIBS"
4843 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4844 echo "$ac_t""yes" 1>&6
4845 TERMLDFLAGS
="-L$with_readline/lib"
4846 TERMCPPFLAGS
="-I$with_readline/include"
4847 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4848 TERMLIBS
="-lreadline $TERMLIBS"
4849 cat >> confdefs.h
<<\EOF
4850 #define HAVE_LIBREADLINE 1
4855 echo "$ac_t""no" 1>&6
4856 TERMLIBS
= CPPFLAGS
=$_cppflags
4860 echo "$ac_t""no" 1>&6
4869 echo "$ac_t""no" 1>&6
4876 # The following test taken from the cvs sources
4877 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4878 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4879 # libsocket.so which has a bad implementation of gethostbyname (it
4880 # only looks in /etc/hosts), so we only look for -lsocket if we need
4882 for ac_func
in connect
4884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4885 echo "configure:4886: checking for $ac_func" >&5
4886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4887 echo $ac_n "(cached) $ac_c" 1>&6
4889 cat > conftest.
$ac_ext <<EOF
4890 #line 4891 "configure"
4891 #include "confdefs.h"
4892 /* System header to define __stub macros and hopefully few prototypes,
4893 which can conflict with char $ac_func(); below. */
4895 /* Override any gcc2 internal prototype to avoid an error. */
4896 /* We use char because int might match the return type of a gcc2
4897 builtin and then its argument prototype would still apply. */
4902 /* The GNU C library defines this for functions which it implements
4903 to always fail with ENOSYS. Some functions are actually named
4904 something starting with __ and the normal name is an alias. */
4905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4913 if { (eval echo configure
:4914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4915 eval "ac_cv_func_$ac_func=yes"
4917 echo "configure: failed program was:" >&5
4918 cat conftest.
$ac_ext >&5
4920 eval "ac_cv_func_$ac_func=no"
4925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4926 echo "$ac_t""yes" 1>&6
4927 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4928 cat >> confdefs.h
<<EOF
4929 #define $ac_tr_func 1
4933 echo "$ac_t""no" 1>&6
4937 if test x
"$ac_cv_func_connect" = x
"no"; then
4940 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4941 echo "configure:4942: checking for printf in -lnsl_s" >&5
4942 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4943 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4944 echo $ac_n "(cached) $ac_c" 1>&6
4946 ac_save_LIBS
="$LIBS"
4947 LIBS
="-lnsl_s $LIBS"
4948 cat > conftest.
$ac_ext <<EOF
4949 #line 4950 "configure"
4950 #include "confdefs.h"
4951 /* Override any gcc2 internal prototype to avoid an error. */
4952 /* We use char because int might match the return type of a gcc2
4953 builtin and then its argument prototype would still apply. */
4960 if { (eval echo configure
:4961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4962 eval "ac_cv_lib_$ac_lib_var=yes"
4964 echo "configure: failed program was:" >&5
4965 cat conftest.
$ac_ext >&5
4967 eval "ac_cv_lib_$ac_lib_var=no"
4970 LIBS
="$ac_save_LIBS"
4973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4974 echo "$ac_t""yes" 1>&6
4975 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4976 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4977 cat >> confdefs.h
<<EOF
4978 #define $ac_tr_lib 1
4981 LIBS
="-lnsl_s $LIBS"
4984 echo "$ac_t""no" 1>&6
4990 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4991 echo "configure:4992: checking for printf in -lnsl" >&5
4992 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4993 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4994 echo $ac_n "(cached) $ac_c" 1>&6
4996 ac_save_LIBS
="$LIBS"
4998 cat > conftest.
$ac_ext <<EOF
4999 #line 5000 "configure"
5000 #include "confdefs.h"
5001 /* Override any gcc2 internal prototype to avoid an error. */
5002 /* We use char because int might match the return type of a gcc2
5003 builtin and then its argument prototype would still apply. */
5010 if { (eval echo configure
:5011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5012 eval "ac_cv_lib_$ac_lib_var=yes"
5014 echo "configure: failed program was:" >&5
5015 cat conftest.
$ac_ext >&5
5017 eval "ac_cv_lib_$ac_lib_var=no"
5020 LIBS
="$ac_save_LIBS"
5023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5024 echo "$ac_t""yes" 1>&6
5025 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5026 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5027 cat >> confdefs.h
<<EOF
5028 #define $ac_tr_lib 1
5034 echo "$ac_t""no" 1>&6
5040 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5041 echo "configure:5042: checking for connect in -lsocket" >&5
5042 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5043 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5044 echo $ac_n "(cached) $ac_c" 1>&6
5046 ac_save_LIBS
="$LIBS"
5047 LIBS
="-lsocket $LIBS"
5048 cat > conftest.
$ac_ext <<EOF
5049 #line 5050 "configure"
5050 #include "confdefs.h"
5051 /* Override any gcc2 internal prototype to avoid an error. */
5052 /* We use char because int might match the return type of a gcc2
5053 builtin and then its argument prototype would still apply. */
5060 if { (eval echo configure
:5061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5062 eval "ac_cv_lib_$ac_lib_var=yes"
5064 echo "configure: failed program was:" >&5
5065 cat conftest.
$ac_ext >&5
5067 eval "ac_cv_lib_$ac_lib_var=no"
5070 LIBS
="$ac_save_LIBS"
5073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5074 echo "$ac_t""yes" 1>&6
5075 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5076 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5077 cat >> confdefs.h
<<EOF
5078 #define $ac_tr_lib 1
5081 LIBS
="-lsocket $LIBS"
5084 echo "$ac_t""no" 1>&6
5090 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5091 echo "configure:5092: checking for connect in -linet" >&5
5092 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5093 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5094 echo $ac_n "(cached) $ac_c" 1>&6
5096 ac_save_LIBS
="$LIBS"
5098 cat > conftest.
$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5101 /* Override any gcc2 internal prototype to avoid an error. */
5102 /* We use char because int might match the return type of a gcc2
5103 builtin and then its argument prototype would still apply. */
5110 if { (eval echo configure
:5111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5112 eval "ac_cv_lib_$ac_lib_var=yes"
5114 echo "configure: failed program was:" >&5
5115 cat conftest.
$ac_ext >&5
5117 eval "ac_cv_lib_$ac_lib_var=no"
5120 LIBS
="$ac_save_LIBS"
5123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5124 echo "$ac_t""yes" 1>&6
5125 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5126 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5127 cat >> confdefs.h
<<EOF
5128 #define $ac_tr_lib 1
5134 echo "$ac_t""no" 1>&6
5138 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
5139 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
5140 # ac_cv_func_connect=yes
5141 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5142 cat >> confdefs.h
<<\EOF
5143 #define HAVE_CONNECT 1
5149 ###############################################
5150 # test for where we get get_yp_default_domain() from
5151 for ac_func
in yp_get_default_domain
5153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5154 echo "configure:5155: checking for $ac_func" >&5
5155 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5156 echo $ac_n "(cached) $ac_c" 1>&6
5158 cat > conftest.
$ac_ext <<EOF
5159 #line 5160 "configure"
5160 #include "confdefs.h"
5161 /* System header to define __stub macros and hopefully few prototypes,
5162 which can conflict with char $ac_func(); below. */
5164 /* Override any gcc2 internal prototype to avoid an error. */
5165 /* We use char because int might match the return type of a gcc2
5166 builtin and then its argument prototype would still apply. */
5171 /* The GNU C library defines this for functions which it implements
5172 to always fail with ENOSYS. Some functions are actually named
5173 something starting with __ and the normal name is an alias. */
5174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5182 if { (eval echo configure
:5183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5184 eval "ac_cv_func_$ac_func=yes"
5186 echo "configure: failed program was:" >&5
5187 cat conftest.
$ac_ext >&5
5189 eval "ac_cv_func_$ac_func=no"
5194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5195 echo "$ac_t""yes" 1>&6
5196 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5197 cat >> confdefs.h
<<EOF
5198 #define $ac_tr_func 1
5202 echo "$ac_t""no" 1>&6
5206 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
5207 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5208 echo "configure:5209: checking for yp_get_default_domain in -lnsl" >&5
5209 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5210 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5211 echo $ac_n "(cached) $ac_c" 1>&6
5213 ac_save_LIBS
="$LIBS"
5215 cat > conftest.
$ac_ext <<EOF
5216 #line 5217 "configure"
5217 #include "confdefs.h"
5218 /* Override any gcc2 internal prototype to avoid an error. */
5219 /* We use char because int might match the return type of a gcc2
5220 builtin and then its argument prototype would still apply. */
5221 char yp_get_default_domain();
5224 yp_get_default_domain()
5227 if { (eval echo configure
:5228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5229 eval "ac_cv_lib_$ac_lib_var=yes"
5231 echo "configure: failed program was:" >&5
5232 cat conftest.
$ac_ext >&5
5234 eval "ac_cv_lib_$ac_lib_var=no"
5237 LIBS
="$ac_save_LIBS"
5240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5241 echo "$ac_t""yes" 1>&6
5243 cat >> confdefs.h
<<\EOF
5244 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5248 echo "$ac_t""no" 1>&6
5253 # Check if we have execl, if not we need to compile smbrun.
5254 for ac_func
in execl
5256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5257 echo "configure:5258: checking for $ac_func" >&5
5258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5259 echo $ac_n "(cached) $ac_c" 1>&6
5261 cat > conftest.
$ac_ext <<EOF
5262 #line 5263 "configure"
5263 #include "confdefs.h"
5264 /* System header to define __stub macros and hopefully few prototypes,
5265 which can conflict with char $ac_func(); below. */
5267 /* Override any gcc2 internal prototype to avoid an error. */
5268 /* We use char because int might match the return type of a gcc2
5269 builtin and then its argument prototype would still apply. */
5274 /* The GNU C library defines this for functions which it implements
5275 to always fail with ENOSYS. Some functions are actually named
5276 something starting with __ and the normal name is an alias. */
5277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5285 if { (eval echo configure
:5286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5287 eval "ac_cv_func_$ac_func=yes"
5289 echo "configure: failed program was:" >&5
5290 cat conftest.
$ac_ext >&5
5292 eval "ac_cv_func_$ac_func=no"
5297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5298 echo "$ac_t""yes" 1>&6
5299 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5300 cat >> confdefs.h
<<EOF
5301 #define $ac_tr_func 1
5305 echo "$ac_t""no" 1>&6
5309 if test x
"$ac_cv_func_execl" = x
"no"; then
5310 RUNPROG
="bin/smbrun"
5315 for ac_func
in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown
chmod fchmod chroot link
5317 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5318 echo "configure:5319: checking for $ac_func" >&5
5319 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5320 echo $ac_n "(cached) $ac_c" 1>&6
5322 cat > conftest.
$ac_ext <<EOF
5323 #line 5324 "configure"
5324 #include "confdefs.h"
5325 /* System header to define __stub macros and hopefully few prototypes,
5326 which can conflict with char $ac_func(); below. */
5328 /* Override any gcc2 internal prototype to avoid an error. */
5329 /* We use char because int might match the return type of a gcc2
5330 builtin and then its argument prototype would still apply. */
5335 /* The GNU C library defines this for functions which it implements
5336 to always fail with ENOSYS. Some functions are actually named
5337 something starting with __ and the normal name is an alias. */
5338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5346 if { (eval echo configure
:5347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5348 eval "ac_cv_func_$ac_func=yes"
5350 echo "configure: failed program was:" >&5
5351 cat conftest.
$ac_ext >&5
5353 eval "ac_cv_func_$ac_func=no"
5358 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5359 echo "$ac_t""yes" 1>&6
5360 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5361 cat >> confdefs.h
<<EOF
5362 #define $ac_tr_func 1
5366 echo "$ac_t""no" 1>&6
5370 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid mknod mknod64
5372 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5373 echo "configure:5374: checking for $ac_func" >&5
5374 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5375 echo $ac_n "(cached) $ac_c" 1>&6
5377 cat > conftest.
$ac_ext <<EOF
5378 #line 5379 "configure"
5379 #include "confdefs.h"
5380 /* System header to define __stub macros and hopefully few prototypes,
5381 which can conflict with char $ac_func(); below. */
5383 /* Override any gcc2 internal prototype to avoid an error. */
5384 /* We use char because int might match the return type of a gcc2
5385 builtin and then its argument prototype would still apply. */
5390 /* The GNU C library defines this for functions which it implements
5391 to always fail with ENOSYS. Some functions are actually named
5392 something starting with __ and the normal name is an alias. */
5393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5401 if { (eval echo configure
:5402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5403 eval "ac_cv_func_$ac_func=yes"
5405 echo "configure: failed program was:" >&5
5406 cat conftest.
$ac_ext >&5
5408 eval "ac_cv_func_$ac_func=no"
5413 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5414 echo "$ac_t""yes" 1>&6
5415 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5416 cat >> confdefs.h
<<EOF
5417 #define $ac_tr_func 1
5421 echo "$ac_t""no" 1>&6
5425 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5427 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5428 echo "configure:5429: checking for $ac_func" >&5
5429 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5430 echo $ac_n "(cached) $ac_c" 1>&6
5432 cat > conftest.
$ac_ext <<EOF
5433 #line 5434 "configure"
5434 #include "confdefs.h"
5435 /* System header to define __stub macros and hopefully few prototypes,
5436 which can conflict with char $ac_func(); below. */
5438 /* Override any gcc2 internal prototype to avoid an error. */
5439 /* We use char because int might match the return type of a gcc2
5440 builtin and then its argument prototype would still apply. */
5445 /* The GNU C library defines this for functions which it implements
5446 to always fail with ENOSYS. Some functions are actually named
5447 something starting with __ and the normal name is an alias. */
5448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5456 if { (eval echo configure
:5457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5458 eval "ac_cv_func_$ac_func=yes"
5460 echo "configure: failed program was:" >&5
5461 cat conftest.
$ac_ext >&5
5463 eval "ac_cv_func_$ac_func=no"
5468 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5469 echo "$ac_t""yes" 1>&6
5470 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5471 cat >> confdefs.h
<<EOF
5472 #define $ac_tr_func 1
5476 echo "$ac_t""no" 1>&6
5480 for ac_func
in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5482 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5483 echo "configure:5484: checking for $ac_func" >&5
5484 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5485 echo $ac_n "(cached) $ac_c" 1>&6
5487 cat > conftest.
$ac_ext <<EOF
5488 #line 5489 "configure"
5489 #include "confdefs.h"
5490 /* System header to define __stub macros and hopefully few prototypes,
5491 which can conflict with char $ac_func(); below. */
5493 /* Override any gcc2 internal prototype to avoid an error. */
5494 /* We use char because int might match the return type of a gcc2
5495 builtin and then its argument prototype would still apply. */
5500 /* The GNU C library defines this for functions which it implements
5501 to always fail with ENOSYS. Some functions are actually named
5502 something starting with __ and the normal name is an alias. */
5503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5511 if { (eval echo configure
:5512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5513 eval "ac_cv_func_$ac_func=yes"
5515 echo "configure: failed program was:" >&5
5516 cat conftest.
$ac_ext >&5
5518 eval "ac_cv_func_$ac_func=no"
5523 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5524 echo "$ac_t""yes" 1>&6
5525 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5526 cat >> confdefs.h
<<EOF
5527 #define $ac_tr_func 1
5531 echo "$ac_t""no" 1>&6
5535 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf realpath
5537 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5538 echo "configure:5539: checking for $ac_func" >&5
5539 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5540 echo $ac_n "(cached) $ac_c" 1>&6
5542 cat > conftest.
$ac_ext <<EOF
5543 #line 5544 "configure"
5544 #include "confdefs.h"
5545 /* System header to define __stub macros and hopefully few prototypes,
5546 which can conflict with char $ac_func(); below. */
5548 /* Override any gcc2 internal prototype to avoid an error. */
5549 /* We use char because int might match the return type of a gcc2
5550 builtin and then its argument prototype would still apply. */
5555 /* The GNU C library defines this for functions which it implements
5556 to always fail with ENOSYS. Some functions are actually named
5557 something starting with __ and the normal name is an alias. */
5558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5566 if { (eval echo configure
:5567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5568 eval "ac_cv_func_$ac_func=yes"
5570 echo "configure: failed program was:" >&5
5571 cat conftest.
$ac_ext >&5
5573 eval "ac_cv_func_$ac_func=no"
5578 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5579 echo "$ac_t""yes" 1>&6
5580 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5581 cat >> confdefs.h
<<EOF
5582 #define $ac_tr_func 1
5586 echo "$ac_t""no" 1>&6
5590 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5593 echo "configure:5594: checking for $ac_func" >&5
5594 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5595 echo $ac_n "(cached) $ac_c" 1>&6
5597 cat > conftest.
$ac_ext <<EOF
5598 #line 5599 "configure"
5599 #include "confdefs.h"
5600 /* System header to define __stub macros and hopefully few prototypes,
5601 which can conflict with char $ac_func(); below. */
5603 /* Override any gcc2 internal prototype to avoid an error. */
5604 /* We use char because int might match the return type of a gcc2
5605 builtin and then its argument prototype would still apply. */
5610 /* The GNU C library defines this for functions which it implements
5611 to always fail with ENOSYS. Some functions are actually named
5612 something starting with __ and the normal name is an alias. */
5613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5621 if { (eval echo configure
:5622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5623 eval "ac_cv_func_$ac_func=yes"
5625 echo "configure: failed program was:" >&5
5626 cat conftest.
$ac_ext >&5
5628 eval "ac_cv_func_$ac_func=no"
5633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5634 echo "$ac_t""yes" 1>&6
5635 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5636 cat >> confdefs.h
<<EOF
5637 #define $ac_tr_func 1
5641 echo "$ac_t""no" 1>&6
5645 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5647 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5648 echo "configure:5649: checking for $ac_func" >&5
5649 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5650 echo $ac_n "(cached) $ac_c" 1>&6
5652 cat > conftest.
$ac_ext <<EOF
5653 #line 5654 "configure"
5654 #include "confdefs.h"
5655 /* System header to define __stub macros and hopefully few prototypes,
5656 which can conflict with char $ac_func(); below. */
5658 /* Override any gcc2 internal prototype to avoid an error. */
5659 /* We use char because int might match the return type of a gcc2
5660 builtin and then its argument prototype would still apply. */
5665 /* The GNU C library defines this for functions which it implements
5666 to always fail with ENOSYS. Some functions are actually named
5667 something starting with __ and the normal name is an alias. */
5668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5676 if { (eval echo configure
:5677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5678 eval "ac_cv_func_$ac_func=yes"
5680 echo "configure: failed program was:" >&5
5681 cat conftest.
$ac_ext >&5
5683 eval "ac_cv_func_$ac_func=no"
5688 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5689 echo "$ac_t""yes" 1>&6
5690 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5691 cat >> confdefs.h
<<EOF
5692 #define $ac_tr_func 1
5696 echo "$ac_t""no" 1>&6
5700 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5703 echo "configure:5704: checking for $ac_func" >&5
5704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5705 echo $ac_n "(cached) $ac_c" 1>&6
5707 cat > conftest.
$ac_ext <<EOF
5708 #line 5709 "configure"
5709 #include "confdefs.h"
5710 /* System header to define __stub macros and hopefully few prototypes,
5711 which can conflict with char $ac_func(); below. */
5713 /* Override any gcc2 internal prototype to avoid an error. */
5714 /* We use char because int might match the return type of a gcc2
5715 builtin and then its argument prototype would still apply. */
5720 /* The GNU C library defines this for functions which it implements
5721 to always fail with ENOSYS. Some functions are actually named
5722 something starting with __ and the normal name is an alias. */
5723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5731 if { (eval echo configure
:5732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5733 eval "ac_cv_func_$ac_func=yes"
5735 echo "configure: failed program was:" >&5
5736 cat conftest.
$ac_ext >&5
5738 eval "ac_cv_func_$ac_func=no"
5743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5744 echo "$ac_t""yes" 1>&6
5745 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5746 cat >> confdefs.h
<<EOF
5747 #define $ac_tr_func 1
5751 echo "$ac_t""no" 1>&6
5755 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl symlink readlink
5757 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5758 echo "configure:5759: checking for $ac_func" >&5
5759 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5760 echo $ac_n "(cached) $ac_c" 1>&6
5762 cat > conftest.
$ac_ext <<EOF
5763 #line 5764 "configure"
5764 #include "confdefs.h"
5765 /* System header to define __stub macros and hopefully few prototypes,
5766 which can conflict with char $ac_func(); below. */
5768 /* Override any gcc2 internal prototype to avoid an error. */
5769 /* We use char because int might match the return type of a gcc2
5770 builtin and then its argument prototype would still apply. */
5775 /* The GNU C library defines this for functions which it implements
5776 to always fail with ENOSYS. Some functions are actually named
5777 something starting with __ and the normal name is an alias. */
5778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5786 if { (eval echo configure
:5787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5788 eval "ac_cv_func_$ac_func=yes"
5790 echo "configure: failed program was:" >&5
5791 cat conftest.
$ac_ext >&5
5793 eval "ac_cv_func_$ac_func=no"
5798 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5799 echo "$ac_t""yes" 1>&6
5800 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5801 cat >> confdefs.h
<<EOF
5802 #define $ac_tr_func 1
5806 echo "$ac_t""no" 1>&6
5810 for ac_func
in syslog vsyslog
5812 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5813 echo "configure:5814: checking for $ac_func" >&5
5814 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5815 echo $ac_n "(cached) $ac_c" 1>&6
5817 cat > conftest.
$ac_ext <<EOF
5818 #line 5819 "configure"
5819 #include "confdefs.h"
5820 /* System header to define __stub macros and hopefully few prototypes,
5821 which can conflict with char $ac_func(); below. */
5823 /* Override any gcc2 internal prototype to avoid an error. */
5824 /* We use char because int might match the return type of a gcc2
5825 builtin and then its argument prototype would still apply. */
5830 /* The GNU C library defines this for functions which it implements
5831 to always fail with ENOSYS. Some functions are actually named
5832 something starting with __ and the normal name is an alias. */
5833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5841 if { (eval echo configure
:5842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5843 eval "ac_cv_func_$ac_func=yes"
5845 echo "configure: failed program was:" >&5
5846 cat conftest.
$ac_ext >&5
5848 eval "ac_cv_func_$ac_func=no"
5853 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5854 echo "$ac_t""yes" 1>&6
5855 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5856 cat >> confdefs.h
<<EOF
5857 #define $ac_tr_func 1
5861 echo "$ac_t""no" 1>&6
5866 # syscall() is needed for smbwrapper.
5867 for ac_func
in syscall
5869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5870 echo "configure:5871: checking for $ac_func" >&5
5871 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5872 echo $ac_n "(cached) $ac_c" 1>&6
5874 cat > conftest.
$ac_ext <<EOF
5875 #line 5876 "configure"
5876 #include "confdefs.h"
5877 /* System header to define __stub macros and hopefully few prototypes,
5878 which can conflict with char $ac_func(); below. */
5880 /* Override any gcc2 internal prototype to avoid an error. */
5881 /* We use char because int might match the return type of a gcc2
5882 builtin and then its argument prototype would still apply. */
5887 /* The GNU C library defines this for functions which it implements
5888 to always fail with ENOSYS. Some functions are actually named
5889 something starting with __ and the normal name is an alias. */
5890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5898 if { (eval echo configure
:5899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5900 eval "ac_cv_func_$ac_func=yes"
5902 echo "configure: failed program was:" >&5
5903 cat conftest.
$ac_ext >&5
5905 eval "ac_cv_func_$ac_func=no"
5910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5911 echo "$ac_t""yes" 1>&6
5912 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5913 cat >> confdefs.h
<<EOF
5914 #define $ac_tr_func 1
5918 echo "$ac_t""no" 1>&6
5923 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5925 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5926 echo "configure:5927: checking for $ac_func" >&5
5927 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5928 echo $ac_n "(cached) $ac_c" 1>&6
5930 cat > conftest.
$ac_ext <<EOF
5931 #line 5932 "configure"
5932 #include "confdefs.h"
5933 /* System header to define __stub macros and hopefully few prototypes,
5934 which can conflict with char $ac_func(); below. */
5936 /* Override any gcc2 internal prototype to avoid an error. */
5937 /* We use char because int might match the return type of a gcc2
5938 builtin and then its argument prototype would still apply. */
5943 /* The GNU C library defines this for functions which it implements
5944 to always fail with ENOSYS. Some functions are actually named
5945 something starting with __ and the normal name is an alias. */
5946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5954 if { (eval echo configure
:5955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5956 eval "ac_cv_func_$ac_func=yes"
5958 echo "configure: failed program was:" >&5
5959 cat conftest.
$ac_ext >&5
5961 eval "ac_cv_func_$ac_func=no"
5966 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5967 echo "$ac_t""yes" 1>&6
5968 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5969 cat >> confdefs.h
<<EOF
5970 #define $ac_tr_func 1
5974 echo "$ac_t""no" 1>&6
5978 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5980 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5981 echo "configure:5982: checking for $ac_func" >&5
5982 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5983 echo $ac_n "(cached) $ac_c" 1>&6
5985 cat > conftest.
$ac_ext <<EOF
5986 #line 5987 "configure"
5987 #include "confdefs.h"
5988 /* System header to define __stub macros and hopefully few prototypes,
5989 which can conflict with char $ac_func(); below. */
5991 /* Override any gcc2 internal prototype to avoid an error. */
5992 /* We use char because int might match the return type of a gcc2
5993 builtin and then its argument prototype would still apply. */
5998 /* The GNU C library defines this for functions which it implements
5999 to always fail with ENOSYS. Some functions are actually named
6000 something starting with __ and the normal name is an alias. */
6001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6009 if { (eval echo configure
:6010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6011 eval "ac_cv_func_$ac_func=yes"
6013 echo "configure: failed program was:" >&5
6014 cat conftest.
$ac_ext >&5
6016 eval "ac_cv_func_$ac_func=no"
6021 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6022 echo "$ac_t""yes" 1>&6
6023 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6024 cat >> confdefs.h
<<EOF
6025 #define $ac_tr_func 1
6029 echo "$ac_t""no" 1>&6
6033 for ac_func
in __getcwd _getcwd
6035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6036 echo "configure:6037: checking for $ac_func" >&5
6037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6038 echo $ac_n "(cached) $ac_c" 1>&6
6040 cat > conftest.
$ac_ext <<EOF
6041 #line 6042 "configure"
6042 #include "confdefs.h"
6043 /* System header to define __stub macros and hopefully few prototypes,
6044 which can conflict with char $ac_func(); below. */
6046 /* Override any gcc2 internal prototype to avoid an error. */
6047 /* We use char because int might match the return type of a gcc2
6048 builtin and then its argument prototype would still apply. */
6053 /* The GNU C library defines this for functions which it implements
6054 to always fail with ENOSYS. Some functions are actually named
6055 something starting with __ and the normal name is an alias. */
6056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6064 if { (eval echo configure
:6065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6066 eval "ac_cv_func_$ac_func=yes"
6068 echo "configure: failed program was:" >&5
6069 cat conftest.
$ac_ext >&5
6071 eval "ac_cv_func_$ac_func=no"
6076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6077 echo "$ac_t""yes" 1>&6
6078 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6079 cat >> confdefs.h
<<EOF
6080 #define $ac_tr_func 1
6084 echo "$ac_t""no" 1>&6
6088 for ac_func
in __xstat __fxstat __lxstat
6090 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6091 echo "configure:6092: checking for $ac_func" >&5
6092 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6093 echo $ac_n "(cached) $ac_c" 1>&6
6095 cat > conftest.
$ac_ext <<EOF
6096 #line 6097 "configure"
6097 #include "confdefs.h"
6098 /* System header to define __stub macros and hopefully few prototypes,
6099 which can conflict with char $ac_func(); below. */
6101 /* Override any gcc2 internal prototype to avoid an error. */
6102 /* We use char because int might match the return type of a gcc2
6103 builtin and then its argument prototype would still apply. */
6108 /* The GNU C library defines this for functions which it implements
6109 to always fail with ENOSYS. Some functions are actually named
6110 something starting with __ and the normal name is an alias. */
6111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6119 if { (eval echo configure
:6120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6121 eval "ac_cv_func_$ac_func=yes"
6123 echo "configure: failed program was:" >&5
6124 cat conftest.
$ac_ext >&5
6126 eval "ac_cv_func_$ac_func=no"
6131 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6132 echo "$ac_t""yes" 1>&6
6133 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6134 cat >> confdefs.h
<<EOF
6135 #define $ac_tr_func 1
6139 echo "$ac_t""no" 1>&6
6143 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
6145 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6146 echo "configure:6147: checking for $ac_func" >&5
6147 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6148 echo $ac_n "(cached) $ac_c" 1>&6
6150 cat > conftest.
$ac_ext <<EOF
6151 #line 6152 "configure"
6152 #include "confdefs.h"
6153 /* System header to define __stub macros and hopefully few prototypes,
6154 which can conflict with char $ac_func(); below. */
6156 /* Override any gcc2 internal prototype to avoid an error. */
6157 /* We use char because int might match the return type of a gcc2
6158 builtin and then its argument prototype would still apply. */
6163 /* The GNU C library defines this for functions which it implements
6164 to always fail with ENOSYS. Some functions are actually named
6165 something starting with __ and the normal name is an alias. */
6166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6174 if { (eval echo configure
:6175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6176 eval "ac_cv_func_$ac_func=yes"
6178 echo "configure: failed program was:" >&5
6179 cat conftest.
$ac_ext >&5
6181 eval "ac_cv_func_$ac_func=no"
6186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6187 echo "$ac_t""yes" 1>&6
6188 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6189 cat >> confdefs.h
<<EOF
6190 #define $ac_tr_func 1
6194 echo "$ac_t""no" 1>&6
6198 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
6200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6201 echo "configure:6202: checking for $ac_func" >&5
6202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6203 echo $ac_n "(cached) $ac_c" 1>&6
6205 cat > conftest.
$ac_ext <<EOF
6206 #line 6207 "configure"
6207 #include "confdefs.h"
6208 /* System header to define __stub macros and hopefully few prototypes,
6209 which can conflict with char $ac_func(); below. */
6211 /* Override any gcc2 internal prototype to avoid an error. */
6212 /* We use char because int might match the return type of a gcc2
6213 builtin and then its argument prototype would still apply. */
6218 /* The GNU C library defines this for functions which it implements
6219 to always fail with ENOSYS. Some functions are actually named
6220 something starting with __ and the normal name is an alias. */
6221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6229 if { (eval echo configure
:6230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6231 eval "ac_cv_func_$ac_func=yes"
6233 echo "configure: failed program was:" >&5
6234 cat conftest.
$ac_ext >&5
6236 eval "ac_cv_func_$ac_func=no"
6241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6242 echo "$ac_t""yes" 1>&6
6243 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6244 cat >> confdefs.h
<<EOF
6245 #define $ac_tr_func 1
6249 echo "$ac_t""no" 1>&6
6253 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
6255 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6256 echo "configure:6257: checking for $ac_func" >&5
6257 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6258 echo $ac_n "(cached) $ac_c" 1>&6
6260 cat > conftest.
$ac_ext <<EOF
6261 #line 6262 "configure"
6262 #include "confdefs.h"
6263 /* System header to define __stub macros and hopefully few prototypes,
6264 which can conflict with char $ac_func(); below. */
6266 /* Override any gcc2 internal prototype to avoid an error. */
6267 /* We use char because int might match the return type of a gcc2
6268 builtin and then its argument prototype would still apply. */
6273 /* The GNU C library defines this for functions which it implements
6274 to always fail with ENOSYS. Some functions are actually named
6275 something starting with __ and the normal name is an alias. */
6276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6284 if { (eval echo configure
:6285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6286 eval "ac_cv_func_$ac_func=yes"
6288 echo "configure: failed program was:" >&5
6289 cat conftest.
$ac_ext >&5
6291 eval "ac_cv_func_$ac_func=no"
6296 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6297 echo "$ac_t""yes" 1>&6
6298 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6299 cat >> confdefs.h
<<EOF
6300 #define $ac_tr_func 1
6304 echo "$ac_t""no" 1>&6
6308 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
6310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6311 echo "configure:6312: checking for $ac_func" >&5
6312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6313 echo $ac_n "(cached) $ac_c" 1>&6
6315 cat > conftest.
$ac_ext <<EOF
6316 #line 6317 "configure"
6317 #include "confdefs.h"
6318 /* System header to define __stub macros and hopefully few prototypes,
6319 which can conflict with char $ac_func(); below. */
6321 /* Override any gcc2 internal prototype to avoid an error. */
6322 /* We use char because int might match the return type of a gcc2
6323 builtin and then its argument prototype would still apply. */
6328 /* The GNU C library defines this for functions which it implements
6329 to always fail with ENOSYS. Some functions are actually named
6330 something starting with __ and the normal name is an alias. */
6331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6339 if { (eval echo configure
:6340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6341 eval "ac_cv_func_$ac_func=yes"
6343 echo "configure: failed program was:" >&5
6344 cat conftest.
$ac_ext >&5
6346 eval "ac_cv_func_$ac_func=no"
6351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6352 echo "$ac_t""yes" 1>&6
6353 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6354 cat >> confdefs.h
<<EOF
6355 #define $ac_tr_func 1
6359 echo "$ac_t""no" 1>&6
6363 for ac_func
in _write __write _fork __fork
6365 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6366 echo "configure:6367: checking for $ac_func" >&5
6367 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6368 echo $ac_n "(cached) $ac_c" 1>&6
6370 cat > conftest.
$ac_ext <<EOF
6371 #line 6372 "configure"
6372 #include "confdefs.h"
6373 /* System header to define __stub macros and hopefully few prototypes,
6374 which can conflict with char $ac_func(); below. */
6376 /* Override any gcc2 internal prototype to avoid an error. */
6377 /* We use char because int might match the return type of a gcc2
6378 builtin and then its argument prototype would still apply. */
6383 /* The GNU C library defines this for functions which it implements
6384 to always fail with ENOSYS. Some functions are actually named
6385 something starting with __ and the normal name is an alias. */
6386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6394 if { (eval echo configure
:6395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6396 eval "ac_cv_func_$ac_func=yes"
6398 echo "configure: failed program was:" >&5
6399 cat conftest.
$ac_ext >&5
6401 eval "ac_cv_func_$ac_func=no"
6406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6407 echo "$ac_t""yes" 1>&6
6408 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6409 cat >> confdefs.h
<<EOF
6410 #define $ac_tr_func 1
6414 echo "$ac_t""no" 1>&6
6418 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6420 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6421 echo "configure:6422: checking for $ac_func" >&5
6422 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6423 echo $ac_n "(cached) $ac_c" 1>&6
6425 cat > conftest.
$ac_ext <<EOF
6426 #line 6427 "configure"
6427 #include "confdefs.h"
6428 /* System header to define __stub macros and hopefully few prototypes,
6429 which can conflict with char $ac_func(); below. */
6431 /* Override any gcc2 internal prototype to avoid an error. */
6432 /* We use char because int might match the return type of a gcc2
6433 builtin and then its argument prototype would still apply. */
6438 /* The GNU C library defines this for functions which it implements
6439 to always fail with ENOSYS. Some functions are actually named
6440 something starting with __ and the normal name is an alias. */
6441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6449 if { (eval echo configure
:6450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6451 eval "ac_cv_func_$ac_func=yes"
6453 echo "configure: failed program was:" >&5
6454 cat conftest.
$ac_ext >&5
6456 eval "ac_cv_func_$ac_func=no"
6461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6462 echo "$ac_t""yes" 1>&6
6463 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6464 cat >> confdefs.h
<<EOF
6465 #define $ac_tr_func 1
6469 echo "$ac_t""no" 1>&6
6473 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6475 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6476 echo "configure:6477: checking for $ac_func" >&5
6477 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6478 echo $ac_n "(cached) $ac_c" 1>&6
6480 cat > conftest.
$ac_ext <<EOF
6481 #line 6482 "configure"
6482 #include "confdefs.h"
6483 /* System header to define __stub macros and hopefully few prototypes,
6484 which can conflict with char $ac_func(); below. */
6486 /* Override any gcc2 internal prototype to avoid an error. */
6487 /* We use char because int might match the return type of a gcc2
6488 builtin and then its argument prototype would still apply. */
6493 /* The GNU C library defines this for functions which it implements
6494 to always fail with ENOSYS. Some functions are actually named
6495 something starting with __ and the normal name is an alias. */
6496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6504 if { (eval echo configure
:6505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6506 eval "ac_cv_func_$ac_func=yes"
6508 echo "configure: failed program was:" >&5
6509 cat conftest.
$ac_ext >&5
6511 eval "ac_cv_func_$ac_func=no"
6516 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6517 echo "$ac_t""yes" 1>&6
6518 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6519 cat >> confdefs.h
<<EOF
6520 #define $ac_tr_func 1
6524 echo "$ac_t""no" 1>&6
6528 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6531 echo "configure:6532: checking for $ac_func" >&5
6532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6533 echo $ac_n "(cached) $ac_c" 1>&6
6535 cat > conftest.
$ac_ext <<EOF
6536 #line 6537 "configure"
6537 #include "confdefs.h"
6538 /* System header to define __stub macros and hopefully few prototypes,
6539 which can conflict with char $ac_func(); below. */
6541 /* Override any gcc2 internal prototype to avoid an error. */
6542 /* We use char because int might match the return type of a gcc2
6543 builtin and then its argument prototype would still apply. */
6548 /* The GNU C library defines this for functions which it implements
6549 to always fail with ENOSYS. Some functions are actually named
6550 something starting with __ and the normal name is an alias. */
6551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6559 if { (eval echo configure
:6560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6561 eval "ac_cv_func_$ac_func=yes"
6563 echo "configure: failed program was:" >&5
6564 cat conftest.
$ac_ext >&5
6566 eval "ac_cv_func_$ac_func=no"
6571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6572 echo "$ac_t""yes" 1>&6
6573 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6574 cat >> confdefs.h
<<EOF
6575 #define $ac_tr_func 1
6579 echo "$ac_t""no" 1>&6
6583 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6586 echo "configure:6587: checking for $ac_func" >&5
6587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6588 echo $ac_n "(cached) $ac_c" 1>&6
6590 cat > conftest.
$ac_ext <<EOF
6591 #line 6592 "configure"
6592 #include "confdefs.h"
6593 /* System header to define __stub macros and hopefully few prototypes,
6594 which can conflict with char $ac_func(); below. */
6596 /* Override any gcc2 internal prototype to avoid an error. */
6597 /* We use char because int might match the return type of a gcc2
6598 builtin and then its argument prototype would still apply. */
6603 /* The GNU C library defines this for functions which it implements
6604 to always fail with ENOSYS. Some functions are actually named
6605 something starting with __ and the normal name is an alias. */
6606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6614 if { (eval echo configure
:6615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6616 eval "ac_cv_func_$ac_func=yes"
6618 echo "configure: failed program was:" >&5
6619 cat conftest.
$ac_ext >&5
6621 eval "ac_cv_func_$ac_func=no"
6626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6627 echo "$ac_t""yes" 1>&6
6628 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6629 cat >> confdefs.h
<<EOF
6630 #define $ac_tr_func 1
6634 echo "$ac_t""no" 1>&6
6638 for ac_func
in open64 _open64 __open64 creat64
6640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6641 echo "configure:6642: checking for $ac_func" >&5
6642 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6643 echo $ac_n "(cached) $ac_c" 1>&6
6645 cat > conftest.
$ac_ext <<EOF
6646 #line 6647 "configure"
6647 #include "confdefs.h"
6648 /* System header to define __stub macros and hopefully few prototypes,
6649 which can conflict with char $ac_func(); below. */
6651 /* Override any gcc2 internal prototype to avoid an error. */
6652 /* We use char because int might match the return type of a gcc2
6653 builtin and then its argument prototype would still apply. */
6658 /* The GNU C library defines this for functions which it implements
6659 to always fail with ENOSYS. Some functions are actually named
6660 something starting with __ and the normal name is an alias. */
6661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6669 if { (eval echo configure
:6670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6671 eval "ac_cv_func_$ac_func=yes"
6673 echo "configure: failed program was:" >&5
6674 cat conftest.
$ac_ext >&5
6676 eval "ac_cv_func_$ac_func=no"
6681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6682 echo "$ac_t""yes" 1>&6
6683 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6684 cat >> confdefs.h
<<EOF
6685 #define $ac_tr_func 1
6689 echo "$ac_t""no" 1>&6
6695 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6698 if test x
$ac_cv_func_stat64 = xno
; then
6699 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6700 echo "configure:6701: checking for stat64 in <sys/stat.h>" >&5
6701 cat > conftest.
$ac_ext <<EOF
6702 #line 6703 "configure"
6703 #include "confdefs.h"
6705 #if defined(HAVE_UNISTD_H)
6708 #include <sys/stat.h>
6711 struct stat64 st64; exit(stat64(".",&st64));
6714 if { (eval echo configure
:6715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6716 ac_cv_func_stat64
=yes
6718 echo "configure: failed program was:" >&5
6719 cat conftest.
$ac_ext >&5
6722 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6723 if test x
$ac_cv_func_stat64 = xyes
; then
6724 cat >> confdefs.h
<<\EOF
6725 #define HAVE_STAT64 1
6731 if test x
$ac_cv_func_lstat64 = xno
; then
6732 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6733 echo "configure:6734: checking for lstat64 in <sys/stat.h>" >&5
6734 cat > conftest.
$ac_ext <<EOF
6735 #line 6736 "configure"
6736 #include "confdefs.h"
6738 #if defined(HAVE_UNISTD_H)
6741 #include <sys/stat.h>
6744 struct stat64 st64; exit(lstat64(".",&st64));
6747 if { (eval echo configure
:6748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6749 ac_cv_func_lstat64
=yes
6751 echo "configure: failed program was:" >&5
6752 cat conftest.
$ac_ext >&5
6755 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6756 if test x
$ac_cv_func_lstat64 = xyes
; then
6757 cat >> confdefs.h
<<\EOF
6758 #define HAVE_LSTAT64 1
6764 if test x
$ac_cv_func_fstat64 = xno
; then
6765 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6766 echo "configure:6767: checking for fstat64 in <sys/stat.h>" >&5
6767 cat > conftest.
$ac_ext <<EOF
6768 #line 6769 "configure"
6769 #include "confdefs.h"
6771 #if defined(HAVE_UNISTD_H)
6774 #include <sys/stat.h>
6777 struct stat64 st64; exit(fstat64(0,&st64));
6780 if { (eval echo configure
:6781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6782 ac_cv_func_fstat64
=yes
6784 echo "configure: failed program was:" >&5
6785 cat conftest.
$ac_ext >&5
6788 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6789 if test x
$ac_cv_func_fstat64 = xyes
; then
6790 cat >> confdefs.h
<<\EOF
6791 #define HAVE_FSTAT64 1
6798 # If no strcasecmp, check for it in some known places
6799 # It is in -lresolv on ReliantUNIX and UnixWare
6800 # -lresolve *must* follow -lnsl for name resolution to work properly
6803 if test x
$ac_cv_func_strcasecmp = xno
; then
6804 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6805 echo "configure:6806: checking for strcasecmp in -lresolv" >&5
6806 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6807 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6808 echo $ac_n "(cached) $ac_c" 1>&6
6810 ac_save_LIBS
="$LIBS"
6811 LIBS
="-lresolv $LIBS"
6812 cat > conftest.
$ac_ext <<EOF
6813 #line 6814 "configure"
6814 #include "confdefs.h"
6815 /* Override any gcc2 internal prototype to avoid an error. */
6816 /* We use char because int might match the return type of a gcc2
6817 builtin and then its argument prototype would still apply. */
6824 if { (eval echo configure
:6825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6826 eval "ac_cv_lib_$ac_lib_var=yes"
6828 echo "configure: failed program was:" >&5
6829 cat conftest.
$ac_ext >&5
6831 eval "ac_cv_lib_$ac_lib_var=no"
6834 LIBS
="$ac_save_LIBS"
6837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6838 echo "$ac_t""yes" 1>&6
6839 LIBS
="$LIBS -lresolv"
6840 cat >> confdefs.h
<<\EOF
6841 #define HAVE_STRCASECMP 1
6845 echo "$ac_t""no" 1>&6
6851 # Check for the functions putprpwnam, set_auth_parameters,
6852 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6853 # Needed for OSF1 and HPUX.
6857 *-lsecurity*) for ac_func
in putprpwnam
6859 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6860 echo "configure:6861: checking for $ac_func" >&5
6861 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6862 echo $ac_n "(cached) $ac_c" 1>&6
6864 cat > conftest.
$ac_ext <<EOF
6865 #line 6866 "configure"
6866 #include "confdefs.h"
6867 /* System header to define __stub macros and hopefully few prototypes,
6868 which can conflict with char $ac_func(); below. */
6870 /* Override any gcc2 internal prototype to avoid an error. */
6871 /* We use char because int might match the return type of a gcc2
6872 builtin and then its argument prototype would still apply. */
6877 /* The GNU C library defines this for functions which it implements
6878 to always fail with ENOSYS. Some functions are actually named
6879 something starting with __ and the normal name is an alias. */
6880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6888 if { (eval echo configure
:6889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6890 eval "ac_cv_func_$ac_func=yes"
6892 echo "configure: failed program was:" >&5
6893 cat conftest.
$ac_ext >&5
6895 eval "ac_cv_func_$ac_func=no"
6900 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6901 echo "$ac_t""yes" 1>&6
6902 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6903 cat >> confdefs.h
<<EOF
6904 #define $ac_tr_func 1
6908 echo "$ac_t""no" 1>&6
6912 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6913 echo "configure:6914: checking for putprpwnam in -lsecurity" >&5
6914 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6915 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6916 echo $ac_n "(cached) $ac_c" 1>&6
6918 ac_save_LIBS
="$LIBS"
6919 LIBS
="-lsecurity $LIBS"
6920 cat > conftest.
$ac_ext <<EOF
6921 #line 6922 "configure"
6922 #include "confdefs.h"
6923 /* Override any gcc2 internal prototype to avoid an error. */
6924 /* We use char because int might match the return type of a gcc2
6925 builtin and then its argument prototype would still apply. */
6932 if { (eval echo configure
:6933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6934 eval "ac_cv_lib_$ac_lib_var=yes"
6936 echo "configure: failed program was:" >&5
6937 cat conftest.
$ac_ext >&5
6939 eval "ac_cv_lib_$ac_lib_var=no"
6942 LIBS
="$ac_save_LIBS"
6945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6946 echo "$ac_t""yes" 1>&6
6947 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6948 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6949 cat >> confdefs.h
<<EOF
6950 #define $ac_tr_lib 1
6953 LIBS
="-lsecurity $LIBS"
6956 echo "$ac_t""no" 1>&6
6959 for ac_func
in putprpwnam
6961 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6962 echo "configure:6963: checking for $ac_func" >&5
6963 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6964 echo $ac_n "(cached) $ac_c" 1>&6
6966 cat > conftest.
$ac_ext <<EOF
6967 #line 6968 "configure"
6968 #include "confdefs.h"
6969 /* System header to define __stub macros and hopefully few prototypes,
6970 which can conflict with char $ac_func(); below. */
6972 /* Override any gcc2 internal prototype to avoid an error. */
6973 /* We use char because int might match the return type of a gcc2
6974 builtin and then its argument prototype would still apply. */
6979 /* The GNU C library defines this for functions which it implements
6980 to always fail with ENOSYS. Some functions are actually named
6981 something starting with __ and the normal name is an alias. */
6982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6990 if { (eval echo configure
:6991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6992 eval "ac_cv_func_$ac_func=yes"
6994 echo "configure: failed program was:" >&5
6995 cat conftest.
$ac_ext >&5
6997 eval "ac_cv_func_$ac_func=no"
7002 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7003 echo "$ac_t""yes" 1>&6
7004 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7005 cat >> confdefs.h
<<EOF
7006 #define $ac_tr_func 1
7010 echo "$ac_t""no" 1>&6
7018 *-lsec*) for ac_func
in putprpwnam
7020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7021 echo "configure:7022: checking for $ac_func" >&5
7022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7023 echo $ac_n "(cached) $ac_c" 1>&6
7025 cat > conftest.
$ac_ext <<EOF
7026 #line 7027 "configure"
7027 #include "confdefs.h"
7028 /* System header to define __stub macros and hopefully few prototypes,
7029 which can conflict with char $ac_func(); below. */
7031 /* Override any gcc2 internal prototype to avoid an error. */
7032 /* We use char because int might match the return type of a gcc2
7033 builtin and then its argument prototype would still apply. */
7038 /* The GNU C library defines this for functions which it implements
7039 to always fail with ENOSYS. Some functions are actually named
7040 something starting with __ and the normal name is an alias. */
7041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7049 if { (eval echo configure
:7050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7051 eval "ac_cv_func_$ac_func=yes"
7053 echo "configure: failed program was:" >&5
7054 cat conftest.
$ac_ext >&5
7056 eval "ac_cv_func_$ac_func=no"
7061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7062 echo "$ac_t""yes" 1>&6
7063 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7064 cat >> confdefs.h
<<EOF
7065 #define $ac_tr_func 1
7069 echo "$ac_t""no" 1>&6
7073 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7074 echo "configure:7075: checking for putprpwnam in -lsec" >&5
7075 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7077 echo $ac_n "(cached) $ac_c" 1>&6
7079 ac_save_LIBS
="$LIBS"
7081 cat > conftest.
$ac_ext <<EOF
7082 #line 7083 "configure"
7083 #include "confdefs.h"
7084 /* Override any gcc2 internal prototype to avoid an error. */
7085 /* We use char because int might match the return type of a gcc2
7086 builtin and then its argument prototype would still apply. */
7093 if { (eval echo configure
:7094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7095 eval "ac_cv_lib_$ac_lib_var=yes"
7097 echo "configure: failed program was:" >&5
7098 cat conftest.
$ac_ext >&5
7100 eval "ac_cv_lib_$ac_lib_var=no"
7103 LIBS
="$ac_save_LIBS"
7106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7107 echo "$ac_t""yes" 1>&6
7108 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7109 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7110 cat >> confdefs.h
<<EOF
7111 #define $ac_tr_lib 1
7117 echo "$ac_t""no" 1>&6
7120 for ac_func
in putprpwnam
7122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7123 echo "configure:7124: checking for $ac_func" >&5
7124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7125 echo $ac_n "(cached) $ac_c" 1>&6
7127 cat > conftest.
$ac_ext <<EOF
7128 #line 7129 "configure"
7129 #include "confdefs.h"
7130 /* System header to define __stub macros and hopefully few prototypes,
7131 which can conflict with char $ac_func(); below. */
7133 /* Override any gcc2 internal prototype to avoid an error. */
7134 /* We use char because int might match the return type of a gcc2
7135 builtin and then its argument prototype would still apply. */
7140 /* The GNU C library defines this for functions which it implements
7141 to always fail with ENOSYS. Some functions are actually named
7142 something starting with __ and the normal name is an alias. */
7143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7151 if { (eval echo configure
:7152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7153 eval "ac_cv_func_$ac_func=yes"
7155 echo "configure: failed program was:" >&5
7156 cat conftest.
$ac_ext >&5
7158 eval "ac_cv_func_$ac_func=no"
7163 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7164 echo "$ac_t""yes" 1>&6
7165 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7166 cat >> confdefs.h
<<EOF
7167 #define $ac_tr_func 1
7171 echo "$ac_t""no" 1>&6
7180 *-lsecurity*) for ac_func
in set_auth_parameters
7182 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7183 echo "configure:7184: checking for $ac_func" >&5
7184 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7185 echo $ac_n "(cached) $ac_c" 1>&6
7187 cat > conftest.
$ac_ext <<EOF
7188 #line 7189 "configure"
7189 #include "confdefs.h"
7190 /* System header to define __stub macros and hopefully few prototypes,
7191 which can conflict with char $ac_func(); below. */
7193 /* Override any gcc2 internal prototype to avoid an error. */
7194 /* We use char because int might match the return type of a gcc2
7195 builtin and then its argument prototype would still apply. */
7200 /* The GNU C library defines this for functions which it implements
7201 to always fail with ENOSYS. Some functions are actually named
7202 something starting with __ and the normal name is an alias. */
7203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7211 if { (eval echo configure
:7212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7213 eval "ac_cv_func_$ac_func=yes"
7215 echo "configure: failed program was:" >&5
7216 cat conftest.
$ac_ext >&5
7218 eval "ac_cv_func_$ac_func=no"
7223 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7224 echo "$ac_t""yes" 1>&6
7225 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7226 cat >> confdefs.h
<<EOF
7227 #define $ac_tr_func 1
7231 echo "$ac_t""no" 1>&6
7235 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7236 echo "configure:7237: checking for set_auth_parameters in -lsecurity" >&5
7237 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7239 echo $ac_n "(cached) $ac_c" 1>&6
7241 ac_save_LIBS
="$LIBS"
7242 LIBS
="-lsecurity $LIBS"
7243 cat > conftest.
$ac_ext <<EOF
7244 #line 7245 "configure"
7245 #include "confdefs.h"
7246 /* Override any gcc2 internal prototype to avoid an error. */
7247 /* We use char because int might match the return type of a gcc2
7248 builtin and then its argument prototype would still apply. */
7249 char set_auth_parameters();
7252 set_auth_parameters()
7255 if { (eval echo configure
:7256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7257 eval "ac_cv_lib_$ac_lib_var=yes"
7259 echo "configure: failed program was:" >&5
7260 cat conftest.
$ac_ext >&5
7262 eval "ac_cv_lib_$ac_lib_var=no"
7265 LIBS
="$ac_save_LIBS"
7268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7269 echo "$ac_t""yes" 1>&6
7270 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7271 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7272 cat >> confdefs.h
<<EOF
7273 #define $ac_tr_lib 1
7276 LIBS
="-lsecurity $LIBS"
7279 echo "$ac_t""no" 1>&6
7282 for ac_func
in set_auth_parameters
7284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7285 echo "configure:7286: checking for $ac_func" >&5
7286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7287 echo $ac_n "(cached) $ac_c" 1>&6
7289 cat > conftest.
$ac_ext <<EOF
7290 #line 7291 "configure"
7291 #include "confdefs.h"
7292 /* System header to define __stub macros and hopefully few prototypes,
7293 which can conflict with char $ac_func(); below. */
7295 /* Override any gcc2 internal prototype to avoid an error. */
7296 /* We use char because int might match the return type of a gcc2
7297 builtin and then its argument prototype would still apply. */
7302 /* The GNU C library defines this for functions which it implements
7303 to always fail with ENOSYS. Some functions are actually named
7304 something starting with __ and the normal name is an alias. */
7305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7313 if { (eval echo configure
:7314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7315 eval "ac_cv_func_$ac_func=yes"
7317 echo "configure: failed program was:" >&5
7318 cat conftest.
$ac_ext >&5
7320 eval "ac_cv_func_$ac_func=no"
7325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7326 echo "$ac_t""yes" 1>&6
7327 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7328 cat >> confdefs.h
<<EOF
7329 #define $ac_tr_func 1
7333 echo "$ac_t""no" 1>&6
7341 *-lsec*) for ac_func
in set_auth_parameters
7343 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7344 echo "configure:7345: checking for $ac_func" >&5
7345 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7346 echo $ac_n "(cached) $ac_c" 1>&6
7348 cat > conftest.
$ac_ext <<EOF
7349 #line 7350 "configure"
7350 #include "confdefs.h"
7351 /* System header to define __stub macros and hopefully few prototypes,
7352 which can conflict with char $ac_func(); below. */
7354 /* Override any gcc2 internal prototype to avoid an error. */
7355 /* We use char because int might match the return type of a gcc2
7356 builtin and then its argument prototype would still apply. */
7361 /* The GNU C library defines this for functions which it implements
7362 to always fail with ENOSYS. Some functions are actually named
7363 something starting with __ and the normal name is an alias. */
7364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7372 if { (eval echo configure
:7373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7374 eval "ac_cv_func_$ac_func=yes"
7376 echo "configure: failed program was:" >&5
7377 cat conftest.
$ac_ext >&5
7379 eval "ac_cv_func_$ac_func=no"
7384 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7385 echo "$ac_t""yes" 1>&6
7386 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7387 cat >> confdefs.h
<<EOF
7388 #define $ac_tr_func 1
7392 echo "$ac_t""no" 1>&6
7396 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7397 echo "configure:7398: checking for set_auth_parameters in -lsec" >&5
7398 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7399 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7400 echo $ac_n "(cached) $ac_c" 1>&6
7402 ac_save_LIBS
="$LIBS"
7404 cat > conftest.
$ac_ext <<EOF
7405 #line 7406 "configure"
7406 #include "confdefs.h"
7407 /* Override any gcc2 internal prototype to avoid an error. */
7408 /* We use char because int might match the return type of a gcc2
7409 builtin and then its argument prototype would still apply. */
7410 char set_auth_parameters();
7413 set_auth_parameters()
7416 if { (eval echo configure
:7417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7418 eval "ac_cv_lib_$ac_lib_var=yes"
7420 echo "configure: failed program was:" >&5
7421 cat conftest.
$ac_ext >&5
7423 eval "ac_cv_lib_$ac_lib_var=no"
7426 LIBS
="$ac_save_LIBS"
7429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7430 echo "$ac_t""yes" 1>&6
7431 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7432 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7433 cat >> confdefs.h
<<EOF
7434 #define $ac_tr_lib 1
7440 echo "$ac_t""no" 1>&6
7443 for ac_func
in set_auth_parameters
7445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7446 echo "configure:7447: checking for $ac_func" >&5
7447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7448 echo $ac_n "(cached) $ac_c" 1>&6
7450 cat > conftest.
$ac_ext <<EOF
7451 #line 7452 "configure"
7452 #include "confdefs.h"
7453 /* System header to define __stub macros and hopefully few prototypes,
7454 which can conflict with char $ac_func(); below. */
7456 /* Override any gcc2 internal prototype to avoid an error. */
7457 /* We use char because int might match the return type of a gcc2
7458 builtin and then its argument prototype would still apply. */
7463 /* The GNU C library defines this for functions which it implements
7464 to always fail with ENOSYS. Some functions are actually named
7465 something starting with __ and the normal name is an alias. */
7466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7474 if { (eval echo configure
:7475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7476 eval "ac_cv_func_$ac_func=yes"
7478 echo "configure: failed program was:" >&5
7479 cat conftest.
$ac_ext >&5
7481 eval "ac_cv_func_$ac_func=no"
7486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7487 echo "$ac_t""yes" 1>&6
7488 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7489 cat >> confdefs.h
<<EOF
7490 #define $ac_tr_func 1
7494 echo "$ac_t""no" 1>&6
7502 # UnixWare 7.x has its getspnam in -lgen
7504 *-lgen*) for ac_func
in getspnam
7506 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7507 echo "configure:7508: checking for $ac_func" >&5
7508 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7509 echo $ac_n "(cached) $ac_c" 1>&6
7511 cat > conftest.
$ac_ext <<EOF
7512 #line 7513 "configure"
7513 #include "confdefs.h"
7514 /* System header to define __stub macros and hopefully few prototypes,
7515 which can conflict with char $ac_func(); below. */
7517 /* Override any gcc2 internal prototype to avoid an error. */
7518 /* We use char because int might match the return type of a gcc2
7519 builtin and then its argument prototype would still apply. */
7524 /* The GNU C library defines this for functions which it implements
7525 to always fail with ENOSYS. Some functions are actually named
7526 something starting with __ and the normal name is an alias. */
7527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7535 if { (eval echo configure
:7536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7537 eval "ac_cv_func_$ac_func=yes"
7539 echo "configure: failed program was:" >&5
7540 cat conftest.
$ac_ext >&5
7542 eval "ac_cv_func_$ac_func=no"
7547 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7548 echo "$ac_t""yes" 1>&6
7549 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7550 cat >> confdefs.h
<<EOF
7551 #define $ac_tr_func 1
7555 echo "$ac_t""no" 1>&6
7559 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7560 echo "configure:7561: checking for getspnam in -lgen" >&5
7561 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7562 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7563 echo $ac_n "(cached) $ac_c" 1>&6
7565 ac_save_LIBS
="$LIBS"
7567 cat > conftest.
$ac_ext <<EOF
7568 #line 7569 "configure"
7569 #include "confdefs.h"
7570 /* Override any gcc2 internal prototype to avoid an error. */
7571 /* We use char because int might match the return type of a gcc2
7572 builtin and then its argument prototype would still apply. */
7579 if { (eval echo configure
:7580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7581 eval "ac_cv_lib_$ac_lib_var=yes"
7583 echo "configure: failed program was:" >&5
7584 cat conftest.
$ac_ext >&5
7586 eval "ac_cv_lib_$ac_lib_var=no"
7589 LIBS
="$ac_save_LIBS"
7592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7593 echo "$ac_t""yes" 1>&6
7594 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7595 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7596 cat >> confdefs.h
<<EOF
7597 #define $ac_tr_lib 1
7603 echo "$ac_t""no" 1>&6
7606 for ac_func
in getspnam
7608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7609 echo "configure:7610: checking for $ac_func" >&5
7610 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7611 echo $ac_n "(cached) $ac_c" 1>&6
7613 cat > conftest.
$ac_ext <<EOF
7614 #line 7615 "configure"
7615 #include "confdefs.h"
7616 /* System header to define __stub macros and hopefully few prototypes,
7617 which can conflict with char $ac_func(); below. */
7619 /* Override any gcc2 internal prototype to avoid an error. */
7620 /* We use char because int might match the return type of a gcc2
7621 builtin and then its argument prototype would still apply. */
7626 /* The GNU C library defines this for functions which it implements
7627 to always fail with ENOSYS. Some functions are actually named
7628 something starting with __ and the normal name is an alias. */
7629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7637 if { (eval echo configure
:7638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7639 eval "ac_cv_func_$ac_func=yes"
7641 echo "configure: failed program was:" >&5
7642 cat conftest.
$ac_ext >&5
7644 eval "ac_cv_func_$ac_func=no"
7649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7650 echo "$ac_t""yes" 1>&6
7651 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7652 cat >> confdefs.h
<<EOF
7653 #define $ac_tr_func 1
7657 echo "$ac_t""no" 1>&6
7666 *-lsecurity*) for ac_func
in getspnam
7668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7669 echo "configure:7670: checking for $ac_func" >&5
7670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7671 echo $ac_n "(cached) $ac_c" 1>&6
7673 cat > conftest.
$ac_ext <<EOF
7674 #line 7675 "configure"
7675 #include "confdefs.h"
7676 /* System header to define __stub macros and hopefully few prototypes,
7677 which can conflict with char $ac_func(); below. */
7679 /* Override any gcc2 internal prototype to avoid an error. */
7680 /* We use char because int might match the return type of a gcc2
7681 builtin and then its argument prototype would still apply. */
7686 /* The GNU C library defines this for functions which it implements
7687 to always fail with ENOSYS. Some functions are actually named
7688 something starting with __ and the normal name is an alias. */
7689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7697 if { (eval echo configure
:7698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7699 eval "ac_cv_func_$ac_func=yes"
7701 echo "configure: failed program was:" >&5
7702 cat conftest.
$ac_ext >&5
7704 eval "ac_cv_func_$ac_func=no"
7709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7710 echo "$ac_t""yes" 1>&6
7711 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7712 cat >> confdefs.h
<<EOF
7713 #define $ac_tr_func 1
7717 echo "$ac_t""no" 1>&6
7721 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7722 echo "configure:7723: checking for getspnam in -lsecurity" >&5
7723 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7724 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7725 echo $ac_n "(cached) $ac_c" 1>&6
7727 ac_save_LIBS
="$LIBS"
7728 LIBS
="-lsecurity $LIBS"
7729 cat > conftest.
$ac_ext <<EOF
7730 #line 7731 "configure"
7731 #include "confdefs.h"
7732 /* Override any gcc2 internal prototype to avoid an error. */
7733 /* We use char because int might match the return type of a gcc2
7734 builtin and then its argument prototype would still apply. */
7741 if { (eval echo configure
:7742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7743 eval "ac_cv_lib_$ac_lib_var=yes"
7745 echo "configure: failed program was:" >&5
7746 cat conftest.
$ac_ext >&5
7748 eval "ac_cv_lib_$ac_lib_var=no"
7751 LIBS
="$ac_save_LIBS"
7754 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7755 echo "$ac_t""yes" 1>&6
7756 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7757 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7758 cat >> confdefs.h
<<EOF
7759 #define $ac_tr_lib 1
7762 LIBS
="-lsecurity $LIBS"
7765 echo "$ac_t""no" 1>&6
7768 for ac_func
in getspnam
7770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7771 echo "configure:7772: checking for $ac_func" >&5
7772 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7773 echo $ac_n "(cached) $ac_c" 1>&6
7775 cat > conftest.
$ac_ext <<EOF
7776 #line 7777 "configure"
7777 #include "confdefs.h"
7778 /* System header to define __stub macros and hopefully few prototypes,
7779 which can conflict with char $ac_func(); below. */
7781 /* Override any gcc2 internal prototype to avoid an error. */
7782 /* We use char because int might match the return type of a gcc2
7783 builtin and then its argument prototype would still apply. */
7788 /* The GNU C library defines this for functions which it implements
7789 to always fail with ENOSYS. Some functions are actually named
7790 something starting with __ and the normal name is an alias. */
7791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7799 if { (eval echo configure
:7800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7801 eval "ac_cv_func_$ac_func=yes"
7803 echo "configure: failed program was:" >&5
7804 cat conftest.
$ac_ext >&5
7806 eval "ac_cv_func_$ac_func=no"
7811 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7812 echo "$ac_t""yes" 1>&6
7813 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7814 cat >> confdefs.h
<<EOF
7815 #define $ac_tr_func 1
7819 echo "$ac_t""no" 1>&6
7827 *-lsec*) for ac_func
in getspnam
7829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7830 echo "configure:7831: checking for $ac_func" >&5
7831 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7832 echo $ac_n "(cached) $ac_c" 1>&6
7834 cat > conftest.
$ac_ext <<EOF
7835 #line 7836 "configure"
7836 #include "confdefs.h"
7837 /* System header to define __stub macros and hopefully few prototypes,
7838 which can conflict with char $ac_func(); below. */
7840 /* Override any gcc2 internal prototype to avoid an error. */
7841 /* We use char because int might match the return type of a gcc2
7842 builtin and then its argument prototype would still apply. */
7847 /* The GNU C library defines this for functions which it implements
7848 to always fail with ENOSYS. Some functions are actually named
7849 something starting with __ and the normal name is an alias. */
7850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7858 if { (eval echo configure
:7859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7860 eval "ac_cv_func_$ac_func=yes"
7862 echo "configure: failed program was:" >&5
7863 cat conftest.
$ac_ext >&5
7865 eval "ac_cv_func_$ac_func=no"
7870 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7871 echo "$ac_t""yes" 1>&6
7872 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7873 cat >> confdefs.h
<<EOF
7874 #define $ac_tr_func 1
7878 echo "$ac_t""no" 1>&6
7882 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7883 echo "configure:7884: checking for getspnam in -lsec" >&5
7884 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7885 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7886 echo $ac_n "(cached) $ac_c" 1>&6
7888 ac_save_LIBS
="$LIBS"
7890 cat > conftest.
$ac_ext <<EOF
7891 #line 7892 "configure"
7892 #include "confdefs.h"
7893 /* Override any gcc2 internal prototype to avoid an error. */
7894 /* We use char because int might match the return type of a gcc2
7895 builtin and then its argument prototype would still apply. */
7902 if { (eval echo configure
:7903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7904 eval "ac_cv_lib_$ac_lib_var=yes"
7906 echo "configure: failed program was:" >&5
7907 cat conftest.
$ac_ext >&5
7909 eval "ac_cv_lib_$ac_lib_var=no"
7912 LIBS
="$ac_save_LIBS"
7915 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7916 echo "$ac_t""yes" 1>&6
7917 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7918 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7919 cat >> confdefs.h
<<EOF
7920 #define $ac_tr_lib 1
7926 echo "$ac_t""no" 1>&6
7929 for ac_func
in getspnam
7931 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7932 echo "configure:7933: checking for $ac_func" >&5
7933 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7934 echo $ac_n "(cached) $ac_c" 1>&6
7936 cat > conftest.
$ac_ext <<EOF
7937 #line 7938 "configure"
7938 #include "confdefs.h"
7939 /* System header to define __stub macros and hopefully few prototypes,
7940 which can conflict with char $ac_func(); below. */
7942 /* Override any gcc2 internal prototype to avoid an error. */
7943 /* We use char because int might match the return type of a gcc2
7944 builtin and then its argument prototype would still apply. */
7949 /* The GNU C library defines this for functions which it implements
7950 to always fail with ENOSYS. Some functions are actually named
7951 something starting with __ and the normal name is an alias. */
7952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7960 if { (eval echo configure
:7961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7962 eval "ac_cv_func_$ac_func=yes"
7964 echo "configure: failed program was:" >&5
7965 cat conftest.
$ac_ext >&5
7967 eval "ac_cv_func_$ac_func=no"
7972 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7973 echo "$ac_t""yes" 1>&6
7974 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7975 cat >> confdefs.h
<<EOF
7976 #define $ac_tr_func 1
7980 echo "$ac_t""no" 1>&6
7989 *-lsecurity*) for ac_func
in bigcrypt
7991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7992 echo "configure:7993: checking for $ac_func" >&5
7993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7994 echo $ac_n "(cached) $ac_c" 1>&6
7996 cat > conftest.
$ac_ext <<EOF
7997 #line 7998 "configure"
7998 #include "confdefs.h"
7999 /* System header to define __stub macros and hopefully few prototypes,
8000 which can conflict with char $ac_func(); below. */
8002 /* Override any gcc2 internal prototype to avoid an error. */
8003 /* We use char because int might match the return type of a gcc2
8004 builtin and then its argument prototype would still apply. */
8009 /* The GNU C library defines this for functions which it implements
8010 to always fail with ENOSYS. Some functions are actually named
8011 something starting with __ and the normal name is an alias. */
8012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8020 if { (eval echo configure
:8021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8022 eval "ac_cv_func_$ac_func=yes"
8024 echo "configure: failed program was:" >&5
8025 cat conftest.
$ac_ext >&5
8027 eval "ac_cv_func_$ac_func=no"
8032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8033 echo "$ac_t""yes" 1>&6
8034 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8035 cat >> confdefs.h
<<EOF
8036 #define $ac_tr_func 1
8040 echo "$ac_t""no" 1>&6
8044 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8045 echo "configure:8046: checking for bigcrypt in -lsecurity" >&5
8046 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8047 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8048 echo $ac_n "(cached) $ac_c" 1>&6
8050 ac_save_LIBS
="$LIBS"
8051 LIBS
="-lsecurity $LIBS"
8052 cat > conftest.
$ac_ext <<EOF
8053 #line 8054 "configure"
8054 #include "confdefs.h"
8055 /* Override any gcc2 internal prototype to avoid an error. */
8056 /* We use char because int might match the return type of a gcc2
8057 builtin and then its argument prototype would still apply. */
8064 if { (eval echo configure
:8065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8066 eval "ac_cv_lib_$ac_lib_var=yes"
8068 echo "configure: failed program was:" >&5
8069 cat conftest.
$ac_ext >&5
8071 eval "ac_cv_lib_$ac_lib_var=no"
8074 LIBS
="$ac_save_LIBS"
8077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8078 echo "$ac_t""yes" 1>&6
8079 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8080 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8081 cat >> confdefs.h
<<EOF
8082 #define $ac_tr_lib 1
8085 LIBS
="-lsecurity $LIBS"
8088 echo "$ac_t""no" 1>&6
8091 for ac_func
in bigcrypt
8093 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8094 echo "configure:8095: checking for $ac_func" >&5
8095 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8096 echo $ac_n "(cached) $ac_c" 1>&6
8098 cat > conftest.
$ac_ext <<EOF
8099 #line 8100 "configure"
8100 #include "confdefs.h"
8101 /* System header to define __stub macros and hopefully few prototypes,
8102 which can conflict with char $ac_func(); below. */
8104 /* Override any gcc2 internal prototype to avoid an error. */
8105 /* We use char because int might match the return type of a gcc2
8106 builtin and then its argument prototype would still apply. */
8111 /* The GNU C library defines this for functions which it implements
8112 to always fail with ENOSYS. Some functions are actually named
8113 something starting with __ and the normal name is an alias. */
8114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8122 if { (eval echo configure
:8123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8124 eval "ac_cv_func_$ac_func=yes"
8126 echo "configure: failed program was:" >&5
8127 cat conftest.
$ac_ext >&5
8129 eval "ac_cv_func_$ac_func=no"
8134 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8135 echo "$ac_t""yes" 1>&6
8136 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8137 cat >> confdefs.h
<<EOF
8138 #define $ac_tr_func 1
8142 echo "$ac_t""no" 1>&6
8150 *-lsec*) for ac_func
in bigcrypt
8152 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8153 echo "configure:8154: checking for $ac_func" >&5
8154 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8155 echo $ac_n "(cached) $ac_c" 1>&6
8157 cat > conftest.
$ac_ext <<EOF
8158 #line 8159 "configure"
8159 #include "confdefs.h"
8160 /* System header to define __stub macros and hopefully few prototypes,
8161 which can conflict with char $ac_func(); below. */
8163 /* Override any gcc2 internal prototype to avoid an error. */
8164 /* We use char because int might match the return type of a gcc2
8165 builtin and then its argument prototype would still apply. */
8170 /* The GNU C library defines this for functions which it implements
8171 to always fail with ENOSYS. Some functions are actually named
8172 something starting with __ and the normal name is an alias. */
8173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8181 if { (eval echo configure
:8182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8183 eval "ac_cv_func_$ac_func=yes"
8185 echo "configure: failed program was:" >&5
8186 cat conftest.
$ac_ext >&5
8188 eval "ac_cv_func_$ac_func=no"
8193 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8194 echo "$ac_t""yes" 1>&6
8195 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8196 cat >> confdefs.h
<<EOF
8197 #define $ac_tr_func 1
8201 echo "$ac_t""no" 1>&6
8205 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8206 echo "configure:8207: checking for bigcrypt in -lsec" >&5
8207 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8208 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8209 echo $ac_n "(cached) $ac_c" 1>&6
8211 ac_save_LIBS
="$LIBS"
8213 cat > conftest.
$ac_ext <<EOF
8214 #line 8215 "configure"
8215 #include "confdefs.h"
8216 /* Override any gcc2 internal prototype to avoid an error. */
8217 /* We use char because int might match the return type of a gcc2
8218 builtin and then its argument prototype would still apply. */
8225 if { (eval echo configure
:8226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8227 eval "ac_cv_lib_$ac_lib_var=yes"
8229 echo "configure: failed program was:" >&5
8230 cat conftest.
$ac_ext >&5
8232 eval "ac_cv_lib_$ac_lib_var=no"
8235 LIBS
="$ac_save_LIBS"
8238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8239 echo "$ac_t""yes" 1>&6
8240 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8241 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8242 cat >> confdefs.h
<<EOF
8243 #define $ac_tr_lib 1
8249 echo "$ac_t""no" 1>&6
8252 for ac_func
in bigcrypt
8254 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8255 echo "configure:8256: checking for $ac_func" >&5
8256 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8257 echo $ac_n "(cached) $ac_c" 1>&6
8259 cat > conftest.
$ac_ext <<EOF
8260 #line 8261 "configure"
8261 #include "confdefs.h"
8262 /* System header to define __stub macros and hopefully few prototypes,
8263 which can conflict with char $ac_func(); below. */
8265 /* Override any gcc2 internal prototype to avoid an error. */
8266 /* We use char because int might match the return type of a gcc2
8267 builtin and then its argument prototype would still apply. */
8272 /* The GNU C library defines this for functions which it implements
8273 to always fail with ENOSYS. Some functions are actually named
8274 something starting with __ and the normal name is an alias. */
8275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8283 if { (eval echo configure
:8284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8285 eval "ac_cv_func_$ac_func=yes"
8287 echo "configure: failed program was:" >&5
8288 cat conftest.
$ac_ext >&5
8290 eval "ac_cv_func_$ac_func=no"
8295 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8296 echo "$ac_t""yes" 1>&6
8297 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8298 cat >> confdefs.h
<<EOF
8299 #define $ac_tr_func 1
8303 echo "$ac_t""no" 1>&6
8312 *-lsecurity*) for ac_func
in getprpwnam
8314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8315 echo "configure:8316: checking for $ac_func" >&5
8316 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8317 echo $ac_n "(cached) $ac_c" 1>&6
8319 cat > conftest.
$ac_ext <<EOF
8320 #line 8321 "configure"
8321 #include "confdefs.h"
8322 /* System header to define __stub macros and hopefully few prototypes,
8323 which can conflict with char $ac_func(); below. */
8325 /* Override any gcc2 internal prototype to avoid an error. */
8326 /* We use char because int might match the return type of a gcc2
8327 builtin and then its argument prototype would still apply. */
8332 /* The GNU C library defines this for functions which it implements
8333 to always fail with ENOSYS. Some functions are actually named
8334 something starting with __ and the normal name is an alias. */
8335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8343 if { (eval echo configure
:8344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8345 eval "ac_cv_func_$ac_func=yes"
8347 echo "configure: failed program was:" >&5
8348 cat conftest.
$ac_ext >&5
8350 eval "ac_cv_func_$ac_func=no"
8355 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8356 echo "$ac_t""yes" 1>&6
8357 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8358 cat >> confdefs.h
<<EOF
8359 #define $ac_tr_func 1
8363 echo "$ac_t""no" 1>&6
8367 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8368 echo "configure:8369: checking for getprpwnam in -lsecurity" >&5
8369 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8371 echo $ac_n "(cached) $ac_c" 1>&6
8373 ac_save_LIBS
="$LIBS"
8374 LIBS
="-lsecurity $LIBS"
8375 cat > conftest.
$ac_ext <<EOF
8376 #line 8377 "configure"
8377 #include "confdefs.h"
8378 /* Override any gcc2 internal prototype to avoid an error. */
8379 /* We use char because int might match the return type of a gcc2
8380 builtin and then its argument prototype would still apply. */
8387 if { (eval echo configure
:8388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8389 eval "ac_cv_lib_$ac_lib_var=yes"
8391 echo "configure: failed program was:" >&5
8392 cat conftest.
$ac_ext >&5
8394 eval "ac_cv_lib_$ac_lib_var=no"
8397 LIBS
="$ac_save_LIBS"
8400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8401 echo "$ac_t""yes" 1>&6
8402 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8403 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8404 cat >> confdefs.h
<<EOF
8405 #define $ac_tr_lib 1
8408 LIBS
="-lsecurity $LIBS"
8411 echo "$ac_t""no" 1>&6
8414 for ac_func
in getprpwnam
8416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8417 echo "configure:8418: checking for $ac_func" >&5
8418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8419 echo $ac_n "(cached) $ac_c" 1>&6
8421 cat > conftest.
$ac_ext <<EOF
8422 #line 8423 "configure"
8423 #include "confdefs.h"
8424 /* System header to define __stub macros and hopefully few prototypes,
8425 which can conflict with char $ac_func(); below. */
8427 /* Override any gcc2 internal prototype to avoid an error. */
8428 /* We use char because int might match the return type of a gcc2
8429 builtin and then its argument prototype would still apply. */
8434 /* The GNU C library defines this for functions which it implements
8435 to always fail with ENOSYS. Some functions are actually named
8436 something starting with __ and the normal name is an alias. */
8437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8445 if { (eval echo configure
:8446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8447 eval "ac_cv_func_$ac_func=yes"
8449 echo "configure: failed program was:" >&5
8450 cat conftest.
$ac_ext >&5
8452 eval "ac_cv_func_$ac_func=no"
8457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8458 echo "$ac_t""yes" 1>&6
8459 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8460 cat >> confdefs.h
<<EOF
8461 #define $ac_tr_func 1
8465 echo "$ac_t""no" 1>&6
8473 *-lsec*) for ac_func
in getprpwnam
8475 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8476 echo "configure:8477: checking for $ac_func" >&5
8477 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8478 echo $ac_n "(cached) $ac_c" 1>&6
8480 cat > conftest.
$ac_ext <<EOF
8481 #line 8482 "configure"
8482 #include "confdefs.h"
8483 /* System header to define __stub macros and hopefully few prototypes,
8484 which can conflict with char $ac_func(); below. */
8486 /* Override any gcc2 internal prototype to avoid an error. */
8487 /* We use char because int might match the return type of a gcc2
8488 builtin and then its argument prototype would still apply. */
8493 /* The GNU C library defines this for functions which it implements
8494 to always fail with ENOSYS. Some functions are actually named
8495 something starting with __ and the normal name is an alias. */
8496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8504 if { (eval echo configure
:8505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8506 eval "ac_cv_func_$ac_func=yes"
8508 echo "configure: failed program was:" >&5
8509 cat conftest.
$ac_ext >&5
8511 eval "ac_cv_func_$ac_func=no"
8516 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8517 echo "$ac_t""yes" 1>&6
8518 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8519 cat >> confdefs.h
<<EOF
8520 #define $ac_tr_func 1
8524 echo "$ac_t""no" 1>&6
8528 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8529 echo "configure:8530: checking for getprpwnam in -lsec" >&5
8530 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8531 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8532 echo $ac_n "(cached) $ac_c" 1>&6
8534 ac_save_LIBS
="$LIBS"
8536 cat > conftest.
$ac_ext <<EOF
8537 #line 8538 "configure"
8538 #include "confdefs.h"
8539 /* Override any gcc2 internal prototype to avoid an error. */
8540 /* We use char because int might match the return type of a gcc2
8541 builtin and then its argument prototype would still apply. */
8548 if { (eval echo configure
:8549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8550 eval "ac_cv_lib_$ac_lib_var=yes"
8552 echo "configure: failed program was:" >&5
8553 cat conftest.
$ac_ext >&5
8555 eval "ac_cv_lib_$ac_lib_var=no"
8558 LIBS
="$ac_save_LIBS"
8561 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8562 echo "$ac_t""yes" 1>&6
8563 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8564 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8565 cat >> confdefs.h
<<EOF
8566 #define $ac_tr_lib 1
8572 echo "$ac_t""no" 1>&6
8575 for ac_func
in getprpwnam
8577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8578 echo "configure:8579: checking for $ac_func" >&5
8579 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8580 echo $ac_n "(cached) $ac_c" 1>&6
8582 cat > conftest.
$ac_ext <<EOF
8583 #line 8584 "configure"
8584 #include "confdefs.h"
8585 /* System header to define __stub macros and hopefully few prototypes,
8586 which can conflict with char $ac_func(); below. */
8588 /* Override any gcc2 internal prototype to avoid an error. */
8589 /* We use char because int might match the return type of a gcc2
8590 builtin and then its argument prototype would still apply. */
8595 /* The GNU C library defines this for functions which it implements
8596 to always fail with ENOSYS. Some functions are actually named
8597 something starting with __ and the normal name is an alias. */
8598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8606 if { (eval echo configure
:8607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8608 eval "ac_cv_func_$ac_func=yes"
8610 echo "configure: failed program was:" >&5
8611 cat conftest.
$ac_ext >&5
8613 eval "ac_cv_func_$ac_func=no"
8618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8619 echo "$ac_t""yes" 1>&6
8620 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8621 cat >> confdefs.h
<<EOF
8622 #define $ac_tr_func 1
8626 echo "$ac_t""no" 1>&6
8634 # this bit needs to be modified for each OS that is suported by
8635 # smbwrapper. You need to specify how to created a shared library and
8636 # how to compile C code to produce PIC object files
8638 # these are the defaults, good for lots of systems
8646 # Assume non-shared by default and override below
8648 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8649 echo "configure:8650: checking ability to build shared libraries" >&5
8651 # and these are for particular systems
8653 *linux
*) cat >> confdefs.h
<<\EOF
8659 DYNEXP
="-Wl,--export-dynamic"
8661 SONAMEFLAG
="-Wl,-soname="
8662 cat >> confdefs.h
<<\EOF
8663 #define STAT_ST_BLOCKSIZE 512
8667 *solaris
*) cat >> confdefs.h
<<\EOF
8674 if test "${GCC}" = "yes"; then
8679 ## ${CFLAGS} added for building 64-bit shared
8680 ## libs using Sun's Compiler
8681 LDSHFLAGS
="-G \${CFLAGS}"
8685 cat >> confdefs.h
<<\EOF
8686 #define STAT_ST_BLOCKSIZE 512
8690 *sunos
*) cat >> confdefs.h
<<\EOF
8696 SONAMEFLAG
="-Wl,-h,"
8697 PICFLAG
="-KPIC" # Is this correct for SunOS
8699 *bsd
*) BLDSHARED
="true"
8701 DYNEXP
="-Wl,-Bdynamic"
8702 SONAMEFLAG
="-Wl,-soname,"
8704 cat >> confdefs.h
<<\EOF
8705 #define STAT_ST_BLOCKSIZE 512
8709 *irix
*) cat >> confdefs.h
<<\EOF
8714 *irix6
*) cat >> confdefs.h
<<\EOF
8720 ATTEMPT_WRAP32_BUILD
=yes
8722 LDSHFLAGS
="-set_version sgi1.0 -shared"
8723 SONAMEFLAG
="-soname "
8725 if test "${GCC}" = "yes"; then
8730 cat >> confdefs.h
<<\EOF
8731 #define STAT_ST_BLOCKSIZE 512
8735 *aix
*) cat >> confdefs.h
<<\EOF
8740 LDSHFLAGS
="-Wl,-bexpall,-bM:SRE,-bnoentry"
8741 DYNEXP
="-Wl,-brtl,-bexpall"
8742 if test "${GCC}" = "yes"; then
8745 PICFLAG
="-O2 -qmaxmem=6000"
8746 ## for funky AIX compiler using strncpy()
8747 CFLAGS
="$CFLAGS -D_LINUX_SOURCE_COMPAT"
8750 cat >> confdefs.h
<<\EOF
8751 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8755 *hpux
*) cat >> confdefs.h
<<\EOF
8760 # Use special PIC flags for the native HP-UX compiler.
8761 if test $ac_cv_prog_cc_Ae = yes; then
8764 LDSHFLAGS
="-B symbolic -b -z"
8769 cat >> confdefs.h
<<\EOF
8770 #define STAT_ST_BLOCKSIZE 8192
8774 *qnx
*) cat >> confdefs.h
<<\EOF
8778 *osf
*) cat >> confdefs.h
<<\EOF
8784 SONAMEFLAG
="-Wl,-soname,"
8787 *sco
*) cat >> confdefs.h
<<\EOF
8791 *unixware
*) cat >> confdefs.h
<<\EOF
8797 SONAMEFLAG
="-Wl,-soname,"
8800 *next2
*) cat >> confdefs.h
<<\EOF
8804 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
8805 set dummy
groff; ac_word
=$2
8806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8807 echo "configure:8808: checking for $ac_word" >&5
8808 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8809 echo $ac_n "(cached) $ac_c" 1>&6
8811 if test -n "$ROFF"; then
8812 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
8814 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8816 for ac_dir
in $ac_dummy; do
8817 test -z "$ac_dir" && ac_dir
=.
8818 if test -f $ac_dir/$ac_word; then
8819 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
8826 ROFF
="$ac_cv_prog_ROFF"
8827 if test -n "$ROFF"; then
8828 echo "$ac_t""$ROFF" 1>&6
8830 echo "$ac_t""no" 1>&6
8835 *-univel-*) if test "$GCC" != yes ; then
8836 cat >> confdefs.h
<<\EOF
8837 #define HAVE_MEMSET 1
8844 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
8845 #define RELIANTUNIX 1
8851 if test "$GCC" != yes ; then
8852 cat >> confdefs.h
<<\EOF
8853 #define HAVE_MEMSET 1
8861 echo "$ac_t""$BLDSHARED" 1>&6
8862 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
8863 echo "configure:8864: checking linker flags for shared libraries" >&5
8864 echo "$ac_t""$LDSHFLAGS" 1>&6
8865 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
8866 echo "configure:8867: checking compiler flags for position-independent code" >&5
8867 echo "$ac_t""$PICFLAGS" 1>&6
8869 # try to work out how to produce pic code with this compiler
8870 if test x
$PICFLAG = x
; then
8871 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8872 echo "configure:8873: checking whether ${CC-cc} accepts -fpic" >&5
8873 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8874 echo $ac_n "(cached) $ac_c" 1>&6
8876 echo 'void f(){}' > conftest.c
8877 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8878 ac_cv_prog_cc_fpic
=yes
8880 ac_cv_prog_cc_fpic
=no
8886 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8887 if test $ac_cv_prog_cc_fpic = yes; then
8891 if test x
$PICFLAG = x
; then
8892 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8893 echo "configure:8894: checking whether ${CC-cc} accepts -KPIC" >&5
8894 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8895 echo $ac_n "(cached) $ac_c" 1>&6
8897 echo 'void f(){}' > conftest.c
8898 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8899 ac_cv_prog_cc_KPIC
=yes
8901 ac_cv_prog_cc_KPIC
=no
8907 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8908 if test $ac_cv_prog_cc_KPIC = yes; then
8912 if test x
$PICFLAG = x
; then
8913 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8914 echo "configure:8915: checking whether ${CC-cc} accepts -Kpic" >&5
8915 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8916 echo $ac_n "(cached) $ac_c" 1>&6
8918 echo 'void f(){}' > conftest.c
8919 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8920 ac_cv_prog_cc_Kpic
=yes
8922 ac_cv_prog_cc_Kpic
=no
8928 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8929 if test $ac_cv_prog_cc_Kpic = yes; then
8936 echo $ac_n "checking for long long""... $ac_c" 1>&6
8937 echo "configure:8938: checking for long long" >&5
8938 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8939 echo $ac_n "(cached) $ac_c" 1>&6
8942 if test "$cross_compiling" = yes; then
8943 samba_cv_have_longlong
=cross
8945 cat > conftest.
$ac_ext <<EOF
8946 #line 8947 "configure"
8947 #include "confdefs.h"
8949 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8951 if { (eval echo configure
:8952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8953 samba_cv_have_longlong
=yes
8955 echo "configure: failed program was:" >&5
8956 cat conftest.
$ac_ext >&5
8958 samba_cv_have_longlong
=no
8965 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8966 if test x
"$samba_cv_have_longlong" = x
"yes"; then
8967 cat >> confdefs.h
<<\EOF
8968 #define HAVE_LONGLONG 1
8974 # Check if the compiler supports the LL prefix on long long integers.
8977 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8978 echo "configure:8979: checking for LL suffix on long long integers" >&5
8979 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8980 echo $ac_n "(cached) $ac_c" 1>&6
8983 cat > conftest.
$ac_ext <<EOF
8984 #line 8985 "configure"
8985 #include "confdefs.h"
8988 long long i = 0x8000000000LL
8991 if { (eval echo configure
:8992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8993 samba_cv_compiler_supports_ll
=yes
8995 echo "configure: failed program was:" >&5
8996 cat conftest.
$ac_ext >&5
8998 samba_cv_compiler_supports_ll
=no
9003 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9004 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
9005 cat >> confdefs.h
<<\EOF
9006 #define COMPILER_SUPPORTS_LL 1
9012 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9013 echo "configure:9014: checking for 64 bit off_t" >&5
9014 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9015 echo $ac_n "(cached) $ac_c" 1>&6
9018 if test "$cross_compiling" = yes; then
9019 samba_cv_SIZEOF_OFF_T
=cross
9021 cat > conftest.
$ac_ext <<EOF
9022 #line 9023 "configure"
9023 #include "confdefs.h"
9025 #include <sys/stat.h>
9026 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9028 if { (eval echo configure
:9029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9030 samba_cv_SIZEOF_OFF_T
=yes
9032 echo "configure: failed program was:" >&5
9033 cat conftest.
$ac_ext >&5
9035 samba_cv_SIZEOF_OFF_T
=no
9042 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9043 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
9044 cat >> confdefs.h
<<\EOF
9045 #define SIZEOF_OFF_T 8
9050 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9051 echo "configure:9052: checking for off64_t" >&5
9052 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9053 echo $ac_n "(cached) $ac_c" 1>&6
9056 if test "$cross_compiling" = yes; then
9057 samba_cv_HAVE_OFF64_T
=cross
9059 cat > conftest.
$ac_ext <<EOF
9060 #line 9061 "configure"
9061 #include "confdefs.h"
9063 #if defined(HAVE_UNISTD_H)
9067 #include <sys/stat.h>
9068 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9070 if { (eval echo configure
:9071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9072 samba_cv_HAVE_OFF64_T
=yes
9074 echo "configure: failed program was:" >&5
9075 cat conftest.
$ac_ext >&5
9077 samba_cv_HAVE_OFF64_T
=no
9084 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9085 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
9086 cat >> confdefs.h
<<\EOF
9087 #define HAVE_OFF64_T 1
9092 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9093 echo "configure:9094: checking for 64 bit ino_t" >&5
9094 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9095 echo $ac_n "(cached) $ac_c" 1>&6
9098 if test "$cross_compiling" = yes; then
9099 samba_cv_SIZEOF_INO_T
=cross
9101 cat > conftest.
$ac_ext <<EOF
9102 #line 9103 "configure"
9103 #include "confdefs.h"
9105 #include <sys/stat.h>
9106 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9108 if { (eval echo configure
:9109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9110 samba_cv_SIZEOF_INO_T
=yes
9112 echo "configure: failed program was:" >&5
9113 cat conftest.
$ac_ext >&5
9115 samba_cv_SIZEOF_INO_T
=no
9122 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9123 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
9124 cat >> confdefs.h
<<\EOF
9125 #define SIZEOF_INO_T 8
9130 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9131 echo "configure:9132: checking for ino64_t" >&5
9132 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9133 echo $ac_n "(cached) $ac_c" 1>&6
9136 if test "$cross_compiling" = yes; then
9137 samba_cv_HAVE_INO64_T
=cross
9139 cat > conftest.
$ac_ext <<EOF
9140 #line 9141 "configure"
9141 #include "confdefs.h"
9143 #if defined(HAVE_UNISTD_H)
9147 #include <sys/stat.h>
9148 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9150 if { (eval echo configure
:9151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9152 samba_cv_HAVE_INO64_T
=yes
9154 echo "configure: failed program was:" >&5
9155 cat conftest.
$ac_ext >&5
9157 samba_cv_HAVE_INO64_T
=no
9164 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9165 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
9166 cat >> confdefs.h
<<\EOF
9167 #define HAVE_INO64_T 1
9172 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9173 echo "configure:9174: checking for dev64_t" >&5
9174 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9175 echo $ac_n "(cached) $ac_c" 1>&6
9178 if test "$cross_compiling" = yes; then
9179 samba_cv_HAVE_DEV64_T
=cross
9181 cat > conftest.
$ac_ext <<EOF
9182 #line 9183 "configure"
9183 #include "confdefs.h"
9185 #if defined(HAVE_UNISTD_H)
9189 #include <sys/stat.h>
9190 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9192 if { (eval echo configure
:9193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9194 samba_cv_HAVE_DEV64_T
=yes
9196 echo "configure: failed program was:" >&5
9197 cat conftest.
$ac_ext >&5
9199 samba_cv_HAVE_DEV64_T
=no
9206 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9207 if test x
"$samba_cv_HAVE_DEV64_T" = x
"yes"; then
9208 cat >> confdefs.h
<<\EOF
9209 #define HAVE_DEV64_T 1
9214 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9215 echo "configure:9216: checking for struct dirent64" >&5
9216 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9217 echo $ac_n "(cached) $ac_c" 1>&6
9220 cat > conftest.
$ac_ext <<EOF
9221 #line 9222 "configure"
9222 #include "confdefs.h"
9224 #if defined(HAVE_UNISTD_H)
9227 #include <sys/types.h>
9233 if { (eval echo configure
:9234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9235 samba_cv_HAVE_STRUCT_DIRENT64
=yes
9237 echo "configure: failed program was:" >&5
9238 cat conftest.
$ac_ext >&5
9240 samba_cv_HAVE_STRUCT_DIRENT64
=no
9245 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9246 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes" && test x
"$ac_cv_func_readdir64" = x
"yes"; then
9247 cat >> confdefs.h
<<\EOF
9248 #define HAVE_STRUCT_DIRENT64 1
9253 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9254 echo "configure:9255: checking for major macro" >&5
9255 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9256 echo $ac_n "(cached) $ac_c" 1>&6
9259 if test "$cross_compiling" = yes; then
9260 samba_cv_HAVE_DEVICE_MAJOR_FN
=cross
9262 cat > conftest.
$ac_ext <<EOF
9263 #line 9264 "configure"
9264 #include "confdefs.h"
9266 #if defined(HAVE_UNISTD_H)
9269 #include <sys/types.h>
9270 main() { dev_t dev; int i = major(dev); return 0; }
9272 if { (eval echo configure
:9273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9274 samba_cv_HAVE_DEVICE_MAJOR_FN
=yes
9276 echo "configure: failed program was:" >&5
9277 cat conftest.
$ac_ext >&5
9279 samba_cv_HAVE_DEVICE_MAJOR_FN
=no
9286 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9287 if test x
"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x
"yes"; then
9288 cat >> confdefs.h
<<\EOF
9289 #define HAVE_DEVICE_MAJOR_FN 1
9294 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9295 echo "configure:9296: checking for minor macro" >&5
9296 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9297 echo $ac_n "(cached) $ac_c" 1>&6
9300 if test "$cross_compiling" = yes; then
9301 samba_cv_HAVE_DEVICE_MINOR_FN
=cross
9303 cat > conftest.
$ac_ext <<EOF
9304 #line 9305 "configure"
9305 #include "confdefs.h"
9307 #if defined(HAVE_UNISTD_H)
9310 #include <sys/types.h>
9311 main() { dev_t dev; int i = minor(dev); return 0; }
9313 if { (eval echo configure
:9314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9315 samba_cv_HAVE_DEVICE_MINOR_FN
=yes
9317 echo "configure: failed program was:" >&5
9318 cat conftest.
$ac_ext >&5
9320 samba_cv_HAVE_DEVICE_MINOR_FN
=no
9327 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9328 if test x
"$samba_cv_HAVE_DEVICE_MINOR_FN" = x
"yes"; then
9329 cat >> confdefs.h
<<\EOF
9330 #define HAVE_DEVICE_MINOR_FN 1
9335 echo $ac_n "checking for makedev macro""... $ac_c" 1>&6
9336 echo "configure:9337: checking for makedev macro" >&5
9337 if eval "test \"`echo '$''{'samba_cv_HAVE_MAKEDEV_FN'+set}'`\" = set"; then
9338 echo $ac_n "(cached) $ac_c" 1>&6
9341 if test "$cross_compiling" = yes; then
9342 samba_cv_HAVE_MAKEDEV_FN
=cross
9344 cat > conftest.
$ac_ext <<EOF
9345 #line 9346 "configure"
9346 #include "confdefs.h"
9348 #if defined(HAVE_UNISTD_H)
9351 #include <sys/types.h>
9352 main() { dev_t dev = makedev(1,2); return 0; }
9354 if { (eval echo configure
:9355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9356 samba_cv_HAVE_MAKEDEV_FN
=yes
9358 echo "configure: failed program was:" >&5
9359 cat conftest.
$ac_ext >&5
9361 samba_cv_HAVE_MAKEDEV_FN
=no
9368 echo "$ac_t""$samba_cv_HAVE_MAKEDEV_FN" 1>&6
9369 if test x
"$samba_cv_HAVE_MAKEDEV_FN" = x
"yes"; then
9370 cat >> confdefs.h
<<\EOF
9371 #define MAKEDEV_FN 1
9376 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9377 echo "configure:9378: checking for unsigned char" >&5
9378 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9379 echo $ac_n "(cached) $ac_c" 1>&6
9382 if test "$cross_compiling" = yes; then
9383 samba_cv_HAVE_UNSIGNED_CHAR
=cross
9385 cat > conftest.
$ac_ext <<EOF
9386 #line 9387 "configure"
9387 #include "confdefs.h"
9389 main() { char c; c=250; exit((c > 0)?0:1); }
9391 if { (eval echo configure
:9392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9393 samba_cv_HAVE_UNSIGNED_CHAR
=yes
9395 echo "configure: failed program was:" >&5
9396 cat conftest.
$ac_ext >&5
9398 samba_cv_HAVE_UNSIGNED_CHAR
=no
9405 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9406 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
9407 cat >> confdefs.h
<<\EOF
9408 #define HAVE_UNSIGNED_CHAR 1
9413 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9414 echo "configure:9415: checking for sin_len in sock" >&5
9415 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9416 echo $ac_n "(cached) $ac_c" 1>&6
9419 cat > conftest.
$ac_ext <<EOF
9420 #line 9421 "configure"
9421 #include "confdefs.h"
9422 #include <sys/types.h>
9423 #include <sys/socket.h>
9424 #include <netinet/in.h>
9426 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9429 if { (eval echo configure
:9430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9431 samba_cv_HAVE_SOCK_SIN_LEN
=yes
9433 echo "configure: failed program was:" >&5
9434 cat conftest.
$ac_ext >&5
9436 samba_cv_HAVE_SOCK_SIN_LEN
=no
9441 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9442 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
9443 cat >> confdefs.h
<<\EOF
9444 #define HAVE_SOCK_SIN_LEN 1
9449 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9450 echo "configure:9451: checking whether seekdir returns void" >&5
9451 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9452 echo $ac_n "(cached) $ac_c" 1>&6
9455 cat > conftest.
$ac_ext <<EOF
9456 #line 9457 "configure"
9457 #include "confdefs.h"
9458 #include <sys/types.h>
9460 void seekdir(DIR *d, long loc) { return; }
9465 if { (eval echo configure
:9466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9467 samba_cv_SEEKDIR_RETURNS_VOID
=yes
9469 echo "configure: failed program was:" >&5
9470 cat conftest.
$ac_ext >&5
9472 samba_cv_SEEKDIR_RETURNS_VOID
=no
9477 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9478 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
9479 cat >> confdefs.h
<<\EOF
9480 #define SEEKDIR_RETURNS_VOID 1
9485 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9486 echo "configure:9487: checking for __FILE__ macro" >&5
9487 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9488 echo $ac_n "(cached) $ac_c" 1>&6
9491 cat > conftest.
$ac_ext <<EOF
9492 #line 9493 "configure"
9493 #include "confdefs.h"
9496 printf("%s\n", __FILE__);
9499 if { (eval echo configure
:9500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9501 samba_cv_HAVE_FILE_MACRO
=yes
9503 echo "configure: failed program was:" >&5
9504 cat conftest.
$ac_ext >&5
9506 samba_cv_HAVE_FILE_MACRO
=no
9511 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9512 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
9513 cat >> confdefs.h
<<\EOF
9514 #define HAVE_FILE_MACRO 1
9519 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9520 echo "configure:9521: checking for __FUNCTION__ macro" >&5
9521 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9522 echo $ac_n "(cached) $ac_c" 1>&6
9525 cat > conftest.
$ac_ext <<EOF
9526 #line 9527 "configure"
9527 #include "confdefs.h"
9530 printf("%s\n", __FUNCTION__);
9533 if { (eval echo configure
:9534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9535 samba_cv_HAVE_FUNCTION_MACRO
=yes
9537 echo "configure: failed program was:" >&5
9538 cat conftest.
$ac_ext >&5
9540 samba_cv_HAVE_FUNCTION_MACRO
=no
9545 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9546 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
9547 cat >> confdefs.h
<<\EOF
9548 #define HAVE_FUNCTION_MACRO 1
9553 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9554 echo "configure:9555: checking if gettimeofday takes tz argument" >&5
9555 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9556 echo $ac_n "(cached) $ac_c" 1>&6
9559 if test "$cross_compiling" = yes; then
9560 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
9562 cat > conftest.
$ac_ext <<EOF
9563 #line 9564 "configure"
9564 #include "confdefs.h"
9566 #include <sys/time.h>
9568 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9570 if { (eval echo configure
:9571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9572 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
9574 echo "configure: failed program was:" >&5
9575 cat conftest.
$ac_ext >&5
9577 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
9584 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9585 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
9586 cat >> confdefs.h
<<\EOF
9587 #define HAVE_GETTIMEOFDAY_TZ 1
9592 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9593 echo "configure:9594: checking for __va_copy" >&5
9594 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9595 echo $ac_n "(cached) $ac_c" 1>&6
9598 cat > conftest.
$ac_ext <<EOF
9599 #line 9600 "configure"
9600 #include "confdefs.h"
9607 if { (eval echo configure
:9608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9609 samba_cv_HAVE_VA_COPY
=yes
9611 echo "configure: failed program was:" >&5
9612 cat conftest.
$ac_ext >&5
9614 samba_cv_HAVE_VA_COPY
=no
9619 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9620 if test x
"$samba_cv_HAVE_VA_COPY" = x
"yes"; then
9621 cat >> confdefs.h
<<\EOF
9622 #define HAVE_VA_COPY 1
9627 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9628 echo "configure:9629: checking for C99 vsnprintf" >&5
9629 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9630 echo $ac_n "(cached) $ac_c" 1>&6
9633 if test "$cross_compiling" = yes; then
9634 samba_cv_HAVE_C99_VSNPRINTF
=cross
9636 cat > conftest.
$ac_ext <<EOF
9637 #line 9638 "configure"
9638 #include "confdefs.h"
9640 #include <sys/types.h>
9642 void foo(const char *format, ...) {
9647 va_start(ap, format);
9648 len = vsnprintf(buf, 0, format, ap);
9650 if (len != 5) exit(1);
9652 va_start(ap, format);
9653 len = vsnprintf(0, 0, format, ap);
9655 if (len != 5) exit(1);
9657 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9661 main() { foo("hello"); }
9664 if { (eval echo configure
:9665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9666 samba_cv_HAVE_C99_VSNPRINTF
=yes
9668 echo "configure: failed program was:" >&5
9669 cat conftest.
$ac_ext >&5
9671 samba_cv_HAVE_C99_VSNPRINTF
=no
9678 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9679 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
9680 cat >> confdefs.h
<<\EOF
9681 #define HAVE_C99_VSNPRINTF 1
9686 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9687 echo "configure:9688: checking for broken readdir" >&5
9688 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9689 echo $ac_n "(cached) $ac_c" 1>&6
9692 if test "$cross_compiling" = yes; then
9693 samba_cv_HAVE_BROKEN_READDIR
=cross
9695 cat > conftest.
$ac_ext <<EOF
9696 #line 9697 "configure"
9697 #include "confdefs.h"
9698 #include <sys/types.h>
9700 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9701 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9702 di->d_name[0] == 0) exit(0); exit(1);}
9704 if { (eval echo configure
:9705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9706 samba_cv_HAVE_BROKEN_READDIR
=yes
9708 echo "configure: failed program was:" >&5
9709 cat conftest.
$ac_ext >&5
9711 samba_cv_HAVE_BROKEN_READDIR
=no
9718 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9719 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
9720 cat >> confdefs.h
<<\EOF
9721 #define HAVE_BROKEN_READDIR 1
9726 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9727 echo "configure:9728: checking for utimbuf" >&5
9728 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9729 echo $ac_n "(cached) $ac_c" 1>&6
9732 cat > conftest.
$ac_ext <<EOF
9733 #line 9734 "configure"
9734 #include "confdefs.h"
9735 #include <sys/types.h>
9738 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9741 if { (eval echo configure
:9742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9743 samba_cv_HAVE_UTIMBUF
=yes
9745 echo "configure: failed program was:" >&5
9746 cat conftest.
$ac_ext >&5
9748 samba_cv_HAVE_UTIMBUF
=no
9753 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9754 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
9755 cat >> confdefs.h
<<\EOF
9756 #define HAVE_UTIMBUF 1
9762 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
9764 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9765 echo "configure:9766: checking for $ac_func" >&5
9766 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9767 echo $ac_n "(cached) $ac_c" 1>&6
9769 cat > conftest.
$ac_ext <<EOF
9770 #line 9771 "configure"
9771 #include "confdefs.h"
9772 /* System header to define __stub macros and hopefully few prototypes,
9773 which can conflict with char $ac_func(); below. */
9775 /* Override any gcc2 internal prototype to avoid an error. */
9776 /* We use char because int might match the return type of a gcc2
9777 builtin and then its argument prototype would still apply. */
9782 /* The GNU C library defines this for functions which it implements
9783 to always fail with ENOSYS. Some functions are actually named
9784 something starting with __ and the normal name is an alias. */
9785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9793 if { (eval echo configure
:9794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9795 eval "ac_cv_func_$ac_func=yes"
9797 echo "configure: failed program was:" >&5
9798 cat conftest.
$ac_ext >&5
9800 eval "ac_cv_func_$ac_func=no"
9805 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9806 echo "$ac_t""yes" 1>&6
9807 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9808 cat >> confdefs.h
<<EOF
9809 #define $ac_tr_func 1
9813 echo "$ac_t""no" 1>&6
9818 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9819 echo "configure:9820: checking for ut_name in utmp" >&5
9820 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9821 echo $ac_n "(cached) $ac_c" 1>&6
9824 cat > conftest.
$ac_ext <<EOF
9825 #line 9826 "configure"
9826 #include "confdefs.h"
9827 #include <sys/types.h>
9830 struct utmp ut; ut.ut_name[0] = 'a';
9833 if { (eval echo configure
:9834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9835 samba_cv_HAVE_UT_UT_NAME
=yes
9837 echo "configure: failed program was:" >&5
9838 cat conftest.
$ac_ext >&5
9840 samba_cv_HAVE_UT_UT_NAME
=no
9845 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9846 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
9847 cat >> confdefs.h
<<\EOF
9848 #define HAVE_UT_UT_NAME 1
9853 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9854 echo "configure:9855: checking for ut_user in utmp" >&5
9855 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9856 echo $ac_n "(cached) $ac_c" 1>&6
9859 cat > conftest.
$ac_ext <<EOF
9860 #line 9861 "configure"
9861 #include "confdefs.h"
9862 #include <sys/types.h>
9865 struct utmp ut; ut.ut_user[0] = 'a';
9868 if { (eval echo configure
:9869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9870 samba_cv_HAVE_UT_UT_USER
=yes
9872 echo "configure: failed program was:" >&5
9873 cat conftest.
$ac_ext >&5
9875 samba_cv_HAVE_UT_UT_USER
=no
9880 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9881 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
9882 cat >> confdefs.h
<<\EOF
9883 #define HAVE_UT_UT_USER 1
9888 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9889 echo "configure:9890: checking for ut_id in utmp" >&5
9890 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9891 echo $ac_n "(cached) $ac_c" 1>&6
9894 cat > conftest.
$ac_ext <<EOF
9895 #line 9896 "configure"
9896 #include "confdefs.h"
9897 #include <sys/types.h>
9900 struct utmp ut; ut.ut_id[0] = 'a';
9903 if { (eval echo configure
:9904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9905 samba_cv_HAVE_UT_UT_ID
=yes
9907 echo "configure: failed program was:" >&5
9908 cat conftest.
$ac_ext >&5
9910 samba_cv_HAVE_UT_UT_ID
=no
9915 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9916 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
9917 cat >> confdefs.h
<<\EOF
9918 #define HAVE_UT_UT_ID 1
9923 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9924 echo "configure:9925: checking for ut_host in utmp" >&5
9925 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9926 echo $ac_n "(cached) $ac_c" 1>&6
9929 cat > conftest.
$ac_ext <<EOF
9930 #line 9931 "configure"
9931 #include "confdefs.h"
9932 #include <sys/types.h>
9935 struct utmp ut; ut.ut_host[0] = 'a';
9938 if { (eval echo configure
:9939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9940 samba_cv_HAVE_UT_UT_HOST
=yes
9942 echo "configure: failed program was:" >&5
9943 cat conftest.
$ac_ext >&5
9945 samba_cv_HAVE_UT_UT_HOST
=no
9950 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9951 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
9952 cat >> confdefs.h
<<\EOF
9953 #define HAVE_UT_UT_HOST 1
9958 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9959 echo "configure:9960: checking for ut_time in utmp" >&5
9960 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9961 echo $ac_n "(cached) $ac_c" 1>&6
9964 cat > conftest.
$ac_ext <<EOF
9965 #line 9966 "configure"
9966 #include "confdefs.h"
9967 #include <sys/types.h>
9970 struct utmp ut; time_t t; ut.ut_time = t;
9973 if { (eval echo configure
:9974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9975 samba_cv_HAVE_UT_UT_TIME
=yes
9977 echo "configure: failed program was:" >&5
9978 cat conftest.
$ac_ext >&5
9980 samba_cv_HAVE_UT_UT_TIME
=no
9985 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9986 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
9987 cat >> confdefs.h
<<\EOF
9988 #define HAVE_UT_UT_TIME 1
9993 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9994 echo "configure:9995: checking for ut_tv in utmp" >&5
9995 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9996 echo $ac_n "(cached) $ac_c" 1>&6
9999 cat > conftest.
$ac_ext <<EOF
10000 #line 10001 "configure"
10001 #include "confdefs.h"
10002 #include <sys/types.h>
10005 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10008 if { (eval echo configure
:10009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10010 samba_cv_HAVE_UT_UT_TV
=yes
10012 echo "configure: failed program was:" >&5
10013 cat conftest.
$ac_ext >&5
10015 samba_cv_HAVE_UT_UT_TV
=no
10020 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10021 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
10022 cat >> confdefs.h
<<\EOF
10023 #define HAVE_UT_UT_TV 1
10028 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10029 echo "configure:10030: checking for ut_type in utmp" >&5
10030 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10031 echo $ac_n "(cached) $ac_c" 1>&6
10034 cat > conftest.
$ac_ext <<EOF
10035 #line 10036 "configure"
10036 #include "confdefs.h"
10037 #include <sys/types.h>
10040 struct utmp ut; ut.ut_type = 0;
10043 if { (eval echo configure
:10044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10045 samba_cv_HAVE_UT_UT_TYPE
=yes
10047 echo "configure: failed program was:" >&5
10048 cat conftest.
$ac_ext >&5
10050 samba_cv_HAVE_UT_UT_TYPE
=no
10055 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10056 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
10057 cat >> confdefs.h
<<\EOF
10058 #define HAVE_UT_UT_TYPE 1
10063 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10064 echo "configure:10065: checking for ut_pid in utmp" >&5
10065 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10066 echo $ac_n "(cached) $ac_c" 1>&6
10069 cat > conftest.
$ac_ext <<EOF
10070 #line 10071 "configure"
10071 #include "confdefs.h"
10072 #include <sys/types.h>
10075 struct utmp ut; ut.ut_pid = 0;
10078 if { (eval echo configure
:10079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10080 samba_cv_HAVE_UT_UT_PID
=yes
10082 echo "configure: failed program was:" >&5
10083 cat conftest.
$ac_ext >&5
10085 samba_cv_HAVE_UT_UT_PID
=no
10090 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10091 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
10092 cat >> confdefs.h
<<\EOF
10093 #define HAVE_UT_UT_PID 1
10098 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10099 echo "configure:10100: checking for ut_exit in utmp" >&5
10100 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10101 echo $ac_n "(cached) $ac_c" 1>&6
10104 cat > conftest.
$ac_ext <<EOF
10105 #line 10106 "configure"
10106 #include "confdefs.h"
10107 #include <sys/types.h>
10110 struct utmp ut; ut.ut_exit.e_exit = 0;
10113 if { (eval echo configure
:10114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10115 samba_cv_HAVE_UT_UT_EXIT
=yes
10117 echo "configure: failed program was:" >&5
10118 cat conftest.
$ac_ext >&5
10120 samba_cv_HAVE_UT_UT_EXIT
=no
10125 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10126 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
10127 cat >> confdefs.h
<<\EOF
10128 #define HAVE_UT_UT_EXIT 1
10133 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10134 echo "configure:10135: checking for ut_addr in utmp" >&5
10135 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10136 echo $ac_n "(cached) $ac_c" 1>&6
10139 cat > conftest.
$ac_ext <<EOF
10140 #line 10141 "configure"
10141 #include "confdefs.h"
10142 #include <sys/types.h>
10145 struct utmp ut; ut.ut_addr = 0;
10148 if { (eval echo configure
:10149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10150 samba_cv_HAVE_UT_UT_ADDR
=yes
10152 echo "configure: failed program was:" >&5
10153 cat conftest.
$ac_ext >&5
10155 samba_cv_HAVE_UT_UT_ADDR
=no
10160 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10161 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
10162 cat >> confdefs.h
<<\EOF
10163 #define HAVE_UT_UT_ADDR 1
10168 if test x
$ac_cv_func_pututline = xyes
; then
10169 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10170 echo "configure:10171: checking whether pututline returns pointer" >&5
10171 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10172 echo $ac_n "(cached) $ac_c" 1>&6
10175 cat > conftest.
$ac_ext <<EOF
10176 #line 10177 "configure"
10177 #include "confdefs.h"
10178 #include <sys/types.h>
10181 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10184 if { (eval echo configure
:10185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10186 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
10188 echo "configure: failed program was:" >&5
10189 cat conftest.
$ac_ext >&5
10191 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
10196 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10197 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
10198 cat >> confdefs.h
<<\EOF
10199 #define PUTUTLINE_RETURNS_UTMP 1
10205 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10206 echo "configure:10207: checking for ut_syslen in utmpx" >&5
10207 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10208 echo $ac_n "(cached) $ac_c" 1>&6
10211 cat > conftest.
$ac_ext <<EOF
10212 #line 10213 "configure"
10213 #include "confdefs.h"
10214 #include <sys/types.h>
10217 struct utmpx ux; ux.ut_syslen = 0;
10220 if { (eval echo configure
:10221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10222 samba_cv_HAVE_UX_UT_SYSLEN
=yes
10224 echo "configure: failed program was:" >&5
10225 cat conftest.
$ac_ext >&5
10227 samba_cv_HAVE_UX_UT_SYSLEN
=no
10232 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10233 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
10234 cat >> confdefs.h
<<\EOF
10235 #define HAVE_UX_UT_SYSLEN 1
10240 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10241 echo "configure:10242: checking for Linux kernel oplocks" >&5
10242 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10243 echo $ac_n "(cached) $ac_c" 1>&6
10246 if test "$cross_compiling" = yes; then
10247 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
10249 cat > conftest.
$ac_ext <<EOF
10250 #line 10251 "configure"
10251 #include "confdefs.h"
10253 #include <sys/types.h>
10256 #define F_GETLEASE 1025
10259 int fd = open("/dev/null", O_RDONLY);
10260 return fcntl(fd, F_GETLEASE, 0) == -1;
10264 if { (eval echo configure
:10265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10266 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
10268 echo "configure: failed program was:" >&5
10269 cat conftest.
$ac_ext >&5
10271 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
10278 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10279 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
10280 cat >> confdefs.h
<<\EOF
10281 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10286 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10287 echo "configure:10288: checking for kernel change notify support" >&5
10288 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10289 echo $ac_n "(cached) $ac_c" 1>&6
10292 if test "$cross_compiling" = yes; then
10293 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
10295 cat > conftest.
$ac_ext <<EOF
10296 #line 10297 "configure"
10297 #include "confdefs.h"
10299 #include <sys/types.h>
10301 #include <signal.h>
10303 #define F_NOTIFY 1026
10306 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10310 if { (eval echo configure
:10311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10312 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
10314 echo "configure: failed program was:" >&5
10315 cat conftest.
$ac_ext >&5
10317 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
10324 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10325 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
10326 cat >> confdefs.h
<<\EOF
10327 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10332 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10333 echo "configure:10334: checking for kernel share modes" >&5
10334 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10335 echo $ac_n "(cached) $ac_c" 1>&6
10338 if test "$cross_compiling" = yes; then
10339 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
10341 cat > conftest.
$ac_ext <<EOF
10342 #line 10343 "configure"
10343 #include "confdefs.h"
10345 #include <sys/types.h>
10347 #include <signal.h>
10348 #include <sys/file.h>
10350 #define LOCK_MAND 32
10351 #define LOCK_READ 64
10354 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10358 if { (eval echo configure
:10359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10360 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
10362 echo "configure: failed program was:" >&5
10363 cat conftest.
$ac_ext >&5
10365 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
10372 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10373 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
10374 cat >> confdefs.h
<<\EOF
10375 #define HAVE_KERNEL_SHARE_MODES 1
10383 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10384 echo "configure:10385: checking for IRIX kernel oplock type definitions" >&5
10385 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10386 echo $ac_n "(cached) $ac_c" 1>&6
10389 cat > conftest.
$ac_ext <<EOF
10390 #line 10391 "configure"
10391 #include "confdefs.h"
10392 #include <sys/types.h>
10395 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10398 if { (eval echo configure
:10399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10400 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
10402 echo "configure: failed program was:" >&5
10403 cat conftest.
$ac_ext >&5
10405 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
10410 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10411 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
10412 cat >> confdefs.h
<<\EOF
10413 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10418 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10419 echo "configure:10420: checking for irix specific capabilities" >&5
10420 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10421 echo $ac_n "(cached) $ac_c" 1>&6
10424 if test "$cross_compiling" = yes; then
10425 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
10427 cat > conftest.
$ac_ext <<EOF
10428 #line 10429 "configure"
10429 #include "confdefs.h"
10430 #include <sys/types.h>
10431 #include <sys/capability.h>
10434 if ((cap = cap_get_proc()) == NULL)
10436 cap->cap_effective |= CAP_NETWORK_MGT;
10437 cap->cap_inheritable |= CAP_NETWORK_MGT;
10443 if { (eval echo configure
:10444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10445 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
10447 echo "configure: failed program was:" >&5
10448 cat conftest.
$ac_ext >&5
10450 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
10457 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10458 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
10459 cat >> confdefs.h
<<\EOF
10460 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10466 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10467 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10470 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10471 echo "configure:10472: checking for int16 typedef included by rpc/rpc.h" >&5
10472 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10473 echo $ac_n "(cached) $ac_c" 1>&6
10476 cat > conftest.
$ac_ext <<EOF
10477 #line 10478 "configure"
10478 #include "confdefs.h"
10479 #include <sys/types.h>
10480 #if defined(HAVE_RPC_RPC_H)
10481 #include <rpc/rpc.h>
10487 if { (eval echo configure
:10488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10489 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
10491 echo "configure: failed program was:" >&5
10492 cat conftest.
$ac_ext >&5
10494 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
10499 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10500 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
10501 cat >> confdefs.h
<<\EOF
10502 #define HAVE_INT16_FROM_RPC_RPC_H 1
10507 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10508 echo "configure:10509: checking for uint16 typedef included by rpc/rpc.h" >&5
10509 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10510 echo $ac_n "(cached) $ac_c" 1>&6
10513 cat > conftest.
$ac_ext <<EOF
10514 #line 10515 "configure"
10515 #include "confdefs.h"
10516 #include <sys/types.h>
10517 #if defined(HAVE_RPC_RPC_H)
10518 #include <rpc/rpc.h>
10524 if { (eval echo configure
:10525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10526 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
10528 echo "configure: failed program was:" >&5
10529 cat conftest.
$ac_ext >&5
10531 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
10536 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10537 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
10538 cat >> confdefs.h
<<\EOF
10539 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10544 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10545 echo "configure:10546: checking for int32 typedef included by rpc/rpc.h" >&5
10546 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10547 echo $ac_n "(cached) $ac_c" 1>&6
10550 cat > conftest.
$ac_ext <<EOF
10551 #line 10552 "configure"
10552 #include "confdefs.h"
10553 #include <sys/types.h>
10554 #if defined(HAVE_RPC_RPC_H)
10555 #include <rpc/rpc.h>
10561 if { (eval echo configure
:10562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10563 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
10565 echo "configure: failed program was:" >&5
10566 cat conftest.
$ac_ext >&5
10568 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
10573 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10574 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
10575 cat >> confdefs.h
<<\EOF
10576 #define HAVE_INT32_FROM_RPC_RPC_H 1
10581 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10582 echo "configure:10583: checking for uint32 typedef included by rpc/rpc.h" >&5
10583 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10584 echo $ac_n "(cached) $ac_c" 1>&6
10587 cat > conftest.
$ac_ext <<EOF
10588 #line 10589 "configure"
10589 #include "confdefs.h"
10590 #include <sys/types.h>
10591 #if defined(HAVE_RPC_RPC_H)
10592 #include <rpc/rpc.h>
10598 if { (eval echo configure
:10599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10600 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
10602 echo "configure: failed program was:" >&5
10603 cat conftest.
$ac_ext >&5
10605 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
10610 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10611 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
10612 cat >> confdefs.h
<<\EOF
10613 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10619 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10620 echo "configure:10621: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10621 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10622 echo $ac_n "(cached) $ac_c" 1>&6
10625 cat > conftest.
$ac_ext <<EOF
10626 #line 10627 "configure"
10627 #include "confdefs.h"
10628 #include <sys/types.h>
10629 #ifdef HAVE_SYS_SECURITY_H
10630 #include <sys/security.h>
10632 #endif /* HAVE_SYS_SECURITY_H */
10633 #if defined(HAVE_RPC_RPC_H)
10634 #include <rpc/rpc.h>
10640 if { (eval echo configure
:10641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10642 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
10644 echo "configure: failed program was:" >&5
10645 cat conftest.
$ac_ext >&5
10647 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
10652 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10653 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
10654 cat >> confdefs.h
<<\EOF
10655 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10660 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10661 echo "configure:10662: checking for test routines" >&5
10662 if test "$cross_compiling" = yes; then
10663 echo "configure: warning: cannot run when cross-compiling" 1>&2
10665 cat > conftest.
$ac_ext <<EOF
10666 #line 10667 "configure"
10667 #include "confdefs.h"
10668 #include "${srcdir-.}/tests/trivial.c"
10670 if { (eval echo configure
:10671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10672 echo "$ac_t""yes" 1>&6
10674 echo "configure: failed program was:" >&5
10675 cat conftest.
$ac_ext >&5
10677 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10683 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10684 echo "configure:10685: checking for ftruncate extend" >&5
10685 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10686 echo $ac_n "(cached) $ac_c" 1>&6
10689 if test "$cross_compiling" = yes; then
10690 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
10692 cat > conftest.
$ac_ext <<EOF
10693 #line 10694 "configure"
10694 #include "confdefs.h"
10695 #include "${srcdir-.}/tests/ftruncate.c"
10697 if { (eval echo configure
:10698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10699 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
10701 echo "configure: failed program was:" >&5
10702 cat conftest.
$ac_ext >&5
10704 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
10711 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10712 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
10713 cat >> confdefs.h
<<\EOF
10714 #define HAVE_FTRUNCATE_EXTEND 1
10719 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10720 echo "configure:10721: checking for broken getgroups" >&5
10721 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10722 echo $ac_n "(cached) $ac_c" 1>&6
10725 if test "$cross_compiling" = yes; then
10726 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
10728 cat > conftest.
$ac_ext <<EOF
10729 #line 10730 "configure"
10730 #include "confdefs.h"
10731 #include "${srcdir-.}/tests/getgroups.c"
10733 if { (eval echo configure
:10734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10735 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
10737 echo "configure: failed program was:" >&5
10738 cat conftest.
$ac_ext >&5
10740 samba_cv_HAVE_BROKEN_GETGROUPS
=no
10747 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10748 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
10749 cat >> confdefs.h
<<\EOF
10750 #define HAVE_BROKEN_GETGROUPS 1
10755 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10756 echo "configure:10757: checking whether getpass should be replaced" >&5
10757 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10758 echo $ac_n "(cached) $ac_c" 1>&6
10761 SAVE_CPPFLAGS
="$CPPFLAGS"
10762 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
10763 cat > conftest.
$ac_ext <<EOF
10764 #line 10765 "configure"
10765 #include "confdefs.h"
10767 #define REPLACE_GETPASS 1
10768 #define NO_CONFIG_H 1
10769 #define main dont_declare_main
10770 #include "${srcdir-.}/lib/getsmbpass.c"
10777 if { (eval echo configure
:10778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10779 samba_cv_REPLACE_GETPASS
=yes
10781 echo "configure: failed program was:" >&5
10782 cat conftest.
$ac_ext >&5
10784 samba_cv_REPLACE_GETPASS
=no
10787 CPPFLAGS
="$SAVE_CPPFLAGS"
10791 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10792 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
10793 cat >> confdefs.h
<<\EOF
10794 #define REPLACE_GETPASS 1
10799 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10800 echo "configure:10801: checking for broken inet_ntoa" >&5
10801 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10802 echo $ac_n "(cached) $ac_c" 1>&6
10805 if test "$cross_compiling" = yes; then
10806 samba_cv_REPLACE_INET_NTOA
=cross
10808 cat > conftest.
$ac_ext <<EOF
10809 #line 10810 "configure"
10810 #include "confdefs.h"
10813 #include <sys/types.h>
10814 #include <netinet/in.h>
10815 #ifdef HAVE_ARPA_INET_H
10816 #include <arpa/inet.h>
10818 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10819 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10820 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10823 if { (eval echo configure
:10824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10825 samba_cv_REPLACE_INET_NTOA
=yes
10827 echo "configure: failed program was:" >&5
10828 cat conftest.
$ac_ext >&5
10830 samba_cv_REPLACE_INET_NTOA
=no
10837 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10838 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
10839 cat >> confdefs.h
<<\EOF
10840 #define REPLACE_INET_NTOA 1
10845 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10846 echo "configure:10847: checking for secure mkstemp" >&5
10847 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10848 echo $ac_n "(cached) $ac_c" 1>&6
10851 if test "$cross_compiling" = yes; then
10852 samba_cv_HAVE_SECURE_MKSTEMP
=cross
10854 cat > conftest.
$ac_ext <<EOF
10855 #line 10856 "configure"
10856 #include "confdefs.h"
10857 #include <stdlib.h>
10858 #include <sys/types.h>
10859 #include <sys/stat.h>
10860 #include <unistd.h>
10863 char tpl[20]="/tmp/test.XXXXXX";
10864 int fd = mkstemp(tpl);
10865 if (fd == -1) exit(1);
10867 if (fstat(fd, &st) != 0) exit(1);
10868 if ((st.st_mode & 0777) != 0600) exit(1);
10872 if { (eval echo configure
:10873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10874 samba_cv_HAVE_SECURE_MKSTEMP
=yes
10876 echo "configure: failed program was:" >&5
10877 cat conftest.
$ac_ext >&5
10879 samba_cv_HAVE_SECURE_MKSTEMP
=no
10886 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10887 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
10888 cat >> confdefs.h
<<\EOF
10889 #define HAVE_SECURE_MKSTEMP 1
10894 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10895 echo "configure:10896: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10896 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10897 echo $ac_n "(cached) $ac_c" 1>&6
10900 if test "$cross_compiling" = yes; then
10901 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
10903 cat > conftest.
$ac_ext <<EOF
10904 #line 10905 "configure"
10905 #include "confdefs.h"
10906 #include <unistd.h>
10907 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10909 if { (eval echo configure
:10910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10911 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
10913 echo "configure: failed program was:" >&5
10914 cat conftest.
$ac_ext >&5
10916 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
10923 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10924 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
10925 cat >> confdefs.h
<<\EOF
10926 #define SYSCONF_SC_NGROUPS_MAX 1
10931 echo $ac_n "checking for root""... $ac_c" 1>&6
10932 echo "configure:10933: checking for root" >&5
10933 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10934 echo $ac_n "(cached) $ac_c" 1>&6
10937 if test "$cross_compiling" = yes; then
10938 samba_cv_HAVE_ROOT
=cross
10940 cat > conftest.
$ac_ext <<EOF
10941 #line 10942 "configure"
10942 #include "confdefs.h"
10943 main() { exit(getuid() != 0); }
10945 if { (eval echo configure
:10946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10947 samba_cv_HAVE_ROOT
=yes
10949 echo "configure: failed program was:" >&5
10950 cat conftest.
$ac_ext >&5
10952 samba_cv_HAVE_ROOT
=no
10959 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10960 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
10961 cat >> confdefs.h
<<\EOF
10962 #define HAVE_ROOT 1
10966 echo "configure: warning: running as non-root will disable some tests" 1>&2
10970 # look for a method of finding the list of network interfaces
10972 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10973 echo "configure:10974: checking for iface AIX" >&5
10974 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10975 echo $ac_n "(cached) $ac_c" 1>&6
10978 if test "$cross_compiling" = yes; then
10979 samba_cv_HAVE_IFACE_AIX
=cross
10981 cat > conftest.
$ac_ext <<EOF
10982 #line 10983 "configure"
10983 #include "confdefs.h"
10985 #define HAVE_IFACE_AIX 1
10986 #define AUTOCONF_TEST 1
10987 #include "confdefs.h"
10988 #include "${srcdir-.}/lib/interfaces.c"
10990 if { (eval echo configure
:10991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10992 samba_cv_HAVE_IFACE_AIX
=yes
10994 echo "configure: failed program was:" >&5
10995 cat conftest.
$ac_ext >&5
10997 samba_cv_HAVE_IFACE_AIX
=no
11004 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11005 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
11006 iface
=yes;cat >> confdefs.h
<<\EOF
11007 #define HAVE_IFACE_AIX 1
11012 if test $iface = no
; then
11013 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11014 echo "configure:11015: checking for iface ifconf" >&5
11015 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11016 echo $ac_n "(cached) $ac_c" 1>&6
11019 if test "$cross_compiling" = yes; then
11020 samba_cv_HAVE_IFACE_IFCONF
=cross
11022 cat > conftest.
$ac_ext <<EOF
11023 #line 11024 "configure"
11024 #include "confdefs.h"
11026 #define HAVE_IFACE_IFCONF 1
11027 #define AUTOCONF_TEST 1
11028 #include "confdefs.h"
11029 #include "${srcdir-.}/lib/interfaces.c"
11031 if { (eval echo configure
:11032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11033 samba_cv_HAVE_IFACE_IFCONF
=yes
11035 echo "configure: failed program was:" >&5
11036 cat conftest.
$ac_ext >&5
11038 samba_cv_HAVE_IFACE_IFCONF
=no
11045 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11046 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
11047 iface
=yes;cat >> confdefs.h
<<\EOF
11048 #define HAVE_IFACE_IFCONF 1
11054 if test $iface = no
; then
11055 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11056 echo "configure:11057: checking for iface ifreq" >&5
11057 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11058 echo $ac_n "(cached) $ac_c" 1>&6
11061 if test "$cross_compiling" = yes; then
11062 samba_cv_HAVE_IFACE_IFREQ
=cross
11064 cat > conftest.
$ac_ext <<EOF
11065 #line 11066 "configure"
11066 #include "confdefs.h"
11068 #define HAVE_IFACE_IFREQ 1
11069 #define AUTOCONF_TEST 1
11070 #include "confdefs.h"
11071 #include "${srcdir-.}/lib/interfaces.c"
11073 if { (eval echo configure
:11074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11075 samba_cv_HAVE_IFACE_IFREQ
=yes
11077 echo "configure: failed program was:" >&5
11078 cat conftest.
$ac_ext >&5
11080 samba_cv_HAVE_IFACE_IFREQ
=no
11087 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11088 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
11089 iface
=yes;cat >> confdefs.h
<<\EOF
11090 #define HAVE_IFACE_IFREQ 1
11097 ################################################
11098 # look for a method of setting the effective uid
11100 if test $seteuid = no
; then
11101 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11102 echo "configure:11103: checking for setresuid" >&5
11103 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11104 echo $ac_n "(cached) $ac_c" 1>&6
11107 if test "$cross_compiling" = yes; then
11108 samba_cv_USE_SETRESUID
=cross
11110 cat > conftest.
$ac_ext <<EOF
11111 #line 11112 "configure"
11112 #include "confdefs.h"
11114 #define AUTOCONF_TEST 1
11115 #define USE_SETRESUID 1
11116 #include "confdefs.h"
11117 #include "${srcdir-.}/lib/util_sec.c"
11119 if { (eval echo configure
:11120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11121 samba_cv_USE_SETRESUID
=yes
11123 echo "configure: failed program was:" >&5
11124 cat conftest.
$ac_ext >&5
11126 samba_cv_USE_SETRESUID
=no
11133 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11134 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
11135 seteuid
=yes;cat >> confdefs.h
<<\EOF
11136 #define USE_SETRESUID 1
11143 if test $seteuid = no
; then
11144 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11145 echo "configure:11146: checking for setreuid" >&5
11146 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11147 echo $ac_n "(cached) $ac_c" 1>&6
11150 if test "$cross_compiling" = yes; then
11151 samba_cv_USE_SETREUID
=cross
11153 cat > conftest.
$ac_ext <<EOF
11154 #line 11155 "configure"
11155 #include "confdefs.h"
11157 #define AUTOCONF_TEST 1
11158 #define USE_SETREUID 1
11159 #include "confdefs.h"
11160 #include "${srcdir-.}/lib/util_sec.c"
11162 if { (eval echo configure
:11163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11164 samba_cv_USE_SETREUID
=yes
11166 echo "configure: failed program was:" >&5
11167 cat conftest.
$ac_ext >&5
11169 samba_cv_USE_SETREUID
=no
11176 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11177 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
11178 seteuid
=yes;cat >> confdefs.h
<<\EOF
11179 #define USE_SETREUID 1
11185 if test $seteuid = no
; then
11186 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11187 echo "configure:11188: checking for seteuid" >&5
11188 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11189 echo $ac_n "(cached) $ac_c" 1>&6
11192 if test "$cross_compiling" = yes; then
11193 samba_cv_USE_SETEUID
=cross
11195 cat > conftest.
$ac_ext <<EOF
11196 #line 11197 "configure"
11197 #include "confdefs.h"
11199 #define AUTOCONF_TEST 1
11200 #define USE_SETEUID 1
11201 #include "confdefs.h"
11202 #include "${srcdir-.}/lib/util_sec.c"
11204 if { (eval echo configure
:11205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11206 samba_cv_USE_SETEUID
=yes
11208 echo "configure: failed program was:" >&5
11209 cat conftest.
$ac_ext >&5
11211 samba_cv_USE_SETEUID
=no
11218 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11219 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
11220 seteuid
=yes;cat >> confdefs.h
<<\EOF
11221 #define USE_SETEUID 1
11227 if test $seteuid = no
; then
11228 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11229 echo "configure:11230: checking for setuidx" >&5
11230 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11231 echo $ac_n "(cached) $ac_c" 1>&6
11234 if test "$cross_compiling" = yes; then
11235 samba_cv_USE_SETUIDX
=cross
11237 cat > conftest.
$ac_ext <<EOF
11238 #line 11239 "configure"
11239 #include "confdefs.h"
11241 #define AUTOCONF_TEST 1
11242 #define USE_SETUIDX 1
11243 #include "confdefs.h"
11244 #include "${srcdir-.}/lib/util_sec.c"
11246 if { (eval echo configure
:11247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11248 samba_cv_USE_SETUIDX
=yes
11250 echo "configure: failed program was:" >&5
11251 cat conftest.
$ac_ext >&5
11253 samba_cv_USE_SETUIDX
=no
11260 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11261 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
11262 seteuid
=yes;cat >> confdefs.h
<<\EOF
11263 #define USE_SETUIDX 1
11270 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11271 echo "configure:11272: checking for working mmap" >&5
11272 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11273 echo $ac_n "(cached) $ac_c" 1>&6
11276 if test "$cross_compiling" = yes; then
11277 samba_cv_HAVE_MMAP
=cross
11279 cat > conftest.
$ac_ext <<EOF
11280 #line 11281 "configure"
11281 #include "confdefs.h"
11282 #include "${srcdir-.}/tests/shared_mmap.c"
11284 if { (eval echo configure
:11285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11286 samba_cv_HAVE_MMAP
=yes
11288 echo "configure: failed program was:" >&5
11289 cat conftest.
$ac_ext >&5
11291 samba_cv_HAVE_MMAP
=no
11298 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11299 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
11300 cat >> confdefs.h
<<\EOF
11301 #define HAVE_MMAP 1
11306 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11307 echo "configure:11308: checking for ftruncate needs root" >&5
11308 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11309 echo $ac_n "(cached) $ac_c" 1>&6
11312 if test "$cross_compiling" = yes; then
11313 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
11315 cat > conftest.
$ac_ext <<EOF
11316 #line 11317 "configure"
11317 #include "confdefs.h"
11318 #include "${srcdir-.}/tests/ftruncroot.c"
11320 if { (eval echo configure
:11321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11322 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
11324 echo "configure: failed program was:" >&5
11325 cat conftest.
$ac_ext >&5
11327 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
11334 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11335 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
11336 cat >> confdefs.h
<<\EOF
11337 #define FTRUNCATE_NEEDS_ROOT 1
11342 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11343 echo "configure:11344: checking for fcntl locking" >&5
11344 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11345 echo $ac_n "(cached) $ac_c" 1>&6
11348 if test "$cross_compiling" = yes; then
11349 samba_cv_HAVE_FCNTL_LOCK
=cross
11351 cat > conftest.
$ac_ext <<EOF
11352 #line 11353 "configure"
11353 #include "confdefs.h"
11354 #include "${srcdir-.}/tests/fcntl_lock.c"
11356 if { (eval echo configure
:11357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11358 samba_cv_HAVE_FCNTL_LOCK
=yes
11360 echo "configure: failed program was:" >&5
11361 cat conftest.
$ac_ext >&5
11363 samba_cv_HAVE_FCNTL_LOCK
=no
11370 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11371 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
11372 cat >> confdefs.h
<<\EOF
11373 #define HAVE_FCNTL_LOCK 1
11378 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11379 echo "configure:11380: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11380 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11381 echo $ac_n "(cached) $ac_c" 1>&6
11384 if test "$cross_compiling" = yes; then
11385 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
11387 cat > conftest.
$ac_ext <<EOF
11388 #line 11389 "configure"
11389 #include "confdefs.h"
11390 #include "${srcdir-.}/tests/fcntl_lock64.c"
11392 if { (eval echo configure
:11393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11394 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
11396 echo "configure: failed program was:" >&5
11397 cat conftest.
$ac_ext >&5
11399 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
11406 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11407 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
11408 cat >> confdefs.h
<<\EOF
11409 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11416 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11417 echo "configure:11418: checking for 64 bit fcntl locking" >&5
11418 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11419 echo $ac_n "(cached) $ac_c" 1>&6
11422 if test "$cross_compiling" = yes; then
11423 samba_cv_HAVE_STRUCT_FLOCK64
=cross
11425 cat > conftest.
$ac_ext <<EOF
11426 #line 11427 "configure"
11427 #include "confdefs.h"
11429 #if defined(HAVE_UNISTD_H)
11430 #include <unistd.h>
11433 #include <stdlib.h>
11435 #ifdef HAVE_FCNTL_H
11439 #ifdef HAVE_SYS_FCNTL_H
11440 #include <sys/fcntl.h>
11442 main() { struct flock64 fl64;
11443 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11450 if { (eval echo configure
:11451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11452 samba_cv_HAVE_STRUCT_FLOCK64
=yes
11454 echo "configure: failed program was:" >&5
11455 cat conftest.
$ac_ext >&5
11457 samba_cv_HAVE_STRUCT_FLOCK64
=no
11464 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11466 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
11467 cat >> confdefs.h
<<\EOF
11468 #define HAVE_STRUCT_FLOCK64 1
11474 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11475 echo "configure:11476: checking for st_blocks in struct stat" >&5
11476 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11477 echo $ac_n "(cached) $ac_c" 1>&6
11480 cat > conftest.
$ac_ext <<EOF
11481 #line 11482 "configure"
11482 #include "confdefs.h"
11483 #include <sys/types.h>
11484 #include <sys/stat.h>
11485 #include <unistd.h>
11487 struct stat st; st.st_blocks = 0;
11490 if { (eval echo configure
:11491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11492 samba_cv_HAVE_STAT_ST_BLOCKS
=yes
11494 echo "configure: failed program was:" >&5
11495 cat conftest.
$ac_ext >&5
11497 samba_cv_HAVE_STAT_ST_BLOCKS
=no
11502 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11503 if test x
"$samba_cv_HAVE_STAT_ST_BLOCKS" = x
"yes"; then
11504 cat >> confdefs.h
<<\EOF
11505 #define HAVE_STAT_ST_BLOCKS 1
11512 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11513 echo "configure:11514: checking for broken RedHat 7.2 system header files" >&5
11514 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11515 echo $ac_n "(cached) $ac_c" 1>&6
11518 cat > conftest.
$ac_ext <<EOF
11519 #line 11520 "configure"
11520 #include "confdefs.h"
11522 #ifdef HAVE_SYS_VFS_H
11523 #include <sys/vfs.h>
11525 #ifdef HAVE_SYS_CAPABILITY_H
11526 #include <sys/capability.h>
11533 if { (eval echo configure
:11534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11535 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=no
11537 echo "configure: failed program was:" >&5
11538 cat conftest.
$ac_ext >&5
11540 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=yes
11545 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11546 if test x
"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x
"yes"; then
11547 cat >> confdefs.h
<<\EOF
11548 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11555 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11556 echo "configure:11557: checking for broken nisplus include files" >&5
11557 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11558 echo $ac_n "(cached) $ac_c" 1>&6
11561 cat > conftest.
$ac_ext <<EOF
11562 #line 11563 "configure"
11563 #include "confdefs.h"
11564 #include <sys/acl.h>
11565 #if defined(HAVE_RPCSVC_NIS_H)
11566 #include <rpcsvc/nis.h>
11572 if { (eval echo configure
:11573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11574 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
11576 echo "configure: failed program was:" >&5
11577 cat conftest.
$ac_ext >&5
11579 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
11584 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11585 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
11586 cat >> confdefs.h
<<\EOF
11587 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11593 #################################################
11594 # check for smbwrapper support
11595 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11596 echo "configure:11597: checking whether to use smbwrapper" >&5
11597 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11598 if test "${with_smbwrapper+set}" = set; then
11599 withval
="$with_smbwrapper"
11602 echo "$ac_t""yes" 1>&6
11603 cat >> confdefs.h
<<\EOF
11604 #define WITH_SMBWRAPPER 1
11607 WRAPPROG
="bin/smbsh"
11608 WRAP
="bin/smbwrapper.$SHLIBEXT"
11610 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
11613 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
11616 # Conditions under which smbwrapper should not be built.
11618 if test x
$PICFLAG = x
; then
11619 echo No support
for PIC code
- disabling smbwrapper and smbsh
11623 elif test x
$ac_cv_func_syscall = xno
; then
11624 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11631 echo "$ac_t""no" 1>&6
11635 echo "$ac_t""no" 1>&6
11640 #################################################
11641 # check for the AFS filesystem
11642 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11643 echo "configure:11644: checking whether to use AFS" >&5
11644 # Check whether --with-afs or --without-afs was given.
11645 if test "${with_afs+set}" = set; then
11646 withval
="$with_afs"
11649 echo "$ac_t""yes" 1>&6
11650 cat >> confdefs.h
<<\EOF
11656 echo "$ac_t""no" 1>&6
11660 echo "$ac_t""no" 1>&6
11666 #################################################
11667 # check for the DFS auth system
11668 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
11669 echo "configure:11670: checking whether to use DCE/DFS auth" >&5
11670 # Check whether --with-dfs or --without-dfs was given.
11671 if test "${with_dfs+set}" = set; then
11672 withval
="$with_dfs"
11675 echo "$ac_t""yes" 1>&6
11676 cat >> confdefs.h
<<\EOF
11682 echo "$ac_t""no" 1>&6
11686 echo "$ac_t""no" 1>&6
11691 #################################################
11692 # check for Kerberos IV auth system
11693 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11694 echo "configure:11695: checking whether to use Kerberos IV" >&5
11695 # Check whether --with-krb4 or --without-krb4 was given.
11696 if test "${with_krb4+set}" = set; then
11697 withval
="$with_krb4"
11700 echo "$ac_t""yes" 1>&6
11701 cat >> confdefs.h
<<\EOF
11702 #define KRB4_AUTH 1
11705 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11706 echo "configure:11707: checking for dn_expand in -lresolv" >&5
11707 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11708 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11709 echo $ac_n "(cached) $ac_c" 1>&6
11711 ac_save_LIBS
="$LIBS"
11712 LIBS
="-lresolv $LIBS"
11713 cat > conftest.
$ac_ext <<EOF
11714 #line 11715 "configure"
11715 #include "confdefs.h"
11716 /* Override any gcc2 internal prototype to avoid an error. */
11717 /* We use char because int might match the return type of a gcc2
11718 builtin and then its argument prototype would still apply. */
11725 if { (eval echo configure
:11726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11727 eval "ac_cv_lib_$ac_lib_var=yes"
11729 echo "configure: failed program was:" >&5
11730 cat conftest.
$ac_ext >&5
11732 eval "ac_cv_lib_$ac_lib_var=no"
11735 LIBS
="$ac_save_LIBS"
11738 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11739 echo "$ac_t""yes" 1>&6
11740 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11741 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11742 cat >> confdefs.h
<<EOF
11743 #define $ac_tr_lib 1
11746 LIBS
="-lresolv $LIBS"
11749 echo "$ac_t""no" 1>&6
11752 LIBS
="$LIBS -lkrb -ldes"
11753 CFLAGS
="$CFLAGS -I$withval/include"
11754 LDFLAGS
="$LDFLAGS -L$withval/lib"
11757 echo "$ac_t""no" 1>&6
11761 echo "$ac_t""no" 1>&6
11766 #################################################
11767 # check for Kerberos 5 auth system
11768 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11769 echo "configure:11770: checking whether to use Kerberos 5" >&5
11770 # Check whether --with-krb5 or --without-krb5 was given.
11771 if test "${with_krb5+set}" = set; then
11772 withval
="$with_krb5"
11775 echo "$ac_t""yes" 1>&6
11776 cat >> confdefs.h
<<\EOF
11777 #define KRB5_AUTH 1
11780 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11781 CFLAGS
="$CFLAGS -I$withval/include"
11782 LDFLAGS
="$LDFLAGS -L$withval/lib"
11785 echo "$ac_t""no" 1>&6
11789 echo "$ac_t""no" 1>&6
11794 #################################################
11795 # check for automount support
11796 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11797 echo "configure:11798: checking whether to use AUTOMOUNT" >&5
11798 # Check whether --with-automount or --without-automount was given.
11799 if test "${with_automount+set}" = set; then
11800 withval
="$with_automount"
11803 echo "$ac_t""yes" 1>&6
11804 cat >> confdefs.h
<<\EOF
11805 #define WITH_AUTOMOUNT 1
11810 echo "$ac_t""no" 1>&6
11814 echo "$ac_t""no" 1>&6
11819 #################################################
11820 # check for smbmount support
11821 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11822 echo "configure:11823: checking whether to use SMBMOUNT" >&5
11823 # Check whether --with-smbmount or --without-smbmount was given.
11824 if test "${with_smbmount+set}" = set; then
11825 withval
="$with_smbmount"
11830 echo "$ac_t""yes" 1>&6
11831 cat >> confdefs.h
<<\EOF
11832 #define WITH_SMBMOUNT 1
11835 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
11838 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11843 echo "$ac_t""no" 1>&6
11848 echo "$ac_t""no" 1>&6
11855 #################################################
11856 # check for a PAM password database
11857 with_pam_for_crypt
=no
11858 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11859 echo "configure:11860: checking whether to use PAM password database" >&5
11860 # Check whether --with-pam or --without-pam was given.
11861 if test "${with_pam+set}" = set; then
11862 withval
="$with_pam"
11865 echo "$ac_t""yes" 1>&6
11866 cat >> confdefs.h
<<\EOF
11871 with_pam_for_crypt
=yes
11874 echo "$ac_t""no" 1>&6
11878 echo "$ac_t""no" 1>&6
11883 # we can't build a pam module if we don't have pam.
11884 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11885 echo "configure:11886: checking for pam_get_data in -lpam" >&5
11886 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11887 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11888 echo $ac_n "(cached) $ac_c" 1>&6
11890 ac_save_LIBS
="$LIBS"
11892 cat > conftest.
$ac_ext <<EOF
11893 #line 11894 "configure"
11894 #include "confdefs.h"
11895 /* Override any gcc2 internal prototype to avoid an error. */
11896 /* We use char because int might match the return type of a gcc2
11897 builtin and then its argument prototype would still apply. */
11898 char pam_get_data();
11904 if { (eval echo configure
:11905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11906 eval "ac_cv_lib_$ac_lib_var=yes"
11908 echo "configure: failed program was:" >&5
11909 cat conftest.
$ac_ext >&5
11911 eval "ac_cv_lib_$ac_lib_var=no"
11914 LIBS
="$ac_save_LIBS"
11917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11918 echo "$ac_t""yes" 1>&6
11919 cat >> confdefs.h
<<\EOF
11920 #define HAVE_LIBPAM 1
11924 echo "$ac_t""no" 1>&6
11928 #################################################
11929 # check for pam_smbpass support
11930 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11931 echo "configure:11932: checking whether to use pam_smbpass" >&5
11932 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11933 if test "${with_pam_smbpass+set}" = set; then
11934 withval
="$with_pam_smbpass"
11937 echo "$ac_t""yes" 1>&6
11939 # Conditions under which pam_smbpass should not be built.
11941 if test x
$PICFLAG = x
; then
11942 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11944 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
11945 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11948 cat >> confdefs.h
<<\EOF
11949 #define WITH_PAM_SMBPASS 1
11952 PAM_MOD
="bin/pam_smbpass.so"
11956 echo "$ac_t""no" 1>&6
11960 echo "$ac_t""no" 1>&6
11966 ###############################################
11967 # test for where we get crypt() from, but only
11969 if test $with_pam_for_crypt = no
; then
11970 for ac_func
in crypt
11972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11973 echo "configure:11974: checking for $ac_func" >&5
11974 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11975 echo $ac_n "(cached) $ac_c" 1>&6
11977 cat > conftest.
$ac_ext <<EOF
11978 #line 11979 "configure"
11979 #include "confdefs.h"
11980 /* System header to define __stub macros and hopefully few prototypes,
11981 which can conflict with char $ac_func(); below. */
11982 #include <assert.h>
11983 /* Override any gcc2 internal prototype to avoid an error. */
11984 /* We use char because int might match the return type of a gcc2
11985 builtin and then its argument prototype would still apply. */
11990 /* The GNU C library defines this for functions which it implements
11991 to always fail with ENOSYS. Some functions are actually named
11992 something starting with __ and the normal name is an alias. */
11993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12001 if { (eval echo configure
:12002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12003 eval "ac_cv_func_$ac_func=yes"
12005 echo "configure: failed program was:" >&5
12006 cat conftest.
$ac_ext >&5
12008 eval "ac_cv_func_$ac_func=no"
12013 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12014 echo "$ac_t""yes" 1>&6
12015 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12016 cat >> confdefs.h
<<EOF
12017 #define $ac_tr_func 1
12021 echo "$ac_t""no" 1>&6
12025 if test x
"$ac_cv_func_crypt" = x
"no"; then
12026 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12027 echo "configure:12028: checking for crypt in -lcrypt" >&5
12028 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12029 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12030 echo $ac_n "(cached) $ac_c" 1>&6
12032 ac_save_LIBS
="$LIBS"
12033 LIBS
="-lcrypt $LIBS"
12034 cat > conftest.
$ac_ext <<EOF
12035 #line 12036 "configure"
12036 #include "confdefs.h"
12037 /* Override any gcc2 internal prototype to avoid an error. */
12038 /* We use char because int might match the return type of a gcc2
12039 builtin and then its argument prototype would still apply. */
12046 if { (eval echo configure
:12047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12048 eval "ac_cv_lib_$ac_lib_var=yes"
12050 echo "configure: failed program was:" >&5
12051 cat conftest.
$ac_ext >&5
12053 eval "ac_cv_lib_$ac_lib_var=no"
12056 LIBS
="$ac_save_LIBS"
12059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12060 echo "$ac_t""yes" 1>&6
12061 LIBS
="$LIBS -lcrypt";
12062 cat >> confdefs.h
<<\EOF
12063 #define HAVE_CRYPT 1
12067 echo "$ac_t""no" 1>&6
12074 ## moved after the check for -lcrypt in order to
12075 ## ensure that the necessary libraries are included
12076 ## check checking for truncated salt. Wrapped by the
12077 ## $with_pam_for_crypt variable as above --jerry
12079 if test $with_pam_for_crypt = no
; then
12080 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12081 echo "configure:12082: checking for a crypt that needs truncated salt" >&5
12082 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12083 echo $ac_n "(cached) $ac_c" 1>&6
12086 if test "$cross_compiling" = yes; then
12087 samba_cv_HAVE_TRUNCATED_SALT
=cross
12089 cat > conftest.
$ac_ext <<EOF
12090 #line 12091 "configure"
12091 #include "confdefs.h"
12092 #include "${srcdir-.}/tests/crypttest.c"
12094 if { (eval echo configure
:12095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12096 samba_cv_HAVE_TRUNCATED_SALT
=no
12098 echo "configure: failed program was:" >&5
12099 cat conftest.
$ac_ext >&5
12101 samba_cv_HAVE_TRUNCATED_SALT
=yes
12108 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12109 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
12110 cat >> confdefs.h
<<\EOF
12111 #define HAVE_TRUNCATED_SALT 1
12118 ########################################################################################
12120 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12122 ########################################################################################
12124 ## set the with_smbpasswd_sam as the default
12125 with_smbpasswd_sam
=yes
12129 #################################################
12130 # check for a TDB password database
12131 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12132 echo "configure:12133: checking whether to use TDB SAM database" >&5
12133 # Check whether --with-tdbsam or --without-tdbsam was given.
12134 if test "${with_tdbsam+set}" = set; then
12135 withval
="$with_tdbsam"
12138 echo "$ac_t""yes" 1>&6
12139 cat >> confdefs.h
<<\EOF
12140 #define WITH_TDB_SAM 1
12143 with_smbpasswd_sam
=no
12146 echo "$ac_t""no" 1>&6
12150 echo "$ac_t""no" 1>&6
12155 #################################################
12156 # check for a LDAP password database
12157 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12158 echo "configure:12159: checking whether to use LDAP SAM database" >&5
12159 # Check whether --with-ldapsam or --without-ldapsam was given.
12160 if test "${with_ldapsam+set}" = set; then
12161 withval
="$with_ldapsam"
12164 echo "$ac_t""yes" 1>&6
12165 cat >> confdefs.h
<<\EOF
12166 #define WITH_LDAP_SAM 1
12169 LIBS
="-lldap $LIBS"
12170 echo $ac_n "checking for ber_bvfree in -llber""... $ac_c" 1>&6
12171 echo "configure:12172: checking for ber_bvfree in -llber" >&5
12172 ac_lib_var
=`echo lber'_'ber_bvfree | 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
="-llber $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. */
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 -llber"
12207 echo "$ac_t""no" 1>&6
12210 LIBS
="-lresolv $LIBS"
12211 for ac_func
in ldap_start_tls_s
12213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12214 echo "configure:12215: checking for $ac_func" >&5
12215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12216 echo $ac_n "(cached) $ac_c" 1>&6
12218 cat > conftest.
$ac_ext <<EOF
12219 #line 12220 "configure"
12220 #include "confdefs.h"
12221 /* System header to define __stub macros and hopefully few prototypes,
12222 which can conflict with char $ac_func(); below. */
12223 #include <assert.h>
12224 /* Override any gcc2 internal prototype to avoid an error. */
12225 /* We use char because int might match the return type of a gcc2
12226 builtin and then its argument prototype would still apply. */
12231 /* The GNU C library defines this for functions which it implements
12232 to always fail with ENOSYS. Some functions are actually named
12233 something starting with __ and the normal name is an alias. */
12234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12242 if { (eval echo configure
:12243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12244 eval "ac_cv_func_$ac_func=yes"
12246 echo "configure: failed program was:" >&5
12247 cat conftest.
$ac_ext >&5
12249 eval "ac_cv_func_$ac_func=no"
12254 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12255 echo "$ac_t""yes" 1>&6
12256 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12257 cat >> confdefs.h
<<EOF
12258 #define $ac_tr_func 1
12262 echo "$ac_t""no" 1>&6
12266 with_smbpasswd_sam
=no
12269 echo "$ac_t""no" 1>&6
12273 echo "$ac_t""no" 1>&6
12278 #################################################
12279 # check for a NISPLUS password database
12280 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12281 echo "configure:12282: checking whether to use NISPLUS SAM database" >&5
12282 # Check whether --with-nisplussam or --without-nisplussam was given.
12283 if test "${with_nisplussam+set}" = set; then
12284 withval
="$with_nisplussam"
12287 echo "$ac_t""yes" 1>&6
12288 cat >> confdefs.h
<<\EOF
12289 #define WITH_NISPLUS_SAM 1
12292 with_smbpasswd_sam
=no
12295 echo "$ac_t""no" 1>&6
12299 echo "$ac_t""no" 1>&6
12304 ################################################
12305 # This test should come last because the
12306 # smbpasswd SAM is only used if another format
12307 # has not been defined
12308 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
12309 echo "configure:12310: checking whether to use traditional smbpasswd file" >&5
12310 if test $with_smbpasswd_sam = yes; then
12311 echo "$ac_t""yes" 1>&6
12312 cat >> confdefs.h
<<\EOF
12313 #define WITH_SMBPASSWD_SAM 1
12318 echo "$ac_t""no" 1>&6
12319 PDBEDIT
=bin
/pdbedit
12322 ########################################################################################
12324 ## END OF TESTS FOR SAM BACKENDS.
12326 ########################################################################################
12328 #################################################
12329 # check for a NISPLUS_HOME support
12330 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12331 echo "configure:12332: checking whether to use NISPLUS_HOME" >&5
12332 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12333 if test "${with_nisplus_home+set}" = set; then
12334 withval
="$with_nisplus_home"
12337 echo "$ac_t""yes" 1>&6
12338 cat >> confdefs.h
<<\EOF
12339 #define WITH_NISPLUS_HOME 1
12344 echo "$ac_t""no" 1>&6
12348 echo "$ac_t""no" 1>&6
12353 #################################################
12354 # check for the secure socket layer
12355 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12356 echo "configure:12357: checking whether to use SSL" >&5
12357 # Check whether --with-ssl or --without-ssl was given.
12358 if test "${with_ssl+set}" = set; then
12359 withval
="$with_ssl"
12362 echo "$ac_t""yes" 1>&6
12363 cat >> confdefs.h
<<\EOF
12367 withval
="/usr/local/ssl" # default
12369 if test "${with_sslinc+set}" = set; then
12371 withval
="$with_sslinc"
12374 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12375 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
12378 CFLAGS
="-I${withval} $CFLAGS"
12384 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
12388 if test "${with_ssllib+set}" = set; then
12390 withval
="$with_ssllib"
12393 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12394 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
12397 LDFLAGS
="-L${withval}/lib $LDFLAGS"
12403 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
12407 LIBS
="-lssl -lcrypto $LIBS"
12409 # if test ! -d ${withval}; then
12410 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12414 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12418 echo "$ac_t""no" 1>&6
12422 echo "$ac_t""no" 1>&6
12427 #################################################
12428 # check for syslog logging
12429 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12430 echo "configure:12431: checking whether to use syslog logging" >&5
12431 # Check whether --with-syslog or --without-syslog was given.
12432 if test "${with_syslog+set}" = set; then
12433 withval
="$with_syslog"
12436 echo "$ac_t""yes" 1>&6
12437 cat >> confdefs.h
<<\EOF
12438 #define WITH_SYSLOG 1
12443 echo "$ac_t""no" 1>&6
12447 echo "$ac_t""no" 1>&6
12452 #################################################
12453 # check for a shared memory profiling support
12454 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12455 echo "configure:12456: checking whether to use profiling" >&5
12456 # Check whether --with-profiling-data or --without-profiling-data was given.
12457 if test "${with_profiling_data+set}" = set; then
12458 withval
="$with_profiling_data"
12461 echo "$ac_t""yes" 1>&6
12462 cat >> confdefs.h
<<\EOF
12463 #define WITH_PROFILE 1
12468 echo "$ac_t""no" 1>&6
12472 echo "$ac_t""no" 1>&6
12478 #################################################
12479 # check for experimental disk-quotas support
12480 QUOTAOBJS
=smbd
/noquotas.o
12482 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12483 echo "configure:12484: checking whether to support disk-quotas" >&5
12484 # Check whether --with-quotas or --without-quotas was given.
12485 if test "${with_quotas+set}" = set; then
12486 withval
="$with_quotas"
12489 echo "$ac_t""yes" 1>&6
12490 QUOTAOBJS
=smbd
/quotas.o
12493 # Check for kernel 2.4.x quota braindamage...
12494 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
12495 echo "configure:12496: checking for linux 2.4.x quota braindamage.." >&5
12496 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
12497 echo $ac_n "(cached) $ac_c" 1>&6
12500 cat > conftest.
$ac_ext <<EOF
12501 #line 12502 "configure"
12502 #include "confdefs.h"
12504 #include <sys/types.h>
12505 #include <asm/types.h>
12506 #include <linux/quota.h>
12507 #include <mntent.h>
12508 #include <linux/unistd.h>
12510 struct mem_dqblk D;
12513 if { (eval echo configure
:12514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12515 samba_cv_linux_2_4_quota_braindamage
=yes
12517 echo "configure: failed program was:" >&5
12518 cat conftest.
$ac_ext >&5
12520 samba_cv_linux_2_4_quota_braindamage
=no
12525 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
12526 if test x
"$samba_cv_linux_2_4_quota_braindamage" = x
"yes"; then
12527 cat >> confdefs.h
<<\EOF
12528 #define LINUX_QUOTAS_2 1
12532 cat >> confdefs.h
<<\EOF
12533 #define LINUX_QUOTAS_1 1
12543 echo "$ac_t""no" 1>&6
12547 echo "$ac_t""no" 1>&6
12553 #################################################
12554 # check for experimental utmp accounting
12556 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12557 echo "configure:12558: checking whether to support utmp accounting" >&5
12558 # Check whether --with-utmp or --without-utmp was given.
12559 if test "${with_utmp+set}" = set; then
12560 withval
="$with_utmp"
12563 echo "$ac_t""yes" 1>&6
12564 cat >> confdefs.h
<<\EOF
12565 #define WITH_UTMP 1
12570 echo "$ac_t""no" 1>&6
12574 echo "$ac_t""no" 1>&6
12579 #################################################
12580 # check for MS Dfs support
12582 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
12583 echo "configure:12584: checking whether to support Microsoft Dfs" >&5
12584 # Check whether --with-msdfs or --without-msdfs was given.
12585 if test "${with_msdfs+set}" = set; then
12586 withval
="$with_msdfs"
12589 echo "$ac_t""yes" 1>&6
12590 cat >> confdefs.h
<<\EOF
12591 #define WITH_MSDFS 1
12596 echo "$ac_t""no" 1>&6
12600 echo "$ac_t""no" 1>&6
12605 #################################################
12606 # should we build libsmbclient?
12608 LIBSMBCLIENT_SHARED
=
12610 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
12611 echo "configure:12612: checking whether to build the libsmbclient shared library" >&5
12612 # Check whether --with-libsmbclient or --without-libsmbclient was given.
12613 if test "${with_libsmbclient+set}" = set; then
12614 withval
="$with_libsmbclient"
12617 if test $BLDSHARED = true
; then
12618 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
12619 LIBSMBCLIENT
=libsmbclient
12620 echo "$ac_t""yes" 1>&6
12622 echo "$ac_t""no shared library support" 1>&6
12626 echo "$ac_t""no" 1>&6
12630 echo "$ac_t""no" 1>&6
12635 #################################################
12636 # these tests are taken from the GNU fileutils package
12637 echo "checking how to get filesystem space usage" 1>&6
12638 echo "configure:12639: checking how to get filesystem space usage" >&5
12641 # Test for statvfs64.
12642 if test $space = no
; then
12644 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12645 echo "configure:12646: checking statvfs64 function (SVR4)" >&5
12646 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12647 echo $ac_n "(cached) $ac_c" 1>&6
12649 if test "$cross_compiling" = yes; then
12650 fu_cv_sys_stat_statvfs64
=cross
12652 cat > conftest.
$ac_ext <<EOF
12653 #line 12654 "configure"
12654 #include "confdefs.h"
12656 #if defined(HAVE_UNISTD_H)
12657 #include <unistd.h>
12659 #include <sys/types.h>
12660 #include <sys/statvfs.h>
12663 struct statvfs64 fsd;
12664 exit (statvfs64 (".", &fsd));
12667 if { (eval echo configure
:12668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12669 fu_cv_sys_stat_statvfs64
=yes
12671 echo "configure: failed program was:" >&5
12672 cat conftest.
$ac_ext >&5
12674 fu_cv_sys_stat_statvfs64
=no
12681 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12682 if test $fu_cv_sys_stat_statvfs64 = yes; then
12684 cat >> confdefs.h
<<\EOF
12685 #define STAT_STATVFS64 1
12691 # Perform only the link test since it seems there are no variants of the
12692 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12693 # because that got a false positive on SCO OSR5. Adding the declaration
12694 # of a `struct statvfs' causes this test to fail (as it should) on such
12695 # systems. That system is reported to work fine with STAT_STATFS4 which
12696 # is what it gets when this test fails.
12697 if test $space = no
; then
12699 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12700 echo "configure:12701: checking statvfs function (SVR4)" >&5
12701 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12702 echo $ac_n "(cached) $ac_c" 1>&6
12704 cat > conftest.
$ac_ext <<EOF
12705 #line 12706 "configure"
12706 #include "confdefs.h"
12707 #include <sys/types.h>
12708 #include <sys/statvfs.h>
12710 struct statvfs fsd; statvfs (0, &fsd);
12713 if { (eval echo configure
:12714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12715 fu_cv_sys_stat_statvfs
=yes
12717 echo "configure: failed program was:" >&5
12718 cat conftest.
$ac_ext >&5
12720 fu_cv_sys_stat_statvfs
=no
12725 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12726 if test $fu_cv_sys_stat_statvfs = yes; then
12728 cat >> confdefs.h
<<\EOF
12729 #define STAT_STATVFS 1
12735 if test $space = no
; then
12736 # DEC Alpha running OSF/1
12737 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12738 echo "configure:12739: checking for 3-argument statfs function (DEC OSF/1)" >&5
12739 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12740 echo $ac_n "(cached) $ac_c" 1>&6
12742 if test "$cross_compiling" = yes; then
12743 fu_cv_sys_stat_statfs3_osf1
=no
12745 cat > conftest.
$ac_ext <<EOF
12746 #line 12747 "configure"
12747 #include "confdefs.h"
12749 #include <sys/param.h>
12750 #include <sys/types.h>
12751 #include <sys/mount.h>
12756 exit (statfs (".", &fsd, sizeof (struct statfs)));
12759 if { (eval echo configure
:12760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12761 fu_cv_sys_stat_statfs3_osf1
=yes
12763 echo "configure: failed program was:" >&5
12764 cat conftest.
$ac_ext >&5
12766 fu_cv_sys_stat_statfs3_osf1
=no
12773 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12774 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12776 cat >> confdefs.h
<<\EOF
12777 #define STAT_STATFS3_OSF1 1
12783 if test $space = no
; then
12785 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12786 echo "configure:12787: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12787 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12788 echo $ac_n "(cached) $ac_c" 1>&6
12790 if test "$cross_compiling" = yes; then
12791 fu_cv_sys_stat_statfs2_bsize
=no
12793 cat > conftest.
$ac_ext <<EOF
12794 #line 12795 "configure"
12795 #include "confdefs.h"
12797 #ifdef HAVE_SYS_PARAM_H
12798 #include <sys/param.h>
12800 #ifdef HAVE_SYS_MOUNT_H
12801 #include <sys/mount.h>
12803 #ifdef HAVE_SYS_VFS_H
12804 #include <sys/vfs.h>
12810 exit (statfs (".", &fsd));
12813 if { (eval echo configure
:12814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12815 fu_cv_sys_stat_statfs2_bsize
=yes
12817 echo "configure: failed program was:" >&5
12818 cat conftest.
$ac_ext >&5
12820 fu_cv_sys_stat_statfs2_bsize
=no
12827 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12828 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12830 cat >> confdefs.h
<<\EOF
12831 #define STAT_STATFS2_BSIZE 1
12837 if test $space = no
; then
12839 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12840 echo "configure:12841: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12841 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12842 echo $ac_n "(cached) $ac_c" 1>&6
12844 if test "$cross_compiling" = yes; then
12845 fu_cv_sys_stat_statfs4
=no
12847 cat > conftest.
$ac_ext <<EOF
12848 #line 12849 "configure"
12849 #include "confdefs.h"
12850 #include <sys/types.h>
12851 #include <sys/statfs.h>
12855 exit (statfs (".", &fsd, sizeof fsd, 0));
12858 if { (eval echo configure
:12859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12860 fu_cv_sys_stat_statfs4
=yes
12862 echo "configure: failed program was:" >&5
12863 cat conftest.
$ac_ext >&5
12865 fu_cv_sys_stat_statfs4
=no
12872 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12873 if test $fu_cv_sys_stat_statfs4 = yes; then
12875 cat >> confdefs.h
<<\EOF
12876 #define STAT_STATFS4 1
12882 if test $space = no
; then
12883 # 4.4BSD and NetBSD
12884 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12885 echo "configure:12886: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12886 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12887 echo $ac_n "(cached) $ac_c" 1>&6
12889 if test "$cross_compiling" = yes; then
12890 fu_cv_sys_stat_statfs2_fsize
=no
12892 cat > conftest.
$ac_ext <<EOF
12893 #line 12894 "configure"
12894 #include "confdefs.h"
12895 #include <sys/types.h>
12896 #ifdef HAVE_SYS_PARAM_H
12897 #include <sys/param.h>
12899 #ifdef HAVE_SYS_MOUNT_H
12900 #include <sys/mount.h>
12906 exit (statfs (".", &fsd));
12909 if { (eval echo configure
:12910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12911 fu_cv_sys_stat_statfs2_fsize
=yes
12913 echo "configure: failed program was:" >&5
12914 cat conftest.
$ac_ext >&5
12916 fu_cv_sys_stat_statfs2_fsize
=no
12923 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12924 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12926 cat >> confdefs.h
<<\EOF
12927 #define STAT_STATFS2_FSIZE 1
12933 if test $space = no
; then
12935 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12936 echo "configure:12937: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12937 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12938 echo $ac_n "(cached) $ac_c" 1>&6
12940 if test "$cross_compiling" = yes; then
12941 fu_cv_sys_stat_fs_data
=no
12943 cat > conftest.
$ac_ext <<EOF
12944 #line 12945 "configure"
12945 #include "confdefs.h"
12946 #include <sys/types.h>
12947 #ifdef HAVE_SYS_PARAM_H
12948 #include <sys/param.h>
12950 #ifdef HAVE_SYS_MOUNT_H
12951 #include <sys/mount.h>
12953 #ifdef HAVE_SYS_FS_TYPES_H
12954 #include <sys/fs_types.h>
12958 struct fs_data fsd;
12959 /* Ultrix's statfs returns 1 for success,
12960 0 for not mounted, -1 for failure. */
12961 exit (statfs (".", &fsd) != 1);
12964 if { (eval echo configure
:12965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12966 fu_cv_sys_stat_fs_data
=yes
12968 echo "configure: failed program was:" >&5
12969 cat conftest.
$ac_ext >&5
12971 fu_cv_sys_stat_fs_data
=no
12978 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12979 if test $fu_cv_sys_stat_fs_data = yes; then
12981 cat >> confdefs.h
<<\EOF
12982 #define STAT_STATFS2_FS_DATA 1
12989 # As a gating factor for large file support, in order to
12990 # use <4GB files we must have the following minimal support
12992 # long long, and a 64 bit off_t or off64_t.
12993 # If we don't have all of these then disable large
12996 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12997 echo "configure:12998: checking if large file support can be enabled" >&5
12998 cat > conftest.
$ac_ext <<EOF
12999 #line 13000 "configure"
13000 #include "confdefs.h"
13002 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13003 #include <sys/types.h>
13012 if { (eval echo configure
:13013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13014 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
13016 echo "configure: failed program was:" >&5
13017 cat conftest.
$ac_ext >&5
13019 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
13022 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
13023 echo "$ac_t""yes" 1>&6
13024 cat >> confdefs.h
<<\EOF
13025 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13029 echo "$ac_t""no" 1>&6
13032 # Check whether --with-spinlocks or --without-spinlocks was given.
13033 if test "${with_spinlocks+set}" = set; then
13034 withval
="$with_spinlocks"
13038 if test "x$with_spinlocks" = "xyes"; then
13039 cat >> confdefs.h
<<\EOF
13040 #define USE_SPINLOCKS 1
13044 case "$host_cpu" in
13046 cat >> confdefs.h
<<\EOF
13047 #define SPARC_SPINLOCKS 1
13052 i386|i486|i586|i686
)
13053 cat >> confdefs.h
<<\EOF
13054 #define INTEL_SPINLOCKS 1
13060 cat >> confdefs.h
<<\EOF
13061 #define MIPS_SPINLOCKS 1
13067 cat >> confdefs.h
<<\EOF
13068 #define POWERPC_SPINLOCKS 1
13075 #################################################
13076 # check for ACL support
13078 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13079 echo "configure:13080: checking whether to support ACLs" >&5
13080 # Check whether --with-acl-support or --without-acl-support was given.
13081 if test "${with_acl_support+set}" = set; then
13082 withval
="$with_acl_support"
13088 echo "$ac_t""Using UnixWare ACLs" 1>&6
13089 cat >> confdefs.h
<<\EOF
13090 #define HAVE_UNIXWARE_ACLS 1
13095 echo "$ac_t""Using solaris ACLs" 1>&6
13096 cat >> confdefs.h
<<\EOF
13097 #define HAVE_SOLARIS_ACLS 1
13102 echo "$ac_t""Using HPUX ACLs" 1>&6
13103 cat >> confdefs.h
<<\EOF
13104 #define HAVE_HPUX_ACLS 1
13109 echo "$ac_t""Using IRIX ACLs" 1>&6
13110 cat >> confdefs.h
<<\EOF
13111 #define HAVE_IRIX_ACLS 1
13116 echo "$ac_t""Using AIX ACLs" 1>&6
13117 cat >> confdefs.h
<<\EOF
13118 #define HAVE_AIX_ACLS 1
13123 echo "$ac_t""Using Tru64 ACLs" 1>&6
13124 cat >> confdefs.h
<<\EOF
13125 #define HAVE_TRU64_ACLS 1
13128 LIBS
="$LIBS -lpacl"
13131 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13132 echo "configure:13133: checking for acl_get_file in -lacl" >&5
13133 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13134 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13135 echo $ac_n "(cached) $ac_c" 1>&6
13137 ac_save_LIBS
="$LIBS"
13139 cat > conftest.
$ac_ext <<EOF
13140 #line 13141 "configure"
13141 #include "confdefs.h"
13142 /* Override any gcc2 internal prototype to avoid an error. */
13143 /* We use char because int might match the return type of a gcc2
13144 builtin and then its argument prototype would still apply. */
13145 char acl_get_file();
13151 if { (eval echo configure
:13152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13153 eval "ac_cv_lib_$ac_lib_var=yes"
13155 echo "configure: failed program was:" >&5
13156 cat conftest.
$ac_ext >&5
13158 eval "ac_cv_lib_$ac_lib_var=no"
13161 LIBS
="$ac_save_LIBS"
13164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13165 echo "$ac_t""yes" 1>&6
13166 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13167 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13168 cat >> confdefs.h
<<EOF
13169 #define $ac_tr_lib 1
13175 echo "$ac_t""no" 1>&6
13178 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13179 echo "configure:13180: checking for ACL support" >&5
13180 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13181 echo $ac_n "(cached) $ac_c" 1>&6
13184 cat > conftest.
$ac_ext <<EOF
13185 #line 13186 "configure"
13186 #include "confdefs.h"
13187 #include <sys/types.h>
13188 #include <sys/acl.h>
13190 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13193 if { (eval echo configure
:13194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13195 samba_cv_HAVE_POSIX_ACLS
=yes
13197 echo "configure: failed program was:" >&5
13198 cat conftest.
$ac_ext >&5
13200 samba_cv_HAVE_POSIX_ACLS
=no
13205 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13206 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
13207 echo "$ac_t""Using posix ACLs" 1>&6
13208 cat >> confdefs.h
<<\EOF
13209 #define HAVE_POSIX_ACLS 1
13212 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13213 echo "configure:13214: checking for acl_get_perm_np" >&5
13214 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13215 echo $ac_n "(cached) $ac_c" 1>&6
13218 cat > conftest.
$ac_ext <<EOF
13219 #line 13220 "configure"
13220 #include "confdefs.h"
13221 #include <sys/types.h>
13222 #include <sys/acl.h>
13224 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13227 if { (eval echo configure
:13228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13229 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
13231 echo "configure: failed program was:" >&5
13232 cat conftest.
$ac_ext >&5
13234 samba_cv_HAVE_ACL_GET_PERM_NP
=no
13239 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13240 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
13241 cat >> confdefs.h
<<\EOF
13242 #define HAVE_ACL_GET_PERM_NP 1
13251 echo "$ac_t""no" 1>&6
13252 cat >> confdefs.h
<<\EOF
13253 #define HAVE_NO_ACLS 1
13259 cat >> confdefs.h
<<\EOF
13260 #define HAVE_NO_ACLS 1
13263 echo "$ac_t""no" 1>&6
13268 #################################################
13269 # check for the historical SAMBA installation
13271 if test "x$prefix" = xNONE
-a "$sbindir" = "\${exec_prefix}/sbin"; then
13272 # Put all binaries under the /usr/local/samba/bin directory.
13276 #################################################
13277 # Check whether winbind is supported on this platform. If so we need to
13278 # build and install client programs (WINBIND_TARGETS), sbin programs
13279 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13281 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13282 echo "configure:13283: checking whether to build winbind" >&5
13284 # Initially, the value of $host_os decides whether winbind is supported
13292 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
13293 WINBIND_NSS_EXTRA_LIBS
="-lsocket"
13297 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
13304 winbind_no_reason
=", unsupported on $host_os"
13308 # Check the setting of --with-winbindd
13310 # Check whether --with-winbind or --without-winbind was given.
13311 if test "${with_winbind+set}" = set; then
13312 withval
="$with_winbind"
13326 # We need unix domain sockets for winbind
13328 if test x
"$HAVE_WINBIND" = x
"yes"; then
13329 if test x
"$samba_cv_unixsocket" = x
"no"; then
13330 winbind_no_reason
=", no unix domain socket support on $host_os"
13335 # Display test results
13337 if test x
"$HAVE_WINBIND" = x
"yes"; then
13339 echo "$ac_t""yes" 1>&6
13341 WINBIND_TARGETS
="bin/wbinfo"
13342 WINBIND_STARGETS
="bin/winbindd"
13345 WINBIND_LTARGETS
="nsswitch/libns_winbind.so"
13348 WINBIND_LTARGETS
="nsswitch/libnss_winbind.so"
13353 case "$with_pam" in
13355 WINBIND_PAM_TARGETS
="nsswitch/pam_winbind.so"
13359 echo "$ac_t""no$winbind_no_reason" 1>&6
13362 WINBIND_STARGETS
=""
13363 WINBIND_LTARGETS
=""
13364 WINBIND_PAM_TARGETS
=""
13367 # Check for FreeBSD problem with getgroups
13368 # It returns EGID too many times in the list of groups
13369 # and causes a security problem
13370 echo $ac_n "checking whether or not getgroups returns EGID too many times""... $ac_c" 1>&6
13371 echo "configure:13372: checking whether or not getgroups returns EGID too many times" >&5
13372 if eval "test \"`echo '$''{'samba_cv_have_getgroups_too_many_egids'+set}'`\" = set"; then
13373 echo $ac_n "(cached) $ac_c" 1>&6
13375 if test "$cross_compiling" = yes; then
13376 samba_cv_have_getgroups_too_many_egids
=cross
13378 cat > conftest.
$ac_ext <<EOF
13379 #line 13380 "configure"
13380 #include "confdefs.h"
13382 #include <sys/types.h>
13385 int main(int argc, char *argv[])
13390 n = getgroups(n, &groups);
13391 /* Could actually pass back the number of EGIDs there ... */
13392 exit((n > 1 && groups[0] == getegid() && groups[1] == getegid()) ? 1 : 0);
13395 if { (eval echo configure
:13396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13397 samba_cv_have_getgroups_too_many_egids
=no
13399 echo "configure: failed program was:" >&5
13400 cat conftest.
$ac_ext >&5
13402 samba_cv_have_getgroups_too_many_egids
=yes
13409 echo "$ac_t""$samba_cv_have_getgroups_too_many_egids" 1>&6
13410 if test x
"$samba_cv_have_getgroups_too_many_egids" = x
"yes"; then
13411 cat >> confdefs.h
<<\EOF
13412 #define HAVE_GETGROUPS_TOO_MANY_EGIDS 1
13417 # Substitution time!
13426 # Solaris has some extra fields in struct passwd that need to be
13427 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
13428 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
13431 #AC_CHECK_MEMBER(struct passwd.pw_comment,
13432 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
13433 # [#include <pwd.h>])
13435 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
13436 echo "configure:13437: checking whether struct passwd has pw_comment" >&5
13437 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
13438 echo $ac_n "(cached) $ac_c" 1>&6
13441 cat > conftest.
$ac_ext <<EOF
13442 #line 13443 "configure"
13443 #include "confdefs.h"
13446 struct passwd p; p.pw_comment;
13449 if { (eval echo configure
:13450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13451 samba_cv_passwd_pw_comment
=yes
13453 echo "configure: failed program was:" >&5
13454 cat conftest.
$ac_ext >&5
13456 samba_cv_passwd_pw_comment
=no
13461 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
13462 if test x
"$samba_cv_passwd_pw_comment" = x
"yes"; then
13463 cat >> confdefs.h
<<\EOF
13464 #define HAVE_PASSWD_PW_COMMENT 1
13469 #AC_CHECK_MEMBER(struct passwd.pw_age,
13470 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
13471 # [#include <pwd.h>])
13473 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
13474 echo "configure:13475: checking whether struct passwd has pw_age" >&5
13475 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
13476 echo $ac_n "(cached) $ac_c" 1>&6
13479 cat > conftest.
$ac_ext <<EOF
13480 #line 13481 "configure"
13481 #include "confdefs.h"
13484 struct passwd p; p.pw_age;
13487 if { (eval echo configure
:13488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13489 samba_cv_passwd_pw_age
=yes
13491 echo "configure: failed program was:" >&5
13492 cat conftest.
$ac_ext >&5
13494 samba_cv_passwd_pw_age
=no
13499 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
13500 if test x
"$samba_cv_passwd_pw_age" = x
"yes"; then
13501 cat >> confdefs.h
<<\EOF
13502 #define HAVE_PASSWD_PW_AGE 1
13507 #################################################
13508 # Check to see if we should use the included popt
13510 # Check whether --with-included-popt or --without-included-popt was given.
13511 if test "${with_included_popt+set}" = set; then
13512 withval
="$with_included_popt"
13524 if test x
"$INCLUDED_POPT" != x
"yes"; then
13525 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13526 echo "configure:13527: checking for poptGetContext in -lpopt" >&5
13527 ac_lib_var
=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13528 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13529 echo $ac_n "(cached) $ac_c" 1>&6
13531 ac_save_LIBS
="$LIBS"
13532 LIBS
="-lpopt $LIBS"
13533 cat > conftest.
$ac_ext <<EOF
13534 #line 13535 "configure"
13535 #include "confdefs.h"
13536 /* Override any gcc2 internal prototype to avoid an error. */
13537 /* We use char because int might match the return type of a gcc2
13538 builtin and then its argument prototype would still apply. */
13539 char poptGetContext();
13545 if { (eval echo configure
:13546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13547 eval "ac_cv_lib_$ac_lib_var=yes"
13549 echo "configure: failed program was:" >&5
13550 cat conftest.
$ac_ext >&5
13552 eval "ac_cv_lib_$ac_lib_var=no"
13555 LIBS
="$ac_save_LIBS"
13558 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13559 echo "$ac_t""yes" 1>&6
13562 echo "$ac_t""no" 1>&6
13568 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
13569 echo "configure:13570: checking whether to use included popt" >&5
13570 if test x
"$INCLUDED_POPT" = x
"yes"; then
13571 echo "$ac_t""$srcdir/popt" 1>&6
13572 BUILD_POPT
='$(POPT_OBJS)'
13573 FLAGS1
="-I$srcdir/popt"
13575 echo "$ac_t""no" 1>&6
13576 LIBS
="$LIBS -lpopt"
13581 #################################################
13582 # final configure stuff
13583 echo $ac_n "checking configure summary""... $ac_c" 1>&6
13584 echo "configure:13585: checking configure summary" >&5
13585 if test "$cross_compiling" = yes; then
13586 echo "configure: warning: cannot run when cross-compiling" 1>&2
13588 cat > conftest.
$ac_ext <<EOF
13589 #line 13590 "configure"
13590 #include "confdefs.h"
13591 #include "${srcdir-.}/tests/summary.c"
13593 if { (eval echo configure
:13594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13595 echo "$ac_t""yes" 1>&6
13597 echo "configure: failed program was:" >&5
13598 cat conftest.
$ac_ext >&5
13600 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
13610 cat > confcache
<<\EOF
13611 # This file is a shell script that caches the results of configure
13612 # tests run on this system so they can be shared between configure
13613 # scripts and configure runs. It is not useful on other systems.
13614 # If it contains results you don't want to keep, you may remove or edit it.
13616 # By default, configure uses ./config.cache as the cache file,
13617 # creating it if it does not exist already. You can give configure
13618 # the --cache-file=FILE option to use a different cache file; that is
13619 # what configure does when it calls configure scripts in
13620 # subdirectories, so they share the cache.
13621 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13622 # config.status only pays attention to the cache file if you give it the
13623 # --recheck option to rerun configure.
13626 # The following way of writing the cache mishandles newlines in values,
13627 # but we know of no workaround that is simple, portable, and efficient.
13628 # So, don't put newlines in cache variables' values.
13629 # Ultrix sh set writes to stderr and can't be redirected directly,
13630 # and sets the high bit in the cache file unless we assign to the vars.
13632 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13634 # `set' does not quote correctly, so add quotes (double-quote substitution
13635 # turns \\\\ into \\, and sed turns \\ into \).
13637 -e "s/'/'\\\\''/g" \
13638 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13641 # `set' quotes correctly as required by POSIX, so do not add quotes.
13642 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13645 if cmp -s $cache_file confcache
; then
13648 if test -w $cache_file; then
13649 echo "updating cache $cache_file"
13650 cat confcache
> $cache_file
13652 echo "not updating unwritable cache $cache_file"
13657 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13659 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13660 # Let make expand exec_prefix.
13661 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13663 # Any assignment to VPATH causes Sun make to only execute
13664 # the first set of double-colon rules, so remove it if not needed.
13665 # If there is a colon in the path, we need to keep it.
13666 if test "x$srcdir" = x.
; then
13667 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
13670 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13672 DEFS
=-DHAVE_CONFIG_H
13674 # Without the "./", some shells look in PATH for config.status.
13675 : ${CONFIG_STATUS=./config.status}
13677 echo creating
$CONFIG_STATUS
13678 rm -f $CONFIG_STATUS
13679 cat > $CONFIG_STATUS <<EOF
13681 # Generated automatically by configure.
13682 # Run this file to recreate the current configuration.
13683 # This directory was configured as follows,
13684 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13686 # $0 $ac_configure_args
13688 # Compiler output produced by configure, useful for debugging
13689 # configure, is in ./config.log if it exists.
13691 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13694 case "\$ac_option" in
13695 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13696 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13697 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13698 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13699 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13701 -help | --help | --hel | --he | --h)
13702 echo "\$ac_cs_usage"; exit 0 ;;
13703 *) echo "\$ac_cs_usage"; exit 1 ;;
13707 ac_given_srcdir=$srcdir
13708 ac_given_INSTALL="$INSTALL"
13710 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13712 cat >> $CONFIG_STATUS <<EOF
13714 # Protect against being on the right side of a sed subst in config.status.
13715 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13716 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13720 s%@CFLAGS@%$CFLAGS%g
13721 s%@CPPFLAGS@%$CPPFLAGS%g
13722 s%@CXXFLAGS@%$CXXFLAGS%g
13723 s%@FFLAGS@%$FFLAGS%g
13725 s%@LDFLAGS@%$LDFLAGS%g
13727 s%@exec_prefix@%$exec_prefix%g
13728 s%@prefix@%$prefix%g
13729 s%@program_transform_name@%$program_transform_name%g
13730 s%@bindir@%$bindir%g
13731 s%@sbindir@%$sbindir%g
13732 s%@libexecdir@%$libexecdir%g
13733 s%@datadir@%$datadir%g
13734 s%@sysconfdir@%$sysconfdir%g
13735 s%@sharedstatedir@%$sharedstatedir%g
13736 s%@localstatedir@%$localstatedir%g
13737 s%@libdir@%$libdir%g
13738 s%@includedir@%$includedir%g
13739 s%@oldincludedir@%$oldincludedir%g
13740 s%@infodir@%$infodir%g
13741 s%@mandir@%$mandir%g
13742 s%@codepagedir@%$codepagedir%g
13743 s%@configdir@%$configdir%g
13744 s%@lockdir@%$lockdir%g
13745 s%@piddir@%$piddir%g
13746 s%@logfilebase@%$logfilebase%g
13747 s%@privatedir@%$privatedir%g
13748 s%@swatdir@%$swatdir%g
13749 s%@RUNPROG@%$RUNPROG%g
13750 s%@MPROGS@%$MPROGS%g
13751 s%@LDSHFLAGS@%$LDSHFLAGS%g
13752 s%@SONAMEFLAG@%$SONAMEFLAG%g
13754 s%@HOST_OS@%$HOST_OS%g
13755 s%@PAM_MOD@%$PAM_MOD%g
13756 s%@PDBEDIT@%$PDBEDIT%g
13758 s%@WRAP32@%$WRAP32%g
13759 s%@WRAPPROG@%$WRAPPROG%g
13760 s%@PICFLAG@%$PICFLAG%g
13761 s%@PICSUFFIX@%$PICSUFFIX%g
13762 s%@SHLIBEXT@%$SHLIBEXT%g
13763 s%@BLDSHARED@%$BLDSHARED%g
13764 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
13765 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
13767 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13768 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13769 s%@INSTALL_DATA@%$INSTALL_DATA%g
13771 s%@passwd_program@%$passwd_program%g
13772 s%@BROKEN_CC@%$BROKEN_CC%g
13774 s%@host_alias@%$host_alias%g
13775 s%@host_cpu@%$host_cpu%g
13776 s%@host_vendor@%$host_vendor%g
13777 s%@host_os@%$host_os%g
13778 s%@target@%$target%g
13779 s%@target_alias@%$target_alias%g
13780 s%@target_cpu@%$target_cpu%g
13781 s%@target_vendor@%$target_vendor%g
13782 s%@target_os@%$target_os%g
13784 s%@build_alias@%$build_alias%g
13785 s%@build_cpu@%$build_cpu%g
13786 s%@build_vendor@%$build_vendor%g
13787 s%@build_os@%$build_os%g
13789 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
13790 s%@LIBOBJS@%$LIBOBJS%g
13791 s%@TERMLIBS@%$TERMLIBS%g
13792 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13794 s%@DYNEXP@%$DYNEXP%g
13795 s%@QUOTAOBJS@%$QUOTAOBJS%g
13796 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13797 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
13798 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
13799 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
13800 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
13801 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
13802 s%@BUILD_POPT@%$BUILD_POPT%g
13803 s%@FLAGS1@%$FLAGS1%g
13804 s%@builddir@%$builddir%g
13809 cat >> $CONFIG_STATUS <<\EOF
13811 # Split the substitutions into bite-sized pieces for seds with
13812 # small command number limits, like on Digital OSF/1 and HP-UX.
13813 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
13814 ac_file
=1 # Number of current file.
13815 ac_beg
=1 # First line for current file.
13816 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
13819 while $ac_more_lines; do
13820 if test $ac_beg -gt 1; then
13821 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
13823 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
13825 if test ! -s conftest.s
$ac_file; then
13826 ac_more_lines
=false
13827 rm -f conftest.s
$ac_file
13829 if test -z "$ac_sed_cmds"; then
13830 ac_sed_cmds
="sed -f conftest.s$ac_file"
13832 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
13834 ac_file
=`expr $ac_file + 1`
13836 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
13839 if test -z "$ac_sed_cmds"; then
13844 cat >> $CONFIG_STATUS <<EOF
13846 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
13848 cat >> $CONFIG_STATUS <<\EOF
13849 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
13850 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13852 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
13853 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
13854 *) ac_file_in
="${ac_file}.in" ;;
13857 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13859 # Remove last slash and all that follows it. Not all systems have dirname.
13860 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13861 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
13862 # The file is in a subdirectory.
13863 test ! -d "$ac_dir" && mkdir
"$ac_dir"
13864 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
13865 # A "../" for each directory in $ac_dir_suffix.
13866 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13868 ac_dir_suffix
= ac_dots
=
13871 case "$ac_given_srcdir" in
13873 if test -z "$ac_dots"; then top_srcdir
=.
13874 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13875 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
13876 *) # Relative path.
13877 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13878 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
13881 case "$ac_given_INSTALL" in
13882 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
13883 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
13886 echo creating
"$ac_file"
13888 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13890 *Makefile
*) ac_comsub
="1i\\
13891 # $configure_input" ;;
13895 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13897 s%@configure_input@%$configure_input%g
13898 s%@srcdir@%$srcdir%g
13899 s%@top_srcdir@%$top_srcdir%g
13900 s%@INSTALL@%$INSTALL%g
13901 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
13905 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13906 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13908 # ac_d sets the value in "#define NAME VALUE" lines.
13909 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13910 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
13913 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13914 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13915 ac_uB
='\([ ]\)%\1#\2define\3'
13918 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13919 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13920 ac_eB
='$%\1#\2define\3'
13924 if test "${CONFIG_HEADERS+set}" != set; then
13926 cat >> $CONFIG_STATUS <<EOF
13927 CONFIG_HEADERS="include/config.h"
13929 cat >> $CONFIG_STATUS <<\EOF
13931 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
13932 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13934 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
13935 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
13936 *) ac_file_in
="${ac_file}.in" ;;
13939 echo creating
$ac_file
13941 rm -f conftest.frag conftest.
in conftest.out
13942 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13943 cat $ac_file_inputs > conftest.
in
13947 # Transform confdefs.h into a sed script conftest.vals that substitutes
13948 # the proper values into config.h.in to produce config.h. And first:
13949 # Protect against being on the right side of a sed subst in config.status.
13950 # Protect against being in an unquoted here document in config.status.
13951 rm -f conftest.vals
13952 cat > conftest.hdr
<<\EOF
13955 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13959 sed -n -f conftest.hdr confdefs.h > conftest.vals
13962 # This sed command replaces #undef with comments. This is necessary, for
13963 # example, in the case of _POSIX_SOURCE, which is predefined and required
13964 # on some systems where configure will not decide to define it.
13965 cat >> conftest.vals <<\EOF
13966 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13969 # Break up conftest.vals because some shells have a limit on
13970 # the size of here documents, and old seds have small limits too.
13972 rm -f conftest.tail
13975 ac_lines=`grep -c . conftest.vals
`
13976 # grep -c gives empty output for an empty file on some AIX systems.
13977 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13978 # Write a limited-size here document to conftest.frag.
13979 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13980 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13982 sed -f conftest.frag conftest.in > conftest.out
13984 mv conftest.out conftest.in
13985 ' >> $CONFIG_STATUS
13986 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13987 rm -f conftest.vals
13988 mv conftest.tail conftest.vals
13990 rm -f conftest.vals
13992 cat >> $CONFIG_STATUS <<\EOF
13993 rm -f conftest.frag conftest.h
13994 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13995 cat conftest.in >> conftest.h
13997 if cmp -s $ac_file conftest.h 2>/dev/null; then
13998 echo "$ac_file is unchanged"
14001 # Remove last slash and all that follows it. Not all systems have dirname.
14002 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
14003 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14004 # The file is in a subdirectory.
14005 test ! -d "$ac_dir" && mkdir "$ac_dir"
14008 mv conftest.h $ac_file
14013 cat >> $CONFIG_STATUS <<EOF
14016 cat >> $CONFIG_STATUS <<\EOF
14020 chmod +x $CONFIG_STATUS
14021 rm -fr confdefs* $ac_clean_files
14022 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1