3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/samba
16 --with-fhs Use FHS-compliant paths (default=no)"
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
22 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)"
24 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
26 --with-configdir=DIR Where to put configuration files (\$libdir)"
28 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
30 --enable-debug Turn on compiler debugging information (default=no)"
32 --enable-developer Turn on developer warnings and debugging (default=no)"
34 --enable-krb5developer Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)"
36 --enable-dmalloc Enable heap debugging [default=no]"
38 --enable-dynrpc Enable dynamic RPC modules [default=no]"
40 --enable-cups Turn on CUPS support (default=auto)"
42 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
44 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
46 --with-smbwrapper Include SMB wrapper support (default=no) "
48 --with-afs Include AFS clear-text auth support (default=no) "
50 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)"
52 --with-ads Active Directory support (default yes)"
54 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)"
56 --with-ldap LDAP support (default yes)"
58 --with-mysql-prefix=PFX Prefix where MYSQL is installed (optional)"
60 --with-mysql-exec-prefix=PFX Exec prefix where MYSQL is installed (optional)"
62 --disable-mysqltest Do not try to compile and run a test MYSQL program"
64 --with-xml-prefix=PFX Prefix where libxml is installed (optional)"
66 --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)"
68 --disable-xmltest Do not try to compile and run a test LIBXML program"
70 --with-automount Include automount support (default=no)"
72 --with-smbmount Include smbmount (Linux only) support (default=no)"
74 --with-pam Include PAM support (default=no)"
76 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
78 --with-sam Build new (experimental) SAM database (default=no)"
80 --with-ldapsam Include LDAP SAM 2.2 compatible configuration (default=no)"
82 --with-tdbsam Include experimental TDB SAM support (default=no)"
84 --with-nisplussam Include NISPLUS SAM support (default=no)"
86 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
88 --with-syslog Include experimental SYSLOG support (default=no)"
90 --with-profiling-data Include gathering source code profile information (default=no)"
92 --with-quotas Include experimental disk-quota support (default=no)"
94 --with-utmp Include experimental utmp accounting (default=no)"
96 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
98 --with-libsmbclient Build the libsmbclient shared library (default=yes if shared libs supported)"
100 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
102 --with-acl-support Include ACL support (default=no)"
104 --with-sendfile-support Check for sendfile support (default=yes)"
106 --with-winbind Build winbind (default, if supported by OS)"
108 --with-included-popt use bundled popt library, not from system"
110 --with-python=PYTHONNAME build Python libraries"
112 # Initialize some variables set by options.
113 # The variables have the same names as the options, with
114 # dashes changed to underlines.
116 cache_file
=.
/config.cache
125 program_transform_name
=s
,x
,x
,
133 bindir
='${exec_prefix}/bin'
134 sbindir
='${exec_prefix}/sbin'
135 libexecdir
='${exec_prefix}/libexec'
136 datadir
='${prefix}/share'
137 sysconfdir
='${prefix}/etc'
138 sharedstatedir
='${prefix}/com'
139 localstatedir
='${prefix}/var'
140 libdir
='${exec_prefix}/lib'
141 includedir
='${prefix}/include'
142 oldincludedir
='/usr/include'
143 infodir
='${prefix}/info'
144 mandir
='${prefix}/man'
146 # Initialize some other variables.
149 SHELL
=${CONFIG_SHELL-/bin/sh}
150 # Maximum number of lines to put in a shell here document.
157 # If the previous option needs an argument, assign it.
158 if test -n "$ac_prev"; then
159 eval "$ac_prev=\$ac_option"
165 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
169 # Accept the important Cygnus configure options, so we can diagnose typos.
173 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
175 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
176 bindir
="$ac_optarg" ;;
178 -build |
--build |
--buil |
--bui |
--bu)
180 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
181 build
="$ac_optarg" ;;
183 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
184 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
185 ac_prev
=cache_file
;;
186 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
187 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
188 cache_file
="$ac_optarg" ;;
190 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
192 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
194 datadir
="$ac_optarg" ;;
196 -disable-* |
--disable-*)
197 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
198 # Reject names that are not valid shell variable names.
199 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
200 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
202 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
203 eval "enable_${ac_feature}=no" ;;
205 -enable-* |
--enable-*)
206 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
207 # Reject names that are not valid shell variable names.
208 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
209 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
211 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
216 eval "enable_${ac_feature}='$ac_optarg'" ;;
218 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
219 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
220 |
--exec |
--exe |
--ex)
221 ac_prev
=exec_prefix
;;
222 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
223 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
224 |
--exec=* |
--exe=* |
--ex=*)
225 exec_prefix
="$ac_optarg" ;;
227 -gas |
--gas |
--ga |
--g)
228 # Obsolete; use --with-gas.
231 -help |
--help |
--hel |
--he)
232 # Omit some internal or obsolete options to make the list less imposing.
233 # This message is too long to be a string in the A/UX 3.1 sh.
235 Usage: configure [options] [host]
236 Options: [defaults in brackets after descriptions]
238 --cache-file=FILE cache test results in FILE
239 --help print this message
240 --no-create do not create output files
241 --quiet, --silent do not print \`checking...' messages
242 --version print the version of autoconf that created configure
243 Directory and file names:
244 --prefix=PREFIX install architecture-independent files in PREFIX
246 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
248 --bindir=DIR user executables in DIR [EPREFIX/bin]
249 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
250 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
251 --datadir=DIR read-only architecture-independent data in DIR
253 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
254 --sharedstatedir=DIR modifiable architecture-independent data in DIR
256 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
257 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
258 --includedir=DIR C header files in DIR [PREFIX/include]
259 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
260 --infodir=DIR info documentation in DIR [PREFIX/info]
261 --mandir=DIR man documentation in DIR [PREFIX/man]
262 --srcdir=DIR find the sources in DIR [configure dir or ..]
263 --program-prefix=PREFIX prepend PREFIX to installed program names
264 --program-suffix=SUFFIX append SUFFIX to installed program names
265 --program-transform-name=PROGRAM
266 run sed PROGRAM on installed program names
270 --build=BUILD configure for building on BUILD [BUILD=HOST]
271 --host=HOST configure for HOST [guessed]
272 --target=TARGET configure for TARGET [TARGET=HOST]
273 Features and packages:
274 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
275 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
276 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
277 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
278 --x-includes=DIR X include files are in DIR
279 --x-libraries=DIR X library files are in DIR
281 if test -n "$ac_help"; then
282 echo "--enable and --with options recognized:$ac_help"
286 -host |
--host |
--hos |
--ho)
288 -host=* |
--host=* |
--hos=* |
--ho=*)
291 -includedir |
--includedir |
--includedi |
--included |
--include \
292 |
--includ |
--inclu |
--incl |
--inc)
293 ac_prev
=includedir
;;
294 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
295 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
296 includedir
="$ac_optarg" ;;
298 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
300 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
301 infodir
="$ac_optarg" ;;
303 -libdir |
--libdir |
--libdi |
--libd)
305 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
306 libdir
="$ac_optarg" ;;
308 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
309 |
--libexe |
--libex |
--libe)
310 ac_prev
=libexecdir
;;
311 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
312 |
--libexe=* |
--libex=* |
--libe=*)
313 libexecdir
="$ac_optarg" ;;
315 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
316 |
--localstate |
--localstat |
--localsta |
--localst \
317 |
--locals |
--local |
--loca |
--loc |
--lo)
318 ac_prev
=localstatedir
;;
319 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
320 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
321 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
322 localstatedir
="$ac_optarg" ;;
324 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
326 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
327 mandir
="$ac_optarg" ;;
330 # Obsolete; use --without-fp.
333 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
337 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
338 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
341 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
342 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
343 |
--oldin |
--oldi |
--old |
--ol |
--o)
344 ac_prev
=oldincludedir
;;
345 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
346 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
347 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
348 oldincludedir
="$ac_optarg" ;;
350 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
352 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
353 prefix
="$ac_optarg" ;;
355 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
356 |
--program-pre |
--program-pr |
--program-p)
357 ac_prev
=program_prefix
;;
358 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
359 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
360 program_prefix
="$ac_optarg" ;;
362 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
363 |
--program-suf |
--program-su |
--program-s)
364 ac_prev
=program_suffix
;;
365 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
366 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
367 program_suffix
="$ac_optarg" ;;
369 -program-transform-name |
--program-transform-name \
370 |
--program-transform-nam |
--program-transform-na \
371 |
--program-transform-n |
--program-transform- \
372 |
--program-transform |
--program-transfor \
373 |
--program-transfo |
--program-transf \
374 |
--program-trans |
--program-tran \
375 |
--progr-tra |
--program-tr |
--program-t)
376 ac_prev
=program_transform_name
;;
377 -program-transform-name=* |
--program-transform-name=* \
378 |
--program-transform-nam=* |
--program-transform-na=* \
379 |
--program-transform-n=* |
--program-transform-=* \
380 |
--program-transform=* |
--program-transfor=* \
381 |
--program-transfo=* |
--program-transf=* \
382 |
--program-trans=* |
--program-tran=* \
383 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
384 program_transform_name
="$ac_optarg" ;;
386 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
387 |
-silent |
--silent |
--silen |
--sile |
--sil)
390 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
392 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
394 sbindir
="$ac_optarg" ;;
396 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
397 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
398 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
400 ac_prev
=sharedstatedir
;;
401 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
402 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
403 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
405 sharedstatedir
="$ac_optarg" ;;
407 -site |
--site |
--sit)
409 -site=* |
--site=* |
--sit=*)
412 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
414 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
415 srcdir
="$ac_optarg" ;;
417 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
418 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
419 ac_prev
=sysconfdir
;;
420 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
421 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
422 sysconfdir
="$ac_optarg" ;;
424 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
426 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
427 target
="$ac_optarg" ;;
429 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
432 -version |
--version |
--versio |
--versi |
--vers)
433 echo "configure generated by autoconf version 2.13"
437 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
438 # Reject names that are not valid shell variable names.
439 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
440 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
442 ac_package
=`echo $ac_package| sed 's/-/_/g'`
447 eval "with_${ac_package}='$ac_optarg'" ;;
449 -without-* |
--without-*)
450 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
451 # Reject names that are not valid shell variable names.
452 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
453 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
455 ac_package
=`echo $ac_package| sed 's/-/_/g'`
456 eval "with_${ac_package}=no" ;;
459 # Obsolete; use --with-x.
462 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
463 |
--x-incl |
--x-inc |
--x-in |
--x-i)
464 ac_prev
=x_includes
;;
465 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
466 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
467 x_includes
="$ac_optarg" ;;
469 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
470 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
471 ac_prev
=x_libraries
;;
472 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
473 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
474 x_libraries
="$ac_optarg" ;;
476 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
480 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
481 echo "configure: warning: $ac_option: invalid host type" 1>&2
483 if test "x$nonopt" != xNONE
; then
484 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
492 if test -n "$ac_prev"; then
493 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
496 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
498 # File descriptor usage:
501 # 2 errors and warnings
502 # 3 some systems may open it to /dev/tty
503 # 4 used on the Kubota Titan
504 # 6 checking for... messages and results
505 # 5 compiler messages saved in config.log
506 if test "$silent" = yes; then
514 This file contains any messages produced by compilers while
515 running configure, to aid debugging if configure makes a mistake.
518 # Strip out --no-create and --no-recursion so they do not pile up.
519 # Also quote any args containing shell metacharacters.
524 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
525 |
--no-cr |
--no-c) ;;
526 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
527 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
528 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
529 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
530 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
535 # Only set these to C if already set. These must not be set unconditionally
536 # because not all systems understand e.g. LANG=C (notably SCO).
537 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
538 # Non-C LC_CTYPE values break the ctype check.
539 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
540 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
541 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
542 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
544 # confdefs.h avoids OS command line length limits that DEFS can exceed.
545 rm -rf conftest
* confdefs.h
546 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
549 # A filename unique to this package, relative to the directory that
550 # configure is in, which we can look for to find out if srcdir is correct.
551 ac_unique_file
=include
/includes.h
553 # Find the source files, if location was not specified.
554 if test -z "$srcdir"; then
555 ac_srcdir_defaulted
=yes
556 # Try the directory containing this script, then its parent.
558 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
559 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
561 if test ! -r $srcdir/$ac_unique_file; then
565 ac_srcdir_defaulted
=no
567 if test ! -r $srcdir/$ac_unique_file; then
568 if test "$ac_srcdir_defaulted" = yes; then
569 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
571 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
574 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
576 # Prefer explicitly selected file to automatically selected ones.
577 if test -z "$CONFIG_SITE"; then
578 if test "x$prefix" != xNONE
; then
579 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
581 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
584 for ac_site_file
in $CONFIG_SITE; do
585 if test -r "$ac_site_file"; then
586 echo "loading site script $ac_site_file"
591 if test -r "$cache_file"; then
592 echo "loading cache $cache_file"
595 echo "creating cache $cache_file"
600 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
601 ac_cpp
='$CPP $CPPFLAGS'
602 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
603 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
604 cross_compiling
=$ac_cv_prog_cc_cross
608 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
609 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
610 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
617 ac_n
= ac_c
='\c' ac_t
=
623 #################################################
624 # Directory handling stuff to support both the
625 # legacy SAMBA directories and FHS compliant
629 # Check whether --with-fhs or --without-fhs was given.
630 if test "${with_fhs+set}" = set; then
632 configdir
="${sysconfdir}/samba"
633 lockdir
="\${VARDIR}/cache/samba"
634 piddir
="\${VARDIR}/run/samba"
635 logfilebase
="\${VARDIR}/log/samba"
636 privatedir
="\${CONFIGDIR}/private"
637 libdir
="\${prefix}/lib/samba"
638 swatdir
="\${DATADIR}/samba/swat"
640 configdir
="\${LIBDIR}"
641 logfilebase
="\${VARDIR}"
642 lockdir
="\${VARDIR}/locks"
643 piddir
="\${VARDIR}/locks"
644 privatedir
="\${prefix}/private"
645 swatdir
="\${prefix}/swat"
649 #################################################
650 # set private directory location
651 # Check whether --with-privatedir or --without-privatedir was given.
652 if test "${with_privatedir+set}" = set; then
653 withval
="$with_privatedir"
657 # Just in case anybody calls it without argument
659 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
662 privatedir
="$withval"
668 #################################################
669 # set lock directory location
670 # Check whether --with-lockdir or --without-lockdir was given.
671 if test "${with_lockdir+set}" = set; then
672 withval
="$with_lockdir"
676 # Just in case anybody calls it without argument
678 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
687 #################################################
688 # set pid directory location
689 # Check whether --with-piddir or --without-piddir was given.
690 if test "${with_piddir+set}" = set; then
691 withval
="$with_piddir"
695 # Just in case anybody calls it without argument
697 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
706 #################################################
707 # set SWAT directory location
708 # Check whether --with-swatdir or --without-swatdir was given.
709 if test "${with_swatdir+set}" = set; then
710 withval
="$with_swatdir"
714 # Just in case anybody does it
716 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
725 #################################################
726 # set configuration directory location
727 # Check whether --with-configdir or --without-configdir was given.
728 if test "${with_configdir+set}" = set; then
729 withval
="$with_configdir"
733 # Just in case anybody does it
735 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
744 #################################################
745 # set log directory location
746 # Check whether --with-logfilebase or --without-logfilebase was given.
747 if test "${with_logfilebase+set}" = set; then
748 withval
="$with_logfilebase"
752 # Just in case anybody does it
754 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
757 logfilebase
="$withval"
798 NETLOG_DYNAMIC_YES
="#"
818 SPOOLSS_DYNAMIC_YES
="#"
825 # compile with optimization and without debugging by default
826 CFLAGS
="-O ${CFLAGS}"
828 # Check whether --enable-debug or --disable-debug was given.
829 if test "${enable_debug+set}" = set; then
830 enableval
="$enable_debug"
831 if eval "test x$enable_debug = xyes"; then
832 CFLAGS
="${CFLAGS} -g"
837 # Check whether --enable-developer or --disable-developer was given.
838 if test "${enable_developer+set}" = set; then
839 enableval
="$enable_developer"
840 if eval "test x$enable_developer = xyes"; then
841 CFLAGS
="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
846 # Check whether --enable-krb5developer or --disable-krb5developer was given.
847 if test "${enable_krb5developer+set}" = set; then
848 enableval
="$enable_krb5developer"
849 if eval "test x$enable_krb5developer = xyes"; then
850 CFLAGS
="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
855 # Check whether --enable-dmalloc or --disable-dmalloc was given.
856 if test "${enable_dmalloc+set}" = set; then
857 enableval
="$enable_dmalloc"
862 if test "x$enable_dmalloc" = xyes
864 cat >> confdefs.h
<<\EOF
865 #define ENABLE_DMALLOC 1
868 cat >> confdefs.h
<<\EOF
869 #define DMALLOC_FUNC_CHECK 1
872 LIBS
="$LIBS -ldmalloc"
875 # Check whether --enable-dynrpc or --disable-dynrpc was given.
876 if test "${enable_dynrpc+set}" = set; then
877 enableval
="$enable_dynrpc"
882 if test x
$enable_dynrpc = xyes
884 enable_dynrpc
=lsa
,samr
,reg
,wks
,netlog
,dfs
887 if test x
$enable_dynrpc != xno
889 for i
in `echo $enable_dynrpc | sed -e's/,/ /g'`
893 cat >> confdefs.h
<<\EOF
894 #define RPC_LSA_DYNAMIC 1
900 cat >> confdefs.h
<<\EOF
901 #define RPC_SAMR_DYNAMIC 1
907 cat >> confdefs.h
<<\EOF
908 #define RPC_SVC_DYNAMIC 1
914 cat >> confdefs.h
<<\EOF
915 #define RPC_WKS_DYNAMIC 1
920 NETLOG_DYNAMIC_NO
="#"
921 cat >> confdefs.h
<<\EOF
922 #define RPC_NETLOG_DYNAMIC 1
928 cat >> confdefs.h
<<\EOF
929 #define RPC_REG_DYNAMIC 1
934 SPOOLSS_DYNAMIC_NO
="#"
935 cat >> confdefs.h
<<\EOF
936 #define RPC_SPOOLSS_DYNAMIC 1
942 cat >> confdefs.h
<<\EOF
943 #define RPC_DFS_DYNAMIC 1
950 # Extract the first word of "gcc", so it can be a program name with args.
951 set dummy gcc
; ac_word
=$2
952 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
953 echo "configure:954: checking for $ac_word" >&5
954 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
955 echo $ac_n "(cached) $ac_c" 1>&6
957 if test -n "$CC"; then
958 ac_cv_prog_CC
="$CC" # Let the user override the test.
960 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
962 for ac_dir
in $ac_dummy; do
963 test -z "$ac_dir" && ac_dir
=.
964 if test -f $ac_dir/$ac_word; then
973 if test -n "$CC"; then
974 echo "$ac_t""$CC" 1>&6
976 echo "$ac_t""no" 1>&6
979 if test -z "$CC"; then
980 # Extract the first word of "cc", so it can be a program name with args.
981 set dummy cc
; ac_word
=$2
982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
983 echo "configure:984: checking for $ac_word" >&5
984 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
985 echo $ac_n "(cached) $ac_c" 1>&6
987 if test -n "$CC"; then
988 ac_cv_prog_CC
="$CC" # Let the user override the test.
990 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
993 for ac_dir
in $ac_dummy; do
994 test -z "$ac_dir" && ac_dir
=.
995 if test -f $ac_dir/$ac_word; then
996 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1005 if test $ac_prog_rejected = yes; then
1006 # We found a bogon in the path, so make sure we never use it.
1007 set dummy
$ac_cv_prog_CC
1009 if test $# -gt 0; then
1010 # We chose a different compiler from the bogus one.
1011 # However, it has the same basename, so the bogon will be chosen
1012 # first if we set CC to just the basename; use the full file name.
1014 set dummy
"$ac_dir/$ac_word" "$@"
1022 if test -n "$CC"; then
1023 echo "$ac_t""$CC" 1>&6
1025 echo "$ac_t""no" 1>&6
1028 if test -z "$CC"; then
1029 case "`uname -s`" in
1031 # Extract the first word of "cl", so it can be a program name with args.
1032 set dummy cl
; ac_word
=$2
1033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1034 echo "configure:1035: checking for $ac_word" >&5
1035 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1036 echo $ac_n "(cached) $ac_c" 1>&6
1038 if test -n "$CC"; then
1039 ac_cv_prog_CC
="$CC" # Let the user override the test.
1041 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1043 for ac_dir
in $ac_dummy; do
1044 test -z "$ac_dir" && ac_dir
=.
1045 if test -f $ac_dir/$ac_word; then
1054 if test -n "$CC"; then
1055 echo "$ac_t""$CC" 1>&6
1057 echo "$ac_t""no" 1>&6
1062 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1065 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1066 echo "configure:1067: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1069 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1070 ac_cpp
='$CPP $CPPFLAGS'
1071 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1072 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1073 cross_compiling
=$ac_cv_prog_cc_cross
1075 cat > conftest.
$ac_ext << EOF
1077 #line 1078 "configure"
1078 #include "confdefs.h"
1082 if { (eval echo configure
:1083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1083 ac_cv_prog_cc_works
=yes
1084 # If we can't run a trivial program, we are probably using a cross compiler.
1085 if (.
/conftest
; exit) 2>/dev
/null
; then
1086 ac_cv_prog_cc_cross
=no
1088 ac_cv_prog_cc_cross
=yes
1091 echo "configure: failed program was:" >&5
1092 cat conftest.
$ac_ext >&5
1093 ac_cv_prog_cc_works
=no
1097 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1098 ac_cpp
='$CPP $CPPFLAGS'
1099 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1100 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1101 cross_compiling
=$ac_cv_prog_cc_cross
1103 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1104 if test $ac_cv_prog_cc_works = no
; then
1105 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1107 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1108 echo "configure:1109: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1109 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1110 cross_compiling
=$ac_cv_prog_cc_cross
1112 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1113 echo "configure:1114: checking whether we are using GNU C" >&5
1114 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1115 echo $ac_n "(cached) $ac_c" 1>&6
1117 cat > conftest.c
<<EOF
1122 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1129 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1131 if test $ac_cv_prog_gcc = yes; then
1137 ac_test_CFLAGS
="${CFLAGS+set}"
1138 ac_save_CFLAGS
="$CFLAGS"
1140 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1141 echo "configure:1142: checking whether ${CC-cc} accepts -g" >&5
1142 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1143 echo $ac_n "(cached) $ac_c" 1>&6
1145 echo 'void f(){}' > conftest.c
1146 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1155 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1156 if test "$ac_test_CFLAGS" = set; then
1157 CFLAGS
="$ac_save_CFLAGS"
1158 elif test $ac_cv_prog_cc_g = yes; then
1159 if test "$GCC" = yes; then
1165 if test "$GCC" = yes; then
1173 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1174 if test -f $ac_dir/install-sh
; then
1176 ac_install_sh
="$ac_aux_dir/install-sh -c"
1178 elif test -f $ac_dir/install.sh
; then
1180 ac_install_sh
="$ac_aux_dir/install.sh -c"
1184 if test -z "$ac_aux_dir"; then
1185 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1187 ac_config_guess
=$ac_aux_dir/config.guess
1188 ac_config_sub
=$ac_aux_dir/config.sub
1189 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1191 # Find a good install program. We prefer a C program (faster),
1192 # so one script is as good as another. But avoid the broken or
1193 # incompatible versions:
1194 # SysV /etc/install, /usr/sbin/install
1195 # SunOS /usr/etc/install
1196 # IRIX /sbin/install
1198 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1199 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1200 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1201 # ./install, which can be erroneously created by make from ./install.sh.
1202 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1203 echo "configure:1204: checking for a BSD compatible install" >&5
1204 if test -z "$INSTALL"; then
1205 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1206 echo $ac_n "(cached) $ac_c" 1>&6
1208 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1209 for ac_dir
in $PATH; do
1210 # Account for people who put trailing slashes in PATH elements.
1212 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1214 # OSF1 and SCO ODT 3.0 have their own names for install.
1215 # Don't use installbsd from OSF since it installs stuff as root
1217 for ac_prog
in ginstall scoinst
install; do
1218 if test -f $ac_dir/$ac_prog; then
1219 if test $ac_prog = install &&
1220 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1221 # AIX install. It has an incompatible calling convention.
1224 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1235 if test "${ac_cv_path_install+set}" = set; then
1236 INSTALL
="$ac_cv_path_install"
1238 # As a last resort, use the slow shell script. We don't cache a
1239 # path for INSTALL within a source directory, because that will
1240 # break other packages using the cache if that directory is
1241 # removed, or if the path is relative.
1242 INSTALL
="$ac_install_sh"
1245 echo "$ac_t""$INSTALL" 1>&6
1247 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1248 # It thinks the first close brace ends the variable substitution.
1249 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1251 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1253 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1255 for ac_prog
in gawk mawk nawk
awk
1257 # Extract the first word of "$ac_prog", so it can be a program name with args.
1258 set dummy
$ac_prog; ac_word
=$2
1259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1260 echo "configure:1261: checking for $ac_word" >&5
1261 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&6
1264 if test -n "$AWK"; then
1265 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1267 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1269 for ac_dir
in $ac_dummy; do
1270 test -z "$ac_dir" && ac_dir
=.
1271 if test -f $ac_dir/$ac_word; then
1272 ac_cv_prog_AWK
="$ac_prog"
1279 AWK
="$ac_cv_prog_AWK"
1280 if test -n "$AWK"; then
1281 echo "$ac_t""$AWK" 1>&6
1283 echo "$ac_t""no" 1>&6
1286 test -n "$AWK" && break
1291 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1292 echo "configure:1293: checking if the linker ($LD) is GNU ld" >&5
1293 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1294 echo $ac_n "(cached) $ac_c" 1>&6
1296 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1297 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1298 ac_cv_prog_gnu_ld
=yes
1300 ac_cv_prog_gnu_ld
=no
1304 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1307 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1308 echo "configure:1309: checking for POSIXized ISC" >&5
1309 if test -d /etc
/conf
/kconfig.d
&&
1310 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1312 echo "$ac_t""yes" 1>&6
1313 ISC
=yes # If later tests want to check for ISC.
1314 cat >> confdefs.h
<<\EOF
1315 #define _POSIX_SOURCE 1
1318 if test "$GCC" = yes; then
1324 echo "$ac_t""no" 1>&6
1329 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1330 echo "configure:1331: checking for Cygwin environment" >&5
1331 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1332 echo $ac_n "(cached) $ac_c" 1>&6
1334 cat > conftest.
$ac_ext <<EOF
1335 #line 1336 "configure"
1336 #include "confdefs.h"
1341 #define __CYGWIN__ __CYGWIN32__
1346 if { (eval echo configure
:1347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1350 echo "configure: failed program was:" >&5
1351 cat conftest.
$ac_ext >&5
1359 echo "$ac_t""$ac_cv_cygwin" 1>&6
1361 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1362 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1363 echo "configure:1364: checking for mingw32 environment" >&5
1364 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1365 echo $ac_n "(cached) $ac_c" 1>&6
1367 cat > conftest.
$ac_ext <<EOF
1368 #line 1369 "configure"
1369 #include "confdefs.h"
1375 if { (eval echo configure
:1376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1379 echo "configure: failed program was:" >&5
1380 cat conftest.
$ac_ext >&5
1388 echo "$ac_t""$ac_cv_mingw32" 1>&6
1390 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1393 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1394 echo "configure:1395: checking for executable suffix" >&5
1395 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1396 echo $ac_n "(cached) $ac_c" 1>&6
1398 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1402 echo 'int main () { return 0; }' > conftest.
$ac_ext
1404 if { (eval echo configure
:1405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1405 for file in conftest.
*; do
1407 *.c |
*.o |
*.obj
) ;;
1408 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1412 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1415 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1420 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1421 echo "$ac_t""${ac_cv_exeext}" 1>&6
1425 if test "x$CC" != xcc
; then
1426 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1427 echo "configure:1428: checking whether $CC and cc understand -c and -o together" >&5
1429 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1430 echo "configure:1431: checking whether cc understands -c and -o together" >&5
1432 set dummy
$CC; ac_cc
="`echo $2 |
1433 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1434 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1435 echo $ac_n "(cached) $ac_c" 1>&6
1437 echo 'foo(){}' > conftest.c
1438 # Make sure it works both with $CC and with simple cc.
1439 # We do the test twice because some compilers refuse to overwrite an
1440 # existing .o file with -o, though they will create one.
1441 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1442 if { (eval echo configure
:1443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1443 test -f conftest.o
&& { (eval echo configure
:1444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1445 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1446 if test "x$CC" != xcc
; then
1447 # Test first that cc exists at all.
1448 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1449 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1450 if { (eval echo configure
:1451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1451 test -f conftest.o
&& { (eval echo configure
:1452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1456 # cc exists but doesn't like -o.
1457 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1462 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1467 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1468 echo "$ac_t""yes" 1>&6
1470 echo "$ac_t""no" 1>&6
1471 cat >> confdefs.h
<<\EOF
1472 #define NO_MINUS_C_MINUS_O 1
1477 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1484 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1485 echo "configure:1486: checking that the C compiler understands volatile" >&5
1486 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1487 echo $ac_n "(cached) $ac_c" 1>&6
1490 cat > conftest.
$ac_ext <<EOF
1491 #line 1492 "configure"
1492 #include "confdefs.h"
1493 #include <sys/types.h>
1498 if { (eval echo configure
:1499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1500 samba_cv_volatile
=yes
1502 echo "configure: failed program was:" >&5
1503 cat conftest.
$ac_ext >&5
1505 samba_cv_volatile
=no
1510 echo "$ac_t""$samba_cv_volatile" 1>&6
1511 if test x
"$samba_cv_volatile" = x
"yes"; then
1512 cat >> confdefs.h
<<\EOF
1513 #define HAVE_VOLATILE 1
1520 # Do some error checking and defaulting for the host and target type.
1522 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1525 # 1. You are not allowed to specify --host, --target, and nonopt at the
1527 # 2. Host defaults to nonopt.
1528 # 3. If nonopt is not specified, then host defaults to the current host,
1529 # as determined by config.guess.
1530 # 4. Target and build default to nonopt.
1531 # 5. If nonopt is not specified, then target and build default to host.
1533 # The aliases save the names the user supplied, while $host etc.
1534 # will get canonicalized.
1535 case $host---$target---$nonopt in
1536 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1537 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1541 # Make sure we can run config.sub.
1542 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1543 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1546 echo $ac_n "checking host system type""... $ac_c" 1>&6
1547 echo "configure:1548: checking host system type" >&5
1550 case "$host_alias" in
1554 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1555 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1557 *) host_alias
=$nonopt ;;
1561 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1562 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1563 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1564 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1565 echo "$ac_t""$host" 1>&6
1567 echo $ac_n "checking target system type""... $ac_c" 1>&6
1568 echo "configure:1569: checking target system type" >&5
1570 target_alias
=$target
1571 case "$target_alias" in
1574 NONE
) target_alias
=$host_alias ;;
1575 *) target_alias
=$nonopt ;;
1579 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1580 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1583 echo "$ac_t""$target" 1>&6
1585 echo $ac_n "checking build system type""... $ac_c" 1>&6
1586 echo "configure:1587: checking build system type" >&5
1589 case "$build_alias" in
1592 NONE
) build_alias
=$host_alias ;;
1593 *) build_alias
=$nonopt ;;
1597 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1598 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1599 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1600 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601 echo "$ac_t""$build" 1>&6
1603 test "$host_alias" != "$target_alias" &&
1604 test "$program_prefix$program_suffix$program_transform_name" = \
1606 program_prefix
=${target_alias}-
1610 *irix6
*) cat >> confdefs.h
<<\EOF
1611 #include <standards.h>
1619 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1620 echo "configure:1621: checking config.cache system type" >&5
1621 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1622 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1623 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1624 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1625 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1626 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1627 echo "$ac_t""different" 1>&6
1628 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1630 echo "$ac_t""same" 1>&6
1632 ac_cv_host_system_type
="$host"
1633 ac_cv_build_system_type
="$build"
1634 ac_cv_target_system_type
="$target"
1640 # Config CPPFLAG settings for strange OS's that must be set
1641 # before other tests.
1644 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1647 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1648 echo "configure:1649: checking whether ${CC-cc} accepts -Ae" >&5
1649 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1650 echo $ac_n "(cached) $ac_c" 1>&6
1652 echo 'void f(){}' > conftest.c
1653 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1654 ac_cv_prog_cc_Ae
=yes
1662 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1663 # mmap on HPUX is completely broken...
1664 cat >> confdefs.h
<<\EOF
1665 #define MMAP_BLACKLIST 1
1668 if test $ac_cv_prog_cc_Ae = yes; then
1669 CPPFLAGS
="$CPPFLAGS -Ae"
1672 # Defines needed for HPUX support.
1673 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1674 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1678 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1679 cat >> confdefs.h
<<\EOF
1680 #define USE_BOTH_CRYPT_CALLS 1
1683 cat >> confdefs.h
<<\EOF
1684 #define _HPUX_SOURCE 1
1687 cat >> confdefs.h
<<\EOF
1688 #define _POSIX_SOURCE 1
1691 cat >> confdefs.h
<<\EOF
1692 #define _ALIGNMENT_REQUIRED 1
1695 cat >> confdefs.h
<<\EOF
1696 #define _MAX_ALIGNMENT 4
1701 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1702 cat >> confdefs.h
<<\EOF
1703 #define USE_BOTH_CRYPT_CALLS 1
1706 cat >> confdefs.h
<<\EOF
1707 #define _HPUX_SOURCE 1
1710 cat >> confdefs.h
<<\EOF
1711 #define _POSIX_SOURCE 1
1714 cat >> confdefs.h
<<\EOF
1715 #define _LARGEFILE64_SOURCE 1
1718 cat >> confdefs.h
<<\EOF
1719 #define _ALIGNMENT_REQUIRED 1
1722 cat >> confdefs.h
<<\EOF
1723 #define _MAX_ALIGNMENT 4
1732 # CRAY Unicos has broken const handling
1734 echo "$ac_t""disabling const" 1>&6
1735 CPPFLAGS
="$CPPFLAGS -Dconst="
1739 # AIX4.x doesn't even admit to having large
1740 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1743 echo "$ac_t""enabling large file support" 1>&6
1744 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1745 cat >> confdefs.h
<<\EOF
1746 #define _LARGE_FILES 1
1751 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1752 # to the existance of large files..
1753 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1754 # recommendations on large file support, however it makes the
1755 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1756 # recommendation makes the compile fail on gcc2.7. JRA.
1760 5.0*|
5.1*|
5.2*|
5.3*|
5.5*)
1761 echo "$ac_t""no large file support" 1>&6
1764 echo "$ac_t""enabling large file support" 1>&6
1765 if test "$ac_cv_prog_gcc" = yes; then
1766 ${CC-cc} -v >conftest.c
2>&1
1767 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1769 case "$ac_cv_gcc_compiler_version_number" in
1770 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1771 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1772 cat >> confdefs.h
<<\EOF
1773 #define _LARGEFILE64_SOURCE 1
1778 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1779 cat >> confdefs.h
<<\EOF
1780 #define _LARGEFILE64_SOURCE 1
1783 cat >> confdefs.h
<<\EOF
1784 #define _FILE_OFFSET_BITS 64
1790 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1791 cat >> confdefs.h
<<\EOF
1792 #define _LARGEFILE64_SOURCE 1
1795 cat >> confdefs.h
<<\EOF
1796 #define _FILE_OFFSET_BITS 64
1804 # VOS may need to have POSIX support and System V compatibility enabled.
1808 *-D_POSIX_C_SOURCE*)
1811 CPPFLAGS
="$CPPFLAGS -D_POSIX_C_SOURCE=199506L"
1812 cat >> confdefs.h
<<\EOF
1813 #define _POSIX_C_SOURCE 199506L
1819 *-D_SYSV*|
*-D_SVID_SOURCE*)
1822 CPPFLAGS
="$CPPFLAGS -D_SYSV"
1823 cat >> confdefs.h
<<\EOF
1830 # Tests needed for SINIX large file support.
1833 if test $host = mips-sni-sysv4
; then
1834 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1835 echo "configure:1836: checking for LFS support" >&5
1836 old_CPPFLAGS
="$CPPFLAGS"
1837 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1838 if test "$cross_compiling" = yes; then
1839 SINIX_LFS_SUPPORT
=cross
1841 cat > conftest.
$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1847 #if _LFS64_LARGEFILE == 1
1854 if { (eval echo configure
:1855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1856 SINIX_LFS_SUPPORT
=yes
1858 echo "configure: failed program was:" >&5
1859 cat conftest.
$ac_ext >&5
1861 SINIX_LFS_SUPPORT
=no
1866 CPPFLAGS
="$old_CPPFLAGS"
1867 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1868 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1869 cat >> confdefs.h
<<\EOF
1870 #define _LARGEFILE64_SOURCE 1
1873 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1874 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1875 LIBS
="`getconf LFS64_LIBS` $LIBS"
1877 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1881 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1884 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1885 echo "configure:1886: checking for LFS support" >&5
1886 old_CPPFLAGS
="$CPPFLAGS"
1887 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1888 if test "$cross_compiling" = yes; then
1889 LINUX_LFS_SUPPORT
=cross
1891 cat > conftest.
$ac_ext <<EOF
1892 #line 1893 "configure"
1893 #include "confdefs.h"
1896 #include <sys/utsname.h>
1898 #if _LFS64_LARGEFILE == 1
1903 /* Ensure this is glibc 2.2 or higher */
1904 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1905 int libc_major = __GLIBC__;
1906 int libc_minor = __GLIBC_MINOR__;
1914 /* Ensure this is kernel 2.4 or higher */
1917 release = uts.release;
1918 major = atoi(strsep(&release, "."));
1919 minor = atoi(strsep(&release, "."));
1921 if (major > 2 || (major == 2 && minor > 3))
1930 if { (eval echo configure
:1931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1932 LINUX_LFS_SUPPORT
=yes
1934 echo "configure: failed program was:" >&5
1935 cat conftest.
$ac_ext >&5
1937 LINUX_LFS_SUPPORT
=no
1942 CPPFLAGS
="$old_CPPFLAGS"
1943 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1944 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1945 cat >> confdefs.h
<<\EOF
1946 #define _LARGEFILE64_SOURCE 1
1949 cat >> confdefs.h
<<\EOF
1950 #define _FILE_OFFSET_BITS 64
1953 cat >> confdefs.h
<<\EOF
1954 #define _GNU_SOURCE 1
1958 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1962 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1963 echo "configure:1964: checking for LFS support" >&5
1964 old_CPPFLAGS
="$CPPFLAGS"
1965 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1966 if test "$cross_compiling" = yes; then
1967 GLIBC_LFS_SUPPORT
=cross
1969 cat > conftest.
$ac_ext <<EOF
1970 #line 1971 "configure"
1971 #include "confdefs.h"
1975 #if _LFS64_LARGEFILE == 1
1982 if { (eval echo configure
:1983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1984 GLIBC_LFS_SUPPORT
=yes
1986 echo "configure: failed program was:" >&5
1987 cat conftest.
$ac_ext >&5
1989 GLIBC_LFS_SUPPORT
=no
1994 CPPFLAGS
="$old_CPPFLAGS"
1995 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1996 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1997 cat >> confdefs.h
<<\EOF
1998 #define _LARGEFILE64_SOURCE 1
2001 cat >> confdefs.h
<<\EOF
2002 #define _GNU_SOURCE 1
2006 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
2011 echo $ac_n "checking for inline""... $ac_c" 1>&6
2012 echo "configure:2013: checking for inline" >&5
2013 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2014 echo $ac_n "(cached) $ac_c" 1>&6
2017 for ac_kw
in inline __inline__ __inline
; do
2018 cat > conftest.
$ac_ext <<EOF
2019 #line 2020 "configure"
2020 #include "confdefs.h"
2026 if { (eval echo configure
:2027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2028 ac_cv_c_inline
=$ac_kw; break
2030 echo "configure: failed program was:" >&5
2031 cat conftest.
$ac_ext >&5
2038 echo "$ac_t""$ac_cv_c_inline" 1>&6
2039 case "$ac_cv_c_inline" in
2041 no
) cat >> confdefs.h
<<\EOF
2045 *) cat >> confdefs.h
<<EOF
2046 #define inline $ac_cv_c_inline
2051 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2052 echo "configure:2053: checking how to run the C preprocessor" >&5
2053 # On Suns, sometimes $CPP names a directory.
2054 if test -n "$CPP" && test -d "$CPP"; then
2057 if test -z "$CPP"; then
2058 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2059 echo $ac_n "(cached) $ac_c" 1>&6
2061 # This must be in double quotes, not single quotes, because CPP may get
2062 # substituted into the Makefile and "${CC-cc}" will confuse make.
2064 # On the NeXT, cc -E runs the code through the compiler's parser,
2065 # not just through cpp.
2066 cat > conftest.
$ac_ext <<EOF
2067 #line 2068 "configure"
2068 #include "confdefs.h"
2072 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2073 { (eval echo configure
:2074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2074 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2075 if test -z "$ac_err"; then
2079 echo "configure: failed program was:" >&5
2080 cat conftest.
$ac_ext >&5
2082 CPP
="${CC-cc} -E -traditional-cpp"
2083 cat > conftest.
$ac_ext <<EOF
2084 #line 2085 "configure"
2085 #include "confdefs.h"
2089 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2090 { (eval echo configure
:2091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2091 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2092 if test -z "$ac_err"; then
2096 echo "configure: failed program was:" >&5
2097 cat conftest.
$ac_ext >&5
2099 CPP
="${CC-cc} -nologo -E"
2100 cat > conftest.
$ac_ext <<EOF
2101 #line 2102 "configure"
2102 #include "confdefs.h"
2106 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2107 { (eval echo configure
:2108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2108 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2109 if test -z "$ac_err"; then
2113 echo "configure: failed program was:" >&5
2114 cat conftest.
$ac_ext >&5
2123 ac_cv_prog_CPP
="$CPP"
2125 CPP
="$ac_cv_prog_CPP"
2127 ac_cv_prog_CPP
="$CPP"
2129 echo "$ac_t""$CPP" 1>&6
2131 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2132 echo "configure:2133: checking for ANSI C header files" >&5
2133 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2134 echo $ac_n "(cached) $ac_c" 1>&6
2136 cat > conftest.
$ac_ext <<EOF
2137 #line 2138 "configure"
2138 #include "confdefs.h"
2144 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2145 { (eval echo configure
:2146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2146 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2147 if test -z "$ac_err"; then
2149 ac_cv_header_stdc
=yes
2152 echo "configure: failed program was:" >&5
2153 cat conftest.
$ac_ext >&5
2155 ac_cv_header_stdc
=no
2159 if test $ac_cv_header_stdc = yes; then
2160 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2161 cat > conftest.
$ac_ext <<EOF
2162 #line 2163 "configure"
2163 #include "confdefs.h"
2166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2167 egrep "memchr" >/dev
/null
2>&1; then
2171 ac_cv_header_stdc
=no
2177 if test $ac_cv_header_stdc = yes; then
2178 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2179 cat > conftest.
$ac_ext <<EOF
2180 #line 2181 "configure"
2181 #include "confdefs.h"
2184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2185 egrep "free" >/dev
/null
2>&1; then
2189 ac_cv_header_stdc
=no
2195 if test $ac_cv_header_stdc = yes; then
2196 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2197 if test "$cross_compiling" = yes; then
2200 cat > conftest.
$ac_ext <<EOF
2201 #line 2202 "configure"
2202 #include "confdefs.h"
2204 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2205 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2206 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2207 int main () { int i; for (i = 0; i < 256; i++)
2208 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2212 if { (eval echo configure
:2213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2216 echo "configure: failed program was:" >&5
2217 cat conftest.
$ac_ext >&5
2219 ac_cv_header_stdc
=no
2227 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2228 if test $ac_cv_header_stdc = yes; then
2229 cat >> confdefs.h
<<\EOF
2230 #define STDC_HEADERS 1
2236 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2238 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2239 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2240 echo "configure:2241: checking for $ac_hdr that defines DIR" >&5
2241 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2242 echo $ac_n "(cached) $ac_c" 1>&6
2244 cat > conftest.
$ac_ext <<EOF
2245 #line 2246 "configure"
2246 #include "confdefs.h"
2247 #include <sys/types.h>
2253 if { (eval echo configure
:2254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2255 eval "ac_cv_header_dirent_$ac_safe=yes"
2257 echo "configure: failed program was:" >&5
2258 cat conftest.
$ac_ext >&5
2260 eval "ac_cv_header_dirent_$ac_safe=no"
2264 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2265 echo "$ac_t""yes" 1>&6
2266 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2267 cat >> confdefs.h
<<EOF
2268 #define $ac_tr_hdr 1
2270 ac_header_dirent
=$ac_hdr; break
2272 echo "$ac_t""no" 1>&6
2275 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2276 if test $ac_header_dirent = dirent.h
; then
2277 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2278 echo "configure:2279: checking for opendir in -ldir" >&5
2279 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2280 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2281 echo $ac_n "(cached) $ac_c" 1>&6
2283 ac_save_LIBS
="$LIBS"
2285 cat > conftest.
$ac_ext <<EOF
2286 #line 2287 "configure"
2287 #include "confdefs.h"
2288 /* Override any gcc2 internal prototype to avoid an error. */
2289 /* We use char because int might match the return type of a gcc2
2290 builtin and then its argument prototype would still apply. */
2297 if { (eval echo configure
:2298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2299 eval "ac_cv_lib_$ac_lib_var=yes"
2301 echo "configure: failed program was:" >&5
2302 cat conftest.
$ac_ext >&5
2304 eval "ac_cv_lib_$ac_lib_var=no"
2307 LIBS
="$ac_save_LIBS"
2310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2311 echo "$ac_t""yes" 1>&6
2314 echo "$ac_t""no" 1>&6
2318 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2319 echo "configure:2320: checking for opendir in -lx" >&5
2320 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2321 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2322 echo $ac_n "(cached) $ac_c" 1>&6
2324 ac_save_LIBS
="$LIBS"
2326 cat > conftest.
$ac_ext <<EOF
2327 #line 2328 "configure"
2328 #include "confdefs.h"
2329 /* Override any gcc2 internal prototype to avoid an error. */
2330 /* We use char because int might match the return type of a gcc2
2331 builtin and then its argument prototype would still apply. */
2338 if { (eval echo configure
:2339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2340 eval "ac_cv_lib_$ac_lib_var=yes"
2342 echo "configure: failed program was:" >&5
2343 cat conftest.
$ac_ext >&5
2345 eval "ac_cv_lib_$ac_lib_var=no"
2348 LIBS
="$ac_save_LIBS"
2351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2352 echo "$ac_t""yes" 1>&6
2355 echo "$ac_t""no" 1>&6
2360 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2361 echo "configure:2362: checking whether time.h and sys/time.h may both be included" >&5
2362 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2365 cat > conftest.
$ac_ext <<EOF
2366 #line 2367 "configure"
2367 #include "confdefs.h"
2368 #include <sys/types.h>
2369 #include <sys/time.h>
2375 if { (eval echo configure
:2376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2377 ac_cv_header_time
=yes
2379 echo "configure: failed program was:" >&5
2380 cat conftest.
$ac_ext >&5
2382 ac_cv_header_time
=no
2387 echo "$ac_t""$ac_cv_header_time" 1>&6
2388 if test $ac_cv_header_time = yes; then
2389 cat >> confdefs.h
<<\EOF
2390 #define TIME_WITH_SYS_TIME 1
2395 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2396 echo "configure:2397: checking for sys/wait.h that is POSIX.1 compatible" >&5
2397 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2398 echo $ac_n "(cached) $ac_c" 1>&6
2400 cat > conftest.
$ac_ext <<EOF
2401 #line 2402 "configure"
2402 #include "confdefs.h"
2403 #include <sys/types.h>
2404 #include <sys/wait.h>
2406 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2409 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2414 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2417 if { (eval echo configure
:2418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2419 ac_cv_header_sys_wait_h
=yes
2421 echo "configure: failed program was:" >&5
2422 cat conftest.
$ac_ext >&5
2424 ac_cv_header_sys_wait_h
=no
2429 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2430 if test $ac_cv_header_sys_wait_h = yes; then
2431 cat >> confdefs.h
<<\EOF
2432 #define HAVE_SYS_WAIT_H 1
2437 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2439 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2440 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2441 echo "configure:2442: checking for $ac_hdr" >&5
2442 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6
2445 cat > conftest.
$ac_ext <<EOF
2446 #line 2447 "configure"
2447 #include "confdefs.h"
2450 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2451 { (eval echo configure
:2452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2452 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2453 if test -z "$ac_err"; then
2455 eval "ac_cv_header_$ac_safe=yes"
2458 echo "configure: failed program was:" >&5
2459 cat conftest.
$ac_ext >&5
2461 eval "ac_cv_header_$ac_safe=no"
2465 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2466 echo "$ac_t""yes" 1>&6
2467 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2468 cat >> confdefs.h
<<EOF
2469 #define $ac_tr_hdr 1
2473 echo "$ac_t""no" 1>&6
2477 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2479 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2480 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2481 echo "configure:2482: checking for $ac_hdr" >&5
2482 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2483 echo $ac_n "(cached) $ac_c" 1>&6
2485 cat > conftest.
$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2490 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2491 { (eval echo configure
:2492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2492 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2493 if test -z "$ac_err"; then
2495 eval "ac_cv_header_$ac_safe=yes"
2498 echo "configure: failed program was:" >&5
2499 cat conftest.
$ac_ext >&5
2501 eval "ac_cv_header_$ac_safe=no"
2505 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2506 echo "$ac_t""yes" 1>&6
2507 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2508 cat >> confdefs.h
<<EOF
2509 #define $ac_tr_hdr 1
2513 echo "$ac_t""no" 1>&6
2517 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2519 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2520 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2521 echo "configure:2522: checking for $ac_hdr" >&5
2522 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2523 echo $ac_n "(cached) $ac_c" 1>&6
2525 cat > conftest.
$ac_ext <<EOF
2526 #line 2527 "configure"
2527 #include "confdefs.h"
2530 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2531 { (eval echo configure
:2532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2532 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2533 if test -z "$ac_err"; then
2535 eval "ac_cv_header_$ac_safe=yes"
2538 echo "configure: failed program was:" >&5
2539 cat conftest.
$ac_ext >&5
2541 eval "ac_cv_header_$ac_safe=no"
2545 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2546 echo "$ac_t""yes" 1>&6
2547 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2548 cat >> confdefs.h
<<EOF
2549 #define $ac_tr_hdr 1
2553 echo "$ac_t""no" 1>&6
2557 for ac_hdr
in sys
/param.h ctype.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/ipc.h sys
/mode.h
2559 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2560 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2561 echo "configure:2562: checking for $ac_hdr" >&5
2562 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2565 cat > conftest.
$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2570 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2571 { (eval echo configure
:2572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2572 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2573 if test -z "$ac_err"; then
2575 eval "ac_cv_header_$ac_safe=yes"
2578 echo "configure: failed program was:" >&5
2579 cat conftest.
$ac_ext >&5
2581 eval "ac_cv_header_$ac_safe=no"
2585 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2586 echo "$ac_t""yes" 1>&6
2587 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2588 cat >> confdefs.h
<<EOF
2589 #define $ac_tr_hdr 1
2593 echo "$ac_t""no" 1>&6
2597 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h sys
/shm.h string.h
strings.h stdlib.h sys
/socket.h
2599 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2600 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2601 echo "configure:2602: checking for $ac_hdr" >&5
2602 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2603 echo $ac_n "(cached) $ac_c" 1>&6
2605 cat > conftest.
$ac_ext <<EOF
2606 #line 2607 "configure"
2607 #include "confdefs.h"
2610 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2611 { (eval echo configure
:2612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2612 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2613 if test -z "$ac_err"; then
2615 eval "ac_cv_header_$ac_safe=yes"
2618 echo "configure: failed program was:" >&5
2619 cat conftest.
$ac_ext >&5
2621 eval "ac_cv_header_$ac_safe=no"
2625 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2626 echo "$ac_t""yes" 1>&6
2627 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2628 cat >> confdefs.h
<<EOF
2629 #define $ac_tr_hdr 1
2633 echo "$ac_t""no" 1>&6
2637 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2639 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2640 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2641 echo "configure:2642: checking for $ac_hdr" >&5
2642 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2645 cat > conftest.
$ac_ext <<EOF
2646 #line 2647 "configure"
2647 #include "confdefs.h"
2650 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2651 { (eval echo configure
:2652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2652 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2653 if test -z "$ac_err"; then
2655 eval "ac_cv_header_$ac_safe=yes"
2658 echo "configure: failed program was:" >&5
2659 cat conftest.
$ac_ext >&5
2661 eval "ac_cv_header_$ac_safe=no"
2665 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2666 echo "$ac_t""yes" 1>&6
2667 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2668 cat >> confdefs.h
<<EOF
2669 #define $ac_tr_hdr 1
2673 echo "$ac_t""no" 1>&6
2677 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2679 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2680 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2681 echo "configure:2682: checking for $ac_hdr" >&5
2682 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2683 echo $ac_n "(cached) $ac_c" 1>&6
2685 cat > conftest.
$ac_ext <<EOF
2686 #line 2687 "configure"
2687 #include "confdefs.h"
2690 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2691 { (eval echo configure
:2692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2692 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2693 if test -z "$ac_err"; then
2695 eval "ac_cv_header_$ac_safe=yes"
2698 echo "configure: failed program was:" >&5
2699 cat conftest.
$ac_ext >&5
2701 eval "ac_cv_header_$ac_safe=no"
2705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2706 echo "$ac_t""yes" 1>&6
2707 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2708 cat >> confdefs.h
<<EOF
2709 #define $ac_tr_hdr 1
2713 echo "$ac_t""no" 1>&6
2717 for ac_hdr
in security
/pam_modules.h security
/_pam_macros.h ldap.h lber.h dlfcn.h
2719 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2720 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2721 echo "configure:2722: checking for $ac_hdr" >&5
2722 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2723 echo $ac_n "(cached) $ac_c" 1>&6
2725 cat > conftest.
$ac_ext <<EOF
2726 #line 2727 "configure"
2727 #include "confdefs.h"
2730 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2731 { (eval echo configure
:2732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2732 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2733 if test -z "$ac_err"; then
2735 eval "ac_cv_header_$ac_safe=yes"
2738 echo "configure: failed program was:" >&5
2739 cat conftest.
$ac_ext >&5
2741 eval "ac_cv_header_$ac_safe=no"
2745 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2746 echo "$ac_t""yes" 1>&6
2747 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2748 cat >> confdefs.h
<<EOF
2749 #define $ac_tr_hdr 1
2753 echo "$ac_t""no" 1>&6
2757 for ac_hdr
in sys
/syslog.h syslog.h
2759 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2760 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2761 echo "configure:2762: checking for $ac_hdr" >&5
2762 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2763 echo $ac_n "(cached) $ac_c" 1>&6
2765 cat > conftest.
$ac_ext <<EOF
2766 #line 2767 "configure"
2767 #include "confdefs.h"
2770 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2771 { (eval echo configure
:2772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2772 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2773 if test -z "$ac_err"; then
2775 eval "ac_cv_header_$ac_safe=yes"
2778 echo "configure: failed program was:" >&5
2779 cat conftest.
$ac_ext >&5
2781 eval "ac_cv_header_$ac_safe=no"
2785 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2786 echo "$ac_t""yes" 1>&6
2787 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2788 cat >> confdefs.h
<<EOF
2789 #define $ac_tr_hdr 1
2793 echo "$ac_t""no" 1>&6
2799 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2800 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2804 cat > conftest.
$ac_ext <<EOF
2805 #line 2806 "configure"
2806 #include "confdefs.h"
2812 if { (eval echo configure
:2813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2814 ac_cv_header_shadow_h
=yes
2816 echo "configure: failed program was:" >&5
2817 cat conftest.
$ac_ext >&5
2819 ac_cv_header_shadow_h
=no
2822 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2823 cat >> confdefs.h
<<\EOF
2824 #define HAVE_SHADOW_H 1
2830 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2832 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2833 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2834 echo "configure:2835: checking for $ac_hdr" >&5
2835 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2836 echo $ac_n "(cached) $ac_c" 1>&6
2838 cat > conftest.
$ac_ext <<EOF
2839 #line 2840 "configure"
2840 #include "confdefs.h"
2843 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2844 { (eval echo configure
:2845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2845 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2846 if test -z "$ac_err"; then
2848 eval "ac_cv_header_$ac_safe=yes"
2851 echo "configure: failed program was:" >&5
2852 cat conftest.
$ac_ext >&5
2854 eval "ac_cv_header_$ac_safe=no"
2858 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2859 echo "$ac_t""yes" 1>&6
2860 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2861 cat >> confdefs.h
<<EOF
2862 #define $ac_tr_hdr 1
2866 echo "$ac_t""no" 1>&6
2870 for ac_hdr
in nss.h nss_common.h ns_api.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2872 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2873 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2874 echo "configure:2875: checking for $ac_hdr" >&5
2875 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2876 echo $ac_n "(cached) $ac_c" 1>&6
2878 cat > conftest.
$ac_ext <<EOF
2879 #line 2880 "configure"
2880 #include "confdefs.h"
2883 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2884 { (eval echo configure
:2885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2885 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2886 if test -z "$ac_err"; then
2888 eval "ac_cv_header_$ac_safe=yes"
2891 echo "configure: failed program was:" >&5
2892 cat conftest.
$ac_ext >&5
2894 eval "ac_cv_header_$ac_safe=no"
2898 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2899 echo "$ac_t""yes" 1>&6
2900 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2901 cat >> confdefs.h
<<EOF
2902 #define $ac_tr_hdr 1
2906 echo "$ac_t""no" 1>&6
2910 for ac_hdr
in stropts.h poll.h
2912 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2913 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2914 echo "configure:2915: checking for $ac_hdr" >&5
2915 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2916 echo $ac_n "(cached) $ac_c" 1>&6
2918 cat > conftest.
$ac_ext <<EOF
2919 #line 2920 "configure"
2920 #include "confdefs.h"
2923 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2924 { (eval echo configure
:2925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2925 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2926 if test -z "$ac_err"; then
2928 eval "ac_cv_header_$ac_safe=yes"
2931 echo "configure: failed program was:" >&5
2932 cat conftest.
$ac_ext >&5
2934 eval "ac_cv_header_$ac_safe=no"
2938 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2939 echo "$ac_t""yes" 1>&6
2940 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2941 cat >> confdefs.h
<<EOF
2942 #define $ac_tr_hdr 1
2946 echo "$ac_t""no" 1>&6
2950 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2952 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2953 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2954 echo "configure:2955: checking for $ac_hdr" >&5
2955 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2958 cat > conftest.
$ac_ext <<EOF
2959 #line 2960 "configure"
2960 #include "confdefs.h"
2963 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2964 { (eval echo configure
:2965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2965 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2966 if test -z "$ac_err"; then
2968 eval "ac_cv_header_$ac_safe=yes"
2971 echo "configure: failed program was:" >&5
2972 cat conftest.
$ac_ext >&5
2974 eval "ac_cv_header_$ac_safe=no"
2978 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2979 echo "$ac_t""yes" 1>&6
2980 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2981 cat >> confdefs.h
<<EOF
2982 #define $ac_tr_hdr 1
2986 echo "$ac_t""no" 1>&6
2990 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2992 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2993 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2994 echo "configure:2995: checking for $ac_hdr" >&5
2995 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2996 echo $ac_n "(cached) $ac_c" 1>&6
2998 cat > conftest.
$ac_ext <<EOF
2999 #line 3000 "configure"
3000 #include "confdefs.h"
3003 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3004 { (eval echo configure
:3005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3005 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3006 if test -z "$ac_err"; then
3008 eval "ac_cv_header_$ac_safe=yes"
3011 echo "configure: failed program was:" >&5
3012 cat conftest.
$ac_ext >&5
3014 eval "ac_cv_header_$ac_safe=no"
3018 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3019 echo "$ac_t""yes" 1>&6
3020 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3021 cat >> confdefs.h
<<EOF
3022 #define $ac_tr_hdr 1
3026 echo "$ac_t""no" 1>&6
3031 # For experimental utmp support (lastlog on some BSD-like systems)
3032 for ac_hdr
in utmp.h utmpx.h lastlog.h
3034 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3035 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3036 echo "configure:3037: checking for $ac_hdr" >&5
3037 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3038 echo $ac_n "(cached) $ac_c" 1>&6
3040 cat > conftest.
$ac_ext <<EOF
3041 #line 3042 "configure"
3042 #include "confdefs.h"
3045 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3046 { (eval echo configure
:3047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3047 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3048 if test -z "$ac_err"; then
3050 eval "ac_cv_header_$ac_safe=yes"
3053 echo "configure: failed program was:" >&5
3054 cat conftest.
$ac_ext >&5
3056 eval "ac_cv_header_$ac_safe=no"
3060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3061 echo "$ac_t""yes" 1>&6
3062 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3063 cat >> confdefs.h
<<EOF
3064 #define $ac_tr_hdr 1
3068 echo "$ac_t""no" 1>&6
3073 # For quotas on Veritas VxFS filesystems
3074 for ac_hdr
in sys
/fs
/vx_quota.h
3076 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3077 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3078 echo "configure:3079: checking for $ac_hdr" >&5
3079 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3080 echo $ac_n "(cached) $ac_c" 1>&6
3082 cat > conftest.
$ac_ext <<EOF
3083 #line 3084 "configure"
3084 #include "confdefs.h"
3087 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3088 { (eval echo configure
:3089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3089 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3090 if test -z "$ac_err"; then
3092 eval "ac_cv_header_$ac_safe=yes"
3095 echo "configure: failed program was:" >&5
3096 cat conftest.
$ac_ext >&5
3098 eval "ac_cv_header_$ac_safe=no"
3102 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3103 echo "$ac_t""yes" 1>&6
3104 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3105 cat >> confdefs.h
<<EOF
3106 #define $ac_tr_hdr 1
3110 echo "$ac_t""no" 1>&6
3115 # For quotas on Linux XFS filesystems
3116 for ac_hdr
in linux
/xqm.h
3118 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3119 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3120 echo "configure:3121: checking for $ac_hdr" >&5
3121 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3122 echo $ac_n "(cached) $ac_c" 1>&6
3124 cat > conftest.
$ac_ext <<EOF
3125 #line 3126 "configure"
3126 #include "confdefs.h"
3129 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3130 { (eval echo configure
:3131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3131 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3132 if test -z "$ac_err"; then
3134 eval "ac_cv_header_$ac_safe=yes"
3137 echo "configure: failed program was:" >&5
3138 cat conftest.
$ac_ext >&5
3140 eval "ac_cv_header_$ac_safe=no"
3144 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3145 echo "$ac_t""yes" 1>&6
3146 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3147 cat >> confdefs.h
<<EOF
3148 #define $ac_tr_hdr 1
3152 echo "$ac_t""no" 1>&6
3156 for ac_hdr
in xfs
/xqm.h
3158 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3159 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3160 echo "configure:3161: checking for $ac_hdr" >&5
3161 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3162 echo $ac_n "(cached) $ac_c" 1>&6
3164 cat > conftest.
$ac_ext <<EOF
3165 #line 3166 "configure"
3166 #include "confdefs.h"
3169 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3170 { (eval echo configure
:3171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3171 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3172 if test -z "$ac_err"; then
3174 eval "ac_cv_header_$ac_safe=yes"
3177 echo "configure: failed program was:" >&5
3178 cat conftest.
$ac_ext >&5
3180 eval "ac_cv_header_$ac_safe=no"
3184 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3185 echo "$ac_t""yes" 1>&6
3186 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3187 cat >> confdefs.h
<<EOF
3188 #define $ac_tr_hdr 1
3192 echo "$ac_t""no" 1>&6
3197 echo $ac_n "checking size of int""... $ac_c" 1>&6
3198 echo "configure:3199: checking size of int" >&5
3199 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3200 echo $ac_n "(cached) $ac_c" 1>&6
3202 if test "$cross_compiling" = yes; then
3203 ac_cv_sizeof_int
=cross
3205 cat > conftest.
$ac_ext <<EOF
3206 #line 3207 "configure"
3207 #include "confdefs.h"
3211 FILE *f=fopen("conftestval", "w");
3213 fprintf(f, "%d\n", sizeof(int));
3217 if { (eval echo configure
:3218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3219 ac_cv_sizeof_int
=`cat conftestval`
3221 echo "configure: failed program was:" >&5
3222 cat conftest.
$ac_ext >&5
3230 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3231 cat >> confdefs.h
<<EOF
3232 #define SIZEOF_INT $ac_cv_sizeof_int
3236 echo $ac_n "checking size of long""... $ac_c" 1>&6
3237 echo "configure:3238: checking size of long" >&5
3238 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3239 echo $ac_n "(cached) $ac_c" 1>&6
3241 if test "$cross_compiling" = yes; then
3242 ac_cv_sizeof_long
=cross
3244 cat > conftest.
$ac_ext <<EOF
3245 #line 3246 "configure"
3246 #include "confdefs.h"
3250 FILE *f=fopen("conftestval", "w");
3252 fprintf(f, "%d\n", sizeof(long));
3256 if { (eval echo configure
:3257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3258 ac_cv_sizeof_long
=`cat conftestval`
3260 echo "configure: failed program was:" >&5
3261 cat conftest.
$ac_ext >&5
3269 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3270 cat >> confdefs.h
<<EOF
3271 #define SIZEOF_LONG $ac_cv_sizeof_long
3275 echo $ac_n "checking size of short""... $ac_c" 1>&6
3276 echo "configure:3277: checking size of short" >&5
3277 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3278 echo $ac_n "(cached) $ac_c" 1>&6
3280 if test "$cross_compiling" = yes; then
3281 ac_cv_sizeof_short
=cross
3283 cat > conftest.
$ac_ext <<EOF
3284 #line 3285 "configure"
3285 #include "confdefs.h"
3289 FILE *f=fopen("conftestval", "w");
3291 fprintf(f, "%d\n", sizeof(short));
3295 if { (eval echo configure
:3296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3297 ac_cv_sizeof_short
=`cat conftestval`
3299 echo "configure: failed program was:" >&5
3300 cat conftest.
$ac_ext >&5
3302 ac_cv_sizeof_short
=0
3308 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3309 cat >> confdefs.h
<<EOF
3310 #define SIZEOF_SHORT $ac_cv_sizeof_short
3315 echo $ac_n "checking for working const""... $ac_c" 1>&6
3316 echo "configure:3317: checking for working const" >&5
3317 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3318 echo $ac_n "(cached) $ac_c" 1>&6
3320 cat > conftest.
$ac_ext <<EOF
3321 #line 3322 "configure"
3322 #include "confdefs.h"
3326 /* Ultrix mips cc rejects this. */
3327 typedef int charset[2]; const charset x;
3328 /* SunOS 4.1.1 cc rejects this. */
3329 char const *const *ccp;
3331 /* NEC SVR4.0.2 mips cc rejects this. */
3332 struct point {int x, y;};
3333 static struct point const zero = {0,0};
3334 /* AIX XL C 1.02.0.0 rejects this.
3335 It does not let you subtract one const X* pointer from another in an arm
3336 of an if-expression whose if-part is not a constant expression */
3337 const char *g = "string";
3338 ccp = &g + (g ? g-g : 0);
3339 /* HPUX 7.0 cc rejects these. */
3342 ccp = (char const *const *) p;
3343 { /* SCO 3.2v4 cc rejects this. */
3345 char const *s = 0 ? (char *) 0 : (char const *) 0;
3349 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3351 const int *foo = &x[0];
3354 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3355 typedef const int *iptr;
3359 { /* AIX XL C 1.02.0.0 rejects this saying
3360 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3361 struct s { int j; const int *ap[3]; };
3362 struct s *b; b->j = 5;
3364 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3370 if { (eval echo configure
:3371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3374 echo "configure: failed program was:" >&5
3375 cat conftest.
$ac_ext >&5
3382 echo "$ac_t""$ac_cv_c_const" 1>&6
3383 if test $ac_cv_c_const = no
; then
3384 cat >> confdefs.h
<<\EOF
3390 echo $ac_n "checking for inline""... $ac_c" 1>&6
3391 echo "configure:3392: checking for inline" >&5
3392 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3393 echo $ac_n "(cached) $ac_c" 1>&6
3396 for ac_kw
in inline __inline__ __inline
; do
3397 cat > conftest.
$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3405 if { (eval echo configure
:3406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3407 ac_cv_c_inline
=$ac_kw; break
3409 echo "configure: failed program was:" >&5
3410 cat conftest.
$ac_ext >&5
3417 echo "$ac_t""$ac_cv_c_inline" 1>&6
3418 case "$ac_cv_c_inline" in
3420 no
) cat >> confdefs.h
<<\EOF
3424 *) cat >> confdefs.h
<<EOF
3425 #define inline $ac_cv_c_inline
3430 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3431 echo "configure:3432: checking whether byte ordering is bigendian" >&5
3432 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3433 echo $ac_n "(cached) $ac_c" 1>&6
3435 ac_cv_c_bigendian
=unknown
3436 # See if sys/param.h defines the BYTE_ORDER macro.
3437 cat > conftest.
$ac_ext <<EOF
3438 #line 3439 "configure"
3439 #include "confdefs.h"
3440 #include <sys/types.h>
3441 #include <sys/param.h>
3444 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3449 if { (eval echo configure
:3450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3451 # It does; now see whether it defined to BIG_ENDIAN or not.
3452 cat > conftest.
$ac_ext <<EOF
3453 #line 3454 "configure"
3454 #include "confdefs.h"
3455 #include <sys/types.h>
3456 #include <sys/param.h>
3459 #if BYTE_ORDER != BIG_ENDIAN
3464 if { (eval echo configure
:3465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3466 ac_cv_c_bigendian
=yes
3468 echo "configure: failed program was:" >&5
3469 cat conftest.
$ac_ext >&5
3471 ac_cv_c_bigendian
=no
3475 echo "configure: failed program was:" >&5
3476 cat conftest.
$ac_ext >&5
3479 if test $ac_cv_c_bigendian = unknown
; then
3480 if test "$cross_compiling" = yes; then
3481 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3483 cat > conftest.
$ac_ext <<EOF
3484 #line 3485 "configure"
3485 #include "confdefs.h"
3487 /* Are we little or big endian? From Harbison&Steele. */
3491 char c[sizeof (long)];
3494 exit (u.c[sizeof (long) - 1] == 1);
3497 if { (eval echo configure
:3498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3499 ac_cv_c_bigendian
=no
3501 echo "configure: failed program was:" >&5
3502 cat conftest.
$ac_ext >&5
3504 ac_cv_c_bigendian
=yes
3512 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3513 if test $ac_cv_c_bigendian = yes; then
3514 cat >> confdefs.h
<<\EOF
3515 #define WORDS_BIGENDIAN 1
3520 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3521 echo "configure:3522: checking whether char is unsigned" >&5
3522 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3523 echo $ac_n "(cached) $ac_c" 1>&6
3525 if test "$GCC" = yes; then
3526 # GCC predefines this symbol on systems where it applies.
3527 cat > conftest.
$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3530 #ifdef __CHAR_UNSIGNED__
3535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3536 egrep "yes" >/dev
/null
2>&1; then
3538 ac_cv_c_char_unsigned
=yes
3541 ac_cv_c_char_unsigned
=no
3546 if test "$cross_compiling" = yes; then
3547 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3549 cat > conftest.
$ac_ext <<EOF
3550 #line 3551 "configure"
3551 #include "confdefs.h"
3552 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3553 #if !defined(__STDC__) || __STDC__ != 1
3557 volatile char c = 255; exit(c < 0);
3560 if { (eval echo configure
:3561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3562 ac_cv_c_char_unsigned
=yes
3564 echo "configure: failed program was:" >&5
3565 cat conftest.
$ac_ext >&5
3567 ac_cv_c_char_unsigned
=no
3575 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3576 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3577 cat >> confdefs.h
<<\EOF
3578 #define __CHAR_UNSIGNED__ 1
3584 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3585 echo "configure:3586: checking return type of signal handlers" >&5
3586 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3587 echo $ac_n "(cached) $ac_c" 1>&6
3589 cat > conftest.
$ac_ext <<EOF
3590 #line 3591 "configure"
3591 #include "confdefs.h"
3592 #include <sys/types.h>
3598 extern "C" void (*signal (int, void (*)(int)))(int);
3600 void (*signal ()) ();
3607 if { (eval echo configure
:3608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3609 ac_cv_type_signal
=void
3611 echo "configure: failed program was:" >&5
3612 cat conftest.
$ac_ext >&5
3614 ac_cv_type_signal
=int
3619 echo "$ac_t""$ac_cv_type_signal" 1>&6
3620 cat >> confdefs.h
<<EOF
3621 #define RETSIGTYPE $ac_cv_type_signal
3625 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3626 echo "configure:3627: checking for uid_t in sys/types.h" >&5
3627 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3628 echo $ac_n "(cached) $ac_c" 1>&6
3630 cat > conftest.
$ac_ext <<EOF
3631 #line 3632 "configure"
3632 #include "confdefs.h"
3633 #include <sys/types.h>
3635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3636 egrep "uid_t" >/dev
/null
2>&1; then
3638 ac_cv_type_uid_t
=yes
3647 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3648 if test $ac_cv_type_uid_t = no
; then
3649 cat >> confdefs.h
<<\EOF
3653 cat >> confdefs.h
<<\EOF
3659 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3660 echo "configure:3661: checking for mode_t" >&5
3661 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3662 echo $ac_n "(cached) $ac_c" 1>&6
3664 cat > conftest.
$ac_ext <<EOF
3665 #line 3666 "configure"
3666 #include "confdefs.h"
3667 #include <sys/types.h>
3673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3674 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3676 ac_cv_type_mode_t
=yes
3679 ac_cv_type_mode_t
=no
3684 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3685 if test $ac_cv_type_mode_t = no
; then
3686 cat >> confdefs.h
<<\EOF
3692 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3693 echo "configure:3694: checking for off_t" >&5
3694 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3695 echo $ac_n "(cached) $ac_c" 1>&6
3697 cat > conftest.
$ac_ext <<EOF
3698 #line 3699 "configure"
3699 #include "confdefs.h"
3700 #include <sys/types.h>
3706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3707 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3709 ac_cv_type_off_t
=yes
3717 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3718 if test $ac_cv_type_off_t = no
; then
3719 cat >> confdefs.h
<<\EOF
3725 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3726 echo "configure:3727: checking for size_t" >&5
3727 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3728 echo $ac_n "(cached) $ac_c" 1>&6
3730 cat > conftest.
$ac_ext <<EOF
3731 #line 3732 "configure"
3732 #include "confdefs.h"
3733 #include <sys/types.h>
3739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3740 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3742 ac_cv_type_size_t
=yes
3745 ac_cv_type_size_t
=no
3750 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3751 if test $ac_cv_type_size_t = no
; then
3752 cat >> confdefs.h
<<\EOF
3753 #define size_t unsigned
3758 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3759 echo "configure:3760: checking for pid_t" >&5
3760 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6
3763 cat > conftest.
$ac_ext <<EOF
3764 #line 3765 "configure"
3765 #include "confdefs.h"
3766 #include <sys/types.h>
3772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3773 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3775 ac_cv_type_pid_t
=yes
3783 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3784 if test $ac_cv_type_pid_t = no
; then
3785 cat >> confdefs.h
<<\EOF
3791 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3792 echo "configure:3793: checking for st_rdev in struct stat" >&5
3793 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3794 echo $ac_n "(cached) $ac_c" 1>&6
3796 cat > conftest.
$ac_ext <<EOF
3797 #line 3798 "configure"
3798 #include "confdefs.h"
3799 #include <sys/types.h>
3800 #include <sys/stat.h>
3802 struct stat s; s.st_rdev;
3805 if { (eval echo configure
:3806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3807 ac_cv_struct_st_rdev
=yes
3809 echo "configure: failed program was:" >&5
3810 cat conftest.
$ac_ext >&5
3812 ac_cv_struct_st_rdev
=no
3817 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3818 if test $ac_cv_struct_st_rdev = yes; then
3819 cat >> confdefs.h
<<\EOF
3820 #define HAVE_ST_RDEV 1
3825 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3826 echo "configure:3827: checking for d_off in dirent" >&5
3827 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3828 echo $ac_n "(cached) $ac_c" 1>&6
3830 cat > conftest.
$ac_ext <<EOF
3831 #line 3832 "configure"
3832 #include "confdefs.h"
3835 #include <sys/types.h>
3838 struct dirent d; d.d_off;
3841 if { (eval echo configure
:3842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3843 ac_cv_dirent_d_off
=yes
3845 echo "configure: failed program was:" >&5
3846 cat conftest.
$ac_ext >&5
3848 ac_cv_dirent_d_off
=no
3853 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3854 if test $ac_cv_dirent_d_off = yes; then
3855 cat >> confdefs.h
<<\EOF
3856 #define HAVE_DIRENT_D_OFF 1
3861 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3862 echo "configure:3863: checking for ino_t" >&5
3863 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3864 echo $ac_n "(cached) $ac_c" 1>&6
3866 cat > conftest.
$ac_ext <<EOF
3867 #line 3868 "configure"
3868 #include "confdefs.h"
3869 #include <sys/types.h>
3875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3876 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3878 ac_cv_type_ino_t
=yes
3886 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3887 if test $ac_cv_type_ino_t = no
; then
3888 cat >> confdefs.h
<<\EOF
3889 #define ino_t unsigned
3894 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3895 echo "configure:3896: checking for loff_t" >&5
3896 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3897 echo $ac_n "(cached) $ac_c" 1>&6
3899 cat > conftest.
$ac_ext <<EOF
3900 #line 3901 "configure"
3901 #include "confdefs.h"
3902 #include <sys/types.h>
3908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3909 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3911 ac_cv_type_loff_t
=yes
3914 ac_cv_type_loff_t
=no
3919 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3920 if test $ac_cv_type_loff_t = no
; then
3921 cat >> confdefs.h
<<\EOF
3922 #define loff_t off_t
3927 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3928 echo "configure:3929: checking for offset_t" >&5
3929 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3930 echo $ac_n "(cached) $ac_c" 1>&6
3932 cat > conftest.
$ac_ext <<EOF
3933 #line 3934 "configure"
3934 #include "confdefs.h"
3935 #include <sys/types.h>
3941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3942 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3944 ac_cv_type_offset_t
=yes
3947 ac_cv_type_offset_t
=no
3952 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3953 if test $ac_cv_type_offset_t = no
; then
3954 cat >> confdefs.h
<<\EOF
3955 #define offset_t loff_t
3960 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3961 echo "configure:3962: checking for ssize_t" >&5
3962 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3963 echo $ac_n "(cached) $ac_c" 1>&6
3965 cat > conftest.
$ac_ext <<EOF
3966 #line 3967 "configure"
3967 #include "confdefs.h"
3968 #include <sys/types.h>
3974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3975 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3977 ac_cv_type_ssize_t
=yes
3980 ac_cv_type_ssize_t
=no
3985 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3986 if test $ac_cv_type_ssize_t = no
; then
3987 cat >> confdefs.h
<<\EOF
3993 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3994 echo "configure:3995: checking for wchar_t" >&5
3995 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3996 echo $ac_n "(cached) $ac_c" 1>&6
3998 cat > conftest.
$ac_ext <<EOF
3999 #line 4000 "configure"
4000 #include "confdefs.h"
4001 #include <sys/types.h>
4007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4008 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4010 ac_cv_type_wchar_t
=yes
4013 ac_cv_type_wchar_t
=no
4018 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
4019 if test $ac_cv_type_wchar_t = no
; then
4020 cat >> confdefs.h
<<\EOF
4021 #define wchar_t unsigned short
4027 ############################################
4028 # for cups support we need libcups, and a handful of header files
4030 # Check whether --enable-cups or --disable-cups was given.
4031 if test "${enable_cups+set}" = set; then
4032 enableval
="$enable_cups"
4037 if test x
$enable_cups != xno
; then
4038 # Extract the first word of "cups-config", so it can be a program name with args.
4039 set dummy cups-config
; ac_word
=$2
4040 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4041 echo "configure:4042: checking for $ac_word" >&5
4042 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
4043 echo $ac_n "(cached) $ac_c" 1>&6
4045 case "$CUPS_CONFIG" in
4047 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a path.
4050 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a dos path.
4053 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4055 for ac_dir
in $ac_dummy; do
4056 test -z "$ac_dir" && ac_dir
=.
4057 if test -f $ac_dir/$ac_word; then
4058 ac_cv_path_CUPS_CONFIG
="$ac_dir/$ac_word"
4066 CUPS_CONFIG
="$ac_cv_path_CUPS_CONFIG"
4067 if test -n "$CUPS_CONFIG"; then
4068 echo "$ac_t""$CUPS_CONFIG" 1>&6
4070 echo "$ac_t""no" 1>&6
4074 if test "x$CUPS_CONFIG" != x
; then
4075 cat >> confdefs.h
<<\EOF
4079 CFLAGS
="$CFLAGS `$CUPS_CONFIG --cflags`"
4080 LDFLAGS
="$LDFLAGS `$CUPS_CONFIG --ldflags`"
4081 PRINTLIBS
="$PRINTLIBS `$CUPS_CONFIG --libs`"
4085 ############################################
4086 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the plugin loading code
4088 echo $ac_n "checking for library containing dlopen""... $ac_c" 1>&6
4089 echo "configure:4090: checking for library containing dlopen" >&5
4090 if eval "test \"`echo '$''{'ac_cv_search_dlopen'+set}'`\" = set"; then
4091 echo $ac_n "(cached) $ac_c" 1>&6
4093 ac_func_search_save_LIBS
="$LIBS"
4094 ac_cv_search_dlopen
="no"
4095 cat > conftest.
$ac_ext <<EOF
4096 #line 4097 "configure"
4097 #include "confdefs.h"
4098 /* Override any gcc2 internal prototype to avoid an error. */
4099 /* We use char because int might match the return type of a gcc2
4100 builtin and then its argument prototype would still apply. */
4107 if { (eval echo configure
:4108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4109 ac_cv_search_dlopen
="none required"
4111 echo "configure: failed program was:" >&5
4112 cat conftest.
$ac_ext >&5
4115 test "$ac_cv_search_dlopen" = "no" && for i
in dl
; do
4116 LIBS
="-l$i $ac_func_search_save_LIBS"
4117 cat > conftest.
$ac_ext <<EOF
4118 #line 4119 "configure"
4119 #include "confdefs.h"
4120 /* Override any gcc2 internal prototype to avoid an error. */
4121 /* We use char because int might match the return type of a gcc2
4122 builtin and then its argument prototype would still apply. */
4129 if { (eval echo configure
:4130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4131 ac_cv_search_dlopen
="-l$i"
4134 echo "configure: failed program was:" >&5
4135 cat conftest.
$ac_ext >&5
4139 LIBS
="$ac_func_search_save_LIBS"
4142 echo "$ac_t""$ac_cv_search_dlopen" 1>&6
4143 if test "$ac_cv_search_dlopen" != "no"; then
4144 test "$ac_cv_search_dlopen" = "none required" || LIBS
="$ac_cv_search_dlopen $LIBS"
4149 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
4151 ############################################
4152 # check if the compiler can do immediate structures
4153 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
4154 echo "configure:4155: checking for immediate structures" >&5
4155 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
4156 echo $ac_n "(cached) $ac_c" 1>&6
4159 cat > conftest.
$ac_ext <<EOF
4160 #line 4161 "configure"
4161 #include "confdefs.h"
4166 typedef struct {unsigned x;} FOOBAR;
4167 #define X_FOOBAR(x) ((FOOBAR) { x })
4168 #define FOO_ONE X_FOOBAR(1)
4178 if { (eval echo configure
:4179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4180 samba_cv_immediate_structures
=yes
4182 echo "configure: failed program was:" >&5
4183 cat conftest.
$ac_ext >&5
4185 samba_cv_immediate_structures
=no
4190 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
4191 if test x
"$samba_cv_immediate_structures" = x
"yes"; then
4192 cat >> confdefs.h
<<\EOF
4193 #define HAVE_IMMEDIATE_STRUCTURES 1
4198 ############################################
4199 # check for unix domain sockets
4200 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
4201 echo "configure:4202: checking for unix domain sockets" >&5
4202 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
4203 echo $ac_n "(cached) $ac_c" 1>&6
4206 cat > conftest.
$ac_ext <<EOF
4207 #line 4208 "configure"
4208 #include "confdefs.h"
4210 #include <sys/types.h>
4213 #include <sys/socket.h>
4217 struct sockaddr_un sunaddr;
4218 sunaddr.sun_family = AF_UNIX;
4222 if { (eval echo configure
:4223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4224 samba_cv_unixsocket
=yes
4226 echo "configure: failed program was:" >&5
4227 cat conftest.
$ac_ext >&5
4229 samba_cv_unixsocket
=no
4234 echo "$ac_t""$samba_cv_unixsocket" 1>&6
4235 if test x
"$samba_cv_unixsocket" = x
"yes"; then
4236 cat >> confdefs.h
<<\EOF
4237 #define HAVE_UNIXSOCKET 1
4243 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
4244 echo "configure:4245: checking for socklen_t type" >&5
4245 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
4246 echo $ac_n "(cached) $ac_c" 1>&6
4249 cat > conftest.
$ac_ext <<EOF
4250 #line 4251 "configure"
4251 #include "confdefs.h"
4253 #include <sys/types.h>
4258 #include <sys/socket.h>
4263 if { (eval echo configure
:4264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4265 samba_cv_socklen_t
=yes
4267 echo "configure: failed program was:" >&5
4268 cat conftest.
$ac_ext >&5
4270 samba_cv_socklen_t
=no
4275 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4276 if test x
"$samba_cv_socklen_t" = x
"yes"; then
4277 cat >> confdefs.h
<<\EOF
4278 #define HAVE_SOCKLEN_T_TYPE 1
4283 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4284 echo "configure:4285: checking for sig_atomic_t type" >&5
4285 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4286 echo $ac_n "(cached) $ac_c" 1>&6
4289 cat > conftest.
$ac_ext <<EOF
4290 #line 4291 "configure"
4291 #include "confdefs.h"
4293 #include <sys/types.h>
4303 if { (eval echo configure
:4304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4305 samba_cv_sig_atomic_t
=yes
4307 echo "configure: failed program was:" >&5
4308 cat conftest.
$ac_ext >&5
4310 samba_cv_sig_atomic_t
=no
4315 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4316 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
4317 cat >> confdefs.h
<<\EOF
4318 #define HAVE_SIG_ATOMIC_T_TYPE 1
4323 # stupid headers have the functions but no declaration. grrrr.
4325 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4326 echo "configure:4327: checking for errno declaration" >&5
4327 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4328 echo $ac_n "(cached) $ac_c" 1>&6
4331 cat > conftest.
$ac_ext <<EOF
4332 #line 4333 "configure"
4333 #include "confdefs.h"
4339 if { (eval echo configure
:4340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4341 ac_cv_have_errno_decl
=yes
4343 echo "configure: failed program was:" >&5
4344 cat conftest.
$ac_ext >&5
4346 ac_cv_have_errno_decl
=no
4351 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4352 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
4353 cat >> confdefs.h
<<\EOF
4354 #define HAVE_ERRNO_DECL 1
4360 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4361 echo "configure:4362: checking for setresuid declaration" >&5
4362 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4363 echo $ac_n "(cached) $ac_c" 1>&6
4366 cat > conftest.
$ac_ext <<EOF
4367 #line 4368 "configure"
4368 #include "confdefs.h"
4371 int i = (int)setresuid
4374 if { (eval echo configure
:4375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4376 ac_cv_have_setresuid_decl
=yes
4378 echo "configure: failed program was:" >&5
4379 cat conftest.
$ac_ext >&5
4381 ac_cv_have_setresuid_decl
=no
4386 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4387 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
4388 cat >> confdefs.h
<<\EOF
4389 #define HAVE_SETRESUID_DECL 1
4395 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4396 echo "configure:4397: checking for setresgid declaration" >&5
4397 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4398 echo $ac_n "(cached) $ac_c" 1>&6
4401 cat > conftest.
$ac_ext <<EOF
4402 #line 4403 "configure"
4403 #include "confdefs.h"
4406 int i = (int)setresgid
4409 if { (eval echo configure
:4410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4411 ac_cv_have_setresgid_decl
=yes
4413 echo "configure: failed program was:" >&5
4414 cat conftest.
$ac_ext >&5
4416 ac_cv_have_setresgid_decl
=no
4421 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4422 if test x
"$ac_cv_have_setresgid_decl" = x
"yes"; then
4423 cat >> confdefs.h
<<\EOF
4424 #define HAVE_SETRESGID_DECL 1
4430 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4431 echo "configure:4432: checking for asprintf declaration" >&5
4432 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4433 echo $ac_n "(cached) $ac_c" 1>&6
4436 cat > conftest.
$ac_ext <<EOF
4437 #line 4438 "configure"
4438 #include "confdefs.h"
4441 int i = (int)asprintf
4444 if { (eval echo configure
:4445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4446 ac_cv_have_asprintf_decl
=yes
4448 echo "configure: failed program was:" >&5
4449 cat conftest.
$ac_ext >&5
4451 ac_cv_have_asprintf_decl
=no
4456 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4457 if test x
"$ac_cv_have_asprintf_decl" = x
"yes"; then
4458 cat >> confdefs.h
<<\EOF
4459 #define HAVE_ASPRINTF_DECL 1
4465 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4466 echo "configure:4467: checking for vasprintf declaration" >&5
4467 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4468 echo $ac_n "(cached) $ac_c" 1>&6
4471 cat > conftest.
$ac_ext <<EOF
4472 #line 4473 "configure"
4473 #include "confdefs.h"
4476 int i = (int)vasprintf
4479 if { (eval echo configure
:4480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4481 ac_cv_have_vasprintf_decl
=yes
4483 echo "configure: failed program was:" >&5
4484 cat conftest.
$ac_ext >&5
4486 ac_cv_have_vasprintf_decl
=no
4491 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4492 if test x
"$ac_cv_have_vasprintf_decl" = x
"yes"; then
4493 cat >> confdefs.h
<<\EOF
4494 #define HAVE_VASPRINTF_DECL 1
4500 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4501 echo "configure:4502: checking for vsnprintf declaration" >&5
4502 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4503 echo $ac_n "(cached) $ac_c" 1>&6
4506 cat > conftest.
$ac_ext <<EOF
4507 #line 4508 "configure"
4508 #include "confdefs.h"
4511 int i = (int)vsnprintf
4514 if { (eval echo configure
:4515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4516 ac_cv_have_vsnprintf_decl
=yes
4518 echo "configure: failed program was:" >&5
4519 cat conftest.
$ac_ext >&5
4521 ac_cv_have_vsnprintf_decl
=no
4526 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4527 if test x
"$ac_cv_have_vsnprintf_decl" = x
"yes"; then
4528 cat >> confdefs.h
<<\EOF
4529 #define HAVE_VSNPRINTF_DECL 1
4535 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4536 echo "configure:4537: checking for snprintf declaration" >&5
4537 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4538 echo $ac_n "(cached) $ac_c" 1>&6
4541 cat > conftest.
$ac_ext <<EOF
4542 #line 4543 "configure"
4543 #include "confdefs.h"
4546 int i = (int)snprintf
4549 if { (eval echo configure
:4550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4551 ac_cv_have_snprintf_decl
=yes
4553 echo "configure: failed program was:" >&5
4554 cat conftest.
$ac_ext >&5
4556 ac_cv_have_snprintf_decl
=no
4561 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4562 if test x
"$ac_cv_have_snprintf_decl" = x
"yes"; then
4563 cat >> confdefs.h
<<\EOF
4564 #define HAVE_SNPRINTF_DECL 1
4570 # and glibc has setresuid under linux but the function does
4571 # nothing until kernel 2.1.44! very dumb.
4572 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4573 echo "configure:4574: checking for real setresuid" >&5
4574 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4575 echo $ac_n "(cached) $ac_c" 1>&6
4578 if test "$cross_compiling" = yes; then
4579 samba_cv_have_setresuid
=cross
4581 cat > conftest.
$ac_ext <<EOF
4582 #line 4583 "configure"
4583 #include "confdefs.h"
4585 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4587 if { (eval echo configure
:4588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4589 samba_cv_have_setresuid
=yes
4591 echo "configure: failed program was:" >&5
4592 cat conftest.
$ac_ext >&5
4594 samba_cv_have_setresuid
=no
4601 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4602 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4603 cat >> confdefs.h
<<\EOF
4604 #define HAVE_SETRESUID 1
4609 # Do the same check for setresguid...
4611 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4612 echo "configure:4613: checking for real setresgid" >&5
4613 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4614 echo $ac_n "(cached) $ac_c" 1>&6
4617 if test "$cross_compiling" = yes; then
4618 samba_cv_have_setresgid
=cross
4620 cat > conftest.
$ac_ext <<EOF
4621 #line 4622 "configure"
4622 #include "confdefs.h"
4625 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4627 if { (eval echo configure
:4628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4629 samba_cv_have_setresgid
=yes
4631 echo "configure: failed program was:" >&5
4632 cat conftest.
$ac_ext >&5
4634 samba_cv_have_setresgid
=no
4641 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4642 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4643 cat >> confdefs.h
<<\EOF
4644 #define HAVE_SETRESGID 1
4649 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4650 echo "configure:4651: checking for 8-bit clean memcmp" >&5
4651 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4652 echo $ac_n "(cached) $ac_c" 1>&6
4654 if test "$cross_compiling" = yes; then
4655 ac_cv_func_memcmp_clean
=no
4657 cat > conftest.
$ac_ext <<EOF
4658 #line 4659 "configure"
4659 #include "confdefs.h"
4663 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4664 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4668 if { (eval echo configure
:4669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4670 ac_cv_func_memcmp_clean
=yes
4672 echo "configure: failed program was:" >&5
4673 cat conftest.
$ac_ext >&5
4675 ac_cv_func_memcmp_clean
=no
4682 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4683 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4686 ###############################################
4687 # test for where we get crypt() from
4689 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
4690 echo "configure:4691: checking for library containing crypt" >&5
4691 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
4692 echo $ac_n "(cached) $ac_c" 1>&6
4694 ac_func_search_save_LIBS
="$LIBS"
4695 ac_cv_search_crypt
="no"
4696 cat > conftest.
$ac_ext <<EOF
4697 #line 4698 "configure"
4698 #include "confdefs.h"
4699 /* Override any gcc2 internal prototype to avoid an error. */
4700 /* We use char because int might match the return type of a gcc2
4701 builtin and then its argument prototype would still apply. */
4708 if { (eval echo configure
:4709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4710 ac_cv_search_crypt
="none required"
4712 echo "configure: failed program was:" >&5
4713 cat conftest.
$ac_ext >&5
4716 test "$ac_cv_search_crypt" = "no" && for i
in crypt; do
4717 LIBS
="-l$i $ac_func_search_save_LIBS"
4718 cat > conftest.
$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4721 /* Override any gcc2 internal prototype to avoid an error. */
4722 /* We use char because int might match the return type of a gcc2
4723 builtin and then its argument prototype would still apply. */
4730 if { (eval echo configure
:4731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4732 ac_cv_search_crypt
="-l$i"
4735 echo "configure: failed program was:" >&5
4736 cat conftest.
$ac_ext >&5
4740 LIBS
="$ac_func_search_save_LIBS"
4743 echo "$ac_t""$ac_cv_search_crypt" 1>&6
4744 if test "$ac_cv_search_crypt" != "no"; then
4745 test "$ac_cv_search_crypt" = "none required" || LIBS
="$ac_cv_search_crypt $LIBS"
4746 AUTHLIBS
="$AUTHLIBS -lcrypt";
4747 cat >> confdefs.h
<<\EOF
4748 #define HAVE_CRYPT 1
4755 ###############################################
4756 # Readline included by default unless explicitly asked not to
4757 test "${with_readline+set}" != "set" && with_readline
=yes
4759 # test for where we get readline() from
4760 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4761 echo "configure:4762: checking whether to use readline" >&5
4762 # Check whether --with-readline or --without-readline was given.
4763 if test "${with_readline+set}" = set; then
4764 withval
="$with_readline"
4765 case "$with_readline" in
4767 echo "$ac_t""yes" 1>&6
4769 for ac_hdr
in readline.h
history.h readline
/readline.h
4771 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4772 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4773 echo "configure:4774: checking for $ac_hdr" >&5
4774 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4775 echo $ac_n "(cached) $ac_c" 1>&6
4777 cat > conftest.
$ac_ext <<EOF
4778 #line 4779 "configure"
4779 #include "confdefs.h"
4782 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4783 { (eval echo configure
:4784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4784 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4785 if test -z "$ac_err"; then
4787 eval "ac_cv_header_$ac_safe=yes"
4790 echo "configure: failed program was:" >&5
4791 cat conftest.
$ac_ext >&5
4793 eval "ac_cv_header_$ac_safe=no"
4797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4798 echo "$ac_t""yes" 1>&6
4799 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4800 cat >> confdefs.h
<<EOF
4801 #define $ac_tr_hdr 1
4805 echo "$ac_t""no" 1>&6
4809 for ac_hdr
in readline
/history.h
4811 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4812 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4813 echo "configure:4814: checking for $ac_hdr" >&5
4814 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4815 echo $ac_n "(cached) $ac_c" 1>&6
4817 cat > conftest.
$ac_ext <<EOF
4818 #line 4819 "configure"
4819 #include "confdefs.h"
4822 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4823 { (eval echo configure
:4824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4824 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4825 if test -z "$ac_err"; then
4827 eval "ac_cv_header_$ac_safe=yes"
4830 echo "configure: failed program was:" >&5
4831 cat conftest.
$ac_ext >&5
4833 eval "ac_cv_header_$ac_safe=no"
4837 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4838 echo "$ac_t""yes" 1>&6
4839 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4840 cat >> confdefs.h
<<EOF
4841 #define $ac_tr_hdr 1
4845 echo "$ac_t""no" 1>&6
4850 for ac_hdr
in readline.h readline
/readline.h
4852 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4853 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4854 echo "configure:4855: checking for $ac_hdr" >&5
4855 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4856 echo $ac_n "(cached) $ac_c" 1>&6
4858 cat > conftest.
$ac_ext <<EOF
4859 #line 4860 "configure"
4860 #include "confdefs.h"
4863 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4864 { (eval echo configure
:4865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4865 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4866 if test -z "$ac_err"; then
4868 eval "ac_cv_header_$ac_safe=yes"
4871 echo "configure: failed program was:" >&5
4872 cat conftest.
$ac_ext >&5
4874 eval "ac_cv_header_$ac_safe=no"
4878 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4879 echo "$ac_t""yes" 1>&6
4880 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4881 cat >> confdefs.h
<<EOF
4882 #define $ac_tr_hdr 1
4885 for termlib
in ncurses curses termcap terminfo termlib
; do
4886 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4887 echo "configure:4888: checking for tgetent in -l${termlib}" >&5
4888 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4890 echo $ac_n "(cached) $ac_c" 1>&6
4892 ac_save_LIBS
="$LIBS"
4893 LIBS
="-l${termlib} $LIBS"
4894 cat > conftest.
$ac_ext <<EOF
4895 #line 4896 "configure"
4896 #include "confdefs.h"
4897 /* Override any gcc2 internal prototype to avoid an error. */
4898 /* We use char because int might match the return type of a gcc2
4899 builtin and then its argument prototype would still apply. */
4906 if { (eval echo configure
:4907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4908 eval "ac_cv_lib_$ac_lib_var=yes"
4910 echo "configure: failed program was:" >&5
4911 cat conftest.
$ac_ext >&5
4913 eval "ac_cv_lib_$ac_lib_var=no"
4916 LIBS
="$ac_save_LIBS"
4919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4920 echo "$ac_t""yes" 1>&6
4921 TERMLIBS
="-l${termlib}"; break
4923 echo "$ac_t""no" 1>&6
4927 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4928 echo "configure:4929: checking for rl_callback_handler_install in -lreadline" >&5
4929 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4930 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4931 echo $ac_n "(cached) $ac_c" 1>&6
4933 ac_save_LIBS
="$LIBS"
4934 LIBS
="-lreadline $TERMLIBS $LIBS"
4935 cat > conftest.
$ac_ext <<EOF
4936 #line 4937 "configure"
4937 #include "confdefs.h"
4938 /* Override any gcc2 internal prototype to avoid an error. */
4939 /* We use char because int might match the return type of a gcc2
4940 builtin and then its argument prototype would still apply. */
4941 char rl_callback_handler_install();
4944 rl_callback_handler_install()
4947 if { (eval echo configure
:4948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4949 eval "ac_cv_lib_$ac_lib_var=yes"
4951 echo "configure: failed program was:" >&5
4952 cat conftest.
$ac_ext >&5
4954 eval "ac_cv_lib_$ac_lib_var=no"
4957 LIBS
="$ac_save_LIBS"
4960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4961 echo "$ac_t""yes" 1>&6
4962 TERMLIBS
="-lreadline $TERMLIBS"
4963 cat >> confdefs.h
<<\EOF
4964 #define HAVE_LIBREADLINE 1
4969 echo "$ac_t""no" 1>&6
4974 echo "$ac_t""no" 1>&6
4980 echo "$ac_t""no" 1>&6
4983 echo "$ac_t""yes" 1>&6
4985 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4986 # alternate readline path
4988 _cppflags
=${CPPFLAGS}
4990 # Add additional search path
4991 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4992 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4994 for ac_hdr
in readline.h
history.h readline
/readline.h
4996 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4997 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4998 echo "configure:4999: checking for $ac_hdr" >&5
4999 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5000 echo $ac_n "(cached) $ac_c" 1>&6
5002 cat > conftest.
$ac_ext <<EOF
5003 #line 5004 "configure"
5004 #include "confdefs.h"
5007 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5008 { (eval echo configure
:5009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5009 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5010 if test -z "$ac_err"; then
5012 eval "ac_cv_header_$ac_safe=yes"
5015 echo "configure: failed program was:" >&5
5016 cat conftest.
$ac_ext >&5
5018 eval "ac_cv_header_$ac_safe=no"
5022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5023 echo "$ac_t""yes" 1>&6
5024 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5025 cat >> confdefs.h
<<EOF
5026 #define $ac_tr_hdr 1
5030 echo "$ac_t""no" 1>&6
5034 for ac_hdr
in readline
/history.h
5036 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5037 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5038 echo "configure:5039: checking for $ac_hdr" >&5
5039 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5040 echo $ac_n "(cached) $ac_c" 1>&6
5042 cat > conftest.
$ac_ext <<EOF
5043 #line 5044 "configure"
5044 #include "confdefs.h"
5047 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5048 { (eval echo configure
:5049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5049 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5050 if test -z "$ac_err"; then
5052 eval "ac_cv_header_$ac_safe=yes"
5055 echo "configure: failed program was:" >&5
5056 cat conftest.
$ac_ext >&5
5058 eval "ac_cv_header_$ac_safe=no"
5062 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5063 echo "$ac_t""yes" 1>&6
5064 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5065 cat >> confdefs.h
<<EOF
5066 #define $ac_tr_hdr 1
5070 echo "$ac_t""no" 1>&6
5075 for ac_hdr
in readline.h readline
/readline.h
5077 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5078 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5079 echo "configure:5080: checking for $ac_hdr" >&5
5080 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5081 echo $ac_n "(cached) $ac_c" 1>&6
5083 cat > conftest.
$ac_ext <<EOF
5084 #line 5085 "configure"
5085 #include "confdefs.h"
5088 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5089 { (eval echo configure
:5090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5090 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5091 if test -z "$ac_err"; then
5093 eval "ac_cv_header_$ac_safe=yes"
5096 echo "configure: failed program was:" >&5
5097 cat conftest.
$ac_ext >&5
5099 eval "ac_cv_header_$ac_safe=no"
5103 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5104 echo "$ac_t""yes" 1>&6
5105 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5106 cat >> confdefs.h
<<EOF
5107 #define $ac_tr_hdr 1
5110 for termlib
in ncurses curses termcap terminfo termlib
; do
5111 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
5112 echo "configure:5113: checking for tgetent in -l${termlib}" >&5
5113 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
5114 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5115 echo $ac_n "(cached) $ac_c" 1>&6
5117 ac_save_LIBS
="$LIBS"
5118 LIBS
="-l${termlib} $LIBS"
5119 cat > conftest.
$ac_ext <<EOF
5120 #line 5121 "configure"
5121 #include "confdefs.h"
5122 /* Override any gcc2 internal prototype to avoid an error. */
5123 /* We use char because int might match the return type of a gcc2
5124 builtin and then its argument prototype would still apply. */
5131 if { (eval echo configure
:5132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5133 eval "ac_cv_lib_$ac_lib_var=yes"
5135 echo "configure: failed program was:" >&5
5136 cat conftest.
$ac_ext >&5
5138 eval "ac_cv_lib_$ac_lib_var=no"
5141 LIBS
="$ac_save_LIBS"
5144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5145 echo "$ac_t""yes" 1>&6
5146 TERMLIBS
="-l${termlib}"; break
5148 echo "$ac_t""no" 1>&6
5152 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
5153 echo "configure:5154: checking for rl_callback_handler_install in -lreadline" >&5
5154 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
5155 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5156 echo $ac_n "(cached) $ac_c" 1>&6
5158 ac_save_LIBS
="$LIBS"
5159 LIBS
="-lreadline $TERMLIBS $LIBS"
5160 cat > conftest.
$ac_ext <<EOF
5161 #line 5162 "configure"
5162 #include "confdefs.h"
5163 /* Override any gcc2 internal prototype to avoid an error. */
5164 /* We use char because int might match the return type of a gcc2
5165 builtin and then its argument prototype would still apply. */
5166 char rl_callback_handler_install();
5169 rl_callback_handler_install()
5172 if { (eval echo configure
:5173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5174 eval "ac_cv_lib_$ac_lib_var=yes"
5176 echo "configure: failed program was:" >&5
5177 cat conftest.
$ac_ext >&5
5179 eval "ac_cv_lib_$ac_lib_var=no"
5182 LIBS
="$ac_save_LIBS"
5185 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5186 echo "$ac_t""yes" 1>&6
5187 TERMLDFLAGS
="-L$with_readline/lib"
5188 TERMCPPFLAGS
="-I$with_readline/include"
5189 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
5190 TERMLIBS
="-lreadline $TERMLIBS"
5191 cat >> confdefs.h
<<\EOF
5192 #define HAVE_LIBREADLINE 1
5197 echo "$ac_t""no" 1>&6
5198 TERMLIBS
= CPPFLAGS
=$_cppflags
5202 echo "$ac_t""no" 1>&6
5211 echo "$ac_t""no" 1>&6
5218 # The readline API changed slightly from readline3 to readline4, so
5219 # code will generate warnings on one of them unless we have a few
5221 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
5222 echo "configure:5223: checking for rl_completion_matches in -lreadline" >&5
5223 ac_lib_var
=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
5224 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5225 echo $ac_n "(cached) $ac_c" 1>&6
5227 ac_save_LIBS
="$LIBS"
5228 LIBS
="-lreadline $TERMLIBS $LIBS"
5229 cat > conftest.
$ac_ext <<EOF
5230 #line 5231 "configure"
5231 #include "confdefs.h"
5232 /* Override any gcc2 internal prototype to avoid an error. */
5233 /* We use char because int might match the return type of a gcc2
5234 builtin and then its argument prototype would still apply. */
5235 char rl_completion_matches();
5238 rl_completion_matches()
5241 if { (eval echo configure
:5242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5243 eval "ac_cv_lib_$ac_lib_var=yes"
5245 echo "configure: failed program was:" >&5
5246 cat conftest.
$ac_ext >&5
5248 eval "ac_cv_lib_$ac_lib_var=no"
5251 LIBS
="$ac_save_LIBS"
5254 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5255 echo "$ac_t""yes" 1>&6
5256 cat >> confdefs.h
<<\EOF
5257 #define HAVE_NEW_LIBREADLINE 1
5261 echo "$ac_t""no" 1>&6
5265 # The following test taken from the cvs sources
5266 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
5267 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
5268 # libsocket.so which has a bad implementation of gethostbyname (it
5269 # only looks in /etc/hosts), so we only look for -lsocket if we need
5271 for ac_func
in connect
5273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5274 echo "configure:5275: checking for $ac_func" >&5
5275 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5276 echo $ac_n "(cached) $ac_c" 1>&6
5278 cat > conftest.
$ac_ext <<EOF
5279 #line 5280 "configure"
5280 #include "confdefs.h"
5281 /* System header to define __stub macros and hopefully few prototypes,
5282 which can conflict with char $ac_func(); below. */
5284 /* Override any gcc2 internal prototype to avoid an error. */
5285 /* We use char because int might match the return type of a gcc2
5286 builtin and then its argument prototype would still apply. */
5291 /* The GNU C library defines this for functions which it implements
5292 to always fail with ENOSYS. Some functions are actually named
5293 something starting with __ and the normal name is an alias. */
5294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5302 if { (eval echo configure
:5303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5304 eval "ac_cv_func_$ac_func=yes"
5306 echo "configure: failed program was:" >&5
5307 cat conftest.
$ac_ext >&5
5309 eval "ac_cv_func_$ac_func=no"
5314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5315 echo "$ac_t""yes" 1>&6
5316 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5317 cat >> confdefs.h
<<EOF
5318 #define $ac_tr_func 1
5322 echo "$ac_t""no" 1>&6
5326 if test x
"$ac_cv_func_connect" = x
"no"; then
5329 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
5330 echo "configure:5331: checking for printf in -lnsl_s" >&5
5331 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
5332 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5333 echo $ac_n "(cached) $ac_c" 1>&6
5335 ac_save_LIBS
="$LIBS"
5336 LIBS
="-lnsl_s $LIBS"
5337 cat > conftest.
$ac_ext <<EOF
5338 #line 5339 "configure"
5339 #include "confdefs.h"
5340 /* Override any gcc2 internal prototype to avoid an error. */
5341 /* We use char because int might match the return type of a gcc2
5342 builtin and then its argument prototype would still apply. */
5349 if { (eval echo configure
:5350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5351 eval "ac_cv_lib_$ac_lib_var=yes"
5353 echo "configure: failed program was:" >&5
5354 cat conftest.
$ac_ext >&5
5356 eval "ac_cv_lib_$ac_lib_var=no"
5359 LIBS
="$ac_save_LIBS"
5362 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5363 echo "$ac_t""yes" 1>&6
5364 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5365 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5366 cat >> confdefs.h
<<EOF
5367 #define $ac_tr_lib 1
5370 LIBS
="-lnsl_s $LIBS"
5373 echo "$ac_t""no" 1>&6
5379 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5380 echo "configure:5381: checking for printf in -lnsl" >&5
5381 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5382 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5383 echo $ac_n "(cached) $ac_c" 1>&6
5385 ac_save_LIBS
="$LIBS"
5387 cat > conftest.
$ac_ext <<EOF
5388 #line 5389 "configure"
5389 #include "confdefs.h"
5390 /* Override any gcc2 internal prototype to avoid an error. */
5391 /* We use char because int might match the return type of a gcc2
5392 builtin and then its argument prototype would still apply. */
5399 if { (eval echo configure
:5400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5401 eval "ac_cv_lib_$ac_lib_var=yes"
5403 echo "configure: failed program was:" >&5
5404 cat conftest.
$ac_ext >&5
5406 eval "ac_cv_lib_$ac_lib_var=no"
5409 LIBS
="$ac_save_LIBS"
5412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5413 echo "$ac_t""yes" 1>&6
5414 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5415 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5416 cat >> confdefs.h
<<EOF
5417 #define $ac_tr_lib 1
5423 echo "$ac_t""no" 1>&6
5429 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5430 echo "configure:5431: checking for connect in -lsocket" >&5
5431 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5432 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5433 echo $ac_n "(cached) $ac_c" 1>&6
5435 ac_save_LIBS
="$LIBS"
5436 LIBS
="-lsocket $LIBS"
5437 cat > conftest.
$ac_ext <<EOF
5438 #line 5439 "configure"
5439 #include "confdefs.h"
5440 /* Override any gcc2 internal prototype to avoid an error. */
5441 /* We use char because int might match the return type of a gcc2
5442 builtin and then its argument prototype would still apply. */
5449 if { (eval echo configure
:5450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5451 eval "ac_cv_lib_$ac_lib_var=yes"
5453 echo "configure: failed program was:" >&5
5454 cat conftest.
$ac_ext >&5
5456 eval "ac_cv_lib_$ac_lib_var=no"
5459 LIBS
="$ac_save_LIBS"
5462 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5463 echo "$ac_t""yes" 1>&6
5464 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5465 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5466 cat >> confdefs.h
<<EOF
5467 #define $ac_tr_lib 1
5470 LIBS
="-lsocket $LIBS"
5473 echo "$ac_t""no" 1>&6
5479 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5480 echo "configure:5481: checking for connect in -linet" >&5
5481 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5483 echo $ac_n "(cached) $ac_c" 1>&6
5485 ac_save_LIBS
="$LIBS"
5487 cat > conftest.
$ac_ext <<EOF
5488 #line 5489 "configure"
5489 #include "confdefs.h"
5490 /* Override any gcc2 internal prototype to avoid an error. */
5491 /* We use char because int might match the return type of a gcc2
5492 builtin and then its argument prototype would still apply. */
5499 if { (eval echo configure
:5500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5501 eval "ac_cv_lib_$ac_lib_var=yes"
5503 echo "configure: failed program was:" >&5
5504 cat conftest.
$ac_ext >&5
5506 eval "ac_cv_lib_$ac_lib_var=no"
5509 LIBS
="$ac_save_LIBS"
5512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5513 echo "$ac_t""yes" 1>&6
5514 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5515 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5516 cat >> confdefs.h
<<EOF
5517 #define $ac_tr_lib 1
5523 echo "$ac_t""no" 1>&6
5527 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
5528 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
5529 # ac_cv_func_connect=yes
5530 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5531 cat >> confdefs.h
<<\EOF
5532 #define HAVE_CONNECT 1
5538 ###############################################
5539 # test for where we get yp_get_default_domain() from
5541 echo $ac_n "checking for library containing yp_get_default_domain""... $ac_c" 1>&6
5542 echo "configure:5543: checking for library containing yp_get_default_domain" >&5
5543 if eval "test \"`echo '$''{'ac_cv_search_yp_get_default_domain'+set}'`\" = set"; then
5544 echo $ac_n "(cached) $ac_c" 1>&6
5546 ac_func_search_save_LIBS
="$LIBS"
5547 ac_cv_search_yp_get_default_domain
="no"
5548 cat > conftest.
$ac_ext <<EOF
5549 #line 5550 "configure"
5550 #include "confdefs.h"
5551 /* Override any gcc2 internal prototype to avoid an error. */
5552 /* We use char because int might match the return type of a gcc2
5553 builtin and then its argument prototype would still apply. */
5554 char yp_get_default_domain();
5557 yp_get_default_domain()
5560 if { (eval echo configure
:5561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5562 ac_cv_search_yp_get_default_domain
="none required"
5564 echo "configure: failed program was:" >&5
5565 cat conftest.
$ac_ext >&5
5568 test "$ac_cv_search_yp_get_default_domain" = "no" && for i
in nsl
; do
5569 LIBS
="-l$i $ac_func_search_save_LIBS"
5570 cat > conftest.
$ac_ext <<EOF
5571 #line 5572 "configure"
5572 #include "confdefs.h"
5573 /* Override any gcc2 internal prototype to avoid an error. */
5574 /* We use char because int might match the return type of a gcc2
5575 builtin and then its argument prototype would still apply. */
5576 char yp_get_default_domain();
5579 yp_get_default_domain()
5582 if { (eval echo configure
:5583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5584 ac_cv_search_yp_get_default_domain
="-l$i"
5587 echo "configure: failed program was:" >&5
5588 cat conftest.
$ac_ext >&5
5592 LIBS
="$ac_func_search_save_LIBS"
5595 echo "$ac_t""$ac_cv_search_yp_get_default_domain" 1>&6
5596 if test "$ac_cv_search_yp_get_default_domain" != "no"; then
5597 test "$ac_cv_search_yp_get_default_domain" = "none required" || LIBS
="$ac_cv_search_yp_get_default_domain $LIBS"
5602 for ac_func
in yp_get_default_domain
5604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5605 echo "configure:5606: checking for $ac_func" >&5
5606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5607 echo $ac_n "(cached) $ac_c" 1>&6
5609 cat > conftest.
$ac_ext <<EOF
5610 #line 5611 "configure"
5611 #include "confdefs.h"
5612 /* System header to define __stub macros and hopefully few prototypes,
5613 which can conflict with char $ac_func(); below. */
5615 /* Override any gcc2 internal prototype to avoid an error. */
5616 /* We use char because int might match the return type of a gcc2
5617 builtin and then its argument prototype would still apply. */
5622 /* The GNU C library defines this for functions which it implements
5623 to always fail with ENOSYS. Some functions are actually named
5624 something starting with __ and the normal name is an alias. */
5625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5633 if { (eval echo configure
:5634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5635 eval "ac_cv_func_$ac_func=yes"
5637 echo "configure: failed program was:" >&5
5638 cat conftest.
$ac_ext >&5
5640 eval "ac_cv_func_$ac_func=no"
5645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5646 echo "$ac_t""yes" 1>&6
5647 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5648 cat >> confdefs.h
<<EOF
5649 #define $ac_tr_func 1
5653 echo "$ac_t""no" 1>&6
5658 # Check if we have execl, if not we need to compile smbrun.
5659 for ac_func
in execl
5661 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5662 echo "configure:5663: checking for $ac_func" >&5
5663 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5664 echo $ac_n "(cached) $ac_c" 1>&6
5666 cat > conftest.
$ac_ext <<EOF
5667 #line 5668 "configure"
5668 #include "confdefs.h"
5669 /* System header to define __stub macros and hopefully few prototypes,
5670 which can conflict with char $ac_func(); below. */
5672 /* Override any gcc2 internal prototype to avoid an error. */
5673 /* We use char because int might match the return type of a gcc2
5674 builtin and then its argument prototype would still apply. */
5679 /* The GNU C library defines this for functions which it implements
5680 to always fail with ENOSYS. Some functions are actually named
5681 something starting with __ and the normal name is an alias. */
5682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5690 if { (eval echo configure
:5691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5692 eval "ac_cv_func_$ac_func=yes"
5694 echo "configure: failed program was:" >&5
5695 cat conftest.
$ac_ext >&5
5697 eval "ac_cv_func_$ac_func=no"
5702 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5703 echo "$ac_t""yes" 1>&6
5704 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5705 cat >> confdefs.h
<<EOF
5706 #define $ac_tr_func 1
5710 echo "$ac_t""no" 1>&6
5714 if test x
"$ac_cv_func_execl" = x
"no"; then
5715 EXTRA_BIN_PROGS
="$EXTRA_BIN_PROGS bin/smbrun\$(EXEEXT)"
5718 for ac_func
in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown
chmod fchmod chroot link mknod mknod64
5720 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5721 echo "configure:5722: checking for $ac_func" >&5
5722 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5723 echo $ac_n "(cached) $ac_c" 1>&6
5725 cat > conftest.
$ac_ext <<EOF
5726 #line 5727 "configure"
5727 #include "confdefs.h"
5728 /* System header to define __stub macros and hopefully few prototypes,
5729 which can conflict with char $ac_func(); below. */
5731 /* Override any gcc2 internal prototype to avoid an error. */
5732 /* We use char because int might match the return type of a gcc2
5733 builtin and then its argument prototype would still apply. */
5738 /* The GNU C library defines this for functions which it implements
5739 to always fail with ENOSYS. Some functions are actually named
5740 something starting with __ and the normal name is an alias. */
5741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5749 if { (eval echo configure
:5750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5751 eval "ac_cv_func_$ac_func=yes"
5753 echo "configure: failed program was:" >&5
5754 cat conftest.
$ac_ext >&5
5756 eval "ac_cv_func_$ac_func=no"
5761 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5762 echo "$ac_t""yes" 1>&6
5763 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5764 cat >> confdefs.h
<<EOF
5765 #define $ac_tr_func 1
5769 echo "$ac_t""no" 1>&6
5773 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
5775 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5776 echo "configure:5777: checking for $ac_func" >&5
5777 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5778 echo $ac_n "(cached) $ac_c" 1>&6
5780 cat > conftest.
$ac_ext <<EOF
5781 #line 5782 "configure"
5782 #include "confdefs.h"
5783 /* System header to define __stub macros and hopefully few prototypes,
5784 which can conflict with char $ac_func(); below. */
5786 /* Override any gcc2 internal prototype to avoid an error. */
5787 /* We use char because int might match the return type of a gcc2
5788 builtin and then its argument prototype would still apply. */
5793 /* The GNU C library defines this for functions which it implements
5794 to always fail with ENOSYS. Some functions are actually named
5795 something starting with __ and the normal name is an alias. */
5796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5804 if { (eval echo configure
:5805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5806 eval "ac_cv_func_$ac_func=yes"
5808 echo "configure: failed program was:" >&5
5809 cat conftest.
$ac_ext >&5
5811 eval "ac_cv_func_$ac_func=no"
5816 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5817 echo "$ac_t""yes" 1>&6
5818 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5819 cat >> confdefs.h
<<EOF
5820 #define $ac_tr_func 1
5824 echo "$ac_t""no" 1>&6
5828 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5830 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5831 echo "configure:5832: checking for $ac_func" >&5
5832 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5833 echo $ac_n "(cached) $ac_c" 1>&6
5835 cat > conftest.
$ac_ext <<EOF
5836 #line 5837 "configure"
5837 #include "confdefs.h"
5838 /* System header to define __stub macros and hopefully few prototypes,
5839 which can conflict with char $ac_func(); below. */
5841 /* Override any gcc2 internal prototype to avoid an error. */
5842 /* We use char because int might match the return type of a gcc2
5843 builtin and then its argument prototype would still apply. */
5848 /* The GNU C library defines this for functions which it implements
5849 to always fail with ENOSYS. Some functions are actually named
5850 something starting with __ and the normal name is an alias. */
5851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5859 if { (eval echo configure
:5860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5861 eval "ac_cv_func_$ac_func=yes"
5863 echo "configure: failed program was:" >&5
5864 cat conftest.
$ac_ext >&5
5866 eval "ac_cv_func_$ac_func=no"
5871 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5872 echo "$ac_t""yes" 1>&6
5873 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5874 cat >> confdefs.h
<<EOF
5875 #define $ac_tr_func 1
5879 echo "$ac_t""no" 1>&6
5883 for ac_func
in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5886 echo "configure:5887: checking for $ac_func" >&5
5887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5888 echo $ac_n "(cached) $ac_c" 1>&6
5890 cat > conftest.
$ac_ext <<EOF
5891 #line 5892 "configure"
5892 #include "confdefs.h"
5893 /* System header to define __stub macros and hopefully few prototypes,
5894 which can conflict with char $ac_func(); below. */
5896 /* Override any gcc2 internal prototype to avoid an error. */
5897 /* We use char because int might match the return type of a gcc2
5898 builtin and then its argument prototype would still apply. */
5903 /* The GNU C library defines this for functions which it implements
5904 to always fail with ENOSYS. Some functions are actually named
5905 something starting with __ and the normal name is an alias. */
5906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5914 if { (eval echo configure
:5915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5916 eval "ac_cv_func_$ac_func=yes"
5918 echo "configure: failed program was:" >&5
5919 cat conftest.
$ac_ext >&5
5921 eval "ac_cv_func_$ac_func=no"
5926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5927 echo "$ac_t""yes" 1>&6
5928 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5929 cat >> confdefs.h
<<EOF
5930 #define $ac_tr_func 1
5934 echo "$ac_t""no" 1>&6
5938 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf realpath
5940 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5941 echo "configure:5942: checking for $ac_func" >&5
5942 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5943 echo $ac_n "(cached) $ac_c" 1>&6
5945 cat > conftest.
$ac_ext <<EOF
5946 #line 5947 "configure"
5947 #include "confdefs.h"
5948 /* System header to define __stub macros and hopefully few prototypes,
5949 which can conflict with char $ac_func(); below. */
5951 /* Override any gcc2 internal prototype to avoid an error. */
5952 /* We use char because int might match the return type of a gcc2
5953 builtin and then its argument prototype would still apply. */
5958 /* The GNU C library defines this for functions which it implements
5959 to always fail with ENOSYS. Some functions are actually named
5960 something starting with __ and the normal name is an alias. */
5961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5969 if { (eval echo configure
:5970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5971 eval "ac_cv_func_$ac_func=yes"
5973 echo "configure: failed program was:" >&5
5974 cat conftest.
$ac_ext >&5
5976 eval "ac_cv_func_$ac_func=no"
5981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5982 echo "$ac_t""yes" 1>&6
5983 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5984 cat >> confdefs.h
<<EOF
5985 #define $ac_tr_func 1
5989 echo "$ac_t""no" 1>&6
5993 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5996 echo "configure:5997: checking for $ac_func" >&5
5997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5998 echo $ac_n "(cached) $ac_c" 1>&6
6000 cat > conftest.
$ac_ext <<EOF
6001 #line 6002 "configure"
6002 #include "confdefs.h"
6003 /* System header to define __stub macros and hopefully few prototypes,
6004 which can conflict with char $ac_func(); below. */
6006 /* Override any gcc2 internal prototype to avoid an error. */
6007 /* We use char because int might match the return type of a gcc2
6008 builtin and then its argument prototype would still apply. */
6013 /* The GNU C library defines this for functions which it implements
6014 to always fail with ENOSYS. Some functions are actually named
6015 something starting with __ and the normal name is an alias. */
6016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6024 if { (eval echo configure
:6025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6026 eval "ac_cv_func_$ac_func=yes"
6028 echo "configure: failed program was:" >&5
6029 cat conftest.
$ac_ext >&5
6031 eval "ac_cv_func_$ac_func=no"
6036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6037 echo "$ac_t""yes" 1>&6
6038 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6039 cat >> confdefs.h
<<EOF
6040 #define $ac_tr_func 1
6044 echo "$ac_t""no" 1>&6
6048 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
6050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6051 echo "configure:6052: checking for $ac_func" >&5
6052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6053 echo $ac_n "(cached) $ac_c" 1>&6
6055 cat > conftest.
$ac_ext <<EOF
6056 #line 6057 "configure"
6057 #include "confdefs.h"
6058 /* System header to define __stub macros and hopefully few prototypes,
6059 which can conflict with char $ac_func(); below. */
6061 /* Override any gcc2 internal prototype to avoid an error. */
6062 /* We use char because int might match the return type of a gcc2
6063 builtin and then its argument prototype would still apply. */
6068 /* The GNU C library defines this for functions which it implements
6069 to always fail with ENOSYS. Some functions are actually named
6070 something starting with __ and the normal name is an alias. */
6071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6079 if { (eval echo configure
:6080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6081 eval "ac_cv_func_$ac_func=yes"
6083 echo "configure: failed program was:" >&5
6084 cat conftest.
$ac_ext >&5
6086 eval "ac_cv_func_$ac_func=no"
6091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6092 echo "$ac_t""yes" 1>&6
6093 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6094 cat >> confdefs.h
<<EOF
6095 #define $ac_tr_func 1
6099 echo "$ac_t""no" 1>&6
6103 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
6105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6106 echo "configure:6107: checking for $ac_func" >&5
6107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6108 echo $ac_n "(cached) $ac_c" 1>&6
6110 cat > conftest.
$ac_ext <<EOF
6111 #line 6112 "configure"
6112 #include "confdefs.h"
6113 /* System header to define __stub macros and hopefully few prototypes,
6114 which can conflict with char $ac_func(); below. */
6116 /* Override any gcc2 internal prototype to avoid an error. */
6117 /* We use char because int might match the return type of a gcc2
6118 builtin and then its argument prototype would still apply. */
6123 /* The GNU C library defines this for functions which it implements
6124 to always fail with ENOSYS. Some functions are actually named
6125 something starting with __ and the normal name is an alias. */
6126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6134 if { (eval echo configure
:6135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6136 eval "ac_cv_func_$ac_func=yes"
6138 echo "configure: failed program was:" >&5
6139 cat conftest.
$ac_ext >&5
6141 eval "ac_cv_func_$ac_func=no"
6146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6147 echo "$ac_t""yes" 1>&6
6148 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6149 cat >> confdefs.h
<<EOF
6150 #define $ac_tr_func 1
6154 echo "$ac_t""no" 1>&6
6158 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl symlink readlink
6160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6161 echo "configure:6162: checking for $ac_func" >&5
6162 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6163 echo $ac_n "(cached) $ac_c" 1>&6
6165 cat > conftest.
$ac_ext <<EOF
6166 #line 6167 "configure"
6167 #include "confdefs.h"
6168 /* System header to define __stub macros and hopefully few prototypes,
6169 which can conflict with char $ac_func(); below. */
6171 /* Override any gcc2 internal prototype to avoid an error. */
6172 /* We use char because int might match the return type of a gcc2
6173 builtin and then its argument prototype would still apply. */
6178 /* The GNU C library defines this for functions which it implements
6179 to always fail with ENOSYS. Some functions are actually named
6180 something starting with __ and the normal name is an alias. */
6181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6189 if { (eval echo configure
:6190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6191 eval "ac_cv_func_$ac_func=yes"
6193 echo "configure: failed program was:" >&5
6194 cat conftest.
$ac_ext >&5
6196 eval "ac_cv_func_$ac_func=no"
6201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6202 echo "$ac_t""yes" 1>&6
6203 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6204 cat >> confdefs.h
<<EOF
6205 #define $ac_tr_func 1
6209 echo "$ac_t""no" 1>&6
6213 for ac_func
in syslog vsyslog getgrouplist timegm
6215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6216 echo "configure:6217: checking for $ac_func" >&5
6217 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6218 echo $ac_n "(cached) $ac_c" 1>&6
6220 cat > conftest.
$ac_ext <<EOF
6221 #line 6222 "configure"
6222 #include "confdefs.h"
6223 /* System header to define __stub macros and hopefully few prototypes,
6224 which can conflict with char $ac_func(); below. */
6226 /* Override any gcc2 internal prototype to avoid an error. */
6227 /* We use char because int might match the return type of a gcc2
6228 builtin and then its argument prototype would still apply. */
6233 /* The GNU C library defines this for functions which it implements
6234 to always fail with ENOSYS. Some functions are actually named
6235 something starting with __ and the normal name is an alias. */
6236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6244 if { (eval echo configure
:6245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6246 eval "ac_cv_func_$ac_func=yes"
6248 echo "configure: failed program was:" >&5
6249 cat conftest.
$ac_ext >&5
6251 eval "ac_cv_func_$ac_func=no"
6256 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6257 echo "$ac_t""yes" 1>&6
6258 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6259 cat >> confdefs.h
<<EOF
6260 #define $ac_tr_func 1
6264 echo "$ac_t""no" 1>&6
6268 # setbuffer, shmget, shm_open are needed for smbtorture
6269 for ac_func
in setbuffer shmget shm_open
6271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6272 echo "configure:6273: checking for $ac_func" >&5
6273 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6274 echo $ac_n "(cached) $ac_c" 1>&6
6276 cat > conftest.
$ac_ext <<EOF
6277 #line 6278 "configure"
6278 #include "confdefs.h"
6279 /* System header to define __stub macros and hopefully few prototypes,
6280 which can conflict with char $ac_func(); below. */
6282 /* Override any gcc2 internal prototype to avoid an error. */
6283 /* We use char because int might match the return type of a gcc2
6284 builtin and then its argument prototype would still apply. */
6289 /* The GNU C library defines this for functions which it implements
6290 to always fail with ENOSYS. Some functions are actually named
6291 something starting with __ and the normal name is an alias. */
6292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6300 if { (eval echo configure
:6301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6302 eval "ac_cv_func_$ac_func=yes"
6304 echo "configure: failed program was:" >&5
6305 cat conftest.
$ac_ext >&5
6307 eval "ac_cv_func_$ac_func=no"
6312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6313 echo "$ac_t""yes" 1>&6
6314 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6315 cat >> confdefs.h
<<EOF
6316 #define $ac_tr_func 1
6320 echo "$ac_t""no" 1>&6
6325 # syscall() is needed for smbwrapper.
6326 for ac_func
in syscall
6328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6329 echo "configure:6330: checking for $ac_func" >&5
6330 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6331 echo $ac_n "(cached) $ac_c" 1>&6
6333 cat > conftest.
$ac_ext <<EOF
6334 #line 6335 "configure"
6335 #include "confdefs.h"
6336 /* System header to define __stub macros and hopefully few prototypes,
6337 which can conflict with char $ac_func(); below. */
6339 /* Override any gcc2 internal prototype to avoid an error. */
6340 /* We use char because int might match the return type of a gcc2
6341 builtin and then its argument prototype would still apply. */
6346 /* The GNU C library defines this for functions which it implements
6347 to always fail with ENOSYS. Some functions are actually named
6348 something starting with __ and the normal name is an alias. */
6349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6357 if { (eval echo configure
:6358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6359 eval "ac_cv_func_$ac_func=yes"
6361 echo "configure: failed program was:" >&5
6362 cat conftest.
$ac_ext >&5
6364 eval "ac_cv_func_$ac_func=no"
6369 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6370 echo "$ac_t""yes" 1>&6
6371 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6372 cat >> confdefs.h
<<EOF
6373 #define $ac_tr_func 1
6377 echo "$ac_t""no" 1>&6
6382 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
6384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6385 echo "configure:6386: checking for $ac_func" >&5
6386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6387 echo $ac_n "(cached) $ac_c" 1>&6
6389 cat > conftest.
$ac_ext <<EOF
6390 #line 6391 "configure"
6391 #include "confdefs.h"
6392 /* System header to define __stub macros and hopefully few prototypes,
6393 which can conflict with char $ac_func(); below. */
6395 /* Override any gcc2 internal prototype to avoid an error. */
6396 /* We use char because int might match the return type of a gcc2
6397 builtin and then its argument prototype would still apply. */
6402 /* The GNU C library defines this for functions which it implements
6403 to always fail with ENOSYS. Some functions are actually named
6404 something starting with __ and the normal name is an alias. */
6405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6413 if { (eval echo configure
:6414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6415 eval "ac_cv_func_$ac_func=yes"
6417 echo "configure: failed program was:" >&5
6418 cat conftest.
$ac_ext >&5
6420 eval "ac_cv_func_$ac_func=no"
6425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6426 echo "$ac_t""yes" 1>&6
6427 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6428 cat >> confdefs.h
<<EOF
6429 #define $ac_tr_func 1
6433 echo "$ac_t""no" 1>&6
6437 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6440 echo "configure:6441: checking for $ac_func" >&5
6441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6442 echo $ac_n "(cached) $ac_c" 1>&6
6444 cat > conftest.
$ac_ext <<EOF
6445 #line 6446 "configure"
6446 #include "confdefs.h"
6447 /* System header to define __stub macros and hopefully few prototypes,
6448 which can conflict with char $ac_func(); below. */
6450 /* Override any gcc2 internal prototype to avoid an error. */
6451 /* We use char because int might match the return type of a gcc2
6452 builtin and then its argument prototype would still apply. */
6457 /* The GNU C library defines this for functions which it implements
6458 to always fail with ENOSYS. Some functions are actually named
6459 something starting with __ and the normal name is an alias. */
6460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6468 if { (eval echo configure
:6469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6470 eval "ac_cv_func_$ac_func=yes"
6472 echo "configure: failed program was:" >&5
6473 cat conftest.
$ac_ext >&5
6475 eval "ac_cv_func_$ac_func=no"
6480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6481 echo "$ac_t""yes" 1>&6
6482 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6483 cat >> confdefs.h
<<EOF
6484 #define $ac_tr_func 1
6488 echo "$ac_t""no" 1>&6
6492 for ac_func
in __getcwd _getcwd
6494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6495 echo "configure:6496: checking for $ac_func" >&5
6496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6497 echo $ac_n "(cached) $ac_c" 1>&6
6499 cat > conftest.
$ac_ext <<EOF
6500 #line 6501 "configure"
6501 #include "confdefs.h"
6502 /* System header to define __stub macros and hopefully few prototypes,
6503 which can conflict with char $ac_func(); below. */
6505 /* Override any gcc2 internal prototype to avoid an error. */
6506 /* We use char because int might match the return type of a gcc2
6507 builtin and then its argument prototype would still apply. */
6512 /* The GNU C library defines this for functions which it implements
6513 to always fail with ENOSYS. Some functions are actually named
6514 something starting with __ and the normal name is an alias. */
6515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6523 if { (eval echo configure
:6524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6525 eval "ac_cv_func_$ac_func=yes"
6527 echo "configure: failed program was:" >&5
6528 cat conftest.
$ac_ext >&5
6530 eval "ac_cv_func_$ac_func=no"
6535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6536 echo "$ac_t""yes" 1>&6
6537 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6538 cat >> confdefs.h
<<EOF
6539 #define $ac_tr_func 1
6543 echo "$ac_t""no" 1>&6
6547 for ac_func
in __xstat __fxstat __lxstat
6549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6550 echo "configure:6551: checking for $ac_func" >&5
6551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6552 echo $ac_n "(cached) $ac_c" 1>&6
6554 cat > conftest.
$ac_ext <<EOF
6555 #line 6556 "configure"
6556 #include "confdefs.h"
6557 /* System header to define __stub macros and hopefully few prototypes,
6558 which can conflict with char $ac_func(); below. */
6560 /* Override any gcc2 internal prototype to avoid an error. */
6561 /* We use char because int might match the return type of a gcc2
6562 builtin and then its argument prototype would still apply. */
6567 /* The GNU C library defines this for functions which it implements
6568 to always fail with ENOSYS. Some functions are actually named
6569 something starting with __ and the normal name is an alias. */
6570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6578 if { (eval echo configure
:6579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6580 eval "ac_cv_func_$ac_func=yes"
6582 echo "configure: failed program was:" >&5
6583 cat conftest.
$ac_ext >&5
6585 eval "ac_cv_func_$ac_func=no"
6590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6591 echo "$ac_t""yes" 1>&6
6592 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6593 cat >> confdefs.h
<<EOF
6594 #define $ac_tr_func 1
6598 echo "$ac_t""no" 1>&6
6602 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
6604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6605 echo "configure:6606: checking for $ac_func" >&5
6606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6607 echo $ac_n "(cached) $ac_c" 1>&6
6609 cat > conftest.
$ac_ext <<EOF
6610 #line 6611 "configure"
6611 #include "confdefs.h"
6612 /* System header to define __stub macros and hopefully few prototypes,
6613 which can conflict with char $ac_func(); below. */
6615 /* Override any gcc2 internal prototype to avoid an error. */
6616 /* We use char because int might match the return type of a gcc2
6617 builtin and then its argument prototype would still apply. */
6622 /* The GNU C library defines this for functions which it implements
6623 to always fail with ENOSYS. Some functions are actually named
6624 something starting with __ and the normal name is an alias. */
6625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6633 if { (eval echo configure
:6634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6635 eval "ac_cv_func_$ac_func=yes"
6637 echo "configure: failed program was:" >&5
6638 cat conftest.
$ac_ext >&5
6640 eval "ac_cv_func_$ac_func=no"
6645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6646 echo "$ac_t""yes" 1>&6
6647 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6648 cat >> confdefs.h
<<EOF
6649 #define $ac_tr_func 1
6653 echo "$ac_t""no" 1>&6
6657 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
6659 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6660 echo "configure:6661: checking for $ac_func" >&5
6661 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6662 echo $ac_n "(cached) $ac_c" 1>&6
6664 cat > conftest.
$ac_ext <<EOF
6665 #line 6666 "configure"
6666 #include "confdefs.h"
6667 /* System header to define __stub macros and hopefully few prototypes,
6668 which can conflict with char $ac_func(); below. */
6670 /* Override any gcc2 internal prototype to avoid an error. */
6671 /* We use char because int might match the return type of a gcc2
6672 builtin and then its argument prototype would still apply. */
6677 /* The GNU C library defines this for functions which it implements
6678 to always fail with ENOSYS. Some functions are actually named
6679 something starting with __ and the normal name is an alias. */
6680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6688 if { (eval echo configure
:6689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6690 eval "ac_cv_func_$ac_func=yes"
6692 echo "configure: failed program was:" >&5
6693 cat conftest.
$ac_ext >&5
6695 eval "ac_cv_func_$ac_func=no"
6700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6701 echo "$ac_t""yes" 1>&6
6702 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6703 cat >> confdefs.h
<<EOF
6704 #define $ac_tr_func 1
6708 echo "$ac_t""no" 1>&6
6712 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
6714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6715 echo "configure:6716: checking for $ac_func" >&5
6716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6717 echo $ac_n "(cached) $ac_c" 1>&6
6719 cat > conftest.
$ac_ext <<EOF
6720 #line 6721 "configure"
6721 #include "confdefs.h"
6722 /* System header to define __stub macros and hopefully few prototypes,
6723 which can conflict with char $ac_func(); below. */
6725 /* Override any gcc2 internal prototype to avoid an error. */
6726 /* We use char because int might match the return type of a gcc2
6727 builtin and then its argument prototype would still apply. */
6732 /* The GNU C library defines this for functions which it implements
6733 to always fail with ENOSYS. Some functions are actually named
6734 something starting with __ and the normal name is an alias. */
6735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6743 if { (eval echo configure
:6744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6745 eval "ac_cv_func_$ac_func=yes"
6747 echo "configure: failed program was:" >&5
6748 cat conftest.
$ac_ext >&5
6750 eval "ac_cv_func_$ac_func=no"
6755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6756 echo "$ac_t""yes" 1>&6
6757 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6758 cat >> confdefs.h
<<EOF
6759 #define $ac_tr_func 1
6763 echo "$ac_t""no" 1>&6
6767 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
6769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6770 echo "configure:6771: checking for $ac_func" >&5
6771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6772 echo $ac_n "(cached) $ac_c" 1>&6
6774 cat > conftest.
$ac_ext <<EOF
6775 #line 6776 "configure"
6776 #include "confdefs.h"
6777 /* System header to define __stub macros and hopefully few prototypes,
6778 which can conflict with char $ac_func(); below. */
6780 /* Override any gcc2 internal prototype to avoid an error. */
6781 /* We use char because int might match the return type of a gcc2
6782 builtin and then its argument prototype would still apply. */
6787 /* The GNU C library defines this for functions which it implements
6788 to always fail with ENOSYS. Some functions are actually named
6789 something starting with __ and the normal name is an alias. */
6790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6798 if { (eval echo configure
:6799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6800 eval "ac_cv_func_$ac_func=yes"
6802 echo "configure: failed program was:" >&5
6803 cat conftest.
$ac_ext >&5
6805 eval "ac_cv_func_$ac_func=no"
6810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6811 echo "$ac_t""yes" 1>&6
6812 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6813 cat >> confdefs.h
<<EOF
6814 #define $ac_tr_func 1
6818 echo "$ac_t""no" 1>&6
6822 for ac_func
in getdirentries _write __write _fork __fork
6824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6825 echo "configure:6826: checking for $ac_func" >&5
6826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6827 echo $ac_n "(cached) $ac_c" 1>&6
6829 cat > conftest.
$ac_ext <<EOF
6830 #line 6831 "configure"
6831 #include "confdefs.h"
6832 /* System header to define __stub macros and hopefully few prototypes,
6833 which can conflict with char $ac_func(); below. */
6835 /* Override any gcc2 internal prototype to avoid an error. */
6836 /* We use char because int might match the return type of a gcc2
6837 builtin and then its argument prototype would still apply. */
6842 /* The GNU C library defines this for functions which it implements
6843 to always fail with ENOSYS. Some functions are actually named
6844 something starting with __ and the normal name is an alias. */
6845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6853 if { (eval echo configure
:6854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6855 eval "ac_cv_func_$ac_func=yes"
6857 echo "configure: failed program was:" >&5
6858 cat conftest.
$ac_ext >&5
6860 eval "ac_cv_func_$ac_func=no"
6865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6866 echo "$ac_t""yes" 1>&6
6867 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6868 cat >> confdefs.h
<<EOF
6869 #define $ac_tr_func 1
6873 echo "$ac_t""no" 1>&6
6877 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6880 echo "configure:6881: checking for $ac_func" >&5
6881 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6882 echo $ac_n "(cached) $ac_c" 1>&6
6884 cat > conftest.
$ac_ext <<EOF
6885 #line 6886 "configure"
6886 #include "confdefs.h"
6887 /* System header to define __stub macros and hopefully few prototypes,
6888 which can conflict with char $ac_func(); below. */
6890 /* Override any gcc2 internal prototype to avoid an error. */
6891 /* We use char because int might match the return type of a gcc2
6892 builtin and then its argument prototype would still apply. */
6897 /* The GNU C library defines this for functions which it implements
6898 to always fail with ENOSYS. Some functions are actually named
6899 something starting with __ and the normal name is an alias. */
6900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6908 if { (eval echo configure
:6909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6910 eval "ac_cv_func_$ac_func=yes"
6912 echo "configure: failed program was:" >&5
6913 cat conftest.
$ac_ext >&5
6915 eval "ac_cv_func_$ac_func=no"
6920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6921 echo "$ac_t""yes" 1>&6
6922 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6923 cat >> confdefs.h
<<EOF
6924 #define $ac_tr_func 1
6928 echo "$ac_t""no" 1>&6
6932 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6935 echo "configure:6936: checking for $ac_func" >&5
6936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6937 echo $ac_n "(cached) $ac_c" 1>&6
6939 cat > conftest.
$ac_ext <<EOF
6940 #line 6941 "configure"
6941 #include "confdefs.h"
6942 /* System header to define __stub macros and hopefully few prototypes,
6943 which can conflict with char $ac_func(); below. */
6945 /* Override any gcc2 internal prototype to avoid an error. */
6946 /* We use char because int might match the return type of a gcc2
6947 builtin and then its argument prototype would still apply. */
6952 /* The GNU C library defines this for functions which it implements
6953 to always fail with ENOSYS. Some functions are actually named
6954 something starting with __ and the normal name is an alias. */
6955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6963 if { (eval echo configure
:6964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6965 eval "ac_cv_func_$ac_func=yes"
6967 echo "configure: failed program was:" >&5
6968 cat conftest.
$ac_ext >&5
6970 eval "ac_cv_func_$ac_func=no"
6975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6976 echo "$ac_t""yes" 1>&6
6977 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6978 cat >> confdefs.h
<<EOF
6979 #define $ac_tr_func 1
6983 echo "$ac_t""no" 1>&6
6987 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6990 echo "configure:6991: checking for $ac_func" >&5
6991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6992 echo $ac_n "(cached) $ac_c" 1>&6
6994 cat > conftest.
$ac_ext <<EOF
6995 #line 6996 "configure"
6996 #include "confdefs.h"
6997 /* System header to define __stub macros and hopefully few prototypes,
6998 which can conflict with char $ac_func(); below. */
7000 /* Override any gcc2 internal prototype to avoid an error. */
7001 /* We use char because int might match the return type of a gcc2
7002 builtin and then its argument prototype would still apply. */
7007 /* The GNU C library defines this for functions which it implements
7008 to always fail with ENOSYS. Some functions are actually named
7009 something starting with __ and the normal name is an alias. */
7010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7018 if { (eval echo configure
:7019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7020 eval "ac_cv_func_$ac_func=yes"
7022 echo "configure: failed program was:" >&5
7023 cat conftest.
$ac_ext >&5
7025 eval "ac_cv_func_$ac_func=no"
7030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7031 echo "$ac_t""yes" 1>&6
7032 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7033 cat >> confdefs.h
<<EOF
7034 #define $ac_tr_func 1
7038 echo "$ac_t""no" 1>&6
7042 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
7044 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7045 echo "configure:7046: checking for $ac_func" >&5
7046 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7047 echo $ac_n "(cached) $ac_c" 1>&6
7049 cat > conftest.
$ac_ext <<EOF
7050 #line 7051 "configure"
7051 #include "confdefs.h"
7052 /* System header to define __stub macros and hopefully few prototypes,
7053 which can conflict with char $ac_func(); below. */
7055 /* Override any gcc2 internal prototype to avoid an error. */
7056 /* We use char because int might match the return type of a gcc2
7057 builtin and then its argument prototype would still apply. */
7062 /* The GNU C library defines this for functions which it implements
7063 to always fail with ENOSYS. Some functions are actually named
7064 something starting with __ and the normal name is an alias. */
7065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7073 if { (eval echo configure
:7074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7075 eval "ac_cv_func_$ac_func=yes"
7077 echo "configure: failed program was:" >&5
7078 cat conftest.
$ac_ext >&5
7080 eval "ac_cv_func_$ac_func=no"
7085 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7086 echo "$ac_t""yes" 1>&6
7087 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7088 cat >> confdefs.h
<<EOF
7089 #define $ac_tr_func 1
7093 echo "$ac_t""no" 1>&6
7097 for ac_func
in open64 _open64 __open64 creat64
7099 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7100 echo "configure:7101: checking for $ac_func" >&5
7101 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7102 echo $ac_n "(cached) $ac_c" 1>&6
7104 cat > conftest.
$ac_ext <<EOF
7105 #line 7106 "configure"
7106 #include "confdefs.h"
7107 /* System header to define __stub macros and hopefully few prototypes,
7108 which can conflict with char $ac_func(); below. */
7110 /* Override any gcc2 internal prototype to avoid an error. */
7111 /* We use char because int might match the return type of a gcc2
7112 builtin and then its argument prototype would still apply. */
7117 /* The GNU C library defines this for functions which it implements
7118 to always fail with ENOSYS. Some functions are actually named
7119 something starting with __ and the normal name is an alias. */
7120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7128 if { (eval echo configure
:7129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7130 eval "ac_cv_func_$ac_func=yes"
7132 echo "configure: failed program was:" >&5
7133 cat conftest.
$ac_ext >&5
7135 eval "ac_cv_func_$ac_func=no"
7140 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7141 echo "$ac_t""yes" 1>&6
7142 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7143 cat >> confdefs.h
<<EOF
7144 #define $ac_tr_func 1
7148 echo "$ac_t""no" 1>&6
7154 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
7157 if test x
$ac_cv_func_stat64 = xno
; then
7158 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
7159 echo "configure:7160: checking for stat64 in <sys/stat.h>" >&5
7160 cat > conftest.
$ac_ext <<EOF
7161 #line 7162 "configure"
7162 #include "confdefs.h"
7164 #if defined(HAVE_UNISTD_H)
7167 #include <sys/stat.h>
7170 struct stat64 st64; exit(stat64(".",&st64));
7173 if { (eval echo configure
:7174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7175 ac_cv_func_stat64
=yes
7177 echo "configure: failed program was:" >&5
7178 cat conftest.
$ac_ext >&5
7181 echo "$ac_t""$ac_cv_func_stat64" 1>&6
7182 if test x
$ac_cv_func_stat64 = xyes
; then
7183 cat >> confdefs.h
<<\EOF
7184 #define HAVE_STAT64 1
7190 if test x
$ac_cv_func_lstat64 = xno
; then
7191 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
7192 echo "configure:7193: checking for lstat64 in <sys/stat.h>" >&5
7193 cat > conftest.
$ac_ext <<EOF
7194 #line 7195 "configure"
7195 #include "confdefs.h"
7197 #if defined(HAVE_UNISTD_H)
7200 #include <sys/stat.h>
7203 struct stat64 st64; exit(lstat64(".",&st64));
7206 if { (eval echo configure
:7207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7208 ac_cv_func_lstat64
=yes
7210 echo "configure: failed program was:" >&5
7211 cat conftest.
$ac_ext >&5
7214 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
7215 if test x
$ac_cv_func_lstat64 = xyes
; then
7216 cat >> confdefs.h
<<\EOF
7217 #define HAVE_LSTAT64 Whether lstat64() is available
7223 if test x
$ac_cv_func_fstat64 = xno
; then
7224 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
7225 echo "configure:7226: checking for fstat64 in <sys/stat.h>" >&5
7226 cat > conftest.
$ac_ext <<EOF
7227 #line 7228 "configure"
7228 #include "confdefs.h"
7230 #if defined(HAVE_UNISTD_H)
7233 #include <sys/stat.h>
7236 struct stat64 st64; exit(fstat64(0,&st64));
7239 if { (eval echo configure
:7240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7241 ac_cv_func_fstat64
=yes
7243 echo "configure: failed program was:" >&5
7244 cat conftest.
$ac_ext >&5
7247 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
7248 if test x
$ac_cv_func_fstat64 = xyes
; then
7249 cat >> confdefs.h
<<\EOF
7250 #define HAVE_FSTAT64 1
7256 #####################################
7257 # we might need the resolv library on some systems
7258 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
7259 echo "configure:7260: checking for dn_expand in -lresolv" >&5
7260 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
7261 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7262 echo $ac_n "(cached) $ac_c" 1>&6
7264 ac_save_LIBS
="$LIBS"
7265 LIBS
="-lresolv $LIBS"
7266 cat > conftest.
$ac_ext <<EOF
7267 #line 7268 "configure"
7268 #include "confdefs.h"
7269 /* Override any gcc2 internal prototype to avoid an error. */
7270 /* We use char because int might match the return type of a gcc2
7271 builtin and then its argument prototype would still apply. */
7278 if { (eval echo configure
:7279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7280 eval "ac_cv_lib_$ac_lib_var=yes"
7282 echo "configure: failed program was:" >&5
7283 cat conftest.
$ac_ext >&5
7285 eval "ac_cv_lib_$ac_lib_var=no"
7288 LIBS
="$ac_save_LIBS"
7291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7292 echo "$ac_t""yes" 1>&6
7293 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7294 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7295 cat >> confdefs.h
<<EOF
7296 #define $ac_tr_lib 1
7299 LIBS
="-lresolv $LIBS"
7302 echo "$ac_t""no" 1>&6
7307 # Check for the functions putprpwnam, set_auth_parameters,
7308 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
7309 # Needed for OSF1 and HPUX.
7313 *-lsecurity*) for ac_func
in putprpwnam
7315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7316 echo "configure:7317: checking for $ac_func" >&5
7317 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7318 echo $ac_n "(cached) $ac_c" 1>&6
7320 cat > conftest.
$ac_ext <<EOF
7321 #line 7322 "configure"
7322 #include "confdefs.h"
7323 /* System header to define __stub macros and hopefully few prototypes,
7324 which can conflict with char $ac_func(); below. */
7326 /* Override any gcc2 internal prototype to avoid an error. */
7327 /* We use char because int might match the return type of a gcc2
7328 builtin and then its argument prototype would still apply. */
7333 /* The GNU C library defines this for functions which it implements
7334 to always fail with ENOSYS. Some functions are actually named
7335 something starting with __ and the normal name is an alias. */
7336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7344 if { (eval echo configure
:7345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7346 eval "ac_cv_func_$ac_func=yes"
7348 echo "configure: failed program was:" >&5
7349 cat conftest.
$ac_ext >&5
7351 eval "ac_cv_func_$ac_func=no"
7356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7357 echo "$ac_t""yes" 1>&6
7358 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7359 cat >> confdefs.h
<<EOF
7360 #define $ac_tr_func 1
7364 echo "$ac_t""no" 1>&6
7368 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
7369 echo "configure:7370: checking for putprpwnam in -lsecurity" >&5
7370 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
7371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7372 echo $ac_n "(cached) $ac_c" 1>&6
7374 ac_save_LIBS
="$LIBS"
7375 LIBS
="-lsecurity $LIBS"
7376 cat > conftest.
$ac_ext <<EOF
7377 #line 7378 "configure"
7378 #include "confdefs.h"
7379 /* Override any gcc2 internal prototype to avoid an error. */
7380 /* We use char because int might match the return type of a gcc2
7381 builtin and then its argument prototype would still apply. */
7388 if { (eval echo configure
:7389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7390 eval "ac_cv_lib_$ac_lib_var=yes"
7392 echo "configure: failed program was:" >&5
7393 cat conftest.
$ac_ext >&5
7395 eval "ac_cv_lib_$ac_lib_var=no"
7398 LIBS
="$ac_save_LIBS"
7401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7402 echo "$ac_t""yes" 1>&6
7403 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7404 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7405 cat >> confdefs.h
<<EOF
7406 #define $ac_tr_lib 1
7409 LIBS
="-lsecurity $LIBS"
7412 echo "$ac_t""no" 1>&6
7415 for ac_func
in putprpwnam
7417 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7418 echo "configure:7419: checking for $ac_func" >&5
7419 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7420 echo $ac_n "(cached) $ac_c" 1>&6
7422 cat > conftest.
$ac_ext <<EOF
7423 #line 7424 "configure"
7424 #include "confdefs.h"
7425 /* System header to define __stub macros and hopefully few prototypes,
7426 which can conflict with char $ac_func(); below. */
7428 /* Override any gcc2 internal prototype to avoid an error. */
7429 /* We use char because int might match the return type of a gcc2
7430 builtin and then its argument prototype would still apply. */
7435 /* The GNU C library defines this for functions which it implements
7436 to always fail with ENOSYS. Some functions are actually named
7437 something starting with __ and the normal name is an alias. */
7438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7446 if { (eval echo configure
:7447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7448 eval "ac_cv_func_$ac_func=yes"
7450 echo "configure: failed program was:" >&5
7451 cat conftest.
$ac_ext >&5
7453 eval "ac_cv_func_$ac_func=no"
7458 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7459 echo "$ac_t""yes" 1>&6
7460 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7461 cat >> confdefs.h
<<EOF
7462 #define $ac_tr_func 1
7466 echo "$ac_t""no" 1>&6
7474 *-lsec*) for ac_func
in putprpwnam
7476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7477 echo "configure:7478: checking for $ac_func" >&5
7478 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7479 echo $ac_n "(cached) $ac_c" 1>&6
7481 cat > conftest.
$ac_ext <<EOF
7482 #line 7483 "configure"
7483 #include "confdefs.h"
7484 /* System header to define __stub macros and hopefully few prototypes,
7485 which can conflict with char $ac_func(); below. */
7487 /* Override any gcc2 internal prototype to avoid an error. */
7488 /* We use char because int might match the return type of a gcc2
7489 builtin and then its argument prototype would still apply. */
7494 /* The GNU C library defines this for functions which it implements
7495 to always fail with ENOSYS. Some functions are actually named
7496 something starting with __ and the normal name is an alias. */
7497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7505 if { (eval echo configure
:7506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7507 eval "ac_cv_func_$ac_func=yes"
7509 echo "configure: failed program was:" >&5
7510 cat conftest.
$ac_ext >&5
7512 eval "ac_cv_func_$ac_func=no"
7517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7518 echo "$ac_t""yes" 1>&6
7519 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7520 cat >> confdefs.h
<<EOF
7521 #define $ac_tr_func 1
7525 echo "$ac_t""no" 1>&6
7529 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7530 echo "configure:7531: checking for putprpwnam in -lsec" >&5
7531 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7532 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7533 echo $ac_n "(cached) $ac_c" 1>&6
7535 ac_save_LIBS
="$LIBS"
7537 cat > conftest.
$ac_ext <<EOF
7538 #line 7539 "configure"
7539 #include "confdefs.h"
7540 /* Override any gcc2 internal prototype to avoid an error. */
7541 /* We use char because int might match the return type of a gcc2
7542 builtin and then its argument prototype would still apply. */
7549 if { (eval echo configure
:7550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7551 eval "ac_cv_lib_$ac_lib_var=yes"
7553 echo "configure: failed program was:" >&5
7554 cat conftest.
$ac_ext >&5
7556 eval "ac_cv_lib_$ac_lib_var=no"
7559 LIBS
="$ac_save_LIBS"
7562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7563 echo "$ac_t""yes" 1>&6
7564 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7565 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7566 cat >> confdefs.h
<<EOF
7567 #define $ac_tr_lib 1
7573 echo "$ac_t""no" 1>&6
7576 for ac_func
in putprpwnam
7578 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7579 echo "configure:7580: checking for $ac_func" >&5
7580 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7581 echo $ac_n "(cached) $ac_c" 1>&6
7583 cat > conftest.
$ac_ext <<EOF
7584 #line 7585 "configure"
7585 #include "confdefs.h"
7586 /* System header to define __stub macros and hopefully few prototypes,
7587 which can conflict with char $ac_func(); below. */
7589 /* Override any gcc2 internal prototype to avoid an error. */
7590 /* We use char because int might match the return type of a gcc2
7591 builtin and then its argument prototype would still apply. */
7596 /* The GNU C library defines this for functions which it implements
7597 to always fail with ENOSYS. Some functions are actually named
7598 something starting with __ and the normal name is an alias. */
7599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7607 if { (eval echo configure
:7608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7609 eval "ac_cv_func_$ac_func=yes"
7611 echo "configure: failed program was:" >&5
7612 cat conftest.
$ac_ext >&5
7614 eval "ac_cv_func_$ac_func=no"
7619 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7620 echo "$ac_t""yes" 1>&6
7621 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7622 cat >> confdefs.h
<<EOF
7623 #define $ac_tr_func 1
7627 echo "$ac_t""no" 1>&6
7636 *-lsecurity*) for ac_func
in set_auth_parameters
7638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7639 echo "configure:7640: checking for $ac_func" >&5
7640 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7641 echo $ac_n "(cached) $ac_c" 1>&6
7643 cat > conftest.
$ac_ext <<EOF
7644 #line 7645 "configure"
7645 #include "confdefs.h"
7646 /* System header to define __stub macros and hopefully few prototypes,
7647 which can conflict with char $ac_func(); below. */
7649 /* Override any gcc2 internal prototype to avoid an error. */
7650 /* We use char because int might match the return type of a gcc2
7651 builtin and then its argument prototype would still apply. */
7656 /* The GNU C library defines this for functions which it implements
7657 to always fail with ENOSYS. Some functions are actually named
7658 something starting with __ and the normal name is an alias. */
7659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7667 if { (eval echo configure
:7668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7669 eval "ac_cv_func_$ac_func=yes"
7671 echo "configure: failed program was:" >&5
7672 cat conftest.
$ac_ext >&5
7674 eval "ac_cv_func_$ac_func=no"
7679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7680 echo "$ac_t""yes" 1>&6
7681 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7682 cat >> confdefs.h
<<EOF
7683 #define $ac_tr_func 1
7687 echo "$ac_t""no" 1>&6
7691 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7692 echo "configure:7693: checking for set_auth_parameters in -lsecurity" >&5
7693 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7694 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7695 echo $ac_n "(cached) $ac_c" 1>&6
7697 ac_save_LIBS
="$LIBS"
7698 LIBS
="-lsecurity $LIBS"
7699 cat > conftest.
$ac_ext <<EOF
7700 #line 7701 "configure"
7701 #include "confdefs.h"
7702 /* Override any gcc2 internal prototype to avoid an error. */
7703 /* We use char because int might match the return type of a gcc2
7704 builtin and then its argument prototype would still apply. */
7705 char set_auth_parameters();
7708 set_auth_parameters()
7711 if { (eval echo configure
:7712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7713 eval "ac_cv_lib_$ac_lib_var=yes"
7715 echo "configure: failed program was:" >&5
7716 cat conftest.
$ac_ext >&5
7718 eval "ac_cv_lib_$ac_lib_var=no"
7721 LIBS
="$ac_save_LIBS"
7724 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7725 echo "$ac_t""yes" 1>&6
7726 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7727 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7728 cat >> confdefs.h
<<EOF
7729 #define $ac_tr_lib 1
7732 LIBS
="-lsecurity $LIBS"
7735 echo "$ac_t""no" 1>&6
7738 for ac_func
in set_auth_parameters
7740 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7741 echo "configure:7742: checking for $ac_func" >&5
7742 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7743 echo $ac_n "(cached) $ac_c" 1>&6
7745 cat > conftest.
$ac_ext <<EOF
7746 #line 7747 "configure"
7747 #include "confdefs.h"
7748 /* System header to define __stub macros and hopefully few prototypes,
7749 which can conflict with char $ac_func(); below. */
7751 /* Override any gcc2 internal prototype to avoid an error. */
7752 /* We use char because int might match the return type of a gcc2
7753 builtin and then its argument prototype would still apply. */
7758 /* The GNU C library defines this for functions which it implements
7759 to always fail with ENOSYS. Some functions are actually named
7760 something starting with __ and the normal name is an alias. */
7761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7769 if { (eval echo configure
:7770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7771 eval "ac_cv_func_$ac_func=yes"
7773 echo "configure: failed program was:" >&5
7774 cat conftest.
$ac_ext >&5
7776 eval "ac_cv_func_$ac_func=no"
7781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7782 echo "$ac_t""yes" 1>&6
7783 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7784 cat >> confdefs.h
<<EOF
7785 #define $ac_tr_func 1
7789 echo "$ac_t""no" 1>&6
7797 *-lsec*) for ac_func
in set_auth_parameters
7799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7800 echo "configure:7801: checking for $ac_func" >&5
7801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7802 echo $ac_n "(cached) $ac_c" 1>&6
7804 cat > conftest.
$ac_ext <<EOF
7805 #line 7806 "configure"
7806 #include "confdefs.h"
7807 /* System header to define __stub macros and hopefully few prototypes,
7808 which can conflict with char $ac_func(); below. */
7810 /* Override any gcc2 internal prototype to avoid an error. */
7811 /* We use char because int might match the return type of a gcc2
7812 builtin and then its argument prototype would still apply. */
7817 /* The GNU C library defines this for functions which it implements
7818 to always fail with ENOSYS. Some functions are actually named
7819 something starting with __ and the normal name is an alias. */
7820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7828 if { (eval echo configure
:7829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7830 eval "ac_cv_func_$ac_func=yes"
7832 echo "configure: failed program was:" >&5
7833 cat conftest.
$ac_ext >&5
7835 eval "ac_cv_func_$ac_func=no"
7840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7841 echo "$ac_t""yes" 1>&6
7842 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7843 cat >> confdefs.h
<<EOF
7844 #define $ac_tr_func 1
7848 echo "$ac_t""no" 1>&6
7852 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7853 echo "configure:7854: checking for set_auth_parameters in -lsec" >&5
7854 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7856 echo $ac_n "(cached) $ac_c" 1>&6
7858 ac_save_LIBS
="$LIBS"
7860 cat > conftest.
$ac_ext <<EOF
7861 #line 7862 "configure"
7862 #include "confdefs.h"
7863 /* Override any gcc2 internal prototype to avoid an error. */
7864 /* We use char because int might match the return type of a gcc2
7865 builtin and then its argument prototype would still apply. */
7866 char set_auth_parameters();
7869 set_auth_parameters()
7872 if { (eval echo configure
:7873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7874 eval "ac_cv_lib_$ac_lib_var=yes"
7876 echo "configure: failed program was:" >&5
7877 cat conftest.
$ac_ext >&5
7879 eval "ac_cv_lib_$ac_lib_var=no"
7882 LIBS
="$ac_save_LIBS"
7885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7886 echo "$ac_t""yes" 1>&6
7887 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7888 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7889 cat >> confdefs.h
<<EOF
7890 #define $ac_tr_lib 1
7896 echo "$ac_t""no" 1>&6
7899 for ac_func
in set_auth_parameters
7901 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7902 echo "configure:7903: checking for $ac_func" >&5
7903 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7904 echo $ac_n "(cached) $ac_c" 1>&6
7906 cat > conftest.
$ac_ext <<EOF
7907 #line 7908 "configure"
7908 #include "confdefs.h"
7909 /* System header to define __stub macros and hopefully few prototypes,
7910 which can conflict with char $ac_func(); below. */
7912 /* Override any gcc2 internal prototype to avoid an error. */
7913 /* We use char because int might match the return type of a gcc2
7914 builtin and then its argument prototype would still apply. */
7919 /* The GNU C library defines this for functions which it implements
7920 to always fail with ENOSYS. Some functions are actually named
7921 something starting with __ and the normal name is an alias. */
7922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7930 if { (eval echo configure
:7931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7932 eval "ac_cv_func_$ac_func=yes"
7934 echo "configure: failed program was:" >&5
7935 cat conftest.
$ac_ext >&5
7937 eval "ac_cv_func_$ac_func=no"
7942 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7943 echo "$ac_t""yes" 1>&6
7944 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7945 cat >> confdefs.h
<<EOF
7946 #define $ac_tr_func 1
7950 echo "$ac_t""no" 1>&6
7958 # UnixWare 7.x has its getspnam in -lgen
7960 *-lgen*) for ac_func
in getspnam
7962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7963 echo "configure:7964: checking for $ac_func" >&5
7964 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7965 echo $ac_n "(cached) $ac_c" 1>&6
7967 cat > conftest.
$ac_ext <<EOF
7968 #line 7969 "configure"
7969 #include "confdefs.h"
7970 /* System header to define __stub macros and hopefully few prototypes,
7971 which can conflict with char $ac_func(); below. */
7973 /* Override any gcc2 internal prototype to avoid an error. */
7974 /* We use char because int might match the return type of a gcc2
7975 builtin and then its argument prototype would still apply. */
7980 /* The GNU C library defines this for functions which it implements
7981 to always fail with ENOSYS. Some functions are actually named
7982 something starting with __ and the normal name is an alias. */
7983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7991 if { (eval echo configure
:7992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7993 eval "ac_cv_func_$ac_func=yes"
7995 echo "configure: failed program was:" >&5
7996 cat conftest.
$ac_ext >&5
7998 eval "ac_cv_func_$ac_func=no"
8003 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8004 echo "$ac_t""yes" 1>&6
8005 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8006 cat >> confdefs.h
<<EOF
8007 #define $ac_tr_func 1
8011 echo "$ac_t""no" 1>&6
8015 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
8016 echo "configure:8017: checking for getspnam in -lgen" >&5
8017 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
8018 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8019 echo $ac_n "(cached) $ac_c" 1>&6
8021 ac_save_LIBS
="$LIBS"
8023 cat > conftest.
$ac_ext <<EOF
8024 #line 8025 "configure"
8025 #include "confdefs.h"
8026 /* Override any gcc2 internal prototype to avoid an error. */
8027 /* We use char because int might match the return type of a gcc2
8028 builtin and then its argument prototype would still apply. */
8035 if { (eval echo configure
:8036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8037 eval "ac_cv_lib_$ac_lib_var=yes"
8039 echo "configure: failed program was:" >&5
8040 cat conftest.
$ac_ext >&5
8042 eval "ac_cv_lib_$ac_lib_var=no"
8045 LIBS
="$ac_save_LIBS"
8048 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8049 echo "$ac_t""yes" 1>&6
8050 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8051 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8052 cat >> confdefs.h
<<EOF
8053 #define $ac_tr_lib 1
8059 echo "$ac_t""no" 1>&6
8062 for ac_func
in getspnam
8064 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8065 echo "configure:8066: checking for $ac_func" >&5
8066 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8067 echo $ac_n "(cached) $ac_c" 1>&6
8069 cat > conftest.
$ac_ext <<EOF
8070 #line 8071 "configure"
8071 #include "confdefs.h"
8072 /* System header to define __stub macros and hopefully few prototypes,
8073 which can conflict with char $ac_func(); below. */
8075 /* Override any gcc2 internal prototype to avoid an error. */
8076 /* We use char because int might match the return type of a gcc2
8077 builtin and then its argument prototype would still apply. */
8082 /* The GNU C library defines this for functions which it implements
8083 to always fail with ENOSYS. Some functions are actually named
8084 something starting with __ and the normal name is an alias. */
8085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8093 if { (eval echo configure
:8094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8095 eval "ac_cv_func_$ac_func=yes"
8097 echo "configure: failed program was:" >&5
8098 cat conftest.
$ac_ext >&5
8100 eval "ac_cv_func_$ac_func=no"
8105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8106 echo "$ac_t""yes" 1>&6
8107 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8108 cat >> confdefs.h
<<EOF
8109 #define $ac_tr_func 1
8113 echo "$ac_t""no" 1>&6
8122 *-lsecurity*) for ac_func
in getspnam
8124 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8125 echo "configure:8126: checking for $ac_func" >&5
8126 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8127 echo $ac_n "(cached) $ac_c" 1>&6
8129 cat > conftest.
$ac_ext <<EOF
8130 #line 8131 "configure"
8131 #include "confdefs.h"
8132 /* System header to define __stub macros and hopefully few prototypes,
8133 which can conflict with char $ac_func(); below. */
8135 /* Override any gcc2 internal prototype to avoid an error. */
8136 /* We use char because int might match the return type of a gcc2
8137 builtin and then its argument prototype would still apply. */
8142 /* The GNU C library defines this for functions which it implements
8143 to always fail with ENOSYS. Some functions are actually named
8144 something starting with __ and the normal name is an alias. */
8145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8153 if { (eval echo configure
:8154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8155 eval "ac_cv_func_$ac_func=yes"
8157 echo "configure: failed program was:" >&5
8158 cat conftest.
$ac_ext >&5
8160 eval "ac_cv_func_$ac_func=no"
8165 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8166 echo "$ac_t""yes" 1>&6
8167 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8168 cat >> confdefs.h
<<EOF
8169 #define $ac_tr_func 1
8173 echo "$ac_t""no" 1>&6
8177 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
8178 echo "configure:8179: checking for getspnam in -lsecurity" >&5
8179 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
8180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8181 echo $ac_n "(cached) $ac_c" 1>&6
8183 ac_save_LIBS
="$LIBS"
8184 LIBS
="-lsecurity $LIBS"
8185 cat > conftest.
$ac_ext <<EOF
8186 #line 8187 "configure"
8187 #include "confdefs.h"
8188 /* Override any gcc2 internal prototype to avoid an error. */
8189 /* We use char because int might match the return type of a gcc2
8190 builtin and then its argument prototype would still apply. */
8197 if { (eval echo configure
:8198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8199 eval "ac_cv_lib_$ac_lib_var=yes"
8201 echo "configure: failed program was:" >&5
8202 cat conftest.
$ac_ext >&5
8204 eval "ac_cv_lib_$ac_lib_var=no"
8207 LIBS
="$ac_save_LIBS"
8210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8211 echo "$ac_t""yes" 1>&6
8212 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8213 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8214 cat >> confdefs.h
<<EOF
8215 #define $ac_tr_lib 1
8218 LIBS
="-lsecurity $LIBS"
8221 echo "$ac_t""no" 1>&6
8224 for ac_func
in getspnam
8226 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8227 echo "configure:8228: checking for $ac_func" >&5
8228 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8229 echo $ac_n "(cached) $ac_c" 1>&6
8231 cat > conftest.
$ac_ext <<EOF
8232 #line 8233 "configure"
8233 #include "confdefs.h"
8234 /* System header to define __stub macros and hopefully few prototypes,
8235 which can conflict with char $ac_func(); below. */
8237 /* Override any gcc2 internal prototype to avoid an error. */
8238 /* We use char because int might match the return type of a gcc2
8239 builtin and then its argument prototype would still apply. */
8244 /* The GNU C library defines this for functions which it implements
8245 to always fail with ENOSYS. Some functions are actually named
8246 something starting with __ and the normal name is an alias. */
8247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8255 if { (eval echo configure
:8256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8257 eval "ac_cv_func_$ac_func=yes"
8259 echo "configure: failed program was:" >&5
8260 cat conftest.
$ac_ext >&5
8262 eval "ac_cv_func_$ac_func=no"
8267 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8268 echo "$ac_t""yes" 1>&6
8269 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8270 cat >> confdefs.h
<<EOF
8271 #define $ac_tr_func 1
8275 echo "$ac_t""no" 1>&6
8283 *-lsec*) for ac_func
in getspnam
8285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8286 echo "configure:8287: checking for $ac_func" >&5
8287 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8288 echo $ac_n "(cached) $ac_c" 1>&6
8290 cat > conftest.
$ac_ext <<EOF
8291 #line 8292 "configure"
8292 #include "confdefs.h"
8293 /* System header to define __stub macros and hopefully few prototypes,
8294 which can conflict with char $ac_func(); below. */
8296 /* Override any gcc2 internal prototype to avoid an error. */
8297 /* We use char because int might match the return type of a gcc2
8298 builtin and then its argument prototype would still apply. */
8303 /* The GNU C library defines this for functions which it implements
8304 to always fail with ENOSYS. Some functions are actually named
8305 something starting with __ and the normal name is an alias. */
8306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8314 if { (eval echo configure
:8315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8316 eval "ac_cv_func_$ac_func=yes"
8318 echo "configure: failed program was:" >&5
8319 cat conftest.
$ac_ext >&5
8321 eval "ac_cv_func_$ac_func=no"
8326 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8327 echo "$ac_t""yes" 1>&6
8328 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8329 cat >> confdefs.h
<<EOF
8330 #define $ac_tr_func 1
8334 echo "$ac_t""no" 1>&6
8338 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
8339 echo "configure:8340: checking for getspnam in -lsec" >&5
8340 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
8341 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8342 echo $ac_n "(cached) $ac_c" 1>&6
8344 ac_save_LIBS
="$LIBS"
8346 cat > conftest.
$ac_ext <<EOF
8347 #line 8348 "configure"
8348 #include "confdefs.h"
8349 /* Override any gcc2 internal prototype to avoid an error. */
8350 /* We use char because int might match the return type of a gcc2
8351 builtin and then its argument prototype would still apply. */
8358 if { (eval echo configure
:8359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8360 eval "ac_cv_lib_$ac_lib_var=yes"
8362 echo "configure: failed program was:" >&5
8363 cat conftest.
$ac_ext >&5
8365 eval "ac_cv_lib_$ac_lib_var=no"
8368 LIBS
="$ac_save_LIBS"
8371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8372 echo "$ac_t""yes" 1>&6
8373 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8374 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8375 cat >> confdefs.h
<<EOF
8376 #define $ac_tr_lib 1
8382 echo "$ac_t""no" 1>&6
8385 for ac_func
in getspnam
8387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8388 echo "configure:8389: checking for $ac_func" >&5
8389 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8390 echo $ac_n "(cached) $ac_c" 1>&6
8392 cat > conftest.
$ac_ext <<EOF
8393 #line 8394 "configure"
8394 #include "confdefs.h"
8395 /* System header to define __stub macros and hopefully few prototypes,
8396 which can conflict with char $ac_func(); below. */
8398 /* Override any gcc2 internal prototype to avoid an error. */
8399 /* We use char because int might match the return type of a gcc2
8400 builtin and then its argument prototype would still apply. */
8405 /* The GNU C library defines this for functions which it implements
8406 to always fail with ENOSYS. Some functions are actually named
8407 something starting with __ and the normal name is an alias. */
8408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8416 if { (eval echo configure
:8417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8418 eval "ac_cv_func_$ac_func=yes"
8420 echo "configure: failed program was:" >&5
8421 cat conftest.
$ac_ext >&5
8423 eval "ac_cv_func_$ac_func=no"
8428 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8429 echo "$ac_t""yes" 1>&6
8430 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8431 cat >> confdefs.h
<<EOF
8432 #define $ac_tr_func 1
8436 echo "$ac_t""no" 1>&6
8445 *-lsecurity*) for ac_func
in bigcrypt
8447 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8448 echo "configure:8449: checking for $ac_func" >&5
8449 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8450 echo $ac_n "(cached) $ac_c" 1>&6
8452 cat > conftest.
$ac_ext <<EOF
8453 #line 8454 "configure"
8454 #include "confdefs.h"
8455 /* System header to define __stub macros and hopefully few prototypes,
8456 which can conflict with char $ac_func(); below. */
8458 /* Override any gcc2 internal prototype to avoid an error. */
8459 /* We use char because int might match the return type of a gcc2
8460 builtin and then its argument prototype would still apply. */
8465 /* The GNU C library defines this for functions which it implements
8466 to always fail with ENOSYS. Some functions are actually named
8467 something starting with __ and the normal name is an alias. */
8468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8476 if { (eval echo configure
:8477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8478 eval "ac_cv_func_$ac_func=yes"
8480 echo "configure: failed program was:" >&5
8481 cat conftest.
$ac_ext >&5
8483 eval "ac_cv_func_$ac_func=no"
8488 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8489 echo "$ac_t""yes" 1>&6
8490 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8491 cat >> confdefs.h
<<EOF
8492 #define $ac_tr_func 1
8496 echo "$ac_t""no" 1>&6
8500 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8501 echo "configure:8502: checking for bigcrypt in -lsecurity" >&5
8502 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8503 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8504 echo $ac_n "(cached) $ac_c" 1>&6
8506 ac_save_LIBS
="$LIBS"
8507 LIBS
="-lsecurity $LIBS"
8508 cat > conftest.
$ac_ext <<EOF
8509 #line 8510 "configure"
8510 #include "confdefs.h"
8511 /* Override any gcc2 internal prototype to avoid an error. */
8512 /* We use char because int might match the return type of a gcc2
8513 builtin and then its argument prototype would still apply. */
8520 if { (eval echo configure
:8521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8522 eval "ac_cv_lib_$ac_lib_var=yes"
8524 echo "configure: failed program was:" >&5
8525 cat conftest.
$ac_ext >&5
8527 eval "ac_cv_lib_$ac_lib_var=no"
8530 LIBS
="$ac_save_LIBS"
8533 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8534 echo "$ac_t""yes" 1>&6
8535 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8536 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8537 cat >> confdefs.h
<<EOF
8538 #define $ac_tr_lib 1
8541 LIBS
="-lsecurity $LIBS"
8544 echo "$ac_t""no" 1>&6
8547 for ac_func
in bigcrypt
8549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8550 echo "configure:8551: checking for $ac_func" >&5
8551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8552 echo $ac_n "(cached) $ac_c" 1>&6
8554 cat > conftest.
$ac_ext <<EOF
8555 #line 8556 "configure"
8556 #include "confdefs.h"
8557 /* System header to define __stub macros and hopefully few prototypes,
8558 which can conflict with char $ac_func(); below. */
8560 /* Override any gcc2 internal prototype to avoid an error. */
8561 /* We use char because int might match the return type of a gcc2
8562 builtin and then its argument prototype would still apply. */
8567 /* The GNU C library defines this for functions which it implements
8568 to always fail with ENOSYS. Some functions are actually named
8569 something starting with __ and the normal name is an alias. */
8570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8578 if { (eval echo configure
:8579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8580 eval "ac_cv_func_$ac_func=yes"
8582 echo "configure: failed program was:" >&5
8583 cat conftest.
$ac_ext >&5
8585 eval "ac_cv_func_$ac_func=no"
8590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8591 echo "$ac_t""yes" 1>&6
8592 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8593 cat >> confdefs.h
<<EOF
8594 #define $ac_tr_func 1
8598 echo "$ac_t""no" 1>&6
8606 *-lsec*) for ac_func
in bigcrypt
8608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8609 echo "configure:8610: checking for $ac_func" >&5
8610 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8611 echo $ac_n "(cached) $ac_c" 1>&6
8613 cat > conftest.
$ac_ext <<EOF
8614 #line 8615 "configure"
8615 #include "confdefs.h"
8616 /* System header to define __stub macros and hopefully few prototypes,
8617 which can conflict with char $ac_func(); below. */
8619 /* Override any gcc2 internal prototype to avoid an error. */
8620 /* We use char because int might match the return type of a gcc2
8621 builtin and then its argument prototype would still apply. */
8626 /* The GNU C library defines this for functions which it implements
8627 to always fail with ENOSYS. Some functions are actually named
8628 something starting with __ and the normal name is an alias. */
8629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8637 if { (eval echo configure
:8638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8639 eval "ac_cv_func_$ac_func=yes"
8641 echo "configure: failed program was:" >&5
8642 cat conftest.
$ac_ext >&5
8644 eval "ac_cv_func_$ac_func=no"
8649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8650 echo "$ac_t""yes" 1>&6
8651 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8652 cat >> confdefs.h
<<EOF
8653 #define $ac_tr_func 1
8657 echo "$ac_t""no" 1>&6
8661 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8662 echo "configure:8663: checking for bigcrypt in -lsec" >&5
8663 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8664 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8665 echo $ac_n "(cached) $ac_c" 1>&6
8667 ac_save_LIBS
="$LIBS"
8669 cat > conftest.
$ac_ext <<EOF
8670 #line 8671 "configure"
8671 #include "confdefs.h"
8672 /* Override any gcc2 internal prototype to avoid an error. */
8673 /* We use char because int might match the return type of a gcc2
8674 builtin and then its argument prototype would still apply. */
8681 if { (eval echo configure
:8682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8683 eval "ac_cv_lib_$ac_lib_var=yes"
8685 echo "configure: failed program was:" >&5
8686 cat conftest.
$ac_ext >&5
8688 eval "ac_cv_lib_$ac_lib_var=no"
8691 LIBS
="$ac_save_LIBS"
8694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8695 echo "$ac_t""yes" 1>&6
8696 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8697 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8698 cat >> confdefs.h
<<EOF
8699 #define $ac_tr_lib 1
8705 echo "$ac_t""no" 1>&6
8708 for ac_func
in bigcrypt
8710 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8711 echo "configure:8712: checking for $ac_func" >&5
8712 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8713 echo $ac_n "(cached) $ac_c" 1>&6
8715 cat > conftest.
$ac_ext <<EOF
8716 #line 8717 "configure"
8717 #include "confdefs.h"
8718 /* System header to define __stub macros and hopefully few prototypes,
8719 which can conflict with char $ac_func(); below. */
8721 /* Override any gcc2 internal prototype to avoid an error. */
8722 /* We use char because int might match the return type of a gcc2
8723 builtin and then its argument prototype would still apply. */
8728 /* The GNU C library defines this for functions which it implements
8729 to always fail with ENOSYS. Some functions are actually named
8730 something starting with __ and the normal name is an alias. */
8731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8739 if { (eval echo configure
:8740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8741 eval "ac_cv_func_$ac_func=yes"
8743 echo "configure: failed program was:" >&5
8744 cat conftest.
$ac_ext >&5
8746 eval "ac_cv_func_$ac_func=no"
8751 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8752 echo "$ac_t""yes" 1>&6
8753 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8754 cat >> confdefs.h
<<EOF
8755 #define $ac_tr_func 1
8759 echo "$ac_t""no" 1>&6
8768 *-lsecurity*) for ac_func
in getprpwnam
8770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8771 echo "configure:8772: checking for $ac_func" >&5
8772 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8773 echo $ac_n "(cached) $ac_c" 1>&6
8775 cat > conftest.
$ac_ext <<EOF
8776 #line 8777 "configure"
8777 #include "confdefs.h"
8778 /* System header to define __stub macros and hopefully few prototypes,
8779 which can conflict with char $ac_func(); below. */
8781 /* Override any gcc2 internal prototype to avoid an error. */
8782 /* We use char because int might match the return type of a gcc2
8783 builtin and then its argument prototype would still apply. */
8788 /* The GNU C library defines this for functions which it implements
8789 to always fail with ENOSYS. Some functions are actually named
8790 something starting with __ and the normal name is an alias. */
8791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8799 if { (eval echo configure
:8800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8801 eval "ac_cv_func_$ac_func=yes"
8803 echo "configure: failed program was:" >&5
8804 cat conftest.
$ac_ext >&5
8806 eval "ac_cv_func_$ac_func=no"
8811 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8812 echo "$ac_t""yes" 1>&6
8813 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8814 cat >> confdefs.h
<<EOF
8815 #define $ac_tr_func 1
8819 echo "$ac_t""no" 1>&6
8823 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8824 echo "configure:8825: checking for getprpwnam in -lsecurity" >&5
8825 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8826 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8827 echo $ac_n "(cached) $ac_c" 1>&6
8829 ac_save_LIBS
="$LIBS"
8830 LIBS
="-lsecurity $LIBS"
8831 cat > conftest.
$ac_ext <<EOF
8832 #line 8833 "configure"
8833 #include "confdefs.h"
8834 /* Override any gcc2 internal prototype to avoid an error. */
8835 /* We use char because int might match the return type of a gcc2
8836 builtin and then its argument prototype would still apply. */
8843 if { (eval echo configure
:8844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8845 eval "ac_cv_lib_$ac_lib_var=yes"
8847 echo "configure: failed program was:" >&5
8848 cat conftest.
$ac_ext >&5
8850 eval "ac_cv_lib_$ac_lib_var=no"
8853 LIBS
="$ac_save_LIBS"
8856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8857 echo "$ac_t""yes" 1>&6
8858 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8859 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8860 cat >> confdefs.h
<<EOF
8861 #define $ac_tr_lib 1
8864 LIBS
="-lsecurity $LIBS"
8867 echo "$ac_t""no" 1>&6
8870 for ac_func
in getprpwnam
8872 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8873 echo "configure:8874: checking for $ac_func" >&5
8874 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8875 echo $ac_n "(cached) $ac_c" 1>&6
8877 cat > conftest.
$ac_ext <<EOF
8878 #line 8879 "configure"
8879 #include "confdefs.h"
8880 /* System header to define __stub macros and hopefully few prototypes,
8881 which can conflict with char $ac_func(); below. */
8883 /* Override any gcc2 internal prototype to avoid an error. */
8884 /* We use char because int might match the return type of a gcc2
8885 builtin and then its argument prototype would still apply. */
8890 /* The GNU C library defines this for functions which it implements
8891 to always fail with ENOSYS. Some functions are actually named
8892 something starting with __ and the normal name is an alias. */
8893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8901 if { (eval echo configure
:8902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8903 eval "ac_cv_func_$ac_func=yes"
8905 echo "configure: failed program was:" >&5
8906 cat conftest.
$ac_ext >&5
8908 eval "ac_cv_func_$ac_func=no"
8913 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8914 echo "$ac_t""yes" 1>&6
8915 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8916 cat >> confdefs.h
<<EOF
8917 #define $ac_tr_func 1
8921 echo "$ac_t""no" 1>&6
8929 *-lsec*) for ac_func
in getprpwnam
8931 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8932 echo "configure:8933: checking for $ac_func" >&5
8933 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8934 echo $ac_n "(cached) $ac_c" 1>&6
8936 cat > conftest.
$ac_ext <<EOF
8937 #line 8938 "configure"
8938 #include "confdefs.h"
8939 /* System header to define __stub macros and hopefully few prototypes,
8940 which can conflict with char $ac_func(); below. */
8942 /* Override any gcc2 internal prototype to avoid an error. */
8943 /* We use char because int might match the return type of a gcc2
8944 builtin and then its argument prototype would still apply. */
8949 /* The GNU C library defines this for functions which it implements
8950 to always fail with ENOSYS. Some functions are actually named
8951 something starting with __ and the normal name is an alias. */
8952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8960 if { (eval echo configure
:8961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8962 eval "ac_cv_func_$ac_func=yes"
8964 echo "configure: failed program was:" >&5
8965 cat conftest.
$ac_ext >&5
8967 eval "ac_cv_func_$ac_func=no"
8972 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8973 echo "$ac_t""yes" 1>&6
8974 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8975 cat >> confdefs.h
<<EOF
8976 #define $ac_tr_func 1
8980 echo "$ac_t""no" 1>&6
8984 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8985 echo "configure:8986: checking for getprpwnam in -lsec" >&5
8986 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8987 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8988 echo $ac_n "(cached) $ac_c" 1>&6
8990 ac_save_LIBS
="$LIBS"
8992 cat > conftest.
$ac_ext <<EOF
8993 #line 8994 "configure"
8994 #include "confdefs.h"
8995 /* Override any gcc2 internal prototype to avoid an error. */
8996 /* We use char because int might match the return type of a gcc2
8997 builtin and then its argument prototype would still apply. */
9004 if { (eval echo configure
:9005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9006 eval "ac_cv_lib_$ac_lib_var=yes"
9008 echo "configure: failed program was:" >&5
9009 cat conftest.
$ac_ext >&5
9011 eval "ac_cv_lib_$ac_lib_var=no"
9014 LIBS
="$ac_save_LIBS"
9017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9018 echo "$ac_t""yes" 1>&6
9019 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9020 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9021 cat >> confdefs.h
<<EOF
9022 #define $ac_tr_lib 1
9028 echo "$ac_t""no" 1>&6
9031 for ac_func
in getprpwnam
9033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9034 echo "configure:9035: checking for $ac_func" >&5
9035 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9036 echo $ac_n "(cached) $ac_c" 1>&6
9038 cat > conftest.
$ac_ext <<EOF
9039 #line 9040 "configure"
9040 #include "confdefs.h"
9041 /* System header to define __stub macros and hopefully few prototypes,
9042 which can conflict with char $ac_func(); below. */
9044 /* Override any gcc2 internal prototype to avoid an error. */
9045 /* We use char because int might match the return type of a gcc2
9046 builtin and then its argument prototype would still apply. */
9051 /* The GNU C library defines this for functions which it implements
9052 to always fail with ENOSYS. Some functions are actually named
9053 something starting with __ and the normal name is an alias. */
9054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9062 if { (eval echo configure
:9063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9064 eval "ac_cv_func_$ac_func=yes"
9066 echo "configure: failed program was:" >&5
9067 cat conftest.
$ac_ext >&5
9069 eval "ac_cv_func_$ac_func=no"
9074 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9075 echo "$ac_t""yes" 1>&6
9076 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9077 cat >> confdefs.h
<<EOF
9078 #define $ac_tr_func 1
9082 echo "$ac_t""no" 1>&6
9090 # this bit needs to be modified for each OS that is suported by
9091 # smbwrapper. You need to specify how to created a shared library and
9092 # how to compile C code to produce PIC object files
9094 # these are the defaults, good for lots of systems
9103 # Assume non-shared by default and override below
9105 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
9106 echo "configure:9107: checking ability to build shared libraries" >&5
9108 # and these are for particular systems
9110 *linux
*) cat >> confdefs.h
<<\EOF
9116 DYNEXP
="-Wl,--export-dynamic"
9118 SONAMEFLAG
="-Wl,-soname="
9119 cat >> confdefs.h
<<\EOF
9120 #define STAT_ST_BLOCKSIZE 512
9124 *solaris
*) cat >> confdefs.h
<<\EOF
9131 if test "${GCC}" = "yes"; then
9133 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
9138 ## ${CFLAGS} added for building 64-bit shared
9139 ## libs using Sun's Compiler
9140 LDSHFLAGS
="-G \${CFLAGS}"
9144 cat >> confdefs.h
<<\EOF
9145 #define STAT_ST_BLOCKSIZE 512
9149 *sunos
*) cat >> confdefs.h
<<\EOF
9155 SONAMEFLAG
="-Wl,-h,"
9156 PICFLAG
="-KPIC" # Is this correct for SunOS
9157 cat >> confdefs.h
<<\EOF
9158 #define STAT_ST_BLOCKSIZE 512
9162 *freebsd
*) BLDSHARED
="true"
9164 DYNEXP
="-Wl,--export-dynamic"
9165 SONAMEFLAG
="-Wl,-soname,"
9166 PICFLAG
="-fPIC -DPIC"
9167 cat >> confdefs.h
<<\EOF
9168 #define STAT_ST_BLOCKSIZE 512
9172 *openbsd
*) BLDSHARED
="true"
9174 DYNEXP
="-Wl,-Bdynamic"
9175 SONAMEFLAG
="-Wl,-soname,"
9177 cat >> confdefs.h
<<\EOF
9178 #define STAT_ST_BLOCKSIZE 512
9182 *irix
*) cat >> confdefs.h
<<\EOF
9187 *irix6
*) cat >> confdefs.h
<<\EOF
9193 ATTEMPT_WRAP32_BUILD
=yes
9195 LDSHFLAGS
="-set_version sgi1.0 -shared"
9196 SONAMEFLAG
="-soname "
9198 if test "${GCC}" = "yes"; then
9203 cat >> confdefs.h
<<\EOF
9204 #define STAT_ST_BLOCKSIZE 512
9208 *aix
*) cat >> confdefs.h
<<\EOF
9213 LDSHFLAGS
="-Wl,-bexpall,-bM:SRE,-bnoentry"
9214 DYNEXP
="-Wl,-brtl,-bexpall"
9216 if test "${GCC}" != "yes"; then
9217 ## for funky AIX compiler using strncpy()
9218 CFLAGS
="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
9221 cat >> confdefs.h
<<\EOF
9222 #define STAT_ST_BLOCKSIZE DEV_BSIZE
9226 *hpux
*) cat >> confdefs.h
<<\EOF
9231 # Use special PIC flags for the native HP-UX compiler.
9232 if test $ac_cv_prog_cc_Ae = yes; then
9235 LDSHFLAGS
="-B symbolic -b -z"
9240 cat >> confdefs.h
<<\EOF
9241 #define STAT_ST_BLOCKSIZE 8192
9245 *qnx
*) cat >> confdefs.h
<<\EOF
9249 cat >> confdefs.h
<<\EOF
9250 #define STAT_ST_BLOCKSIZE 512
9254 *osf
*) cat >> confdefs.h
<<\EOF
9260 SONAMEFLAG
="-Wl,-soname,"
9262 cat >> confdefs.h
<<\EOF
9263 #define STAT_ST_BLOCKSIZE 512
9267 *sco
*) cat >> confdefs.h
<<\EOF
9271 cat >> confdefs.h
<<\EOF
9272 #define STAT_ST_BLOCKSIZE 512
9276 *unixware
*) cat >> confdefs.h
<<\EOF
9282 SONAMEFLAG
="-Wl,-soname,"
9284 cat >> confdefs.h
<<\EOF
9285 #define STAT_ST_BLOCKSIZE 512
9289 *next2
*) cat >> confdefs.h
<<\EOF
9293 cat >> confdefs.h
<<\EOF
9294 #define STAT_ST_BLOCKSIZE 512
9298 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
9299 set dummy
groff; ac_word
=$2
9300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9301 echo "configure:9302: checking for $ac_word" >&5
9302 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
9303 echo $ac_n "(cached) $ac_c" 1>&6
9305 if test -n "$ROFF"; then
9306 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
9308 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
9310 for ac_dir
in $ac_dummy; do
9311 test -z "$ac_dir" && ac_dir
=.
9312 if test -f $ac_dir/$ac_word; then
9313 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
9320 ROFF
="$ac_cv_prog_ROFF"
9321 if test -n "$ROFF"; then
9322 echo "$ac_t""$ROFF" 1>&6
9324 echo "$ac_t""no" 1>&6
9327 cat >> confdefs.h
<<\EOF
9328 #define STAT_ST_BLOCKSIZE 512
9332 *sysv4
*) cat >> confdefs.h
<<\EOF
9337 *-univel-*) if test "$GCC" != yes ; then
9338 cat >> confdefs.h
<<\EOF
9339 #define HAVE_MEMSET 1
9346 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
9347 #define RELIANTUNIX 1
9351 cat >> confdefs.h
<<\EOF
9352 #define STAT_ST_BLOCKSIZE 512
9357 *sysv5
*) cat >> confdefs.h
<<\EOF
9361 if test "$GCC" != yes ; then
9362 cat >> confdefs.h
<<\EOF
9363 #define HAVE_MEMSET 1
9368 cat >> confdefs.h
<<\EOF
9369 #define STAT_ST_BLOCKSIZE 512
9373 *vos
*) cat >> confdefs.h
<<\EOF
9374 #define STAT_ST_BLOCKSIZE 4096
9381 cat >> confdefs.h
<<\EOF
9382 #define STAT_ST_BLOCKSIZE 512
9388 echo "$ac_t""$BLDSHARED" 1>&6
9389 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
9390 echo "configure:9391: checking linker flags for shared libraries" >&5
9391 echo "$ac_t""$LDSHFLAGS" 1>&6
9392 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
9393 echo "configure:9394: checking compiler flags for position-independent code" >&5
9394 echo "$ac_t""$PICFLAGS" 1>&6
9396 #######################################################
9397 # test whether building a shared library actually works
9398 if test $BLDSHARED = true
; then
9399 echo $ac_n "checking whether building shared libraries actually works""... $ac_c" 1>&6
9400 echo "configure:9401: checking whether building shared libraries actually works" >&5
9401 if eval "test \"`echo '$''{'ac_cv_shlib_works'+set}'`\" = set"; then
9402 echo $ac_n "(cached) $ac_c" 1>&6
9405 ac_cv_shlib_works
=no
9406 # try building a trivial shared library
9407 if test "$PICSUFFIX" = "po"; then
9408 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po
${srcdir-.}/tests
/shlib.c
&&
9409 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po
&&
9410 ac_cv_shlib_works
=yes
9412 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.
$PICSUFFIX ${srcdir-.}/tests
/shlib.c
&&
9413 mv shlib.
$PICSUFFIX shlib.po
&&
9414 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po
&&
9415 ac_cv_shlib_works
=yes
9417 rm -f shlib.so shlib.po
9421 echo "$ac_t""$ac_cv_shlib_works" 1>&6
9422 if test $ac_cv_shlib_works = no
; then
9429 echo $ac_n "checking for long long""... $ac_c" 1>&6
9430 echo "configure:9431: checking for long long" >&5
9431 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
9432 echo $ac_n "(cached) $ac_c" 1>&6
9435 if test "$cross_compiling" = yes; then
9436 samba_cv_have_longlong
=cross
9438 cat > conftest.
$ac_ext <<EOF
9439 #line 9440 "configure"
9440 #include "confdefs.h"
9442 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
9444 if { (eval echo configure
:9445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9446 samba_cv_have_longlong
=yes
9448 echo "configure: failed program was:" >&5
9449 cat conftest.
$ac_ext >&5
9451 samba_cv_have_longlong
=no
9458 echo "$ac_t""$samba_cv_have_longlong" 1>&6
9459 if test x
"$samba_cv_have_longlong" = x
"yes"; then
9460 cat >> confdefs.h
<<\EOF
9461 #define HAVE_LONGLONG 1
9467 # Check if the compiler supports the LL prefix on long long integers.
9470 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9471 echo "configure:9472: checking for LL suffix on long long integers" >&5
9472 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9473 echo $ac_n "(cached) $ac_c" 1>&6
9476 cat > conftest.
$ac_ext <<EOF
9477 #line 9478 "configure"
9478 #include "confdefs.h"
9481 long long i = 0x8000000000LL
9484 if { (eval echo configure
:9485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9486 samba_cv_compiler_supports_ll
=yes
9488 echo "configure: failed program was:" >&5
9489 cat conftest.
$ac_ext >&5
9491 samba_cv_compiler_supports_ll
=no
9496 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9497 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
9498 cat >> confdefs.h
<<\EOF
9499 #define COMPILER_SUPPORTS_LL 1
9505 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9506 echo "configure:9507: checking for 64 bit off_t" >&5
9507 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9508 echo $ac_n "(cached) $ac_c" 1>&6
9511 if test "$cross_compiling" = yes; then
9512 samba_cv_SIZEOF_OFF_T
=cross
9514 cat > conftest.
$ac_ext <<EOF
9515 #line 9516 "configure"
9516 #include "confdefs.h"
9518 #include <sys/stat.h>
9519 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9521 if { (eval echo configure
:9522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9523 samba_cv_SIZEOF_OFF_T
=yes
9525 echo "configure: failed program was:" >&5
9526 cat conftest.
$ac_ext >&5
9528 samba_cv_SIZEOF_OFF_T
=no
9535 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9536 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
9537 cat >> confdefs.h
<<\EOF
9538 #define SIZEOF_OFF_T 8
9543 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9544 echo "configure:9545: checking for off64_t" >&5
9545 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9546 echo $ac_n "(cached) $ac_c" 1>&6
9549 if test "$cross_compiling" = yes; then
9550 samba_cv_HAVE_OFF64_T
=cross
9552 cat > conftest.
$ac_ext <<EOF
9553 #line 9554 "configure"
9554 #include "confdefs.h"
9556 #if defined(HAVE_UNISTD_H)
9560 #include <sys/stat.h>
9561 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9563 if { (eval echo configure
:9564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9565 samba_cv_HAVE_OFF64_T
=yes
9567 echo "configure: failed program was:" >&5
9568 cat conftest.
$ac_ext >&5
9570 samba_cv_HAVE_OFF64_T
=no
9577 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9578 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
9579 cat >> confdefs.h
<<\EOF
9580 #define HAVE_OFF64_T 1
9585 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9586 echo "configure:9587: checking for 64 bit ino_t" >&5
9587 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9588 echo $ac_n "(cached) $ac_c" 1>&6
9591 if test "$cross_compiling" = yes; then
9592 samba_cv_SIZEOF_INO_T
=cross
9594 cat > conftest.
$ac_ext <<EOF
9595 #line 9596 "configure"
9596 #include "confdefs.h"
9598 #include <sys/stat.h>
9599 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9601 if { (eval echo configure
:9602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9603 samba_cv_SIZEOF_INO_T
=yes
9605 echo "configure: failed program was:" >&5
9606 cat conftest.
$ac_ext >&5
9608 samba_cv_SIZEOF_INO_T
=no
9615 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9616 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
9617 cat >> confdefs.h
<<\EOF
9618 #define SIZEOF_INO_T 8
9623 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9624 echo "configure:9625: checking for ino64_t" >&5
9625 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9626 echo $ac_n "(cached) $ac_c" 1>&6
9629 if test "$cross_compiling" = yes; then
9630 samba_cv_HAVE_INO64_T
=cross
9632 cat > conftest.
$ac_ext <<EOF
9633 #line 9634 "configure"
9634 #include "confdefs.h"
9636 #if defined(HAVE_UNISTD_H)
9640 #include <sys/stat.h>
9641 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9643 if { (eval echo configure
:9644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9645 samba_cv_HAVE_INO64_T
=yes
9647 echo "configure: failed program was:" >&5
9648 cat conftest.
$ac_ext >&5
9650 samba_cv_HAVE_INO64_T
=no
9657 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9658 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
9659 cat >> confdefs.h
<<\EOF
9660 #define HAVE_INO64_T 1
9665 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9666 echo "configure:9667: checking for dev64_t" >&5
9667 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9668 echo $ac_n "(cached) $ac_c" 1>&6
9671 if test "$cross_compiling" = yes; then
9672 samba_cv_HAVE_DEV64_T
=cross
9674 cat > conftest.
$ac_ext <<EOF
9675 #line 9676 "configure"
9676 #include "confdefs.h"
9678 #if defined(HAVE_UNISTD_H)
9682 #include <sys/stat.h>
9683 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9685 if { (eval echo configure
:9686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9687 samba_cv_HAVE_DEV64_T
=yes
9689 echo "configure: failed program was:" >&5
9690 cat conftest.
$ac_ext >&5
9692 samba_cv_HAVE_DEV64_T
=no
9699 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9700 if test x
"$samba_cv_HAVE_DEV64_T" = x
"yes"; then
9701 cat >> confdefs.h
<<\EOF
9702 #define HAVE_DEV64_T 1
9707 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9708 echo "configure:9709: checking for struct dirent64" >&5
9709 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9710 echo $ac_n "(cached) $ac_c" 1>&6
9713 cat > conftest.
$ac_ext <<EOF
9714 #line 9715 "configure"
9715 #include "confdefs.h"
9717 #if defined(HAVE_UNISTD_H)
9720 #include <sys/types.h>
9726 if { (eval echo configure
:9727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9728 samba_cv_HAVE_STRUCT_DIRENT64
=yes
9730 echo "configure: failed program was:" >&5
9731 cat conftest.
$ac_ext >&5
9733 samba_cv_HAVE_STRUCT_DIRENT64
=no
9738 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9739 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes" && test x
"$ac_cv_func_readdir64" = x
"yes"; then
9740 cat >> confdefs.h
<<\EOF
9741 #define HAVE_STRUCT_DIRENT64 1
9746 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9747 echo "configure:9748: checking for major macro" >&5
9748 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9749 echo $ac_n "(cached) $ac_c" 1>&6
9752 if test "$cross_compiling" = yes; then
9753 samba_cv_HAVE_DEVICE_MAJOR_FN
=cross
9755 cat > conftest.
$ac_ext <<EOF
9756 #line 9757 "configure"
9757 #include "confdefs.h"
9759 #if defined(HAVE_UNISTD_H)
9762 #include <sys/types.h>
9763 main() { dev_t dev; int i = major(dev); return 0; }
9765 if { (eval echo configure
:9766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9767 samba_cv_HAVE_DEVICE_MAJOR_FN
=yes
9769 echo "configure: failed program was:" >&5
9770 cat conftest.
$ac_ext >&5
9772 samba_cv_HAVE_DEVICE_MAJOR_FN
=no
9779 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9780 if test x
"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x
"yes"; then
9781 cat >> confdefs.h
<<\EOF
9782 #define HAVE_DEVICE_MAJOR_FN 1
9787 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9788 echo "configure:9789: checking for minor macro" >&5
9789 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9790 echo $ac_n "(cached) $ac_c" 1>&6
9793 if test "$cross_compiling" = yes; then
9794 samba_cv_HAVE_DEVICE_MINOR_FN
=cross
9796 cat > conftest.
$ac_ext <<EOF
9797 #line 9798 "configure"
9798 #include "confdefs.h"
9800 #if defined(HAVE_UNISTD_H)
9803 #include <sys/types.h>
9804 main() { dev_t dev; int i = minor(dev); return 0; }
9806 if { (eval echo configure
:9807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9808 samba_cv_HAVE_DEVICE_MINOR_FN
=yes
9810 echo "configure: failed program was:" >&5
9811 cat conftest.
$ac_ext >&5
9813 samba_cv_HAVE_DEVICE_MINOR_FN
=no
9820 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9821 if test x
"$samba_cv_HAVE_DEVICE_MINOR_FN" = x
"yes"; then
9822 cat >> confdefs.h
<<\EOF
9823 #define HAVE_DEVICE_MINOR_FN 1
9828 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9829 echo "configure:9830: checking for unsigned char" >&5
9830 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9831 echo $ac_n "(cached) $ac_c" 1>&6
9834 if test "$cross_compiling" = yes; then
9835 samba_cv_HAVE_UNSIGNED_CHAR
=cross
9837 cat > conftest.
$ac_ext <<EOF
9838 #line 9839 "configure"
9839 #include "confdefs.h"
9841 main() { char c; c=250; exit((c > 0)?0:1); }
9843 if { (eval echo configure
:9844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9845 samba_cv_HAVE_UNSIGNED_CHAR
=yes
9847 echo "configure: failed program was:" >&5
9848 cat conftest.
$ac_ext >&5
9850 samba_cv_HAVE_UNSIGNED_CHAR
=no
9857 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9858 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
9859 cat >> confdefs.h
<<\EOF
9860 #define HAVE_UNSIGNED_CHAR 1
9865 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9866 echo "configure:9867: checking for sin_len in sock" >&5
9867 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9868 echo $ac_n "(cached) $ac_c" 1>&6
9871 cat > conftest.
$ac_ext <<EOF
9872 #line 9873 "configure"
9873 #include "confdefs.h"
9874 #include <sys/types.h>
9875 #include <sys/socket.h>
9876 #include <netinet/in.h>
9878 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9881 if { (eval echo configure
:9882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9883 samba_cv_HAVE_SOCK_SIN_LEN
=yes
9885 echo "configure: failed program was:" >&5
9886 cat conftest.
$ac_ext >&5
9888 samba_cv_HAVE_SOCK_SIN_LEN
=no
9893 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9894 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
9895 cat >> confdefs.h
<<\EOF
9896 #define HAVE_SOCK_SIN_LEN 1
9901 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9902 echo "configure:9903: checking whether seekdir returns void" >&5
9903 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9904 echo $ac_n "(cached) $ac_c" 1>&6
9907 cat > conftest.
$ac_ext <<EOF
9908 #line 9909 "configure"
9909 #include "confdefs.h"
9910 #include <sys/types.h>
9912 void seekdir(DIR *d, long loc) { return; }
9917 if { (eval echo configure
:9918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9919 samba_cv_SEEKDIR_RETURNS_VOID
=yes
9921 echo "configure: failed program was:" >&5
9922 cat conftest.
$ac_ext >&5
9924 samba_cv_SEEKDIR_RETURNS_VOID
=no
9929 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9930 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
9931 cat >> confdefs.h
<<\EOF
9932 #define SEEKDIR_RETURNS_VOID 1
9937 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9938 echo "configure:9939: checking for __FUNCTION__ macro" >&5
9939 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9940 echo $ac_n "(cached) $ac_c" 1>&6
9943 cat > conftest.
$ac_ext <<EOF
9944 #line 9945 "configure"
9945 #include "confdefs.h"
9948 printf("%s\n", __FUNCTION__);
9951 if { (eval echo configure
:9952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9953 samba_cv_HAVE_FUNCTION_MACRO
=yes
9955 echo "configure: failed program was:" >&5
9956 cat conftest.
$ac_ext >&5
9958 samba_cv_HAVE_FUNCTION_MACRO
=no
9963 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9964 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
9965 cat >> confdefs.h
<<\EOF
9966 #define HAVE_FUNCTION_MACRO 1
9971 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9972 echo "configure:9973: checking if gettimeofday takes tz argument" >&5
9973 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9974 echo $ac_n "(cached) $ac_c" 1>&6
9977 if test "$cross_compiling" = yes; then
9978 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
9980 cat > conftest.
$ac_ext <<EOF
9981 #line 9982 "configure"
9982 #include "confdefs.h"
9984 #include <sys/time.h>
9986 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9988 if { (eval echo configure
:9989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9990 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
9992 echo "configure: failed program was:" >&5
9993 cat conftest.
$ac_ext >&5
9995 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
10002 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
10003 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
10004 cat >> confdefs.h
<<\EOF
10005 #define HAVE_GETTIMEOFDAY_TZ 1
10010 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
10011 echo "configure:10012: checking for __va_copy" >&5
10012 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
10013 echo $ac_n "(cached) $ac_c" 1>&6
10016 cat > conftest.
$ac_ext <<EOF
10017 #line 10018 "configure"
10018 #include "confdefs.h"
10019 #include <stdarg.h>
10022 __va_copy(ap1,ap2);
10025 if { (eval echo configure
:10026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10027 samba_cv_HAVE_VA_COPY
=yes
10029 echo "configure: failed program was:" >&5
10030 cat conftest.
$ac_ext >&5
10032 samba_cv_HAVE_VA_COPY
=no
10037 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
10038 if test x
"$samba_cv_HAVE_VA_COPY" = x
"yes"; then
10039 cat >> confdefs.h
<<\EOF
10040 #define HAVE_VA_COPY 1
10045 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
10046 echo "configure:10047: checking for C99 vsnprintf" >&5
10047 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
10048 echo $ac_n "(cached) $ac_c" 1>&6
10051 if test "$cross_compiling" = yes; then
10052 samba_cv_HAVE_C99_VSNPRINTF
=cross
10054 cat > conftest.
$ac_ext <<EOF
10055 #line 10056 "configure"
10056 #include "confdefs.h"
10058 #include <sys/types.h>
10059 #include <stdarg.h>
10060 void foo(const char *format, ...) {
10065 va_start(ap, format);
10066 len = vsnprintf(buf, 0, format, ap);
10068 if (len != 5) exit(1);
10070 va_start(ap, format);
10071 len = vsnprintf(0, 0, format, ap);
10073 if (len != 5) exit(1);
10075 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
10079 main() { foo("hello"); }
10082 if { (eval echo configure
:10083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10084 samba_cv_HAVE_C99_VSNPRINTF
=yes
10086 echo "configure: failed program was:" >&5
10087 cat conftest.
$ac_ext >&5
10089 samba_cv_HAVE_C99_VSNPRINTF
=no
10096 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
10097 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
10098 cat >> confdefs.h
<<\EOF
10099 #define HAVE_C99_VSNPRINTF 1
10104 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
10105 echo "configure:10106: checking for broken readdir" >&5
10106 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
10107 echo $ac_n "(cached) $ac_c" 1>&6
10110 if test "$cross_compiling" = yes; then
10111 samba_cv_HAVE_BROKEN_READDIR
=cross
10113 cat > conftest.
$ac_ext <<EOF
10114 #line 10115 "configure"
10115 #include "confdefs.h"
10116 #include <sys/types.h>
10117 #include <dirent.h>
10118 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
10119 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
10120 di->d_name[0] == 0) exit(0); exit(1);}
10122 if { (eval echo configure
:10123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10124 samba_cv_HAVE_BROKEN_READDIR
=yes
10126 echo "configure: failed program was:" >&5
10127 cat conftest.
$ac_ext >&5
10129 samba_cv_HAVE_BROKEN_READDIR
=no
10136 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
10137 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
10138 cat >> confdefs.h
<<\EOF
10139 #define HAVE_BROKEN_READDIR 1
10144 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
10145 echo "configure:10146: checking for utimbuf" >&5
10146 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
10147 echo $ac_n "(cached) $ac_c" 1>&6
10150 cat > conftest.
$ac_ext <<EOF
10151 #line 10152 "configure"
10152 #include "confdefs.h"
10153 #include <sys/types.h>
10156 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
10159 if { (eval echo configure
:10160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10161 samba_cv_HAVE_UTIMBUF
=yes
10163 echo "configure: failed program was:" >&5
10164 cat conftest.
$ac_ext >&5
10166 samba_cv_HAVE_UTIMBUF
=no
10171 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
10172 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
10173 cat >> confdefs.h
<<\EOF
10174 #define HAVE_UTIMBUF 1
10180 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
10182 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10183 echo "configure:10184: checking for $ac_func" >&5
10184 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10185 echo $ac_n "(cached) $ac_c" 1>&6
10187 cat > conftest.
$ac_ext <<EOF
10188 #line 10189 "configure"
10189 #include "confdefs.h"
10190 /* System header to define __stub macros and hopefully few prototypes,
10191 which can conflict with char $ac_func(); below. */
10192 #include <assert.h>
10193 /* Override any gcc2 internal prototype to avoid an error. */
10194 /* We use char because int might match the return type of a gcc2
10195 builtin and then its argument prototype would still apply. */
10200 /* The GNU C library defines this for functions which it implements
10201 to always fail with ENOSYS. Some functions are actually named
10202 something starting with __ and the normal name is an alias. */
10203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10211 if { (eval echo configure
:10212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10213 eval "ac_cv_func_$ac_func=yes"
10215 echo "configure: failed program was:" >&5
10216 cat conftest.
$ac_ext >&5
10218 eval "ac_cv_func_$ac_func=no"
10223 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10224 echo "$ac_t""yes" 1>&6
10225 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10226 cat >> confdefs.h
<<EOF
10227 #define $ac_tr_func 1
10231 echo "$ac_t""no" 1>&6
10236 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
10237 echo "configure:10238: checking for ut_name in utmp" >&5
10238 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
10239 echo $ac_n "(cached) $ac_c" 1>&6
10242 cat > conftest.
$ac_ext <<EOF
10243 #line 10244 "configure"
10244 #include "confdefs.h"
10245 #include <sys/types.h>
10248 struct utmp ut; ut.ut_name[0] = 'a';
10251 if { (eval echo configure
:10252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10253 samba_cv_HAVE_UT_UT_NAME
=yes
10255 echo "configure: failed program was:" >&5
10256 cat conftest.
$ac_ext >&5
10258 samba_cv_HAVE_UT_UT_NAME
=no
10263 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
10264 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
10265 cat >> confdefs.h
<<\EOF
10266 #define HAVE_UT_UT_NAME 1
10271 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
10272 echo "configure:10273: checking for ut_user in utmp" >&5
10273 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
10274 echo $ac_n "(cached) $ac_c" 1>&6
10277 cat > conftest.
$ac_ext <<EOF
10278 #line 10279 "configure"
10279 #include "confdefs.h"
10280 #include <sys/types.h>
10283 struct utmp ut; ut.ut_user[0] = 'a';
10286 if { (eval echo configure
:10287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10288 samba_cv_HAVE_UT_UT_USER
=yes
10290 echo "configure: failed program was:" >&5
10291 cat conftest.
$ac_ext >&5
10293 samba_cv_HAVE_UT_UT_USER
=no
10298 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
10299 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
10300 cat >> confdefs.h
<<\EOF
10301 #define HAVE_UT_UT_USER 1
10306 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
10307 echo "configure:10308: checking for ut_id in utmp" >&5
10308 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
10309 echo $ac_n "(cached) $ac_c" 1>&6
10312 cat > conftest.
$ac_ext <<EOF
10313 #line 10314 "configure"
10314 #include "confdefs.h"
10315 #include <sys/types.h>
10318 struct utmp ut; ut.ut_id[0] = 'a';
10321 if { (eval echo configure
:10322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10323 samba_cv_HAVE_UT_UT_ID
=yes
10325 echo "configure: failed program was:" >&5
10326 cat conftest.
$ac_ext >&5
10328 samba_cv_HAVE_UT_UT_ID
=no
10333 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
10334 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
10335 cat >> confdefs.h
<<\EOF
10336 #define HAVE_UT_UT_ID 1
10341 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
10342 echo "configure:10343: checking for ut_host in utmp" >&5
10343 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
10344 echo $ac_n "(cached) $ac_c" 1>&6
10347 cat > conftest.
$ac_ext <<EOF
10348 #line 10349 "configure"
10349 #include "confdefs.h"
10350 #include <sys/types.h>
10353 struct utmp ut; ut.ut_host[0] = 'a';
10356 if { (eval echo configure
:10357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10358 samba_cv_HAVE_UT_UT_HOST
=yes
10360 echo "configure: failed program was:" >&5
10361 cat conftest.
$ac_ext >&5
10363 samba_cv_HAVE_UT_UT_HOST
=no
10368 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
10369 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
10370 cat >> confdefs.h
<<\EOF
10371 #define HAVE_UT_UT_HOST 1
10376 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
10377 echo "configure:10378: checking for ut_time in utmp" >&5
10378 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
10379 echo $ac_n "(cached) $ac_c" 1>&6
10382 cat > conftest.
$ac_ext <<EOF
10383 #line 10384 "configure"
10384 #include "confdefs.h"
10385 #include <sys/types.h>
10388 struct utmp ut; time_t t; ut.ut_time = t;
10391 if { (eval echo configure
:10392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10393 samba_cv_HAVE_UT_UT_TIME
=yes
10395 echo "configure: failed program was:" >&5
10396 cat conftest.
$ac_ext >&5
10398 samba_cv_HAVE_UT_UT_TIME
=no
10403 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10404 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
10405 cat >> confdefs.h
<<\EOF
10406 #define HAVE_UT_UT_TIME 1
10411 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10412 echo "configure:10413: checking for ut_tv in utmp" >&5
10413 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10414 echo $ac_n "(cached) $ac_c" 1>&6
10417 cat > conftest.
$ac_ext <<EOF
10418 #line 10419 "configure"
10419 #include "confdefs.h"
10420 #include <sys/types.h>
10423 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10426 if { (eval echo configure
:10427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10428 samba_cv_HAVE_UT_UT_TV
=yes
10430 echo "configure: failed program was:" >&5
10431 cat conftest.
$ac_ext >&5
10433 samba_cv_HAVE_UT_UT_TV
=no
10438 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10439 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
10440 cat >> confdefs.h
<<\EOF
10441 #define HAVE_UT_UT_TV 1
10446 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10447 echo "configure:10448: checking for ut_type in utmp" >&5
10448 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10449 echo $ac_n "(cached) $ac_c" 1>&6
10452 cat > conftest.
$ac_ext <<EOF
10453 #line 10454 "configure"
10454 #include "confdefs.h"
10455 #include <sys/types.h>
10458 struct utmp ut; ut.ut_type = 0;
10461 if { (eval echo configure
:10462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10463 samba_cv_HAVE_UT_UT_TYPE
=yes
10465 echo "configure: failed program was:" >&5
10466 cat conftest.
$ac_ext >&5
10468 samba_cv_HAVE_UT_UT_TYPE
=no
10473 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10474 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
10475 cat >> confdefs.h
<<\EOF
10476 #define HAVE_UT_UT_TYPE 1
10481 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10482 echo "configure:10483: checking for ut_pid in utmp" >&5
10483 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10484 echo $ac_n "(cached) $ac_c" 1>&6
10487 cat > conftest.
$ac_ext <<EOF
10488 #line 10489 "configure"
10489 #include "confdefs.h"
10490 #include <sys/types.h>
10493 struct utmp ut; ut.ut_pid = 0;
10496 if { (eval echo configure
:10497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10498 samba_cv_HAVE_UT_UT_PID
=yes
10500 echo "configure: failed program was:" >&5
10501 cat conftest.
$ac_ext >&5
10503 samba_cv_HAVE_UT_UT_PID
=no
10508 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10509 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
10510 cat >> confdefs.h
<<\EOF
10511 #define HAVE_UT_UT_PID 1
10516 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10517 echo "configure:10518: checking for ut_exit in utmp" >&5
10518 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10519 echo $ac_n "(cached) $ac_c" 1>&6
10522 cat > conftest.
$ac_ext <<EOF
10523 #line 10524 "configure"
10524 #include "confdefs.h"
10525 #include <sys/types.h>
10528 struct utmp ut; ut.ut_exit.e_exit = 0;
10531 if { (eval echo configure
:10532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10533 samba_cv_HAVE_UT_UT_EXIT
=yes
10535 echo "configure: failed program was:" >&5
10536 cat conftest.
$ac_ext >&5
10538 samba_cv_HAVE_UT_UT_EXIT
=no
10543 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10544 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
10545 cat >> confdefs.h
<<\EOF
10546 #define HAVE_UT_UT_EXIT 1
10551 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10552 echo "configure:10553: checking for ut_addr in utmp" >&5
10553 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10554 echo $ac_n "(cached) $ac_c" 1>&6
10557 cat > conftest.
$ac_ext <<EOF
10558 #line 10559 "configure"
10559 #include "confdefs.h"
10560 #include <sys/types.h>
10563 struct utmp ut; ut.ut_addr = 0;
10566 if { (eval echo configure
:10567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10568 samba_cv_HAVE_UT_UT_ADDR
=yes
10570 echo "configure: failed program was:" >&5
10571 cat conftest.
$ac_ext >&5
10573 samba_cv_HAVE_UT_UT_ADDR
=no
10578 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10579 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
10580 cat >> confdefs.h
<<\EOF
10581 #define HAVE_UT_UT_ADDR 1
10586 if test x
$ac_cv_func_pututline = xyes
; then
10587 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10588 echo "configure:10589: checking whether pututline returns pointer" >&5
10589 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10590 echo $ac_n "(cached) $ac_c" 1>&6
10593 cat > conftest.
$ac_ext <<EOF
10594 #line 10595 "configure"
10595 #include "confdefs.h"
10596 #include <sys/types.h>
10599 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10602 if { (eval echo configure
:10603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10604 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
10606 echo "configure: failed program was:" >&5
10607 cat conftest.
$ac_ext >&5
10609 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
10614 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10615 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
10616 cat >> confdefs.h
<<\EOF
10617 #define PUTUTLINE_RETURNS_UTMP 1
10623 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10624 echo "configure:10625: checking for ut_syslen in utmpx" >&5
10625 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10626 echo $ac_n "(cached) $ac_c" 1>&6
10629 cat > conftest.
$ac_ext <<EOF
10630 #line 10631 "configure"
10631 #include "confdefs.h"
10632 #include <sys/types.h>
10635 struct utmpx ux; ux.ut_syslen = 0;
10638 if { (eval echo configure
:10639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10640 samba_cv_HAVE_UX_UT_SYSLEN
=yes
10642 echo "configure: failed program was:" >&5
10643 cat conftest.
$ac_ext >&5
10645 samba_cv_HAVE_UX_UT_SYSLEN
=no
10650 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10651 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
10652 cat >> confdefs.h
<<\EOF
10653 #define HAVE_UX_UT_SYSLEN 1
10659 #################################################
10660 # check for libiconv support
10661 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
10662 echo "configure:10663: checking whether to use libiconv" >&5
10663 # Check whether --with-libiconv or --without-libiconv was given.
10664 if test "${with_libiconv+set}" = set; then
10665 withval
="$with_libiconv"
10668 echo "$ac_t""no" 1>&6
10671 echo "$ac_t""yes" 1>&6
10672 CFLAGS
="$CFLAGS -I$withval/include"
10673 LDFLAGS
="$LDFLAGS -L$withval/lib"
10674 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
10675 echo "configure:10676: checking for iconv_open in -liconv" >&5
10676 ac_lib_var
=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
10677 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10678 echo $ac_n "(cached) $ac_c" 1>&6
10680 ac_save_LIBS
="$LIBS"
10681 LIBS
="-liconv $LIBS"
10682 cat > conftest.
$ac_ext <<EOF
10683 #line 10684 "configure"
10684 #include "confdefs.h"
10685 /* Override any gcc2 internal prototype to avoid an error. */
10686 /* We use char because int might match the return type of a gcc2
10687 builtin and then its argument prototype would still apply. */
10694 if { (eval echo configure
:10695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10696 eval "ac_cv_lib_$ac_lib_var=yes"
10698 echo "configure: failed program was:" >&5
10699 cat conftest.
$ac_ext >&5
10701 eval "ac_cv_lib_$ac_lib_var=no"
10704 LIBS
="$ac_save_LIBS"
10707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10708 echo "$ac_t""yes" 1>&6
10709 ac_tr_lib
=HAVE_LIB
`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10710 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10711 cat >> confdefs.h
<<EOF
10712 #define $ac_tr_lib 1
10715 LIBS
="-liconv $LIBS"
10718 echo "$ac_t""no" 1>&6
10721 cat >> confdefs.h
<<EOF
10722 #define WITH_LIBICONV "${withval}"
10728 echo "$ac_t""no" 1>&6
10735 # check for iconv in libc
10736 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
10737 echo "configure:10738: checking for working iconv" >&5
10738 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
10739 echo $ac_n "(cached) $ac_c" 1>&6
10742 if test "$cross_compiling" = yes; then
10743 samba_cv_HAVE_NATIVE_ICONV
=cross
10745 cat > conftest.
$ac_ext <<EOF
10746 #line 10747 "configure"
10747 #include "confdefs.h"
10751 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
10752 if (cd == 0 || cd == (iconv_t)-1) return -1;
10757 if { (eval echo configure
:10758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10759 samba_cv_HAVE_NATIVE_ICONV
=yes
10761 echo "configure: failed program was:" >&5
10762 cat conftest.
$ac_ext >&5
10764 samba_cv_HAVE_NATIVE_ICONV
=no
10771 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
10772 if test x
"$samba_cv_HAVE_NATIVE_ICONV" = x
"yes"; then
10773 cat >> confdefs.h
<<\EOF
10774 #define HAVE_NATIVE_ICONV 1
10780 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10781 echo "configure:10782: checking for Linux kernel oplocks" >&5
10782 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10783 echo $ac_n "(cached) $ac_c" 1>&6
10786 if test "$cross_compiling" = yes; then
10787 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
10789 cat > conftest.
$ac_ext <<EOF
10790 #line 10791 "configure"
10791 #include "confdefs.h"
10793 #include <sys/types.h>
10796 #define F_GETLEASE 1025
10799 int fd = open("/dev/null", O_RDONLY);
10800 return fcntl(fd, F_GETLEASE, 0) == -1;
10804 if { (eval echo configure
:10805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10806 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
10808 echo "configure: failed program was:" >&5
10809 cat conftest.
$ac_ext >&5
10811 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
10818 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10819 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
10820 cat >> confdefs.h
<<\EOF
10821 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10826 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10827 echo "configure:10828: checking for kernel change notify support" >&5
10828 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10829 echo $ac_n "(cached) $ac_c" 1>&6
10832 if test "$cross_compiling" = yes; then
10833 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
10835 cat > conftest.
$ac_ext <<EOF
10836 #line 10837 "configure"
10837 #include "confdefs.h"
10839 #include <sys/types.h>
10841 #include <signal.h>
10843 #define F_NOTIFY 1026
10846 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10850 if { (eval echo configure
:10851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10852 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
10854 echo "configure: failed program was:" >&5
10855 cat conftest.
$ac_ext >&5
10857 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
10864 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10865 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
10866 cat >> confdefs.h
<<\EOF
10867 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10872 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10873 echo "configure:10874: checking for kernel share modes" >&5
10874 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10875 echo $ac_n "(cached) $ac_c" 1>&6
10878 if test "$cross_compiling" = yes; then
10879 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
10881 cat > conftest.
$ac_ext <<EOF
10882 #line 10883 "configure"
10883 #include "confdefs.h"
10885 #include <sys/types.h>
10887 #include <signal.h>
10888 #include <sys/file.h>
10890 #define LOCK_MAND 32
10891 #define LOCK_READ 64
10894 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10898 if { (eval echo configure
:10899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10900 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
10902 echo "configure: failed program was:" >&5
10903 cat conftest.
$ac_ext >&5
10905 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
10912 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10913 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
10914 cat >> confdefs.h
<<\EOF
10915 #define HAVE_KERNEL_SHARE_MODES 1
10923 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10924 echo "configure:10925: checking for IRIX kernel oplock type definitions" >&5
10925 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10926 echo $ac_n "(cached) $ac_c" 1>&6
10929 cat > conftest.
$ac_ext <<EOF
10930 #line 10931 "configure"
10931 #include "confdefs.h"
10932 #include <sys/types.h>
10935 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10938 if { (eval echo configure
:10939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10940 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
10942 echo "configure: failed program was:" >&5
10943 cat conftest.
$ac_ext >&5
10945 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
10950 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10951 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
10952 cat >> confdefs.h
<<\EOF
10953 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10958 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10959 echo "configure:10960: checking for irix specific capabilities" >&5
10960 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10961 echo $ac_n "(cached) $ac_c" 1>&6
10964 if test "$cross_compiling" = yes; then
10965 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
10967 cat > conftest.
$ac_ext <<EOF
10968 #line 10969 "configure"
10969 #include "confdefs.h"
10970 #include <sys/types.h>
10971 #include <sys/capability.h>
10974 if ((cap = cap_get_proc()) == NULL)
10976 cap->cap_effective |= CAP_NETWORK_MGT;
10977 cap->cap_inheritable |= CAP_NETWORK_MGT;
10983 if { (eval echo configure
:10984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10985 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
10987 echo "configure: failed program was:" >&5
10988 cat conftest.
$ac_ext >&5
10990 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
10997 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10998 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
10999 cat >> confdefs.h
<<\EOF
11000 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
11006 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
11007 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
11010 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
11011 echo "configure:11012: checking for int16 typedef included by rpc/rpc.h" >&5
11012 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
11013 echo $ac_n "(cached) $ac_c" 1>&6
11016 cat > conftest.
$ac_ext <<EOF
11017 #line 11018 "configure"
11018 #include "confdefs.h"
11019 #include <sys/types.h>
11020 #if defined(HAVE_RPC_RPC_H)
11021 #include <rpc/rpc.h>
11027 if { (eval echo configure
:11028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11029 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
11031 echo "configure: failed program was:" >&5
11032 cat conftest.
$ac_ext >&5
11034 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
11039 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
11040 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
11041 cat >> confdefs.h
<<\EOF
11042 #define HAVE_INT16_FROM_RPC_RPC_H 1
11047 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
11048 echo "configure:11049: checking for uint16 typedef included by rpc/rpc.h" >&5
11049 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
11050 echo $ac_n "(cached) $ac_c" 1>&6
11053 cat > conftest.
$ac_ext <<EOF
11054 #line 11055 "configure"
11055 #include "confdefs.h"
11056 #include <sys/types.h>
11057 #if defined(HAVE_RPC_RPC_H)
11058 #include <rpc/rpc.h>
11064 if { (eval echo configure
:11065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11066 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
11068 echo "configure: failed program was:" >&5
11069 cat conftest.
$ac_ext >&5
11071 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
11076 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
11077 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
11078 cat >> confdefs.h
<<\EOF
11079 #define HAVE_UINT16_FROM_RPC_RPC_H 1
11084 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
11085 echo "configure:11086: checking for int32 typedef included by rpc/rpc.h" >&5
11086 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
11087 echo $ac_n "(cached) $ac_c" 1>&6
11090 cat > conftest.
$ac_ext <<EOF
11091 #line 11092 "configure"
11092 #include "confdefs.h"
11093 #include <sys/types.h>
11094 #if defined(HAVE_RPC_RPC_H)
11095 #include <rpc/rpc.h>
11101 if { (eval echo configure
:11102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11103 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
11105 echo "configure: failed program was:" >&5
11106 cat conftest.
$ac_ext >&5
11108 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
11113 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
11114 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
11115 cat >> confdefs.h
<<\EOF
11116 #define HAVE_INT32_FROM_RPC_RPC_H 1
11121 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
11122 echo "configure:11123: checking for uint32 typedef included by rpc/rpc.h" >&5
11123 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
11124 echo $ac_n "(cached) $ac_c" 1>&6
11127 cat > conftest.
$ac_ext <<EOF
11128 #line 11129 "configure"
11129 #include "confdefs.h"
11130 #include <sys/types.h>
11131 #if defined(HAVE_RPC_RPC_H)
11132 #include <rpc/rpc.h>
11138 if { (eval echo configure
:11139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11140 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
11142 echo "configure: failed program was:" >&5
11143 cat conftest.
$ac_ext >&5
11145 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
11150 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
11151 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
11152 cat >> confdefs.h
<<\EOF
11153 #define HAVE_UINT32_FROM_RPC_RPC_H 1
11159 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
11160 echo "configure:11161: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
11161 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
11162 echo $ac_n "(cached) $ac_c" 1>&6
11165 cat > conftest.
$ac_ext <<EOF
11166 #line 11167 "configure"
11167 #include "confdefs.h"
11168 #include <sys/types.h>
11169 #ifdef HAVE_SYS_SECURITY_H
11170 #include <sys/security.h>
11172 #endif /* HAVE_SYS_SECURITY_H */
11173 #if defined(HAVE_RPC_RPC_H)
11174 #include <rpc/rpc.h>
11180 if { (eval echo configure
:11181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11182 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
11184 echo "configure: failed program was:" >&5
11185 cat conftest.
$ac_ext >&5
11187 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
11192 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
11193 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
11194 cat >> confdefs.h
<<\EOF
11195 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
11200 echo $ac_n "checking for test routines""... $ac_c" 1>&6
11201 echo "configure:11202: checking for test routines" >&5
11202 if test "$cross_compiling" = yes; then
11203 echo "configure: warning: cannot run when cross-compiling" 1>&2
11205 cat > conftest.
$ac_ext <<EOF
11206 #line 11207 "configure"
11207 #include "confdefs.h"
11208 #include "${srcdir-.}/tests/trivial.c"
11210 if { (eval echo configure
:11211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11212 echo "$ac_t""yes" 1>&6
11214 echo "configure: failed program was:" >&5
11215 cat conftest.
$ac_ext >&5
11217 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
11223 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
11224 echo "configure:11225: checking for ftruncate extend" >&5
11225 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
11226 echo $ac_n "(cached) $ac_c" 1>&6
11229 if test "$cross_compiling" = yes; then
11230 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
11232 cat > conftest.
$ac_ext <<EOF
11233 #line 11234 "configure"
11234 #include "confdefs.h"
11235 #include "${srcdir-.}/tests/ftruncate.c"
11237 if { (eval echo configure
:11238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11239 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
11241 echo "configure: failed program was:" >&5
11242 cat conftest.
$ac_ext >&5
11244 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
11251 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
11252 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
11253 cat >> confdefs.h
<<\EOF
11254 #define HAVE_FTRUNCATE_EXTEND 1
11259 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
11260 echo "configure:11261: checking for AF_LOCAL socket support" >&5
11261 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
11262 echo $ac_n "(cached) $ac_c" 1>&6
11265 if test "$cross_compiling" = yes; then
11266 samba_cv_HAVE_WORKING_AF_LOCAL
=cross
11268 cat > conftest.
$ac_ext <<EOF
11269 #line 11270 "configure"
11270 #include "confdefs.h"
11271 #include "${srcdir-.}/tests/unixsock.c"
11273 if { (eval echo configure
:11274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11275 samba_cv_HAVE_WORKING_AF_LOCAL
=yes
11277 echo "configure: failed program was:" >&5
11278 cat conftest.
$ac_ext >&5
11280 samba_cv_HAVE_WORKING_AF_LOCAL
=no
11287 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
11288 if test x
"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
11290 cat >> confdefs.h
<<\EOF
11291 #define HAVE_WORKING_AF_LOCAL 1
11296 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
11297 echo "configure:11298: checking for broken getgroups" >&5
11298 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
11299 echo $ac_n "(cached) $ac_c" 1>&6
11302 if test "$cross_compiling" = yes; then
11303 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
11305 cat > conftest.
$ac_ext <<EOF
11306 #line 11307 "configure"
11307 #include "confdefs.h"
11308 #include "${srcdir-.}/tests/getgroups.c"
11310 if { (eval echo configure
:11311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11312 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
11314 echo "configure: failed program was:" >&5
11315 cat conftest.
$ac_ext >&5
11317 samba_cv_HAVE_BROKEN_GETGROUPS
=no
11324 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
11325 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
11326 cat >> confdefs.h
<<\EOF
11327 #define HAVE_BROKEN_GETGROUPS 1
11332 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
11333 echo "configure:11334: checking whether getpass should be replaced" >&5
11334 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
11335 echo $ac_n "(cached) $ac_c" 1>&6
11338 SAVE_CPPFLAGS
="$CPPFLAGS"
11339 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
11340 cat > conftest.
$ac_ext <<EOF
11341 #line 11342 "configure"
11342 #include "confdefs.h"
11344 #define REPLACE_GETPASS 1
11345 #define NO_CONFIG_H 1
11346 #define main dont_declare_main
11347 #include "${srcdir-.}/lib/getsmbpass.c"
11354 if { (eval echo configure
:11355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11356 samba_cv_REPLACE_GETPASS
=yes
11358 echo "configure: failed program was:" >&5
11359 cat conftest.
$ac_ext >&5
11361 samba_cv_REPLACE_GETPASS
=no
11364 CPPFLAGS
="$SAVE_CPPFLAGS"
11368 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
11369 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
11370 cat >> confdefs.h
<<\EOF
11371 #define REPLACE_GETPASS 1
11376 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
11377 echo "configure:11378: checking for broken inet_ntoa" >&5
11378 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
11379 echo $ac_n "(cached) $ac_c" 1>&6
11382 if test "$cross_compiling" = yes; then
11383 samba_cv_REPLACE_INET_NTOA
=cross
11385 cat > conftest.
$ac_ext <<EOF
11386 #line 11387 "configure"
11387 #include "confdefs.h"
11390 #include <sys/types.h>
11391 #include <netinet/in.h>
11392 #ifdef HAVE_ARPA_INET_H
11393 #include <arpa/inet.h>
11395 main() { struct in_addr ip; ip.s_addr = 0x12345678;
11396 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
11397 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
11400 if { (eval echo configure
:11401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11402 samba_cv_REPLACE_INET_NTOA
=yes
11404 echo "configure: failed program was:" >&5
11405 cat conftest.
$ac_ext >&5
11407 samba_cv_REPLACE_INET_NTOA
=no
11414 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
11415 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
11416 cat >> confdefs.h
<<\EOF
11417 #define REPLACE_INET_NTOA 1
11422 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
11423 echo "configure:11424: checking for secure mkstemp" >&5
11424 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
11425 echo $ac_n "(cached) $ac_c" 1>&6
11428 if test "$cross_compiling" = yes; then
11429 samba_cv_HAVE_SECURE_MKSTEMP
=cross
11431 cat > conftest.
$ac_ext <<EOF
11432 #line 11433 "configure"
11433 #include "confdefs.h"
11434 #include <stdlib.h>
11435 #include <sys/types.h>
11436 #include <sys/stat.h>
11437 #include <unistd.h>
11440 char tpl[20]="/tmp/test.XXXXXX";
11441 int fd = mkstemp(tpl);
11442 if (fd == -1) exit(1);
11444 if (fstat(fd, &st) != 0) exit(1);
11445 if ((st.st_mode & 0777) != 0600) exit(1);
11449 if { (eval echo configure
:11450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11451 samba_cv_HAVE_SECURE_MKSTEMP
=yes
11453 echo "configure: failed program was:" >&5
11454 cat conftest.
$ac_ext >&5
11456 samba_cv_HAVE_SECURE_MKSTEMP
=no
11463 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
11464 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
11465 cat >> confdefs.h
<<\EOF
11466 #define HAVE_SECURE_MKSTEMP 1
11471 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
11472 echo "configure:11473: checking for sysconf(_SC_NGROUPS_MAX)" >&5
11473 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
11474 echo $ac_n "(cached) $ac_c" 1>&6
11477 if test "$cross_compiling" = yes; then
11478 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
11480 cat > conftest.
$ac_ext <<EOF
11481 #line 11482 "configure"
11482 #include "confdefs.h"
11483 #include <unistd.h>
11484 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
11486 if { (eval echo configure
:11487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11488 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
11490 echo "configure: failed program was:" >&5
11491 cat conftest.
$ac_ext >&5
11493 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
11500 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
11501 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
11502 cat >> confdefs.h
<<\EOF
11503 #define SYSCONF_SC_NGROUPS_MAX 1
11508 echo $ac_n "checking for root""... $ac_c" 1>&6
11509 echo "configure:11510: checking for root" >&5
11510 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
11511 echo $ac_n "(cached) $ac_c" 1>&6
11514 if test "$cross_compiling" = yes; then
11515 samba_cv_HAVE_ROOT
=cross
11517 cat > conftest.
$ac_ext <<EOF
11518 #line 11519 "configure"
11519 #include "confdefs.h"
11520 main() { exit(getuid() != 0); }
11522 if { (eval echo configure
:11523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11524 samba_cv_HAVE_ROOT
=yes
11526 echo "configure: failed program was:" >&5
11527 cat conftest.
$ac_ext >&5
11529 samba_cv_HAVE_ROOT
=no
11536 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
11537 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
11538 cat >> confdefs.h
<<\EOF
11539 #define HAVE_ROOT 1
11543 echo "configure: warning: running as non-root will disable some tests" 1>&2
11547 # look for a method of finding the list of network interfaces
11549 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11550 echo "configure:11551: checking for iface AIX" >&5
11551 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11552 echo $ac_n "(cached) $ac_c" 1>&6
11555 if test "$cross_compiling" = yes; then
11556 samba_cv_HAVE_IFACE_AIX
=cross
11558 cat > conftest.
$ac_ext <<EOF
11559 #line 11560 "configure"
11560 #include "confdefs.h"
11562 #define HAVE_IFACE_AIX 1
11563 #define AUTOCONF_TEST 1
11564 #include "confdefs.h"
11565 #include "${srcdir-.}/lib/interfaces.c"
11567 if { (eval echo configure
:11568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11569 samba_cv_HAVE_IFACE_AIX
=yes
11571 echo "configure: failed program was:" >&5
11572 cat conftest.
$ac_ext >&5
11574 samba_cv_HAVE_IFACE_AIX
=no
11581 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11582 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
11583 iface
=yes;cat >> confdefs.h
<<\EOF
11584 #define HAVE_IFACE_AIX 1
11589 if test $iface = no
; then
11590 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11591 echo "configure:11592: checking for iface ifconf" >&5
11592 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11593 echo $ac_n "(cached) $ac_c" 1>&6
11596 if test "$cross_compiling" = yes; then
11597 samba_cv_HAVE_IFACE_IFCONF
=cross
11599 cat > conftest.
$ac_ext <<EOF
11600 #line 11601 "configure"
11601 #include "confdefs.h"
11603 #define HAVE_IFACE_IFCONF 1
11604 #define AUTOCONF_TEST 1
11605 #include "confdefs.h"
11606 #include "${srcdir-.}/lib/interfaces.c"
11608 if { (eval echo configure
:11609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11610 samba_cv_HAVE_IFACE_IFCONF
=yes
11612 echo "configure: failed program was:" >&5
11613 cat conftest.
$ac_ext >&5
11615 samba_cv_HAVE_IFACE_IFCONF
=no
11622 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11623 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
11624 iface
=yes;cat >> confdefs.h
<<\EOF
11625 #define HAVE_IFACE_IFCONF 1
11631 if test $iface = no
; then
11632 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11633 echo "configure:11634: checking for iface ifreq" >&5
11634 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11635 echo $ac_n "(cached) $ac_c" 1>&6
11638 if test "$cross_compiling" = yes; then
11639 samba_cv_HAVE_IFACE_IFREQ
=cross
11641 cat > conftest.
$ac_ext <<EOF
11642 #line 11643 "configure"
11643 #include "confdefs.h"
11645 #define HAVE_IFACE_IFREQ 1
11646 #define AUTOCONF_TEST 1
11647 #include "confdefs.h"
11648 #include "${srcdir-.}/lib/interfaces.c"
11650 if { (eval echo configure
:11651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11652 samba_cv_HAVE_IFACE_IFREQ
=yes
11654 echo "configure: failed program was:" >&5
11655 cat conftest.
$ac_ext >&5
11657 samba_cv_HAVE_IFACE_IFREQ
=no
11664 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11665 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
11666 iface
=yes;cat >> confdefs.h
<<\EOF
11667 #define HAVE_IFACE_IFREQ 1
11674 ################################################
11675 # look for a method of setting the effective uid
11677 if test $seteuid = no
; then
11678 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11679 echo "configure:11680: checking for setresuid" >&5
11680 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11681 echo $ac_n "(cached) $ac_c" 1>&6
11684 if test "$cross_compiling" = yes; then
11685 samba_cv_USE_SETRESUID
=cross
11687 cat > conftest.
$ac_ext <<EOF
11688 #line 11689 "configure"
11689 #include "confdefs.h"
11691 #define AUTOCONF_TEST 1
11692 #define USE_SETRESUID 1
11693 #include "confdefs.h"
11694 #include "${srcdir-.}/lib/util_sec.c"
11696 if { (eval echo configure
:11697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11698 samba_cv_USE_SETRESUID
=yes
11700 echo "configure: failed program was:" >&5
11701 cat conftest.
$ac_ext >&5
11703 samba_cv_USE_SETRESUID
=no
11710 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11711 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
11712 seteuid
=yes;cat >> confdefs.h
<<\EOF
11713 #define USE_SETRESUID 1
11720 if test $seteuid = no
; then
11721 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11722 echo "configure:11723: checking for setreuid" >&5
11723 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11724 echo $ac_n "(cached) $ac_c" 1>&6
11727 if test "$cross_compiling" = yes; then
11728 samba_cv_USE_SETREUID
=cross
11730 cat > conftest.
$ac_ext <<EOF
11731 #line 11732 "configure"
11732 #include "confdefs.h"
11734 #define AUTOCONF_TEST 1
11735 #define USE_SETREUID 1
11736 #include "confdefs.h"
11737 #include "${srcdir-.}/lib/util_sec.c"
11739 if { (eval echo configure
:11740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11741 samba_cv_USE_SETREUID
=yes
11743 echo "configure: failed program was:" >&5
11744 cat conftest.
$ac_ext >&5
11746 samba_cv_USE_SETREUID
=no
11753 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11754 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
11755 seteuid
=yes;cat >> confdefs.h
<<\EOF
11756 #define USE_SETREUID 1
11762 if test $seteuid = no
; then
11763 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11764 echo "configure:11765: checking for seteuid" >&5
11765 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11766 echo $ac_n "(cached) $ac_c" 1>&6
11769 if test "$cross_compiling" = yes; then
11770 samba_cv_USE_SETEUID
=cross
11772 cat > conftest.
$ac_ext <<EOF
11773 #line 11774 "configure"
11774 #include "confdefs.h"
11776 #define AUTOCONF_TEST 1
11777 #define USE_SETEUID 1
11778 #include "confdefs.h"
11779 #include "${srcdir-.}/lib/util_sec.c"
11781 if { (eval echo configure
:11782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11783 samba_cv_USE_SETEUID
=yes
11785 echo "configure: failed program was:" >&5
11786 cat conftest.
$ac_ext >&5
11788 samba_cv_USE_SETEUID
=no
11795 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11796 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
11797 seteuid
=yes;cat >> confdefs.h
<<\EOF
11798 #define USE_SETEUID 1
11804 if test $seteuid = no
; then
11805 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11806 echo "configure:11807: checking for setuidx" >&5
11807 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11808 echo $ac_n "(cached) $ac_c" 1>&6
11811 if test "$cross_compiling" = yes; then
11812 samba_cv_USE_SETUIDX
=cross
11814 cat > conftest.
$ac_ext <<EOF
11815 #line 11816 "configure"
11816 #include "confdefs.h"
11818 #define AUTOCONF_TEST 1
11819 #define USE_SETUIDX 1
11820 #include "confdefs.h"
11821 #include "${srcdir-.}/lib/util_sec.c"
11823 if { (eval echo configure
:11824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11825 samba_cv_USE_SETUIDX
=yes
11827 echo "configure: failed program was:" >&5
11828 cat conftest.
$ac_ext >&5
11830 samba_cv_USE_SETUIDX
=no
11837 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11838 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
11839 seteuid
=yes;cat >> confdefs.h
<<\EOF
11840 #define USE_SETUIDX 1
11847 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11848 echo "configure:11849: checking for working mmap" >&5
11849 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11850 echo $ac_n "(cached) $ac_c" 1>&6
11853 if test "$cross_compiling" = yes; then
11854 samba_cv_HAVE_MMAP
=cross
11856 cat > conftest.
$ac_ext <<EOF
11857 #line 11858 "configure"
11858 #include "confdefs.h"
11859 #include "${srcdir-.}/tests/shared_mmap.c"
11861 if { (eval echo configure
:11862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11863 samba_cv_HAVE_MMAP
=yes
11865 echo "configure: failed program was:" >&5
11866 cat conftest.
$ac_ext >&5
11868 samba_cv_HAVE_MMAP
=no
11875 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11876 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
11877 cat >> confdefs.h
<<\EOF
11878 #define HAVE_MMAP 1
11883 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11884 echo "configure:11885: checking for ftruncate needs root" >&5
11885 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11886 echo $ac_n "(cached) $ac_c" 1>&6
11889 if test "$cross_compiling" = yes; then
11890 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
11892 cat > conftest.
$ac_ext <<EOF
11893 #line 11894 "configure"
11894 #include "confdefs.h"
11895 #include "${srcdir-.}/tests/ftruncroot.c"
11897 if { (eval echo configure
:11898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11899 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
11901 echo "configure: failed program was:" >&5
11902 cat conftest.
$ac_ext >&5
11904 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
11911 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11912 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
11913 cat >> confdefs.h
<<\EOF
11914 #define FTRUNCATE_NEEDS_ROOT 1
11919 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11920 echo "configure:11921: checking for fcntl locking" >&5
11921 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11922 echo $ac_n "(cached) $ac_c" 1>&6
11925 if test "$cross_compiling" = yes; then
11926 samba_cv_HAVE_FCNTL_LOCK
=cross
11928 cat > conftest.
$ac_ext <<EOF
11929 #line 11930 "configure"
11930 #include "confdefs.h"
11931 #include "${srcdir-.}/tests/fcntl_lock.c"
11933 if { (eval echo configure
:11934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11935 samba_cv_HAVE_FCNTL_LOCK
=yes
11937 echo "configure: failed program was:" >&5
11938 cat conftest.
$ac_ext >&5
11940 samba_cv_HAVE_FCNTL_LOCK
=no
11947 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11948 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
11949 cat >> confdefs.h
<<\EOF
11950 #define HAVE_FCNTL_LOCK 1
11955 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11956 echo "configure:11957: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11957 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11958 echo $ac_n "(cached) $ac_c" 1>&6
11961 if test "$cross_compiling" = yes; then
11962 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
11964 cat > conftest.
$ac_ext <<EOF
11965 #line 11966 "configure"
11966 #include "confdefs.h"
11967 #include "${srcdir-.}/tests/fcntl_lock64.c"
11969 if { (eval echo configure
:11970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11971 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
11973 echo "configure: failed program was:" >&5
11974 cat conftest.
$ac_ext >&5
11976 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
11983 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11984 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
11985 cat >> confdefs.h
<<\EOF
11986 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11993 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11994 echo "configure:11995: checking for 64 bit fcntl locking" >&5
11995 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11996 echo $ac_n "(cached) $ac_c" 1>&6
11999 if test "$cross_compiling" = yes; then
12000 samba_cv_HAVE_STRUCT_FLOCK64
=cross
12002 cat > conftest.
$ac_ext <<EOF
12003 #line 12004 "configure"
12004 #include "confdefs.h"
12006 #if defined(HAVE_UNISTD_H)
12007 #include <unistd.h>
12010 #include <stdlib.h>
12012 #ifdef HAVE_FCNTL_H
12016 #ifdef HAVE_SYS_FCNTL_H
12017 #include <sys/fcntl.h>
12019 main() { struct flock64 fl64;
12020 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
12027 if { (eval echo configure
:12028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12029 samba_cv_HAVE_STRUCT_FLOCK64
=yes
12031 echo "configure: failed program was:" >&5
12032 cat conftest.
$ac_ext >&5
12034 samba_cv_HAVE_STRUCT_FLOCK64
=no
12041 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
12043 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
12044 cat >> confdefs.h
<<\EOF
12045 #define HAVE_STRUCT_FLOCK64 1
12051 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
12052 echo "configure:12053: checking for st_blocks in struct stat" >&5
12053 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
12054 echo $ac_n "(cached) $ac_c" 1>&6
12057 cat > conftest.
$ac_ext <<EOF
12058 #line 12059 "configure"
12059 #include "confdefs.h"
12060 #include <sys/types.h>
12061 #include <sys/stat.h>
12062 #include <unistd.h>
12064 struct stat st; st.st_blocks = 0;
12067 if { (eval echo configure
:12068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12069 samba_cv_HAVE_STAT_ST_BLOCKS
=yes
12071 echo "configure: failed program was:" >&5
12072 cat conftest.
$ac_ext >&5
12074 samba_cv_HAVE_STAT_ST_BLOCKS
=no
12079 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
12080 if test x
"$samba_cv_HAVE_STAT_ST_BLOCKS" = x
"yes"; then
12081 cat >> confdefs.h
<<\EOF
12082 #define HAVE_STAT_ST_BLOCKS 1
12087 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
12088 echo "configure:12089: checking for st_blksize in struct stat" >&5
12089 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLKSIZE'+set}'`\" = set"; then
12090 echo $ac_n "(cached) $ac_c" 1>&6
12093 cat > conftest.
$ac_ext <<EOF
12094 #line 12095 "configure"
12095 #include "confdefs.h"
12096 #include <sys/types.h>
12097 #include <sys/stat.h>
12098 #include <unistd.h>
12100 struct stat st; st.st_blksize = 0;
12103 if { (eval echo configure
:12104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12105 samba_cv_HAVE_STAT_ST_BLKSIZE
=yes
12107 echo "configure: failed program was:" >&5
12108 cat conftest.
$ac_ext >&5
12110 samba_cv_HAVE_STAT_ST_BLKSIZE
=no
12115 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLKSIZE" 1>&6
12116 if test x
"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x
"yes"; then
12117 cat >> confdefs.h
<<\EOF
12118 #define HAVE_STAT_ST_BLKSIZE 1
12125 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
12126 echo "configure:12127: checking for broken RedHat 7.2 system header files" >&5
12127 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
12128 echo $ac_n "(cached) $ac_c" 1>&6
12131 cat > conftest.
$ac_ext <<EOF
12132 #line 12133 "configure"
12133 #include "confdefs.h"
12135 #ifdef HAVE_SYS_VFS_H
12136 #include <sys/vfs.h>
12138 #ifdef HAVE_SYS_CAPABILITY_H
12139 #include <sys/capability.h>
12146 if { (eval echo configure
:12147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12148 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=no
12150 echo "configure: failed program was:" >&5
12151 cat conftest.
$ac_ext >&5
12153 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=yes
12158 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
12159 if test x
"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x
"yes"; then
12160 cat >> confdefs.h
<<\EOF
12161 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
12168 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
12169 echo "configure:12170: checking for broken nisplus include files" >&5
12170 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
12171 echo $ac_n "(cached) $ac_c" 1>&6
12174 cat > conftest.
$ac_ext <<EOF
12175 #line 12176 "configure"
12176 #include "confdefs.h"
12177 #include <sys/acl.h>
12178 #if defined(HAVE_RPCSVC_NIS_H)
12179 #include <rpcsvc/nis.h>
12185 if { (eval echo configure
:12186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12187 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
12189 echo "configure: failed program was:" >&5
12190 cat conftest.
$ac_ext >&5
12192 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
12197 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
12198 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
12199 cat >> confdefs.h
<<\EOF
12200 #define BROKEN_NISPLUS_INCLUDE_FILES 1
12206 #################################################
12207 # check for smbwrapper support
12208 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
12209 echo "configure:12210: checking whether to use smbwrapper" >&5
12210 # Check whether --with-smbwrapper or --without-smbwrapper was given.
12211 if test "${with_smbwrapper+set}" = set; then
12212 withval
="$with_smbwrapper"
12215 echo "$ac_t""yes" 1>&6
12216 cat >> confdefs.h
<<\EOF
12217 #define WITH_SMBWRAPPER 1
12220 WRAPPROG
="bin/smbsh\$(EXEEXT)"
12221 WRAP
="bin/smbwrapper.$SHLIBEXT"
12223 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
12226 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
12229 # Conditions under which smbwrapper should not be built.
12231 if test x
$PICFLAG = x
; then
12232 echo No support
for PIC code
- disabling smbwrapper and smbsh
12236 elif test x
$ac_cv_func_syscall = xno
; then
12237 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
12242 EXTRA_ALL_TARGETS
="$EXTRA_ALL_TARGETS $WRAPPROG $WRAP $WRAP32"
12243 SMBWRAPPER
="$WRAPPROG $WRAP $WRAP32"
12246 echo "$ac_t""no" 1>&6
12250 echo "$ac_t""no" 1>&6
12255 #################################################
12256 # check for AFS clear-text auth support
12257 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
12258 echo "configure:12259: checking whether to use AFS clear-text auth" >&5
12259 # Check whether --with-afs or --without-afs was given.
12260 if test "${with_afs+set}" = set; then
12261 withval
="$with_afs"
12264 echo "$ac_t""yes" 1>&6
12265 cat >> confdefs.h
<<\EOF
12271 echo "$ac_t""no" 1>&6
12275 echo "$ac_t""no" 1>&6
12281 #################################################
12282 # check for the DFS clear-text auth system
12283 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
12284 echo "configure:12285: checking whether to use DFS clear-text auth" >&5
12285 # Check whether --with-dfs or --without-dfs was given.
12286 if test "${with_dfs+set}" = set; then
12287 withval
="$with_dfs"
12290 echo "$ac_t""yes" 1>&6
12291 cat >> confdefs.h
<<\EOF
12297 echo "$ac_t""no" 1>&6
12301 echo "$ac_t""no" 1>&6
12306 #################################################
12307 # active directory support
12309 with_ads_support
=yes
12310 echo $ac_n "checking whether to use Active Directory""... $ac_c" 1>&6
12311 echo "configure:12312: checking whether to use Active Directory" >&5
12313 # Check whether --with-ads or --without-ads was given.
12314 if test "${with_ads+set}" = set; then
12315 withval
="$with_ads"
12318 with_ads_support
=no
12324 if test x
"$with_ads_support" = x
"yes"; then
12325 cat >> confdefs.h
<<\EOF
12331 echo "$ac_t""$with_ads_support" 1>&6
12334 if test x
"$with_ads_support" = x
"yes"; then
12336 #################################################
12337 # check for location of Kerberos 5 install
12338 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
12339 echo "configure:12340: checking for kerberos 5 install path" >&5
12340 # Check whether --with-krb5 or --without-krb5 was given.
12341 if test "${with_krb5+set}" = set; then
12342 withval
="$with_krb5"
12345 echo "$ac_t""no" 1>&6
12348 echo "$ac_t""yes" 1>&6
12349 LIBS
="$LIBS -lkrb5"
12350 CFLAGS
="$CFLAGS -I$withval/include"
12351 CPPFLAGS
="$CPPFLAGS -I$withval/include"
12352 LDFLAGS
="$LDFLAGS -L$withval/lib"
12357 echo "$ac_t""no" 1>&6
12363 if test x
$FOUND_KRB5 = x
"no"; then
12364 #################################################
12365 # see if this box has the SuSE location for the heimdal kerberos implementation
12366 echo $ac_n "checking for /usr/include/heimdal""... $ac_c" 1>&6
12367 echo "configure:12368: checking for /usr/include/heimdal" >&5
12368 if test -d /usr
/include
/heimdal
; then
12369 CFLAGS
="$CFLAGS -I/usr/include/heimdal"
12370 CPPFLAGS
="$CPPFLAGS -I/usr/include/heimdal"
12371 echo "$ac_t""yes" 1>&6
12373 echo "$ac_t""no" 1>&6
12378 if test x
$FOUND_KRB5 = x
"no"; then
12379 #################################################
12380 # see if this box has the RedHat location for kerberos
12381 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
12382 echo "configure:12383: checking for /usr/kerberos" >&5
12383 if test -d /usr
/kerberos
; then
12384 LDFLAGS
="$LDFLAGS -L/usr/kerberos/lib"
12385 CFLAGS
="$CFLAGS -I/usr/kerberos/include"
12386 CPPFLAGS
="$CPPFLAGS -I/usr/kerberos/include"
12387 echo "$ac_t""yes" 1>&6
12389 echo "$ac_t""no" 1>&6
12394 # now check for krb5.h. Some systems have the libraries without the headers!
12395 # note that this check is done here to allow for different kerberos
12397 for ac_hdr
in krb5.h
12399 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12400 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12401 echo "configure:12402: checking for $ac_hdr" >&5
12402 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12403 echo $ac_n "(cached) $ac_c" 1>&6
12405 cat > conftest.
$ac_ext <<EOF
12406 #line 12407 "configure"
12407 #include "confdefs.h"
12410 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12411 { (eval echo configure
:12412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12412 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12413 if test -z "$ac_err"; then
12415 eval "ac_cv_header_$ac_safe=yes"
12418 echo "configure: failed program was:" >&5
12419 cat conftest.
$ac_ext >&5
12421 eval "ac_cv_header_$ac_safe=no"
12425 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12426 echo "$ac_t""yes" 1>&6
12427 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12428 cat >> confdefs.h
<<EOF
12429 #define $ac_tr_hdr 1
12433 echo "$ac_t""no" 1>&6
12438 # now check for gssapi headers. This is also done here to allow for
12439 # different kerberos include paths
12440 for ac_hdr
in gssapi.h gssapi
/gssapi_generic.h gssapi
/gssapi.h com_err.h
12442 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12443 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12444 echo "configure:12445: checking for $ac_hdr" >&5
12445 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12446 echo $ac_n "(cached) $ac_c" 1>&6
12448 cat > conftest.
$ac_ext <<EOF
12449 #line 12450 "configure"
12450 #include "confdefs.h"
12453 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12454 { (eval echo configure
:12455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12455 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12456 if test -z "$ac_err"; then
12458 eval "ac_cv_header_$ac_safe=yes"
12461 echo "configure: failed program was:" >&5
12462 cat conftest.
$ac_ext >&5
12464 eval "ac_cv_header_$ac_safe=no"
12468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12469 echo "$ac_t""yes" 1>&6
12470 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12471 cat >> confdefs.h
<<EOF
12472 #define $ac_tr_hdr 1
12476 echo "$ac_t""no" 1>&6
12481 ##################################################################
12482 # we might need the k5crypto and com_err libraries on some systems
12483 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
12484 echo "configure:12485: checking for _et_list in -lcom_err" >&5
12485 ac_lib_var
=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
12486 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12487 echo $ac_n "(cached) $ac_c" 1>&6
12489 ac_save_LIBS
="$LIBS"
12490 LIBS
="-lcom_err $LIBS"
12491 cat > conftest.
$ac_ext <<EOF
12492 #line 12493 "configure"
12493 #include "confdefs.h"
12494 /* Override any gcc2 internal prototype to avoid an error. */
12495 /* We use char because int might match the return type of a gcc2
12496 builtin and then its argument prototype would still apply. */
12503 if { (eval echo configure
:12504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12505 eval "ac_cv_lib_$ac_lib_var=yes"
12507 echo "configure: failed program was:" >&5
12508 cat conftest.
$ac_ext >&5
12510 eval "ac_cv_lib_$ac_lib_var=no"
12513 LIBS
="$ac_save_LIBS"
12516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12517 echo "$ac_t""yes" 1>&6
12518 LIBS
="$LIBS -lcom_err"
12520 echo "$ac_t""no" 1>&6
12523 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
12524 echo "configure:12525: checking for krb5_encrypt_data in -lk5crypto" >&5
12525 ac_lib_var
=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
12526 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12527 echo $ac_n "(cached) $ac_c" 1>&6
12529 ac_save_LIBS
="$LIBS"
12530 LIBS
="-lk5crypto $LIBS"
12531 cat > conftest.
$ac_ext <<EOF
12532 #line 12533 "configure"
12533 #include "confdefs.h"
12534 /* Override any gcc2 internal prototype to avoid an error. */
12535 /* We use char because int might match the return type of a gcc2
12536 builtin and then its argument prototype would still apply. */
12537 char krb5_encrypt_data();
12540 krb5_encrypt_data()
12543 if { (eval echo configure
:12544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12545 eval "ac_cv_lib_$ac_lib_var=yes"
12547 echo "configure: failed program was:" >&5
12548 cat conftest.
$ac_ext >&5
12550 eval "ac_cv_lib_$ac_lib_var=no"
12553 LIBS
="$ac_save_LIBS"
12556 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12557 echo "$ac_t""yes" 1>&6
12558 LIBS
="$LIBS -lk5crypto"
12560 echo "$ac_t""no" 1>&6
12564 echo $ac_n "checking for des_set_key in -lcrypto""... $ac_c" 1>&6
12565 echo "configure:12566: checking for des_set_key in -lcrypto" >&5
12566 ac_lib_var
=`echo crypto'_'des_set_key | sed 'y%./+-%__p_%'`
12567 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12568 echo $ac_n "(cached) $ac_c" 1>&6
12570 ac_save_LIBS
="$LIBS"
12571 LIBS
="-lcrypto $LIBS"
12572 cat > conftest.
$ac_ext <<EOF
12573 #line 12574 "configure"
12574 #include "confdefs.h"
12575 /* Override any gcc2 internal prototype to avoid an error. */
12576 /* We use char because int might match the return type of a gcc2
12577 builtin and then its argument prototype would still apply. */
12578 char des_set_key();
12584 if { (eval echo configure
:12585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12586 eval "ac_cv_lib_$ac_lib_var=yes"
12588 echo "configure: failed program was:" >&5
12589 cat conftest.
$ac_ext >&5
12591 eval "ac_cv_lib_$ac_lib_var=no"
12594 LIBS
="$ac_save_LIBS"
12597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12598 echo "$ac_t""yes" 1>&6
12599 LIBS
="$LIBS -lcrypto"
12601 echo "$ac_t""no" 1>&6
12604 echo $ac_n "checking for copy_Authenticator in -lasn1""... $ac_c" 1>&6
12605 echo "configure:12606: checking for copy_Authenticator in -lasn1" >&5
12606 ac_lib_var
=`echo asn1'_'copy_Authenticator | sed 'y%./+-%__p_%'`
12607 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12608 echo $ac_n "(cached) $ac_c" 1>&6
12610 ac_save_LIBS
="$LIBS"
12611 LIBS
="-lasn1 $LIBS"
12612 cat > conftest.
$ac_ext <<EOF
12613 #line 12614 "configure"
12614 #include "confdefs.h"
12615 /* Override any gcc2 internal prototype to avoid an error. */
12616 /* We use char because int might match the return type of a gcc2
12617 builtin and then its argument prototype would still apply. */
12618 char copy_Authenticator();
12621 copy_Authenticator()
12624 if { (eval echo configure
:12625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12626 eval "ac_cv_lib_$ac_lib_var=yes"
12628 echo "configure: failed program was:" >&5
12629 cat conftest.
$ac_ext >&5
12631 eval "ac_cv_lib_$ac_lib_var=no"
12634 LIBS
="$ac_save_LIBS"
12637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12638 echo "$ac_t""yes" 1>&6
12639 LIBS
="$LIBS -lasn1 -lroken"
12641 echo "$ac_t""no" 1>&6
12644 echo $ac_n "checking for krb5_set_real_time in -lkrb5""... $ac_c" 1>&6
12645 echo "configure:12646: checking for krb5_set_real_time in -lkrb5" >&5
12646 ac_lib_var
=`echo krb5'_'krb5_set_real_time | sed 'y%./+-%__p_%'`
12647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12648 echo $ac_n "(cached) $ac_c" 1>&6
12650 ac_save_LIBS
="$LIBS"
12651 LIBS
="-lkrb5 $LIBS"
12652 cat > conftest.
$ac_ext <<EOF
12653 #line 12654 "configure"
12654 #include "confdefs.h"
12655 /* Override any gcc2 internal prototype to avoid an error. */
12656 /* We use char because int might match the return type of a gcc2
12657 builtin and then its argument prototype would still apply. */
12658 char krb5_set_real_time();
12661 krb5_set_real_time()
12664 if { (eval echo configure
:12665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12666 eval "ac_cv_lib_$ac_lib_var=yes"
12668 echo "configure: failed program was:" >&5
12669 cat conftest.
$ac_ext >&5
12671 eval "ac_cv_lib_$ac_lib_var=no"
12674 LIBS
="$ac_save_LIBS"
12677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12678 echo "$ac_t""yes" 1>&6
12679 cat >> confdefs.h
<<\EOF
12680 #define HAVE_KRB5_SET_REAL_TIME 1
12684 echo "$ac_t""no" 1>&6
12687 echo $ac_n "checking for krb5_set_default_in_tkt_etypes in -lkrb5""... $ac_c" 1>&6
12688 echo "configure:12689: checking for krb5_set_default_in_tkt_etypes in -lkrb5" >&5
12689 ac_lib_var
=`echo krb5'_'krb5_set_default_in_tkt_etypes | sed 'y%./+-%__p_%'`
12690 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12691 echo $ac_n "(cached) $ac_c" 1>&6
12693 ac_save_LIBS
="$LIBS"
12694 LIBS
="-lkrb5 $LIBS"
12695 cat > conftest.
$ac_ext <<EOF
12696 #line 12697 "configure"
12697 #include "confdefs.h"
12698 /* Override any gcc2 internal prototype to avoid an error. */
12699 /* We use char because int might match the return type of a gcc2
12700 builtin and then its argument prototype would still apply. */
12701 char krb5_set_default_in_tkt_etypes();
12704 krb5_set_default_in_tkt_etypes()
12707 if { (eval echo configure
:12708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12709 eval "ac_cv_lib_$ac_lib_var=yes"
12711 echo "configure: failed program was:" >&5
12712 cat conftest.
$ac_ext >&5
12714 eval "ac_cv_lib_$ac_lib_var=no"
12717 LIBS
="$ac_save_LIBS"
12720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12721 echo "$ac_t""yes" 1>&6
12722 cat >> confdefs.h
<<\EOF
12723 #define HAVE_KRB5_SET_DEFAULT_IN_TKT_ETYPES 1
12727 echo "$ac_t""no" 1>&6
12730 echo $ac_n "checking for krb5_set_default_tgs_ktypes in -lkrb5""... $ac_c" 1>&6
12731 echo "configure:12732: checking for krb5_set_default_tgs_ktypes in -lkrb5" >&5
12732 ac_lib_var
=`echo krb5'_'krb5_set_default_tgs_ktypes | sed 'y%./+-%__p_%'`
12733 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12734 echo $ac_n "(cached) $ac_c" 1>&6
12736 ac_save_LIBS
="$LIBS"
12737 LIBS
="-lkrb5 $LIBS"
12738 cat > conftest.
$ac_ext <<EOF
12739 #line 12740 "configure"
12740 #include "confdefs.h"
12741 /* Override any gcc2 internal prototype to avoid an error. */
12742 /* We use char because int might match the return type of a gcc2
12743 builtin and then its argument prototype would still apply. */
12744 char krb5_set_default_tgs_ktypes();
12747 krb5_set_default_tgs_ktypes()
12750 if { (eval echo configure
:12751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12752 eval "ac_cv_lib_$ac_lib_var=yes"
12754 echo "configure: failed program was:" >&5
12755 cat conftest.
$ac_ext >&5
12757 eval "ac_cv_lib_$ac_lib_var=no"
12760 LIBS
="$ac_save_LIBS"
12763 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12764 echo "$ac_t""yes" 1>&6
12765 cat >> confdefs.h
<<\EOF
12766 #define HAVE_KRB5_SET_DEFAULT_TGS_KTYPES 1
12770 echo "$ac_t""no" 1>&6
12774 echo $ac_n "checking for addrtype in krb5_address""... $ac_c" 1>&6
12775 echo "configure:12776: checking for addrtype in krb5_address" >&5
12776 if eval "test \"`echo '$''{'samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS'+set}'`\" = set"; then
12777 echo $ac_n "(cached) $ac_c" 1>&6
12780 cat > conftest.
$ac_ext <<EOF
12781 #line 12782 "configure"
12782 #include "confdefs.h"
12785 krb5_address kaddr; kaddr.addrtype = ADDRTYPE_INET;
12788 if { (eval echo configure
:12789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12790 samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS
=yes
12792 echo "configure: failed program was:" >&5
12793 cat conftest.
$ac_ext >&5
12795 samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS
=no
12800 echo "$ac_t""$samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS" 1>&6
12801 if test x
"$samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS" = x
"yes"; then
12802 cat >> confdefs.h
<<\EOF
12803 #define HAVE_ADDRTYPE_IN_KRB5_ADDRESS 1
12808 echo $ac_n "checking for addr_type in krb5_address""... $ac_c" 1>&6
12809 echo "configure:12810: checking for addr_type in krb5_address" >&5
12810 if eval "test \"`echo '$''{'samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS'+set}'`\" = set"; then
12811 echo $ac_n "(cached) $ac_c" 1>&6
12814 cat > conftest.
$ac_ext <<EOF
12815 #line 12816 "configure"
12816 #include "confdefs.h"
12819 krb5_address kaddr; kaddr.addr_type = KRB5_ADDRESS_INET;
12822 if { (eval echo configure
:12823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12824 samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS
=yes
12826 echo "configure: failed program was:" >&5
12827 cat conftest.
$ac_ext >&5
12829 samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS
=no
12834 echo "$ac_t""$samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS" 1>&6
12835 if test x
"$samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS" = x
"yes"; then
12836 cat >> confdefs.h
<<\EOF
12837 #define HAVE_ADDR_TYPE_IN_KRB5_ADDRESS 1
12842 ########################################################
12843 # now see if we can find the krb5 libs in standard paths
12844 # or as specified above
12845 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
12846 echo "configure:12847: checking for krb5_mk_req_extended in -lkrb5" >&5
12847 ac_lib_var
=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
12848 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12849 echo $ac_n "(cached) $ac_c" 1>&6
12851 ac_save_LIBS
="$LIBS"
12852 LIBS
="-lkrb5 $LIBS"
12853 cat > conftest.
$ac_ext <<EOF
12854 #line 12855 "configure"
12855 #include "confdefs.h"
12856 /* Override any gcc2 internal prototype to avoid an error. */
12857 /* We use char because int might match the return type of a gcc2
12858 builtin and then its argument prototype would still apply. */
12859 char krb5_mk_req_extended();
12862 krb5_mk_req_extended()
12865 if { (eval echo configure
:12866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12867 eval "ac_cv_lib_$ac_lib_var=yes"
12869 echo "configure: failed program was:" >&5
12870 cat conftest.
$ac_ext >&5
12872 eval "ac_cv_lib_$ac_lib_var=no"
12875 LIBS
="$ac_save_LIBS"
12878 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12879 echo "$ac_t""yes" 1>&6
12880 LIBS
="$LIBS -lkrb5";
12881 cat >> confdefs.h
<<\EOF
12882 #define HAVE_KRB5 1
12886 echo "$ac_t""no" 1>&6
12890 ########################################################
12891 # now see if we can find the gssapi libs in standard paths
12892 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
12893 echo "configure:12894: checking for gss_display_status in -lgssapi_krb5" >&5
12894 ac_lib_var
=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
12895 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12896 echo $ac_n "(cached) $ac_c" 1>&6
12898 ac_save_LIBS
="$LIBS"
12899 LIBS
="-lgssapi_krb5 $LIBS"
12900 cat > conftest.
$ac_ext <<EOF
12901 #line 12902 "configure"
12902 #include "confdefs.h"
12903 /* Override any gcc2 internal prototype to avoid an error. */
12904 /* We use char because int might match the return type of a gcc2
12905 builtin and then its argument prototype would still apply. */
12906 char gss_display_status();
12909 gss_display_status()
12912 if { (eval echo configure
:12913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12914 eval "ac_cv_lib_$ac_lib_var=yes"
12916 echo "configure: failed program was:" >&5
12917 cat conftest.
$ac_ext >&5
12919 eval "ac_cv_lib_$ac_lib_var=no"
12922 LIBS
="$ac_save_LIBS"
12925 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12926 echo "$ac_t""yes" 1>&6
12927 LIBS
="$LIBS -lgssapi_krb5";
12928 cat >> confdefs.h
<<\EOF
12929 #define HAVE_GSSAPI 1
12933 echo "$ac_t""no" 1>&6
12937 echo $ac_n "checking for gss_display_status in -lgssapi""... $ac_c" 1>&6
12938 echo "configure:12939: checking for gss_display_status in -lgssapi" >&5
12939 ac_lib_var
=`echo gssapi'_'gss_display_status | sed 'y%./+-%__p_%'`
12940 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12941 echo $ac_n "(cached) $ac_c" 1>&6
12943 ac_save_LIBS
="$LIBS"
12944 LIBS
="-lgssapi $LIBS"
12945 cat > conftest.
$ac_ext <<EOF
12946 #line 12947 "configure"
12947 #include "confdefs.h"
12948 /* Override any gcc2 internal prototype to avoid an error. */
12949 /* We use char because int might match the return type of a gcc2
12950 builtin and then its argument prototype would still apply. */
12951 char gss_display_status();
12954 gss_display_status()
12957 if { (eval echo configure
:12958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12959 eval "ac_cv_lib_$ac_lib_var=yes"
12961 echo "configure: failed program was:" >&5
12962 cat conftest.
$ac_ext >&5
12964 eval "ac_cv_lib_$ac_lib_var=no"
12967 LIBS
="$ac_save_LIBS"
12970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12971 echo "$ac_t""yes" 1>&6
12972 LIBS
="$LIBS -lgssapi";
12973 cat >> confdefs.h
<<\EOF
12974 #define HAVE_GSSAPI 1
12978 echo "$ac_t""no" 1>&6
12983 ########################################################
12984 # Compile with LDAP support?
12986 with_ldap_support
=yes
12987 echo $ac_n "checking whether to use LDAP""... $ac_c" 1>&6
12988 echo "configure:12989: checking whether to use LDAP" >&5
12990 # Check whether --with-ldap or --without-ldap was given.
12991 if test "${with_ldap+set}" = set; then
12992 withval
="$with_ldap"
12995 with_ldap_support
=no
13001 echo "$ac_t""$with_ldap_support" 1>&6
13003 if test x
"$with_ldap_support" = x
"yes"; then
13005 ##################################################################
13006 # we might need the lber lib on some systems. To avoid link errors
13007 # this test must be before the libldap test
13008 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
13009 echo "configure:13010: checking for ber_scanf in -llber" >&5
13010 ac_lib_var
=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
13011 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13012 echo $ac_n "(cached) $ac_c" 1>&6
13014 ac_save_LIBS
="$LIBS"
13015 LIBS
="-llber $LIBS"
13016 cat > conftest.
$ac_ext <<EOF
13017 #line 13018 "configure"
13018 #include "confdefs.h"
13019 /* Override any gcc2 internal prototype to avoid an error. */
13020 /* We use char because int might match the return type of a gcc2
13021 builtin and then its argument prototype would still apply. */
13028 if { (eval echo configure
:13029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13030 eval "ac_cv_lib_$ac_lib_var=yes"
13032 echo "configure: failed program was:" >&5
13033 cat conftest.
$ac_ext >&5
13035 eval "ac_cv_lib_$ac_lib_var=no"
13038 LIBS
="$ac_save_LIBS"
13041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13042 echo "$ac_t""yes" 1>&6
13043 LIBS
="$LIBS -llber"
13045 echo "$ac_t""no" 1>&6
13049 ########################################################
13050 # now see if we can find the ldap libs in standard paths
13051 if test x
$have_ldap != xyes
; then
13052 echo $ac_n "checking for ldap_domain2hostlist in -lldap""... $ac_c" 1>&6
13053 echo "configure:13054: checking for ldap_domain2hostlist in -lldap" >&5
13054 ac_lib_var
=`echo ldap'_'ldap_domain2hostlist | sed 'y%./+-%__p_%'`
13055 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13056 echo $ac_n "(cached) $ac_c" 1>&6
13058 ac_save_LIBS
="$LIBS"
13059 LIBS
="-lldap $LIBS"
13060 cat > conftest.
$ac_ext <<EOF
13061 #line 13062 "configure"
13062 #include "confdefs.h"
13063 /* Override any gcc2 internal prototype to avoid an error. */
13064 /* We use char because int might match the return type of a gcc2
13065 builtin and then its argument prototype would still apply. */
13066 char ldap_domain2hostlist();
13069 ldap_domain2hostlist()
13072 if { (eval echo configure
:13073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13074 eval "ac_cv_lib_$ac_lib_var=yes"
13076 echo "configure: failed program was:" >&5
13077 cat conftest.
$ac_ext >&5
13079 eval "ac_cv_lib_$ac_lib_var=no"
13082 LIBS
="$ac_save_LIBS"
13085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13086 echo "$ac_t""yes" 1>&6
13087 LIBS
="$LIBS -lldap";
13088 cat >> confdefs.h
<<\EOF
13089 #define HAVE_LDAP 1
13093 echo "$ac_t""no" 1>&6
13097 ########################################################
13098 # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
13099 # Check found in pam_ldap 145.
13100 for ac_func
in ldap_set_rebind_proc
13102 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13103 echo "configure:13104: checking for $ac_func" >&5
13104 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13105 echo $ac_n "(cached) $ac_c" 1>&6
13107 cat > conftest.
$ac_ext <<EOF
13108 #line 13109 "configure"
13109 #include "confdefs.h"
13110 /* System header to define __stub macros and hopefully few prototypes,
13111 which can conflict with char $ac_func(); below. */
13112 #include <assert.h>
13113 /* Override any gcc2 internal prototype to avoid an error. */
13114 /* We use char because int might match the return type of a gcc2
13115 builtin and then its argument prototype would still apply. */
13120 /* The GNU C library defines this for functions which it implements
13121 to always fail with ENOSYS. Some functions are actually named
13122 something starting with __ and the normal name is an alias. */
13123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13131 if { (eval echo configure
:13132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13133 eval "ac_cv_func_$ac_func=yes"
13135 echo "configure: failed program was:" >&5
13136 cat conftest.
$ac_ext >&5
13138 eval "ac_cv_func_$ac_func=no"
13143 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13144 echo "$ac_t""yes" 1>&6
13145 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13146 cat >> confdefs.h
<<EOF
13147 #define $ac_tr_func 1
13151 echo "$ac_t""no" 1>&6
13155 echo $ac_n "checking whether ldap_set_rebind_proc takes 3 arguments""... $ac_c" 1>&6
13156 echo "configure:13157: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
13157 if eval "test \"`echo '$''{'pam_ldap_cv_ldap_set_rebind_proc'+set}'`\" = set"; then
13158 echo $ac_n "(cached) $ac_c" 1>&6
13161 cat > conftest.
$ac_ext <<EOF
13162 #line 13163 "configure"
13163 #include "confdefs.h"
13168 ldap_set_rebind_proc(0, 0, 0);
13171 if { (eval echo configure
:13172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13173 pam_ldap_cv_ldap_set_rebind_proc
=3
13175 echo "configure: failed program was:" >&5
13176 cat conftest.
$ac_ext >&5
13178 pam_ldap_cv_ldap_set_rebind_proc
=2
13183 echo "$ac_t""$pam_ldap_cv_ldap_set_rebind_proc" 1>&6
13184 cat >> confdefs.h
<<EOF
13185 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
13191 ########################################################
13192 # Compile with MySQL support?
13193 # Check whether --with-mysql-prefix or --without-mysql-prefix was given.
13194 if test "${with_mysql_prefix+set}" = set; then
13195 withval
="$with_mysql_prefix"
13196 mysql_prefix
="$withval"
13201 # Check whether --with-mysql-exec-prefix or --without-mysql-exec-prefix was given.
13202 if test "${with_mysql_exec_prefix+set}" = set; then
13203 withval
="$with_mysql_exec_prefix"
13204 mysql_exec_prefix
="$withval"
13206 mysql_exec_prefix
=""
13209 # Check whether --enable-mysqltest or --disable-mysqltest was given.
13210 if test "${enable_mysqltest+set}" = set; then
13211 enableval
="$enable_mysqltest"
13214 enable_mysqltest
=yes
13218 if test x
$mysql_exec_prefix != x
; then
13219 mysql_args
="$mysql_args --exec-prefix=$mysql_exec_prefix"
13220 if test x
${MYSQL_CONFIG+set} != xset
; then
13221 MYSQL_CONFIG
=$mysql_exec_prefix/bin
/mysql_config
13224 if test x
$mysql_prefix != x
; then
13225 mysql_args
="$mysql_args --prefix=$mysql_prefix"
13226 if test x
${MYSQL_CONFIG+set} != xset
; then
13227 MYSQL_CONFIG
=$mysql_prefix/bin
/mysql_config
13232 # Extract the first word of "mysql_config", so it can be a program name with args.
13233 set dummy mysql_config
; ac_word
=$2
13234 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13235 echo "configure:13236: checking for $ac_word" >&5
13236 if eval "test \"`echo '$''{'ac_cv_path_MYSQL_CONFIG'+set}'`\" = set"; then
13237 echo $ac_n "(cached) $ac_c" 1>&6
13239 case "$MYSQL_CONFIG" in
13241 ac_cv_path_MYSQL_CONFIG
="$MYSQL_CONFIG" # Let the user override the test with a path.
13244 ac_cv_path_MYSQL_CONFIG
="$MYSQL_CONFIG" # Let the user override the test with a dos path.
13247 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
13249 for ac_dir
in $ac_dummy; do
13250 test -z "$ac_dir" && ac_dir
=.
13251 if test -f $ac_dir/$ac_word; then
13252 ac_cv_path_MYSQL_CONFIG
="$ac_dir/$ac_word"
13257 test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG
="no"
13261 MYSQL_CONFIG
="$ac_cv_path_MYSQL_CONFIG"
13262 if test -n "$MYSQL_CONFIG"; then
13263 echo "$ac_t""$MYSQL_CONFIG" 1>&6
13265 echo "$ac_t""no" 1>&6
13268 min_mysql_version
=0.11.0
13269 echo $ac_n "checking for MYSQL - version >= $min_mysql_version""... $ac_c" 1>&6
13270 echo "configure:13271: checking for MYSQL - version >= $min_mysql_version" >&5
13272 if test "$MYSQL_CONFIG" = "no" ; then
13275 MYSQL_CFLAGS
=`$MYSQL_CONFIG $mysqlconf_args --cflags | sed -e "s/'//g"`
13276 MYSQL_LIBS
=`$MYSQL_CONFIG $mysqlconf_args --libs | sed -e "s/'//g"`
13278 mysql_major_version
=`$MYSQL_CONFIG $mysql_args --version | \
13279 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13280 mysql_minor_version
=`$MYSQL_CONFIG $mysql_args --version | \
13281 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13282 mysql_micro_version
=`$MYSQL_CONFIG $mysql_config_args --version | \
13283 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13284 if test "x$enable_mysqltest" = "xyes" ; then
13285 ac_save_CFLAGS
="$CFLAGS"
13286 ac_save_LIBS
="$LIBS"
13287 CFLAGS
="$CFLAGS $MYSQL_CFLAGS"
13288 LIBS
="$LIBS $MYSQL_LIBS"
13289 rm -f conf.mysqltest
13290 if test "$cross_compiling" = yes; then
13291 echo $ac_n "cross compiling; assumed OK... $ac_c"
13293 cat > conftest.
$ac_ext <<EOF
13294 #line 13295 "configure"
13295 #include "confdefs.h"
13298 #include <stdlib.h>
13299 #include <string.h>
13303 my_strdup (char *str)
13309 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
13310 strcpy (new_str, str);
13318 int main (int argc, char *argv[])
13320 int major, minor, micro;
13323 /* This hangs on some systems (?)
13324 system ("touch conf.mysqltest");
13326 { FILE *fp = fopen("conf.mysqltest", "a"); if ( fp ) fclose(fp); }
13328 /* HP/UX 9 (%@#!) writes to sscanf strings */
13329 tmp_version = my_strdup("$min_mysql_version");
13330 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
13331 printf("%s, bad version string\n", "$min_mysql_version");
13335 if (($mysql_major_version > major) ||
13336 (($mysql_major_version == major) && ($mysql_minor_version > minor)) ||
13337 (($mysql_major_version == major) && ($mysql_minor_version == minor) && ($mysql_micro_version >= micro)))
13343 printf("\n*** 'mysql_config --version' returned %d.%d.%d, but the minimum version\n", $mysql_major_version, $mysql_minor_version, $mysql_micro_version);
13344 printf("*** of MYSQL required is %d.%d.%d. If mysql_config is correct, then it is\n", major, minor, micro);
13345 printf("*** best to upgrade to the required version.\n");
13346 printf("*** If mysql_config was wrong, set the environment variable MYSQL_CONFIG\n");
13347 printf("*** to point to the correct copy of mysql_config, and remove the file\n");
13348 printf("*** config.cache before re-running configure\n");
13355 if { (eval echo configure
:13356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13359 echo "configure: failed program was:" >&5
13360 cat conftest.
$ac_ext >&5
13367 CFLAGS
="$ac_save_CFLAGS"
13368 LIBS
="$ac_save_LIBS"
13371 if test "x$no_mysql" = x
; then
13372 echo "$ac_t""yes" 1>&6
13373 MODULE_MYSQL
=bin
/mysql.so
13375 echo "$ac_t""no" 1>&6
13376 if test "$MYSQL_CONFIG" = "no" ; then
13377 echo "*** The mysql_config script installed by MYSQL could not be found"
13378 echo "*** If MYSQL was installed in PREFIX, make sure PREFIX/bin is in"
13379 echo "*** your path, or set the MYSQL_CONFIG environment variable to the"
13380 echo "*** full path to mysql_config."
13382 if test -f conf.mysqltest
; then
13385 echo "*** Could not run MYSQL test program, checking why..."
13386 CFLAGS
="$CFLAGS $MYSQL_CFLAGS"
13387 LIBS
="$LIBS $MYSQL_LIBS"
13388 cat > conftest.
$ac_ext <<EOF
13389 #line 13390 "configure"
13390 #include "confdefs.h"
13395 int main(int argc, char *argv[])
13398 #define main K_and_R_C_main
13404 if { (eval echo configure
:13405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13406 echo "*** The test program compiled, but did not run. This usually means"
13407 echo "*** that the run-time linker is not finding MYSQL or finding the wrong"
13408 echo "*** version of MYSQL. If it is not finding MYSQL, you'll need to set your"
13409 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13410 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13411 echo "*** is required on your system"
13413 echo "*** If you have an old version installed, it is best to remove it, although"
13414 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13416 echo "configure: failed program was:" >&5
13417 cat conftest.
$ac_ext >&5
13419 echo "*** The test program failed to compile or link. See the file config.log for the"
13420 echo "*** exact error that occured. This usually means MYSQL was incorrectly installed"
13421 echo "*** or that you have moved MYSQL since it was installed. In the latter case, you"
13422 echo "*** may want to edit the mysql_config script: $MYSQL_CONFIG"
13425 CFLAGS
="$ac_save_CFLAGS"
13426 LIBS
="$ac_save_LIBS"
13435 rm -f conf.mysqltest
13437 CFLAGS
="$CFLAGS $MYSQL_CFLAGS"
13440 ########################################################
13441 # Compile with XML support?
13443 # Check whether --with-xml-prefix or --without-xml-prefix was given.
13444 if test "${with_xml_prefix+set}" = set; then
13445 withval
="$with_xml_prefix"
13446 xml_config_prefix
="$withval"
13448 xml_config_prefix
=""
13451 # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
13452 if test "${with_xml_exec_prefix+set}" = set; then
13453 withval
="$with_xml_exec_prefix"
13454 xml_config_exec_prefix
="$withval"
13456 xml_config_exec_prefix
=""
13459 # Check whether --enable-xmltest or --disable-xmltest was given.
13460 if test "${enable_xmltest+set}" = set; then
13461 enableval
="$enable_xmltest"
13468 if test x
$xml_config_exec_prefix != x
; then
13469 xml_config_args
="$xml_config_args --exec-prefix=$xml_config_exec_prefix"
13470 if test x
${XML2_CONFIG+set} != xset
; then
13471 XML2_CONFIG
=$xml_config_exec_prefix/bin
/xml2-config
13474 if test x
$xml_config_prefix != x
; then
13475 xml_config_args
="$xml_config_args --prefix=$xml_config_prefix"
13476 if test x
${XML2_CONFIG+set} != xset
; then
13477 XML2_CONFIG
=$xml_config_prefix/bin
/xml2-config
13481 # Extract the first word of "xml2-config", so it can be a program name with args.
13482 set dummy xml2-config
; ac_word
=$2
13483 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13484 echo "configure:13485: checking for $ac_word" >&5
13485 if eval "test \"`echo '$''{'ac_cv_path_XML2_CONFIG'+set}'`\" = set"; then
13486 echo $ac_n "(cached) $ac_c" 1>&6
13488 case "$XML2_CONFIG" in
13490 ac_cv_path_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test with a path.
13493 ac_cv_path_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test with a dos path.
13496 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
13498 for ac_dir
in $ac_dummy; do
13499 test -z "$ac_dir" && ac_dir
=.
13500 if test -f $ac_dir/$ac_word; then
13501 ac_cv_path_XML2_CONFIG
="$ac_dir/$ac_word"
13506 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG
="no"
13510 XML2_CONFIG
="$ac_cv_path_XML2_CONFIG"
13511 if test -n "$XML2_CONFIG"; then
13512 echo "$ac_t""$XML2_CONFIG" 1>&6
13514 echo "$ac_t""no" 1>&6
13517 min_xml_version
=2.0.0
13518 echo $ac_n "checking for libxml - version >= $min_xml_version""... $ac_c" 1>&6
13519 echo "configure:13520: checking for libxml - version >= $min_xml_version" >&5
13521 if test "$XML2_CONFIG" = "no" ; then
13524 XML_CFLAGS
=`$XML2_CONFIG $xml_config_args --cflags`
13525 XML_LIBS
=`$XML2_CONFIG $xml_config_args --libs`
13526 xml_config_major_version
=`$XML2_CONFIG $xml_config_args --version | \
13527 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13528 xml_config_minor_version
=`$XML2_CONFIG $xml_config_args --version | \
13529 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13530 xml_config_micro_version
=`$XML2_CONFIG $xml_config_args --version | \
13531 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13532 if test "x$enable_xmltest" = "xyes" ; then
13533 ac_save_CFLAGS
="$CFLAGS"
13534 ac_save_LIBS
="$LIBS"
13535 CFLAGS
="$CFLAGS $XML_CFLAGS"
13536 LIBS
="$XML_LIBS $LIBS"
13538 if test "$cross_compiling" = yes; then
13539 echo $ac_n "cross compiling; assumed OK... $ac_c"
13541 cat > conftest.
$ac_ext <<EOF
13542 #line 13543 "configure"
13543 #include "confdefs.h"
13545 #include <stdlib.h>
13547 #include <string.h>
13548 #include <libxml/xmlversion.h>
13553 int xml_major_version, xml_minor_version, xml_micro_version;
13554 int major, minor, micro;
13557 system("touch conf.xmltest");
13559 /* Capture xml2-config output via autoconf/configure variables */
13560 /* HP/UX 9 (%@#!) writes to sscanf strings */
13561 tmp_version = (char *)strdup("$min_xml_version");
13562 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
13563 printf("%s, bad version string from xml2-config\n", "$min_xml_version");
13568 /* Capture the version information from the header files */
13569 tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
13570 if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
13571 printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
13576 /* Compare xml2-config output to the libxml headers */
13577 if ((xml_major_version != $xml_config_major_version) ||
13578 (xml_minor_version != $xml_config_minor_version) ||
13579 (xml_micro_version != $xml_config_micro_version))
13581 printf("*** libxml header files (version %d.%d.%d) do not match\n",
13582 xml_major_version, xml_minor_version, xml_micro_version);
13583 printf("*** xml2-config (version %d.%d.%d)\n",
13584 $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
13587 /* Compare the headers to the library to make sure we match */
13588 /* Less than ideal -- doesn't provide us with return value feedback,
13589 * only exits if there's a serious mismatch between header and library.
13591 LIBXML_TEST_VERSION;
13593 /* Test that the library is greater than our minimum version */
13594 if ((xml_major_version > major) ||
13595 ((xml_major_version == major) && (xml_minor_version > minor)) ||
13596 ((xml_major_version == major) && (xml_minor_version == minor) &&
13597 (xml_micro_version >= micro)))
13603 printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
13604 xml_major_version, xml_minor_version, xml_micro_version);
13605 printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
13606 major, minor, micro);
13607 printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
13609 printf("*** If you have already installed a sufficiently new version, this error\n");
13610 printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
13611 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13612 printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
13613 printf("*** correct copy of xml2-config. (In this case, you will have to\n");
13614 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13615 printf("*** so that the correct libraries are found at run-time))\n");
13621 if { (eval echo configure
:13622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13625 echo "configure: failed program was:" >&5
13626 cat conftest.
$ac_ext >&5
13633 CFLAGS
="$ac_save_CFLAGS"
13634 LIBS
="$ac_save_LIBS"
13638 if test "x$no_xml" = x
; then
13639 echo "$ac_t""yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" 1>&6
13640 MODULE_XML
=bin
/xml.so
13642 echo "$ac_t""no" 1>&6
13643 if test "$XML2_CONFIG" = "no" ; then
13644 echo "*** The xml2-config script installed by LIBXML could not be found"
13645 echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
13646 echo "*** your path, or set the XML2_CONFIG environment variable to the"
13647 echo "*** full path to xml2-config."
13649 if test -f conf.xmltest
; then
13652 echo "*** Could not run libxml test program, checking why..."
13653 CFLAGS
="$CFLAGS $XML_CFLAGS"
13654 LIBS
="$LIBS $XML_LIBS"
13655 cat > conftest.
$ac_ext <<EOF
13656 #line 13657 "configure"
13657 #include "confdefs.h"
13659 #include <libxml/xmlversion.h>
13663 LIBXML_TEST_VERSION; return 0;
13666 if { (eval echo configure
:13667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13668 echo "*** The test program compiled, but did not run. This usually means"
13669 echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
13670 echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
13671 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13672 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13673 echo "*** is required on your system"
13675 echo "*** If you have an old version installed, it is best to remove it, although"
13676 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13678 echo "configure: failed program was:" >&5
13679 cat conftest.
$ac_ext >&5
13681 echo "*** The test program failed to compile or link. See the file config.log for the"
13682 echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
13683 echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
13684 echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
13687 CFLAGS
="$ac_save_CFLAGS"
13688 LIBS
="$ac_save_LIBS"
13700 CFLAGS
="$CFLAGS $XML_CFLAGS"
13703 #################################################
13704 # check for automount support
13705 echo $ac_n "checking whether to use automount""... $ac_c" 1>&6
13706 echo "configure:13707: checking whether to use automount" >&5
13707 # Check whether --with-automount or --without-automount was given.
13708 if test "${with_automount+set}" = set; then
13709 withval
="$with_automount"
13712 echo "$ac_t""yes" 1>&6
13713 cat >> confdefs.h
<<\EOF
13714 #define WITH_AUTOMOUNT 1
13719 echo "$ac_t""no" 1>&6
13723 echo "$ac_t""no" 1>&6
13728 #################################################
13729 # check for smbmount support
13730 echo $ac_n "checking whether to use smbmount""... $ac_c" 1>&6
13731 echo "configure:13732: checking whether to use smbmount" >&5
13732 # Check whether --with-smbmount or --without-smbmount was given.
13733 if test "${with_smbmount+set}" = set; then
13734 withval
="$with_smbmount"
13739 echo "$ac_t""yes" 1>&6
13740 cat >> confdefs.h
<<\EOF
13741 #define WITH_SMBMOUNT 1
13744 EXTRA_BIN_PROGS
="$EXTRA_BIN_PROGS bin/smbmount bin/smbmnt bin/smbumount"
13747 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
13752 echo "$ac_t""no" 1>&6
13756 echo "$ac_t""no" 1>&6
13762 #################################################
13763 # check for a PAM clear-text auth, accounts, password and session support
13764 with_pam_for_crypt
=no
13765 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
13766 echo "configure:13767: checking whether to use PAM" >&5
13767 # Check whether --with-pam or --without-pam was given.
13768 if test "${with_pam+set}" = set; then
13769 withval
="$with_pam"
13772 echo "$ac_t""yes" 1>&6
13773 cat >> confdefs.h
<<\EOF
13777 AUTHLIBS
="$AUTHLIBS -lpam"
13778 with_pam_for_crypt
=yes
13781 echo "$ac_t""no" 1>&6
13785 echo "$ac_t""no" 1>&6
13790 # we can't build a pam module if we don't have pam.
13791 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
13792 echo "configure:13793: checking for pam_get_data in -lpam" >&5
13793 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
13794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13795 echo $ac_n "(cached) $ac_c" 1>&6
13797 ac_save_LIBS
="$LIBS"
13799 cat > conftest.
$ac_ext <<EOF
13800 #line 13801 "configure"
13801 #include "confdefs.h"
13802 /* Override any gcc2 internal prototype to avoid an error. */
13803 /* We use char because int might match the return type of a gcc2
13804 builtin and then its argument prototype would still apply. */
13805 char pam_get_data();
13811 if { (eval echo configure
:13812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13813 eval "ac_cv_lib_$ac_lib_var=yes"
13815 echo "configure: failed program was:" >&5
13816 cat conftest.
$ac_ext >&5
13818 eval "ac_cv_lib_$ac_lib_var=no"
13821 LIBS
="$ac_save_LIBS"
13824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13825 echo "$ac_t""yes" 1>&6
13826 cat >> confdefs.h
<<\EOF
13827 #define HAVE_LIBPAM 1
13831 echo "$ac_t""no" 1>&6
13835 #################################################
13836 # check for pam_smbpass support
13837 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
13838 echo "configure:13839: checking whether to use pam_smbpass" >&5
13839 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
13840 if test "${with_pam_smbpass+set}" = set; then
13841 withval
="$with_pam_smbpass"
13844 echo "$ac_t""yes" 1>&6
13846 # Conditions under which pam_smbpass should not be built.
13848 if test x
$PICFLAG = x
; then
13849 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
13850 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
13851 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
13853 SHLIB_PROGS
="$SHLIB_PROGS bin/pam_smbpass.so"
13857 echo "$ac_t""no" 1>&6
13861 echo "$ac_t""no" 1>&6
13867 ###############################################
13868 # test for where we get crypt() from, but only
13870 if test x
"$with_pam_for_crypt" = x
"no"; then
13871 for ac_func
in crypt
13873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13874 echo "configure:13875: checking for $ac_func" >&5
13875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13876 echo $ac_n "(cached) $ac_c" 1>&6
13878 cat > conftest.
$ac_ext <<EOF
13879 #line 13880 "configure"
13880 #include "confdefs.h"
13881 /* System header to define __stub macros and hopefully few prototypes,
13882 which can conflict with char $ac_func(); below. */
13883 #include <assert.h>
13884 /* Override any gcc2 internal prototype to avoid an error. */
13885 /* We use char because int might match the return type of a gcc2
13886 builtin and then its argument prototype would still apply. */
13891 /* The GNU C library defines this for functions which it implements
13892 to always fail with ENOSYS. Some functions are actually named
13893 something starting with __ and the normal name is an alias. */
13894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13902 if { (eval echo configure
:13903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13904 eval "ac_cv_func_$ac_func=yes"
13906 echo "configure: failed program was:" >&5
13907 cat conftest.
$ac_ext >&5
13909 eval "ac_cv_func_$ac_func=no"
13914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13915 echo "$ac_t""yes" 1>&6
13916 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13917 cat >> confdefs.h
<<EOF
13918 #define $ac_tr_func 1
13922 echo "$ac_t""no" 1>&6
13926 if test x
"$ac_cv_func_crypt" = x
"no"; then
13927 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13928 echo "configure:13929: checking for crypt in -lcrypt" >&5
13929 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
13930 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13931 echo $ac_n "(cached) $ac_c" 1>&6
13933 ac_save_LIBS
="$LIBS"
13934 LIBS
="-lcrypt $LIBS"
13935 cat > conftest.
$ac_ext <<EOF
13936 #line 13937 "configure"
13937 #include "confdefs.h"
13938 /* Override any gcc2 internal prototype to avoid an error. */
13939 /* We use char because int might match the return type of a gcc2
13940 builtin and then its argument prototype would still apply. */
13947 if { (eval echo configure
:13948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13949 eval "ac_cv_lib_$ac_lib_var=yes"
13951 echo "configure: failed program was:" >&5
13952 cat conftest.
$ac_ext >&5
13954 eval "ac_cv_lib_$ac_lib_var=no"
13957 LIBS
="$ac_save_LIBS"
13960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13961 echo "$ac_t""yes" 1>&6
13962 AUTHLIBS
="$AUTHLIBS -lcrypt";
13963 cat >> confdefs.h
<<\EOF
13964 #define HAVE_CRYPT 1
13968 echo "$ac_t""no" 1>&6
13975 ## moved after the check for -lcrypt in order to
13976 ## ensure that the necessary libraries are included
13977 ## check checking for truncated salt. Wrapped by the
13978 ## $with_pam_for_crypt variable as above --jerry
13980 if test $with_pam_for_crypt = no
; then
13981 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
13982 echo "configure:13983: checking for a crypt that needs truncated salt" >&5
13983 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
13984 echo $ac_n "(cached) $ac_c" 1>&6
13988 LIBS
="$AUTHLIBS $LIBS"
13989 if test "$cross_compiling" = yes; then
13990 samba_cv_HAVE_TRUNCATED_SALT
=cross
13992 cat > conftest.
$ac_ext <<EOF
13993 #line 13994 "configure"
13994 #include "confdefs.h"
13995 #include "${srcdir-.}/tests/crypttest.c"
13997 if { (eval echo configure
:13998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13999 samba_cv_HAVE_TRUNCATED_SALT
=no
14001 echo "configure: failed program was:" >&5
14002 cat conftest.
$ac_ext >&5
14004 samba_cv_HAVE_TRUNCATED_SALT
=yes
14012 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
14013 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
14014 cat >> confdefs.h
<<\EOF
14015 #define HAVE_TRUNCATED_SALT 1
14021 # New experimental SAM system
14023 echo $ac_n "checking whether to build the new (experimental) SAM database""... $ac_c" 1>&6
14024 echo "configure:14025: checking whether to build the new (experimental) SAM database" >&5
14025 # Check whether --with-sam or --without-sam was given.
14026 if test "${with_sam+set}" = set; then
14027 withval
="$with_sam"
14030 echo "$ac_t""yes" 1>&6
14031 cat >> confdefs.h
<<\EOF
14037 echo "$ac_t""no" 1>&6
14041 echo "$ac_t""no" 1>&6
14047 ########################################################################################
14049 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
14051 ########################################################################################
14053 #################################################
14054 # check for a LDAP password database configuration backwards compatibility
14055 echo $ac_n "checking whether to use LDAP SAM 2.2 compatible configuration""... $ac_c" 1>&6
14056 echo "configure:14057: checking whether to use LDAP SAM 2.2 compatible configuration" >&5
14057 # Check whether --with-ldapsam or --without-ldapsam was given.
14058 if test "${with_ldapsam+set}" = set; then
14059 withval
="$with_ldapsam"
14062 echo "$ac_t""yes" 1>&6
14063 cat >> confdefs.h
<<\EOF
14064 #define WITH_LDAP_SAMCONFIG 1
14069 echo "$ac_t""no" 1>&6
14073 echo "$ac_t""no" 1>&6
14078 #################################################
14079 # check for a TDB password database
14080 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
14081 echo "configure:14082: checking whether to use TDB SAM database" >&5
14082 # Check whether --with-tdbsam or --without-tdbsam was given.
14083 if test "${with_tdbsam+set}" = set; then
14084 withval
="$with_tdbsam"
14087 echo "$ac_t""yes" 1>&6
14088 cat >> confdefs.h
<<\EOF
14089 #define WITH_TDB_SAM 1
14094 echo "$ac_t""no" 1>&6
14098 echo "$ac_t""no" 1>&6
14103 #################################################
14104 # check for a NISPLUS password database
14105 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
14106 echo "configure:14107: checking whether to use NISPLUS SAM database" >&5
14107 # Check whether --with-nisplussam or --without-nisplussam was given.
14108 if test "${with_nisplussam+set}" = set; then
14109 withval
="$with_nisplussam"
14112 echo "$ac_t""yes" 1>&6
14113 cat >> confdefs.h
<<\EOF
14114 #define WITH_NISPLUS_SAM 1
14119 echo "$ac_t""no" 1>&6
14123 echo "$ac_t""no" 1>&6
14128 ########################################################################################
14130 ## END OF TESTS FOR SAM BACKENDS.
14132 ########################################################################################
14134 #################################################
14135 # check for a NISPLUS_HOME support
14136 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
14137 echo "configure:14138: checking whether to use NISPLUS_HOME" >&5
14138 # Check whether --with-nisplus-home or --without-nisplus-home was given.
14139 if test "${with_nisplus_home+set}" = set; then
14140 withval
="$with_nisplus_home"
14143 echo "$ac_t""yes" 1>&6
14144 cat >> confdefs.h
<<\EOF
14145 #define WITH_NISPLUS_HOME 1
14150 echo "$ac_t""no" 1>&6
14154 echo "$ac_t""no" 1>&6
14159 #################################################
14160 # check for syslog logging
14161 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
14162 echo "configure:14163: checking whether to use syslog logging" >&5
14163 # Check whether --with-syslog or --without-syslog was given.
14164 if test "${with_syslog+set}" = set; then
14165 withval
="$with_syslog"
14168 echo "$ac_t""yes" 1>&6
14169 cat >> confdefs.h
<<\EOF
14170 #define WITH_SYSLOG 1
14175 echo "$ac_t""no" 1>&6
14179 echo "$ac_t""no" 1>&6
14184 #################################################
14185 # check for a shared memory profiling support
14186 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
14187 echo "configure:14188: checking whether to use profiling" >&5
14188 # Check whether --with-profiling-data or --without-profiling-data was given.
14189 if test "${with_profiling_data+set}" = set; then
14190 withval
="$with_profiling_data"
14193 echo "$ac_t""yes" 1>&6
14194 cat >> confdefs.h
<<\EOF
14195 #define WITH_PROFILE 1
14200 echo "$ac_t""no" 1>&6
14204 echo "$ac_t""no" 1>&6
14210 #################################################
14211 # check for experimental disk-quotas support
14212 QUOTAOBJS
=smbd
/noquotas.o
14214 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
14215 echo "configure:14216: checking whether to support disk-quotas" >&5
14216 # Check whether --with-quotas or --without-quotas was given.
14217 if test "${with_quotas+set}" = set; then
14218 withval
="$with_quotas"
14221 echo "$ac_t""yes" 1>&6
14224 # Check for kernel 2.4.x quota braindamage...
14225 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
14226 echo "configure:14227: checking for linux 2.4.x quota braindamage.." >&5
14227 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
14228 echo $ac_n "(cached) $ac_c" 1>&6
14231 cat > conftest.
$ac_ext <<EOF
14232 #line 14233 "configure"
14233 #include "confdefs.h"
14235 #include <sys/types.h>
14236 #include <asm/types.h>
14237 #include <linux/quota.h>
14238 #include <mntent.h>
14239 #include <linux/unistd.h>
14241 struct mem_dqblk D;
14244 if { (eval echo configure
:14245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14246 samba_cv_linux_2_4_quota_braindamage
=yes
14248 echo "configure: failed program was:" >&5
14249 cat conftest.
$ac_ext >&5
14251 samba_cv_linux_2_4_quota_braindamage
=no
14256 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
14257 if test x
"$samba_cv_linux_2_4_quota_braindamage" = x
"yes"; then
14258 cat >> confdefs.h
<<\EOF
14259 #define LINUX_QUOTAS_2 1
14263 cat >> confdefs.h
<<\EOF
14264 #define LINUX_QUOTAS_1 1
14272 QUOTAOBJS
=smbd
/quotas.o
14273 cat >> confdefs.h
<<\EOF
14274 #define WITH_QUOTAS 1
14279 echo "$ac_t""no" 1>&6
14283 echo "$ac_t""no" 1>&6
14289 #################################################
14290 # check for experimental utmp accounting
14292 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
14293 echo "configure:14294: checking whether to support utmp accounting" >&5
14294 # Check whether --with-utmp or --without-utmp was given.
14295 if test "${with_utmp+set}" = set; then
14296 withval
="$with_utmp"
14299 echo "$ac_t""yes" 1>&6
14300 cat >> confdefs.h
<<\EOF
14301 #define WITH_UTMP 1
14306 echo "$ac_t""no" 1>&6
14310 echo "$ac_t""no" 1>&6
14315 #################################################
14316 # choose native language(s) of man pages
14317 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
14318 echo "configure:14319: checking chosen man pages' language(s)" >&5
14319 # Check whether --with-manpages-langs or --without-manpages-langs was given.
14320 if test "${with_manpages_langs+set}" = set; then
14321 withval
="$with_manpages_langs"
14324 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
14328 manlangs
="$withval"
14332 echo "$ac_t""$manlangs" 1>&6
14333 manlangs
=`echo $manlangs | sed "s/,/ /g"` # replacing commas with spaces to produce a list
14337 echo "$ac_t""$manlangs" 1>&6
14343 #################################################
14344 # should we build libsmbclient?
14346 INSTALLCLIENTCMD_SH
=:
14347 INSTALLCLIENTCMD_A
=:
14348 LIBSMBCLIENT_SHARED
=
14350 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
14351 echo "configure:14352: checking whether to build the libsmbclient shared library" >&5
14352 # Check whether --with-libsmbclient or --without-libsmbclient was given.
14353 if test "${with_libsmbclient+set}" = set; then
14354 withval
="$with_libsmbclient"
14357 echo "$ac_t""no" 1>&6
14360 if test $BLDSHARED = true
; then
14361 INSTALLCLIENTCMD_SH
="\$(INSTALLCMD)"
14362 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
14363 LIBSMBCLIENT
=libsmbclient
14364 echo "$ac_t""yes" 1>&6
14366 INSTALLCLIENTCMD_A
="\$(INSTALLCMD)"
14367 LIBSMBCLIENT
=libsmbclient
14368 echo "$ac_t""no shared library support -- will supply static library" 1>&6
14374 # if unspecified, default is to built it iff possible.
14375 if test $BLDSHARED = true
; then
14376 INSTALLCLIENTCMD_SH
="\$(INSTALLCMD)"
14377 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
14378 LIBSMBCLIENT
=libsmbclient
14379 echo "$ac_t""yes" 1>&6
14381 INSTALLCLIENTCMD_A
="\$(INSTALLCMD)"
14382 LIBSMBCLIENT
=libsmbclient
14383 echo "$ac_t""no shared library support -- will supply static library" 1>&6
14390 #################################################
14391 # these tests are taken from the GNU fileutils package
14392 echo "checking how to get filesystem space usage" 1>&6
14393 echo "configure:14394: checking how to get filesystem space usage" >&5
14396 # Test for statvfs64.
14397 if test $space = no
; then
14399 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
14400 echo "configure:14401: checking statvfs64 function (SVR4)" >&5
14401 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
14402 echo $ac_n "(cached) $ac_c" 1>&6
14404 if test "$cross_compiling" = yes; then
14405 fu_cv_sys_stat_statvfs64
=cross
14407 cat > conftest.
$ac_ext <<EOF
14408 #line 14409 "configure"
14409 #include "confdefs.h"
14411 #if defined(HAVE_UNISTD_H)
14412 #include <unistd.h>
14414 #include <sys/types.h>
14415 #include <sys/statvfs.h>
14418 struct statvfs64 fsd;
14419 exit (statvfs64 (".", &fsd));
14422 if { (eval echo configure
:14423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14424 fu_cv_sys_stat_statvfs64
=yes
14426 echo "configure: failed program was:" >&5
14427 cat conftest.
$ac_ext >&5
14429 fu_cv_sys_stat_statvfs64
=no
14436 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
14437 if test $fu_cv_sys_stat_statvfs64 = yes; then
14439 cat >> confdefs.h
<<\EOF
14440 #define STAT_STATVFS64 1
14446 # Perform only the link test since it seems there are no variants of the
14447 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
14448 # because that got a false positive on SCO OSR5. Adding the declaration
14449 # of a `struct statvfs' causes this test to fail (as it should) on such
14450 # systems. That system is reported to work fine with STAT_STATFS4 which
14451 # is what it gets when this test fails.
14452 if test $space = no
; then
14454 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
14455 echo "configure:14456: checking statvfs function (SVR4)" >&5
14456 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
14457 echo $ac_n "(cached) $ac_c" 1>&6
14459 cat > conftest.
$ac_ext <<EOF
14460 #line 14461 "configure"
14461 #include "confdefs.h"
14462 #include <sys/types.h>
14463 #include <sys/statvfs.h>
14465 struct statvfs fsd; statvfs (0, &fsd);
14468 if { (eval echo configure
:14469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14470 fu_cv_sys_stat_statvfs
=yes
14472 echo "configure: failed program was:" >&5
14473 cat conftest.
$ac_ext >&5
14475 fu_cv_sys_stat_statvfs
=no
14480 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
14481 if test $fu_cv_sys_stat_statvfs = yes; then
14483 cat >> confdefs.h
<<\EOF
14484 #define STAT_STATVFS 1
14490 if test $space = no
; then
14491 # DEC Alpha running OSF/1
14492 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
14493 echo "configure:14494: checking for 3-argument statfs function (DEC OSF/1)" >&5
14494 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
14495 echo $ac_n "(cached) $ac_c" 1>&6
14497 if test "$cross_compiling" = yes; then
14498 fu_cv_sys_stat_statfs3_osf1
=no
14500 cat > conftest.
$ac_ext <<EOF
14501 #line 14502 "configure"
14502 #include "confdefs.h"
14504 #include <sys/param.h>
14505 #include <sys/types.h>
14506 #include <sys/mount.h>
14511 exit (statfs (".", &fsd, sizeof (struct statfs)));
14514 if { (eval echo configure
:14515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14516 fu_cv_sys_stat_statfs3_osf1
=yes
14518 echo "configure: failed program was:" >&5
14519 cat conftest.
$ac_ext >&5
14521 fu_cv_sys_stat_statfs3_osf1
=no
14528 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
14529 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
14531 cat >> confdefs.h
<<\EOF
14532 #define STAT_STATFS3_OSF1 1
14538 if test $space = no
; then
14540 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
14541 echo "configure:14542: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
14542 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
14543 echo $ac_n "(cached) $ac_c" 1>&6
14545 if test "$cross_compiling" = yes; then
14546 fu_cv_sys_stat_statfs2_bsize
=no
14548 cat > conftest.
$ac_ext <<EOF
14549 #line 14550 "configure"
14550 #include "confdefs.h"
14552 #ifdef HAVE_SYS_PARAM_H
14553 #include <sys/param.h>
14555 #ifdef HAVE_SYS_MOUNT_H
14556 #include <sys/mount.h>
14558 #ifdef HAVE_SYS_VFS_H
14559 #include <sys/vfs.h>
14565 exit (statfs (".", &fsd));
14568 if { (eval echo configure
:14569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14570 fu_cv_sys_stat_statfs2_bsize
=yes
14572 echo "configure: failed program was:" >&5
14573 cat conftest.
$ac_ext >&5
14575 fu_cv_sys_stat_statfs2_bsize
=no
14582 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
14583 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
14585 cat >> confdefs.h
<<\EOF
14586 #define STAT_STATFS2_BSIZE 1
14592 if test $space = no
; then
14594 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
14595 echo "configure:14596: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
14596 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
14597 echo $ac_n "(cached) $ac_c" 1>&6
14599 if test "$cross_compiling" = yes; then
14600 fu_cv_sys_stat_statfs4
=no
14602 cat > conftest.
$ac_ext <<EOF
14603 #line 14604 "configure"
14604 #include "confdefs.h"
14605 #include <sys/types.h>
14606 #include <sys/statfs.h>
14610 exit (statfs (".", &fsd, sizeof fsd, 0));
14613 if { (eval echo configure
:14614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14615 fu_cv_sys_stat_statfs4
=yes
14617 echo "configure: failed program was:" >&5
14618 cat conftest.
$ac_ext >&5
14620 fu_cv_sys_stat_statfs4
=no
14627 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
14628 if test $fu_cv_sys_stat_statfs4 = yes; then
14630 cat >> confdefs.h
<<\EOF
14631 #define STAT_STATFS4 1
14637 if test $space = no
; then
14638 # 4.4BSD and NetBSD
14639 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
14640 echo "configure:14641: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
14641 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
14642 echo $ac_n "(cached) $ac_c" 1>&6
14644 if test "$cross_compiling" = yes; then
14645 fu_cv_sys_stat_statfs2_fsize
=no
14647 cat > conftest.
$ac_ext <<EOF
14648 #line 14649 "configure"
14649 #include "confdefs.h"
14650 #include <sys/types.h>
14651 #ifdef HAVE_SYS_PARAM_H
14652 #include <sys/param.h>
14654 #ifdef HAVE_SYS_MOUNT_H
14655 #include <sys/mount.h>
14661 exit (statfs (".", &fsd));
14664 if { (eval echo configure
:14665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14666 fu_cv_sys_stat_statfs2_fsize
=yes
14668 echo "configure: failed program was:" >&5
14669 cat conftest.
$ac_ext >&5
14671 fu_cv_sys_stat_statfs2_fsize
=no
14678 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
14679 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
14681 cat >> confdefs.h
<<\EOF
14682 #define STAT_STATFS2_FSIZE 1
14688 if test $space = no
; then
14690 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
14691 echo "configure:14692: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
14692 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
14693 echo $ac_n "(cached) $ac_c" 1>&6
14695 if test "$cross_compiling" = yes; then
14696 fu_cv_sys_stat_fs_data
=no
14698 cat > conftest.
$ac_ext <<EOF
14699 #line 14700 "configure"
14700 #include "confdefs.h"
14701 #include <sys/types.h>
14702 #ifdef HAVE_SYS_PARAM_H
14703 #include <sys/param.h>
14705 #ifdef HAVE_SYS_MOUNT_H
14706 #include <sys/mount.h>
14708 #ifdef HAVE_SYS_FS_TYPES_H
14709 #include <sys/fs_types.h>
14713 struct fs_data fsd;
14714 /* Ultrix's statfs returns 1 for success,
14715 0 for not mounted, -1 for failure. */
14716 exit (statfs (".", &fsd) != 1);
14719 if { (eval echo configure
:14720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14721 fu_cv_sys_stat_fs_data
=yes
14723 echo "configure: failed program was:" >&5
14724 cat conftest.
$ac_ext >&5
14726 fu_cv_sys_stat_fs_data
=no
14733 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
14734 if test $fu_cv_sys_stat_fs_data = yes; then
14736 cat >> confdefs.h
<<\EOF
14737 #define STAT_STATFS2_FS_DATA 1
14744 # As a gating factor for large file support, in order to
14745 # use <4GB files we must have the following minimal support
14747 # long long, and a 64 bit off_t or off64_t.
14748 # If we don't have all of these then disable large
14751 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
14752 echo "configure:14753: checking if large file support can be enabled" >&5
14753 cat > conftest.
$ac_ext <<EOF
14754 #line 14755 "configure"
14755 #include "confdefs.h"
14757 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
14758 #include <sys/types.h>
14767 if { (eval echo configure
:14768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14769 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
14771 echo "configure: failed program was:" >&5
14772 cat conftest.
$ac_ext >&5
14774 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
14777 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
14778 cat >> confdefs.h
<<\EOF
14779 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
14783 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
14785 # Check whether --with-spinlocks or --without-spinlocks was given.
14786 if test "${with_spinlocks+set}" = set; then
14787 withval
="$with_spinlocks"
14791 if test "x$with_spinlocks" = "xyes"; then
14792 cat >> confdefs.h
<<\EOF
14793 #define USE_SPINLOCKS 1
14797 case "$host_cpu" in
14799 cat >> confdefs.h
<<\EOF
14800 #define SPARC_SPINLOCKS 1
14805 i386|i486|i586|i686
)
14806 cat >> confdefs.h
<<\EOF
14807 #define INTEL_SPINLOCKS 1
14813 cat >> confdefs.h
<<\EOF
14814 #define MIPS_SPINLOCKS 1
14820 cat >> confdefs.h
<<\EOF
14821 #define POWERPC_SPINLOCKS 1
14828 #################################################
14829 # check for ACL support
14831 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
14832 echo "configure:14833: checking whether to support ACLs" >&5
14833 # Check whether --with-acl-support or --without-acl-support was given.
14834 if test "${with_acl_support+set}" = set; then
14835 withval
="$with_acl_support"
14841 echo "$ac_t""Using UnixWare ACLs" 1>&6
14842 cat >> confdefs.h
<<\EOF
14843 #define HAVE_UNIXWARE_ACLS 1
14848 echo "$ac_t""Using solaris ACLs" 1>&6
14849 cat >> confdefs.h
<<\EOF
14850 #define HAVE_SOLARIS_ACLS 1
14855 echo "$ac_t""Using HPUX ACLs" 1>&6
14856 cat >> confdefs.h
<<\EOF
14857 #define HAVE_HPUX_ACLS 1
14862 echo "$ac_t""Using IRIX ACLs" 1>&6
14863 cat >> confdefs.h
<<\EOF
14864 #define HAVE_IRIX_ACLS 1
14869 echo "$ac_t""Using AIX ACLs" 1>&6
14870 cat >> confdefs.h
<<\EOF
14871 #define HAVE_AIX_ACLS 1
14876 echo "$ac_t""Using Tru64 ACLs" 1>&6
14877 cat >> confdefs.h
<<\EOF
14878 #define HAVE_TRU64_ACLS 1
14881 LIBS
="$LIBS -lpacl"
14884 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
14885 echo "configure:14886: checking for acl_get_file in -lacl" >&5
14886 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
14887 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14888 echo $ac_n "(cached) $ac_c" 1>&6
14890 ac_save_LIBS
="$LIBS"
14892 cat > conftest.
$ac_ext <<EOF
14893 #line 14894 "configure"
14894 #include "confdefs.h"
14895 /* Override any gcc2 internal prototype to avoid an error. */
14896 /* We use char because int might match the return type of a gcc2
14897 builtin and then its argument prototype would still apply. */
14898 char acl_get_file();
14904 if { (eval echo configure
:14905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14906 eval "ac_cv_lib_$ac_lib_var=yes"
14908 echo "configure: failed program was:" >&5
14909 cat conftest.
$ac_ext >&5
14911 eval "ac_cv_lib_$ac_lib_var=no"
14914 LIBS
="$ac_save_LIBS"
14917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14918 echo "$ac_t""yes" 1>&6
14919 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14920 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14921 cat >> confdefs.h
<<EOF
14922 #define $ac_tr_lib 1
14928 echo "$ac_t""no" 1>&6
14931 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
14932 echo "configure:14933: checking for ACL support" >&5
14933 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
14934 echo $ac_n "(cached) $ac_c" 1>&6
14937 cat > conftest.
$ac_ext <<EOF
14938 #line 14939 "configure"
14939 #include "confdefs.h"
14940 #include <sys/types.h>
14941 #include <sys/acl.h>
14943 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
14946 if { (eval echo configure
:14947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14948 samba_cv_HAVE_POSIX_ACLS
=yes
14950 echo "configure: failed program was:" >&5
14951 cat conftest.
$ac_ext >&5
14953 samba_cv_HAVE_POSIX_ACLS
=no
14958 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
14959 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
14960 echo "$ac_t""Using posix ACLs" 1>&6
14961 cat >> confdefs.h
<<\EOF
14962 #define HAVE_POSIX_ACLS 1
14965 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
14966 echo "configure:14967: checking for acl_get_perm_np" >&5
14967 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
14968 echo $ac_n "(cached) $ac_c" 1>&6
14971 cat > conftest.
$ac_ext <<EOF
14972 #line 14973 "configure"
14973 #include "confdefs.h"
14974 #include <sys/types.h>
14975 #include <sys/acl.h>
14977 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
14980 if { (eval echo configure
:14981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14982 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
14984 echo "configure: failed program was:" >&5
14985 cat conftest.
$ac_ext >&5
14987 samba_cv_HAVE_ACL_GET_PERM_NP
=no
14992 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
14993 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
14994 cat >> confdefs.h
<<\EOF
14995 #define HAVE_ACL_GET_PERM_NP 1
15004 echo "$ac_t""no" 1>&6
15005 cat >> confdefs.h
<<\EOF
15006 #define HAVE_NO_ACLS 1
15012 cat >> confdefs.h
<<\EOF
15013 #define HAVE_NO_ACLS 1
15016 echo "$ac_t""no" 1>&6
15021 #################################################
15022 # check for sendfile support
15024 with_sendfile_support
=yes
15025 echo $ac_n "checking whether to check to support sendfile""... $ac_c" 1>&6
15026 echo "configure:15027: checking whether to check to support sendfile" >&5
15027 # Check whether --with-sendfile-support or --without-sendfile-support was given.
15028 if test "${with_sendfile_support+set}" = set; then
15029 withval
="$with_sendfile_support"
15033 echo "$ac_t""yes" 1>&6;
15037 echo $ac_n "checking for linux sendfile64 support""... $ac_c" 1>&6
15038 echo "configure:15039: checking for linux sendfile64 support" >&5
15039 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
15040 echo $ac_n "(cached) $ac_c" 1>&6
15043 cat > conftest.
$ac_ext <<EOF
15044 #line 15045 "configure"
15045 #include "confdefs.h"
15046 #include <sys/sendfile.h>
15052 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
15056 if { (eval echo configure
:15057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15058 samba_cv_HAVE_SENDFILE64
=yes
15060 echo "configure: failed program was:" >&5
15061 cat conftest.
$ac_ext >&5
15063 samba_cv_HAVE_SENDFILE64
=no
15068 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
15070 echo $ac_n "checking for linux sendfile support""... $ac_c" 1>&6
15071 echo "configure:15072: checking for linux sendfile support" >&5
15072 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
15073 echo $ac_n "(cached) $ac_c" 1>&6
15076 cat > conftest.
$ac_ext <<EOF
15077 #line 15078 "configure"
15078 #include "confdefs.h"
15079 #include <sys/sendfile.h>
15085 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
15089 if { (eval echo configure
:15090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15091 samba_cv_HAVE_SENDFILE
=yes
15093 echo "configure: failed program was:" >&5
15094 cat conftest.
$ac_ext >&5
15096 samba_cv_HAVE_SENDFILE
=no
15101 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
15103 # Try and cope with broken Linux sendfile....
15104 echo $ac_n "checking for broken linux sendfile support""... $ac_c" 1>&6
15105 echo "configure:15106: checking for broken linux sendfile support" >&5
15106 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_LINUX_SENDFILE'+set}'`\" = set"; then
15107 echo $ac_n "(cached) $ac_c" 1>&6
15110 cat > conftest.
$ac_ext <<EOF
15111 #line 15112 "configure"
15112 #include "confdefs.h"
15114 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
15115 #undef _FILE_OFFSET_BITS
15117 #include <sys/sendfile.h>
15123 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
15127 if { (eval echo configure
:15128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15129 samba_cv_HAVE_BROKEN_LINUX_SENDFILE
=yes
15131 echo "configure: failed program was:" >&5
15132 cat conftest.
$ac_ext >&5
15134 samba_cv_HAVE_BROKEN_LINUX_SENDFILE
=no
15139 echo "$ac_t""$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" 1>&6
15141 if test x
"$samba_cv_HAVE_SENDFILE64" = x
"yes"; then
15142 cat >> confdefs.h
<<\EOF
15143 #define HAVE_SENDFILE64 1
15146 cat >> confdefs.h
<<\EOF
15147 #define LINUX_SENDFILE_API 1
15150 cat >> confdefs.h
<<\EOF
15151 #define WITH_SENDFILE 1
15154 elif test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
15155 cat >> confdefs.h
<<\EOF
15156 #define HAVE_SENDFILE 1
15159 cat >> confdefs.h
<<\EOF
15160 #define LINUX_SENDFILE_API 1
15163 cat >> confdefs.h
<<\EOF
15164 #define WITH_SENDFILE 1
15167 elif test x
"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x
"yes"; then
15168 cat >> confdefs.h
<<\EOF
15169 #define LINUX_BROKEN_SENDFILE_API 1
15172 cat >> confdefs.h
<<\EOF
15173 #define WITH_SENDFILE 1
15177 echo "$ac_t""no" 1>&6;
15182 echo $ac_n "checking for freebsd sendfile support""... $ac_c" 1>&6
15183 echo "configure:15184: checking for freebsd sendfile support" >&5
15184 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
15185 echo $ac_n "(cached) $ac_c" 1>&6
15188 cat > conftest.
$ac_ext <<EOF
15189 #line 15190 "configure"
15190 #include "confdefs.h"
15192 #include <sys/types.h>
15193 #include <unistd.h>
15194 #include <sys/socket.h>
15195 #include <sys/uio.h>
15198 int fromfd, tofd, ret, total=0;
15199 off_t offset, nwritten;
15200 struct sf_hdtr hdr;
15201 struct iovec hdtrl;
15202 hdr.headers = &hdtrl;
15204 hdr.trailers = NULL;
15206 hdtrl.iov_base = NULL;
15208 ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
15212 if { (eval echo configure
:15213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15214 samba_cv_HAVE_SENDFILE
=yes
15216 echo "configure: failed program was:" >&5
15217 cat conftest.
$ac_ext >&5
15219 samba_cv_HAVE_SENDFILE
=no
15224 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
15226 if test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
15227 cat >> confdefs.h
<<\EOF
15228 #define HAVE_SENDFILE 1
15231 cat >> confdefs.h
<<\EOF
15232 #define FREEBSD_SENDFILE_API 1
15235 cat >> confdefs.h
<<\EOF
15236 #define WITH_SENDFILE 1
15240 echo "$ac_t""no" 1>&6;
15245 echo $ac_n "checking for hpux sendfile64 support""... $ac_c" 1>&6
15246 echo "configure:15247: checking for hpux sendfile64 support" >&5
15247 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
15248 echo $ac_n "(cached) $ac_c" 1>&6
15251 cat > conftest.
$ac_ext <<EOF
15252 #line 15253 "configure"
15253 #include "confdefs.h"
15255 #include <sys/socket.h>
15256 #include <sys/uio.h>
15261 struct iovec hdtrl[2];
15265 hdtrl[0].iov_base = 0;
15266 hdtrl[0].iov_len = 0;
15268 nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
15272 if { (eval echo configure
:15273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15274 samba_cv_HAVE_SENDFILE64
=yes
15276 echo "configure: failed program was:" >&5
15277 cat conftest.
$ac_ext >&5
15279 samba_cv_HAVE_SENDFILE64
=no
15284 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
15285 if test x
"$samba_cv_HAVE_SENDFILE64" = x
"yes"; then
15286 cat >> confdefs.h
<<\EOF
15287 #define HAVE_SENDFILE64 1
15290 cat >> confdefs.h
<<\EOF
15291 #define HPUX_SENDFILE_API 1
15294 cat >> confdefs.h
<<\EOF
15295 #define WITH_SENDFILE 1
15299 echo "$ac_t""no" 1>&6;
15302 echo $ac_n "checking for hpux sendfile support""... $ac_c" 1>&6
15303 echo "configure:15304: checking for hpux sendfile support" >&5
15304 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
15305 echo $ac_n "(cached) $ac_c" 1>&6
15308 cat > conftest.
$ac_ext <<EOF
15309 #line 15310 "configure"
15310 #include "confdefs.h"
15312 #include <sys/socket.h>
15313 #include <sys/uio.h>
15318 struct iovec hdtrl[2];
15322 hdtrl[0].iov_base = 0;
15323 hdtrl[0].iov_len = 0;
15325 nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
15329 if { (eval echo configure
:15330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15331 samba_cv_HAVE_SENDFILE
=yes
15333 echo "configure: failed program was:" >&5
15334 cat conftest.
$ac_ext >&5
15336 samba_cv_HAVE_SENDFILE
=no
15341 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
15342 if test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
15343 cat >> confdefs.h
<<\EOF
15344 #define HAVE_SENDFILE 1
15347 cat >> confdefs.h
<<\EOF
15348 #define HPUX_SENDFILE_API 1
15351 cat >> confdefs.h
<<\EOF
15352 #define WITH_SENDFILE 1
15356 echo "$ac_t""no" 1>&6;
15361 echo $ac_n "checking for sendfilev in -lsendfile""... $ac_c" 1>&6
15362 echo "configure:15363: checking for sendfilev in -lsendfile" >&5
15363 ac_lib_var
=`echo sendfile'_'sendfilev | sed 'y%./+-%__p_%'`
15364 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15365 echo $ac_n "(cached) $ac_c" 1>&6
15367 ac_save_LIBS
="$LIBS"
15368 LIBS
="-lsendfile $LIBS"
15369 cat > conftest.
$ac_ext <<EOF
15370 #line 15371 "configure"
15371 #include "confdefs.h"
15372 /* Override any gcc2 internal prototype to avoid an error. */
15373 /* We use char because int might match the return type of a gcc2
15374 builtin and then its argument prototype would still apply. */
15381 if { (eval echo configure
:15382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15383 eval "ac_cv_lib_$ac_lib_var=yes"
15385 echo "configure: failed program was:" >&5
15386 cat conftest.
$ac_ext >&5
15388 eval "ac_cv_lib_$ac_lib_var=no"
15391 LIBS
="$ac_save_LIBS"
15394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15395 echo "$ac_t""yes" 1>&6
15396 ac_tr_lib
=HAVE_LIB
`echo sendfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \
15397 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
15398 cat >> confdefs.h
<<EOF
15399 #define $ac_tr_lib 1
15402 LIBS
="-lsendfile $LIBS"
15405 echo "$ac_t""no" 1>&6
15408 echo $ac_n "checking for solaris sendfilev64 support""... $ac_c" 1>&6
15409 echo "configure:15410: checking for solaris sendfilev64 support" >&5
15410 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV64'+set}'`\" = set"; then
15411 echo $ac_n "(cached) $ac_c" 1>&6
15414 cat > conftest.
$ac_ext <<EOF
15415 #line 15416 "configure"
15416 #include "confdefs.h"
15418 #include <sys/sendfile.h>
15423 struct sendfilevec vec[2];
15429 vec[0].sfv_fd = SFV_FD_SELF;
15430 vec[0].sfv_flag = 0;
15431 vec[0].sfv_off = 0;
15432 vec[0].sfv_len = 0;
15435 vec[1].sfv_flag = 0;
15436 vec[1].sfv_off = 0;
15437 vec[1].sfv_len = 0;
15438 nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
15442 if { (eval echo configure
:15443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15444 samba_cv_HAVE_SENDFILEV64
=yes
15446 echo "configure: failed program was:" >&5
15447 cat conftest.
$ac_ext >&5
15449 samba_cv_HAVE_SENDFILEV64
=no
15454 echo "$ac_t""$samba_cv_HAVE_SENDFILEV64" 1>&6
15456 if test x
"$samba_cv_HAVE_SENDFILEV64" = x
"yes"; then
15457 cat >> confdefs.h
<<\EOF
15458 #define HAVE_SENDFILEV64 1
15461 cat >> confdefs.h
<<\EOF
15462 #define SOLARIS_SENDFILE_API 1
15465 cat >> confdefs.h
<<\EOF
15466 #define WITH_SENDFILE 1
15470 echo "$ac_t""no" 1>&6;
15473 echo $ac_n "checking for solaris sendfilev support""... $ac_c" 1>&6
15474 echo "configure:15475: checking for solaris sendfilev support" >&5
15475 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV'+set}'`\" = set"; then
15476 echo $ac_n "(cached) $ac_c" 1>&6
15479 cat > conftest.
$ac_ext <<EOF
15480 #line 15481 "configure"
15481 #include "confdefs.h"
15483 #include <sys/sendfile.h>
15488 struct sendfilevec vec[2];
15494 vec[0].sfv_fd = SFV_FD_SELF;
15495 vec[0].sfv_flag = 0;
15496 vec[0].sfv_off = 0;
15497 vec[0].sfv_len = 0;
15500 vec[1].sfv_flag = 0;
15501 vec[1].sfv_off = 0;
15502 vec[1].sfv_len = 0;
15503 nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
15507 if { (eval echo configure
:15508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15509 samba_cv_HAVE_SENDFILEV
=yes
15511 echo "configure: failed program was:" >&5
15512 cat conftest.
$ac_ext >&5
15514 samba_cv_HAVE_SENDFILEV
=no
15519 echo "$ac_t""$samba_cv_HAVE_SENDFILEV" 1>&6
15521 if test x
"$samba_cv_HAVE_SENDFILEV" = x
"yes"; then
15522 cat >> confdefs.h
<<\EOF
15523 #define HAVE_SENDFILEV 1
15526 cat >> confdefs.h
<<\EOF
15527 #define SOLARIS_SENDFILE_API 1
15530 cat >> confdefs.h
<<\EOF
15531 #define WITH_SENDFILE 1
15535 echo "$ac_t""no" 1>&6;
15544 echo "$ac_t""no" 1>&6
15548 echo "$ac_t""yes" 1>&6
15554 #################################################
15555 # Check whether winbind is supported on this platform. If so we need to
15556 # build and install client programs, sbin programs and shared libraries
15558 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
15559 echo "configure:15560: checking whether to build winbind" >&5
15561 # Initially, the value of $host_os decides whether winbind is supported
15569 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
15570 WINBIND_NSS_EXTRA_LIBS
="-lsocket"
15574 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
15578 winbind_no_reason
=", unsupported on $host_os"
15585 # Check the setting of --with-winbindd
15587 # Check whether --with-winbind or --without-winbind was given.
15588 if test "${with_winbind+set}" = set; then
15589 withval
="$with_winbind"
15603 # We need unix domain sockets for winbind
15605 if test x
"$HAVE_WINBIND" = x
"yes"; then
15606 if test x
"$samba_cv_unixsocket" = x
"no"; then
15607 winbind_no_reason
=", no unix domain socket support on $host_os"
15612 # Display test results
15614 if test x
"$HAVE_WINBIND" = x
"yes"; then
15615 echo "$ac_t""yes" 1>&6
15616 cat >> confdefs.h
<<\EOF
15617 #define WITH_WINBIND 1
15621 EXTRA_BIN_PROGS
="$EXTRA_BIN_PROGS bin/wbinfo\$(EXEEXT)"
15622 EXTRA_SBIN_PROGS
="$EXTRA_SBIN_PROGS bin/winbindd\$(EXEEXT)"
15623 if test x
"$BLDSHARED" = x
"true"; then
15626 SHLIB_PROGS
="$SHLIB_PROGS nsswitch/libns_winbind.so"
15629 SHLIB_PROGS
="$SHLIB_PROGS nsswitch/libnss_winbind.so"
15632 if test x
"$with_pam" = x
"yes"; then
15633 SHLIB_PROGS
="$SHLIB_PROGS nsswitch/pam_winbind.so"
15637 echo "$ac_t""no$winbind_no_reason" 1>&6
15640 # Solaris has some extra fields in struct passwd that need to be
15641 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
15642 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
15645 #AC_CHECK_MEMBER(struct passwd.pw_comment,
15646 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
15647 # [#include <pwd.h>])
15649 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
15650 echo "configure:15651: checking whether struct passwd has pw_comment" >&5
15651 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
15652 echo $ac_n "(cached) $ac_c" 1>&6
15655 cat > conftest.
$ac_ext <<EOF
15656 #line 15657 "configure"
15657 #include "confdefs.h"
15660 struct passwd p; p.pw_comment;
15663 if { (eval echo configure
:15664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15665 samba_cv_passwd_pw_comment
=yes
15667 echo "configure: failed program was:" >&5
15668 cat conftest.
$ac_ext >&5
15670 samba_cv_passwd_pw_comment
=no
15675 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
15676 if test x
"$samba_cv_passwd_pw_comment" = x
"yes"; then
15677 cat >> confdefs.h
<<\EOF
15678 #define HAVE_PASSWD_PW_COMMENT 1
15683 #AC_CHECK_MEMBER(struct passwd.pw_age,
15684 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
15685 # [#include <pwd.h>])
15687 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
15688 echo "configure:15689: checking whether struct passwd has pw_age" >&5
15689 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
15690 echo $ac_n "(cached) $ac_c" 1>&6
15693 cat > conftest.
$ac_ext <<EOF
15694 #line 15695 "configure"
15695 #include "confdefs.h"
15698 struct passwd p; p.pw_age;
15701 if { (eval echo configure
:15702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15703 samba_cv_passwd_pw_age
=yes
15705 echo "configure: failed program was:" >&5
15706 cat conftest.
$ac_ext >&5
15708 samba_cv_passwd_pw_age
=no
15713 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
15714 if test x
"$samba_cv_passwd_pw_age" = x
"yes"; then
15715 cat >> confdefs.h
<<\EOF
15716 #define HAVE_PASSWD_PW_AGE 1
15721 #################################################
15722 # Check to see if we should use the included popt
15724 # Check whether --with-included-popt or --without-included-popt was given.
15725 if test "${with_included_popt+set}" = set; then
15726 withval
="$with_included_popt"
15738 if test x
"$INCLUDED_POPT" != x
"yes"; then
15739 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
15740 echo "configure:15741: checking for poptGetContext in -lpopt" >&5
15741 ac_lib_var
=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
15742 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15743 echo $ac_n "(cached) $ac_c" 1>&6
15745 ac_save_LIBS
="$LIBS"
15746 LIBS
="-lpopt $LIBS"
15747 cat > conftest.
$ac_ext <<EOF
15748 #line 15749 "configure"
15749 #include "confdefs.h"
15750 /* Override any gcc2 internal prototype to avoid an error. */
15751 /* We use char because int might match the return type of a gcc2
15752 builtin and then its argument prototype would still apply. */
15753 char poptGetContext();
15759 if { (eval echo configure
:15760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15761 eval "ac_cv_lib_$ac_lib_var=yes"
15763 echo "configure: failed program was:" >&5
15764 cat conftest.
$ac_ext >&5
15766 eval "ac_cv_lib_$ac_lib_var=no"
15769 LIBS
="$ac_save_LIBS"
15772 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15773 echo "$ac_t""yes" 1>&6
15776 echo "$ac_t""no" 1>&6
15782 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
15783 echo "configure:15784: checking whether to use included popt" >&5
15784 if test x
"$INCLUDED_POPT" = x
"yes"; then
15785 echo "$ac_t""yes" 1>&6
15786 BUILD_POPT
='$(POPT_OBJS)'
15787 FLAGS1
="-I$srcdir/popt"
15789 echo "$ac_t""no" 1>&6
15790 LIBS
="$LIBS -lpopt"
15795 #################################################
15796 # Check if the user wants Python
15798 # At the moment, you can use this to set which Python binary to link
15799 # against. (Libraries built for Python2.2 can't be used by 2.1,
15800 # though they can coexist in different directories.) In the future
15801 # this might make the Python stuff be built by default.
15803 # Defaulting python breaks the clean target if python isn't installed
15807 # Check whether --with-python or --without-python was given.
15808 if test "${with_python+set}" = set; then
15809 withval
="$with_python"
15810 case "${withval-python}" in
15813 EXTRA_ALL_TARGETS
="$EXTRA_ALL_TARGETS python_ext"
15819 PYTHON
=${withval-python}
15826 #################################################
15827 # do extra things if we are running insure
15829 if test "${ac_cv_prog_CC}" = "insure"; then
15830 CPPFLAGS
="$CPPFLAGS -D__INSURE__"
15833 #################################################
15834 # final configure stuff
15836 echo $ac_n "checking configure summary""... $ac_c" 1>&6
15837 echo "configure:15838: checking configure summary" >&5
15838 if test "$cross_compiling" = yes; then
15839 echo "configure: warning: cannot run when cross-compiling" 1>&2
15841 cat > conftest.
$ac_ext <<EOF
15842 #line 15843 "configure"
15843 #include "confdefs.h"
15844 #include "${srcdir-.}/tests/summary.c"
15846 if { (eval echo configure
:15847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
15848 echo "$ac_t""yes" 1>&6
15850 echo "configure: failed program was:" >&5
15851 cat conftest.
$ac_ext >&5
15853 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
15863 cat > confcache
<<\EOF
15864 # This file is a shell script that caches the results of configure
15865 # tests run on this system so they can be shared between configure
15866 # scripts and configure runs. It is not useful on other systems.
15867 # If it contains results you don't want to keep, you may remove or edit it.
15869 # By default, configure uses ./config.cache as the cache file,
15870 # creating it if it does not exist already. You can give configure
15871 # the --cache-file=FILE option to use a different cache file; that is
15872 # what configure does when it calls configure scripts in
15873 # subdirectories, so they share the cache.
15874 # Giving --cache-file=/dev/null disables caching, for debugging configure.
15875 # config.status only pays attention to the cache file if you give it the
15876 # --recheck option to rerun configure.
15879 # The following way of writing the cache mishandles newlines in values,
15880 # but we know of no workaround that is simple, portable, and efficient.
15881 # So, don't put newlines in cache variables' values.
15882 # Ultrix sh set writes to stderr and can't be redirected directly,
15883 # and sets the high bit in the cache file unless we assign to the vars.
15885 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15887 # `set' does not quote correctly, so add quotes (double-quote substitution
15888 # turns \\\\ into \\, and sed turns \\ into \).
15890 -e "s/'/'\\\\''/g" \
15891 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15894 # `set' quotes correctly as required by POSIX, so do not add quotes.
15895 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15898 if cmp -s $cache_file confcache
; then
15901 if test -w $cache_file; then
15902 echo "updating cache $cache_file"
15903 cat confcache
> $cache_file
15905 echo "not updating unwritable cache $cache_file"
15910 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15912 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15913 # Let make expand exec_prefix.
15914 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15916 # Any assignment to VPATH causes Sun make to only execute
15917 # the first set of double-colon rules, so remove it if not needed.
15918 # If there is a colon in the path, we need to keep it.
15919 if test "x$srcdir" = x.
; then
15920 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
15923 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15925 DEFS
=-DHAVE_CONFIG_H
15927 # Without the "./", some shells look in PATH for config.status.
15928 : ${CONFIG_STATUS=./config.status}
15930 echo creating
$CONFIG_STATUS
15931 rm -f $CONFIG_STATUS
15932 cat > $CONFIG_STATUS <<EOF
15934 # Generated automatically by configure.
15935 # Run this file to recreate the current configuration.
15936 # This directory was configured as follows,
15937 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15939 # $0 $ac_configure_args
15941 # Compiler output produced by configure, useful for debugging
15942 # configure, is in ./config.log if it exists.
15944 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15947 case "\$ac_option" in
15948 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15949 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15950 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15951 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15952 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15954 -help | --help | --hel | --he | --h)
15955 echo "\$ac_cs_usage"; exit 0 ;;
15956 *) echo "\$ac_cs_usage"; exit 1 ;;
15960 ac_given_srcdir=$srcdir
15961 ac_given_INSTALL="$INSTALL"
15963 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15965 cat >> $CONFIG_STATUS <<EOF
15967 # Protect against being on the right side of a sed subst in config.status.
15968 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15969 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15973 s%@CFLAGS@%$CFLAGS%g
15974 s%@CPPFLAGS@%$CPPFLAGS%g
15975 s%@CXXFLAGS@%$CXXFLAGS%g
15976 s%@FFLAGS@%$FFLAGS%g
15978 s%@LDFLAGS@%$LDFLAGS%g
15980 s%@exec_prefix@%$exec_prefix%g
15981 s%@prefix@%$prefix%g
15982 s%@program_transform_name@%$program_transform_name%g
15983 s%@bindir@%$bindir%g
15984 s%@sbindir@%$sbindir%g
15985 s%@libexecdir@%$libexecdir%g
15986 s%@datadir@%$datadir%g
15987 s%@sysconfdir@%$sysconfdir%g
15988 s%@sharedstatedir@%$sharedstatedir%g
15989 s%@localstatedir@%$localstatedir%g
15990 s%@libdir@%$libdir%g
15991 s%@includedir@%$includedir%g
15992 s%@oldincludedir@%$oldincludedir%g
15993 s%@infodir@%$infodir%g
15994 s%@mandir@%$mandir%g
15995 s%@configdir@%$configdir%g
15996 s%@lockdir@%$lockdir%g
15997 s%@piddir@%$piddir%g
15998 s%@logfilebase@%$logfilebase%g
15999 s%@privatedir@%$privatedir%g
16000 s%@swatdir@%$swatdir%g
16001 s%@LDSHFLAGS@%$LDSHFLAGS%g
16002 s%@SONAMEFLAG@%$SONAMEFLAG%g
16004 s%@HOST_OS@%$HOST_OS%g
16005 s%@PICFLAG@%$PICFLAG%g
16006 s%@PICSUFFIX@%$PICSUFFIX%g
16007 s%@POBAD_CC@%$POBAD_CC%g
16008 s%@SHLIBEXT@%$SHLIBEXT%g
16009 s%@INSTALLCLIENTCMD_SH@%$INSTALLCLIENTCMD_SH%g
16010 s%@INSTALLCLIENTCMD_A@%$INSTALLCLIENTCMD_A%g
16011 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
16012 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
16013 s%@PRINTLIBS@%$PRINTLIBS%g
16014 s%@AUTHLIBS@%$AUTHLIBS%g
16015 s%@SHLIB_PROGS@%$SHLIB_PROGS%g
16016 s%@SMBWRAPPER@%$SMBWRAPPER%g
16017 s%@EXTRA_BIN_PROGS@%$EXTRA_BIN_PROGS%g
16018 s%@EXTRA_SBIN_PROGS@%$EXTRA_SBIN_PROGS%g
16019 s%@EXTRA_ALL_TARGETS@%$EXTRA_ALL_TARGETS%g
16020 s%@LSA_DYNAMIC_YES@%$LSA_DYNAMIC_YES%g
16021 s%@LSA_DYNAMIC_NO@%$LSA_DYNAMIC_NO%g
16022 s%@NETLOG_DYNAMIC_YES@%$NETLOG_DYNAMIC_YES%g
16023 s%@NETLOG_DYNAMIC_NO@%$NETLOG_DYNAMIC_NO%g
16024 s%@SAMR_DYNAMIC_YES@%$SAMR_DYNAMIC_YES%g
16025 s%@SAMR_DYNAMIC_NO@%$SAMR_DYNAMIC_NO%g
16026 s%@SVC_DYNAMIC_YES@%$SVC_DYNAMIC_YES%g
16027 s%@SVC_DYNAMIC_NO@%$SVC_DYNAMIC_NO%g
16028 s%@WKS_DYNAMIC_YES@%$WKS_DYNAMIC_YES%g
16029 s%@WKS_DYNAMIC_NO@%$WKS_DYNAMIC_NO%g
16030 s%@REG_DYNAMIC_YES@%$REG_DYNAMIC_YES%g
16031 s%@REG_DYNAMIC_NO@%$REG_DYNAMIC_NO%g
16032 s%@SPOOLSS_DYNAMIC_YES@%$SPOOLSS_DYNAMIC_YES%g
16033 s%@SPOOLSS_DYNAMIC_NO@%$SPOOLSS_DYNAMIC_NO%g
16034 s%@DFS_DYNAMIC_YES@%$DFS_DYNAMIC_YES%g
16035 s%@DFS_DYNAMIC_NO@%$DFS_DYNAMIC_NO%g
16037 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16038 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16039 s%@INSTALL_DATA@%$INSTALL_DATA%g
16041 s%@EXEEXT@%$EXEEXT%g
16042 s%@BROKEN_CC@%$BROKEN_CC%g
16044 s%@host_alias@%$host_alias%g
16045 s%@host_cpu@%$host_cpu%g
16046 s%@host_vendor@%$host_vendor%g
16047 s%@host_os@%$host_os%g
16048 s%@target@%$target%g
16049 s%@target_alias@%$target_alias%g
16050 s%@target_cpu@%$target_cpu%g
16051 s%@target_vendor@%$target_vendor%g
16052 s%@target_os@%$target_os%g
16054 s%@build_alias@%$build_alias%g
16055 s%@build_cpu@%$build_cpu%g
16056 s%@build_vendor@%$build_vendor%g
16057 s%@build_os@%$build_os%g
16059 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
16060 s%@LIBOBJS@%$LIBOBJS%g
16061 s%@TERMLIBS@%$TERMLIBS%g
16062 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
16064 s%@DYNEXP@%$DYNEXP%g
16065 s%@MYSQL_CONFIG@%$MYSQL_CONFIG%g
16066 s%@MYSQL_CFLAGS@%$MYSQL_CFLAGS%g
16067 s%@MYSQL_LIBS@%$MYSQL_LIBS%g
16068 s%@MODULE_MYSQL@%$MODULE_MYSQL%g
16069 s%@XML2_CONFIG@%$XML2_CONFIG%g
16070 s%@XML_CFLAGS@%$XML_CFLAGS%g
16071 s%@XML_LIBS@%$XML_LIBS%g
16072 s%@MODULE_XML@%$MODULE_XML%g
16073 s%@QUOTAOBJS@%$QUOTAOBJS%g
16074 s%@manlangs@%$manlangs%g
16075 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
16076 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
16077 s%@BUILD_POPT@%$BUILD_POPT%g
16078 s%@FLAGS1@%$FLAGS1%g
16079 s%@PYTHON@%$PYTHON%g
16080 s%@builddir@%$builddir%g
16085 cat >> $CONFIG_STATUS <<\EOF
16087 # Split the substitutions into bite-sized pieces for seds with
16088 # small command number limits, like on Digital OSF/1 and HP-UX.
16089 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
16090 ac_file
=1 # Number of current file.
16091 ac_beg
=1 # First line for current file.
16092 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
16095 while $ac_more_lines; do
16096 if test $ac_beg -gt 1; then
16097 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
16099 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
16101 if test ! -s conftest.s
$ac_file; then
16102 ac_more_lines
=false
16103 rm -f conftest.s
$ac_file
16105 if test -z "$ac_sed_cmds"; then
16106 ac_sed_cmds
="sed -f conftest.s$ac_file"
16108 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
16110 ac_file
=`expr $ac_file + 1`
16112 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
16115 if test -z "$ac_sed_cmds"; then
16120 cat >> $CONFIG_STATUS <<EOF
16122 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
16124 cat >> $CONFIG_STATUS <<\EOF
16125 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
16126 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16128 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
16129 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
16130 *) ac_file_in
="${ac_file}.in" ;;
16133 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16135 # Remove last slash and all that follows it. Not all systems have dirname.
16136 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16137 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
16138 # The file is in a subdirectory.
16139 test ! -d "$ac_dir" && mkdir
"$ac_dir"
16140 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
16141 # A "../" for each directory in $ac_dir_suffix.
16142 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16144 ac_dir_suffix
= ac_dots
=
16147 case "$ac_given_srcdir" in
16149 if test -z "$ac_dots"; then top_srcdir
=.
16150 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16151 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
16152 *) # Relative path.
16153 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16154 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
16157 case "$ac_given_INSTALL" in
16158 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
16159 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
16162 echo creating
"$ac_file"
16164 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16166 *Makefile
*) ac_comsub
="1i\\
16167 # $configure_input" ;;
16171 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16173 s%@configure_input@%$configure_input%g
16174 s%@srcdir@%$srcdir%g
16175 s%@top_srcdir@%$top_srcdir%g
16176 s%@INSTALL@%$INSTALL%g
16177 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
16181 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16182 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16184 # ac_d sets the value in "#define NAME VALUE" lines.
16185 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16186 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
16189 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16190 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16191 ac_uB
='\([ ]\)%\1#\2define\3'
16194 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16195 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16196 ac_eB
='$%\1#\2define\3'
16200 if test "${CONFIG_HEADERS+set}" != set; then
16202 cat >> $CONFIG_STATUS <<EOF
16203 CONFIG_HEADERS="include/config.h"
16205 cat >> $CONFIG_STATUS <<\EOF
16207 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
16208 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16210 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
16211 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
16212 *) ac_file_in
="${ac_file}.in" ;;
16215 echo creating
$ac_file
16217 rm -f conftest.frag conftest.
in conftest.out
16218 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16219 cat $ac_file_inputs > conftest.
in
16223 # Transform confdefs.h into a sed script conftest.vals that substitutes
16224 # the proper values into config.h.in to produce config.h. And first:
16225 # Protect against being on the right side of a sed subst in config.status.
16226 # Protect against being in an unquoted here document in config.status.
16227 rm -f conftest.vals
16228 cat > conftest.hdr
<<\EOF
16231 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16235 sed -n -f conftest.hdr confdefs.h > conftest.vals
16238 # This sed command replaces #undef with comments. This is necessary, for
16239 # example, in the case of _POSIX_SOURCE, which is predefined and required
16240 # on some systems where configure will not decide to define it.
16241 cat >> conftest.vals <<\EOF
16242 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16245 # Break up conftest.vals because some shells have a limit on
16246 # the size of here documents, and old seds have small limits too.
16248 rm -f conftest.tail
16251 ac_lines=`grep -c . conftest.vals
`
16252 # grep -c gives empty output for an empty file on some AIX systems.
16253 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16254 # Write a limited-size here document to conftest.frag.
16255 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16256 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16258 sed -f conftest.frag conftest.in > conftest.out
16260 mv conftest.out conftest.in
16261 ' >> $CONFIG_STATUS
16262 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16263 rm -f conftest.vals
16264 mv conftest.tail conftest.vals
16266 rm -f conftest.vals
16268 cat >> $CONFIG_STATUS <<\EOF
16269 rm -f conftest.frag conftest.h
16270 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16271 cat conftest.in >> conftest.h
16273 if cmp -s $ac_file conftest.h 2>/dev/null; then
16274 echo "$ac_file is unchanged"
16277 # Remove last slash and all that follows it. Not all systems have dirname.
16278 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
16279 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16280 # The file is in a subdirectory.
16281 test ! -d "$ac_dir" && mkdir "$ac_dir"
16284 mv conftest.h $ac_file
16289 cat >> $CONFIG_STATUS <<EOF
16292 cat >> $CONFIG_STATUS <<\EOF
16296 chmod +x $CONFIG_STATUS
16297 rm -fr confdefs* $ac_clean_files
16298 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
16301 #################################################
16302 # Print very concise instructions on building/use
16303 if test "x$enable_dmalloc" = xyes
16305 echo "$ac_t""Note: The dmalloc debug library will be included. To turn it on use" 1>&6
16306 echo "$ac_t"" \$ eval \`dmalloc samba\
`." 1>&6