3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/samba
16 --with-fhs Use FHS-compliant paths (default=no)"
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
22 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)"
24 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
26 --with-configdir=DIR Where to put configuration files (\$libdir)"
28 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
30 --enable-debug Turn on compiler debugging information (default=no)"
32 --enable-developer Turn on developer warnings and debugging (default=no)"
34 --enable-krb5developer Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)"
36 --enable-dmalloc Enable heap debugging [default=no]"
38 --enable-cups Turn on CUPS support (default=auto)"
40 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
42 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
44 --with-smbwrapper Include SMB wrapper support (default=no) "
46 --with-afs Include AFS clear-text auth support (default=no) "
48 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)"
50 --with-ads Active Directory support (default yes)"
52 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)"
54 --with-ldap LDAP support (default yes)"
56 --with-mysql-prefix=PFX Prefix where MYSQL is installed (optional)"
58 --with-mysql-exec-prefix=PFX Exec prefix where MYSQL is installed (optional)"
60 --disable-mysqltest Do not try to compile and run a test MYSQL program"
62 --with-xml-prefix=PFX Prefix where libxml is installed (optional)"
64 --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)"
66 --disable-xmltest Do not try to compile and run a test LIBXML program"
68 --with-automount Include automount support (default=no)"
70 --with-smbmount Include smbmount (Linux only) support (default=no)"
72 --with-pam Include PAM support (default=no)"
74 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
76 --with-sam Build new (experimental) SAM database (default=no)"
78 --with-ldapsam Include LDAP SAM 2.2 compatible configuration (default=no)"
80 --with-tdbsam Include experimental TDB SAM support (default=no)"
82 --with-nisplussam Include NISPLUS SAM support (default=no)"
84 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
86 --with-syslog Include experimental SYSLOG support (default=no)"
88 --with-profiling-data Include gathering source code profile information (default=no)"
90 --with-quotas Include experimental disk-quota support (default=no)"
92 --with-utmp Include experimental utmp accounting (default=no)"
94 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
96 --with-libsmbclient Build the libsmbclient shared library (default=yes)"
98 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
100 --with-acl-support Include ACL support (default=no)"
102 --with-sendfile-support Check for sendfile support (default=yes)"
104 --with-winbind Build winbind (default, if supported by OS)"
106 --with-included-popt use bundled popt library, not from system"
108 --with-python=PYTHONNAME build Python libraries"
110 # Initialize some variables set by options.
111 # The variables have the same names as the options, with
112 # dashes changed to underlines.
114 cache_file
=.
/config.cache
123 program_transform_name
=s
,x
,x
,
131 bindir
='${exec_prefix}/bin'
132 sbindir
='${exec_prefix}/sbin'
133 libexecdir
='${exec_prefix}/libexec'
134 datadir
='${prefix}/share'
135 sysconfdir
='${prefix}/etc'
136 sharedstatedir
='${prefix}/com'
137 localstatedir
='${prefix}/var'
138 libdir
='${exec_prefix}/lib'
139 includedir
='${prefix}/include'
140 oldincludedir
='/usr/include'
141 infodir
='${prefix}/info'
142 mandir
='${prefix}/man'
144 # Initialize some other variables.
147 SHELL
=${CONFIG_SHELL-/bin/sh}
148 # Maximum number of lines to put in a shell here document.
155 # If the previous option needs an argument, assign it.
156 if test -n "$ac_prev"; then
157 eval "$ac_prev=\$ac_option"
163 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
167 # Accept the important Cygnus configure options, so we can diagnose typos.
171 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
173 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
174 bindir
="$ac_optarg" ;;
176 -build |
--build |
--buil |
--bui |
--bu)
178 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
179 build
="$ac_optarg" ;;
181 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
182 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
183 ac_prev
=cache_file
;;
184 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
185 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
186 cache_file
="$ac_optarg" ;;
188 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
190 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
192 datadir
="$ac_optarg" ;;
194 -disable-* |
--disable-*)
195 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
196 # Reject names that are not valid shell variable names.
197 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
198 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
200 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
201 eval "enable_${ac_feature}=no" ;;
203 -enable-* |
--enable-*)
204 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
205 # Reject names that are not valid shell variable names.
206 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
207 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
209 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
214 eval "enable_${ac_feature}='$ac_optarg'" ;;
216 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
217 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
218 |
--exec |
--exe |
--ex)
219 ac_prev
=exec_prefix
;;
220 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
221 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
222 |
--exec=* |
--exe=* |
--ex=*)
223 exec_prefix
="$ac_optarg" ;;
225 -gas |
--gas |
--ga |
--g)
226 # Obsolete; use --with-gas.
229 -help |
--help |
--hel |
--he)
230 # Omit some internal or obsolete options to make the list less imposing.
231 # This message is too long to be a string in the A/UX 3.1 sh.
233 Usage: configure [options] [host]
234 Options: [defaults in brackets after descriptions]
236 --cache-file=FILE cache test results in FILE
237 --help print this message
238 --no-create do not create output files
239 --quiet, --silent do not print \`checking...' messages
240 --version print the version of autoconf that created configure
241 Directory and file names:
242 --prefix=PREFIX install architecture-independent files in PREFIX
244 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
246 --bindir=DIR user executables in DIR [EPREFIX/bin]
247 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
248 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
249 --datadir=DIR read-only architecture-independent data in DIR
251 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
252 --sharedstatedir=DIR modifiable architecture-independent data in DIR
254 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
255 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
256 --includedir=DIR C header files in DIR [PREFIX/include]
257 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
258 --infodir=DIR info documentation in DIR [PREFIX/info]
259 --mandir=DIR man documentation in DIR [PREFIX/man]
260 --srcdir=DIR find the sources in DIR [configure dir or ..]
261 --program-prefix=PREFIX prepend PREFIX to installed program names
262 --program-suffix=SUFFIX append SUFFIX to installed program names
263 --program-transform-name=PROGRAM
264 run sed PROGRAM on installed program names
268 --build=BUILD configure for building on BUILD [BUILD=HOST]
269 --host=HOST configure for HOST [guessed]
270 --target=TARGET configure for TARGET [TARGET=HOST]
271 Features and packages:
272 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
273 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
274 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
275 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
276 --x-includes=DIR X include files are in DIR
277 --x-libraries=DIR X library files are in DIR
279 if test -n "$ac_help"; then
280 echo "--enable and --with options recognized:$ac_help"
284 -host |
--host |
--hos |
--ho)
286 -host=* |
--host=* |
--hos=* |
--ho=*)
289 -includedir |
--includedir |
--includedi |
--included |
--include \
290 |
--includ |
--inclu |
--incl |
--inc)
291 ac_prev
=includedir
;;
292 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
293 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
294 includedir
="$ac_optarg" ;;
296 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
298 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
299 infodir
="$ac_optarg" ;;
301 -libdir |
--libdir |
--libdi |
--libd)
303 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
304 libdir
="$ac_optarg" ;;
306 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
307 |
--libexe |
--libex |
--libe)
308 ac_prev
=libexecdir
;;
309 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
310 |
--libexe=* |
--libex=* |
--libe=*)
311 libexecdir
="$ac_optarg" ;;
313 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
314 |
--localstate |
--localstat |
--localsta |
--localst \
315 |
--locals |
--local |
--loca |
--loc |
--lo)
316 ac_prev
=localstatedir
;;
317 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
318 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
319 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
320 localstatedir
="$ac_optarg" ;;
322 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
324 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
325 mandir
="$ac_optarg" ;;
328 # Obsolete; use --without-fp.
331 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
335 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
336 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
339 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
340 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
341 |
--oldin |
--oldi |
--old |
--ol |
--o)
342 ac_prev
=oldincludedir
;;
343 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
344 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
345 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
346 oldincludedir
="$ac_optarg" ;;
348 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
350 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
351 prefix
="$ac_optarg" ;;
353 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
354 |
--program-pre |
--program-pr |
--program-p)
355 ac_prev
=program_prefix
;;
356 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
357 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
358 program_prefix
="$ac_optarg" ;;
360 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
361 |
--program-suf |
--program-su |
--program-s)
362 ac_prev
=program_suffix
;;
363 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
364 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
365 program_suffix
="$ac_optarg" ;;
367 -program-transform-name |
--program-transform-name \
368 |
--program-transform-nam |
--program-transform-na \
369 |
--program-transform-n |
--program-transform- \
370 |
--program-transform |
--program-transfor \
371 |
--program-transfo |
--program-transf \
372 |
--program-trans |
--program-tran \
373 |
--progr-tra |
--program-tr |
--program-t)
374 ac_prev
=program_transform_name
;;
375 -program-transform-name=* |
--program-transform-name=* \
376 |
--program-transform-nam=* |
--program-transform-na=* \
377 |
--program-transform-n=* |
--program-transform-=* \
378 |
--program-transform=* |
--program-transfor=* \
379 |
--program-transfo=* |
--program-transf=* \
380 |
--program-trans=* |
--program-tran=* \
381 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
382 program_transform_name
="$ac_optarg" ;;
384 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
385 |
-silent |
--silent |
--silen |
--sile |
--sil)
388 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
390 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
392 sbindir
="$ac_optarg" ;;
394 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
395 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
396 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
398 ac_prev
=sharedstatedir
;;
399 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
400 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
401 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
403 sharedstatedir
="$ac_optarg" ;;
405 -site |
--site |
--sit)
407 -site=* |
--site=* |
--sit=*)
410 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
412 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
413 srcdir
="$ac_optarg" ;;
415 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
416 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
417 ac_prev
=sysconfdir
;;
418 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
419 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
420 sysconfdir
="$ac_optarg" ;;
422 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
424 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
425 target
="$ac_optarg" ;;
427 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
430 -version |
--version |
--versio |
--versi |
--vers)
431 echo "configure generated by autoconf version 2.13"
435 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
436 # Reject names that are not valid shell variable names.
437 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
438 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
440 ac_package
=`echo $ac_package| sed 's/-/_/g'`
445 eval "with_${ac_package}='$ac_optarg'" ;;
447 -without-* |
--without-*)
448 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
449 # Reject names that are not valid shell variable names.
450 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
451 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
453 ac_package
=`echo $ac_package| sed 's/-/_/g'`
454 eval "with_${ac_package}=no" ;;
457 # Obsolete; use --with-x.
460 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
461 |
--x-incl |
--x-inc |
--x-in |
--x-i)
462 ac_prev
=x_includes
;;
463 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
464 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
465 x_includes
="$ac_optarg" ;;
467 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
468 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
469 ac_prev
=x_libraries
;;
470 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
471 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
472 x_libraries
="$ac_optarg" ;;
474 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
478 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
479 echo "configure: warning: $ac_option: invalid host type" 1>&2
481 if test "x$nonopt" != xNONE
; then
482 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
490 if test -n "$ac_prev"; then
491 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
494 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
496 # File descriptor usage:
499 # 2 errors and warnings
500 # 3 some systems may open it to /dev/tty
501 # 4 used on the Kubota Titan
502 # 6 checking for... messages and results
503 # 5 compiler messages saved in config.log
504 if test "$silent" = yes; then
512 This file contains any messages produced by compilers while
513 running configure, to aid debugging if configure makes a mistake.
516 # Strip out --no-create and --no-recursion so they do not pile up.
517 # Also quote any args containing shell metacharacters.
522 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
523 |
--no-cr |
--no-c) ;;
524 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
525 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
526 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
527 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
528 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
533 # Only set these to C if already set. These must not be set unconditionally
534 # because not all systems understand e.g. LANG=C (notably SCO).
535 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
536 # Non-C LC_CTYPE values break the ctype check.
537 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
538 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
539 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
540 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
542 # confdefs.h avoids OS command line length limits that DEFS can exceed.
543 rm -rf conftest
* confdefs.h
544 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
547 # A filename unique to this package, relative to the directory that
548 # configure is in, which we can look for to find out if srcdir is correct.
549 ac_unique_file
=include
/includes.h
551 # Find the source files, if location was not specified.
552 if test -z "$srcdir"; then
553 ac_srcdir_defaulted
=yes
554 # Try the directory containing this script, then its parent.
556 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
557 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
559 if test ! -r $srcdir/$ac_unique_file; then
563 ac_srcdir_defaulted
=no
565 if test ! -r $srcdir/$ac_unique_file; then
566 if test "$ac_srcdir_defaulted" = yes; then
567 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
569 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
572 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
574 # Prefer explicitly selected file to automatically selected ones.
575 if test -z "$CONFIG_SITE"; then
576 if test "x$prefix" != xNONE
; then
577 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
579 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
582 for ac_site_file
in $CONFIG_SITE; do
583 if test -r "$ac_site_file"; then
584 echo "loading site script $ac_site_file"
589 if test -r "$cache_file"; then
590 echo "loading cache $cache_file"
593 echo "creating cache $cache_file"
598 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
599 ac_cpp
='$CPP $CPPFLAGS'
600 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
601 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
602 cross_compiling
=$ac_cv_prog_cc_cross
606 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
607 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
608 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
615 ac_n
= ac_c
='\c' ac_t
=
621 #################################################
622 # Directory handling stuff to support both the
623 # legacy SAMBA directories and FHS compliant
627 # Check whether --with-fhs or --without-fhs was given.
628 if test "${with_fhs+set}" = set; then
630 configdir
="${sysconfdir}/samba"
631 lockdir
="\${VARDIR}/cache/samba"
632 piddir
="\${VARDIR}/run/samba"
633 logfilebase
="\${VARDIR}/log/samba"
634 privatedir
="\${CONFIGDIR}/private"
635 libdir
="\${prefix}/lib/samba"
636 swatdir
="\${DATADIR}/samba/swat"
638 configdir
="\${LIBDIR}"
639 logfilebase
="\${VARDIR}"
640 lockdir
="\${VARDIR}/locks"
641 piddir
="\${VARDIR}/locks"
642 privatedir
="\${prefix}/private"
643 swatdir
="\${prefix}/swat"
647 #################################################
648 # set private directory location
649 # Check whether --with-privatedir or --without-privatedir was given.
650 if test "${with_privatedir+set}" = set; then
651 withval
="$with_privatedir"
655 # Just in case anybody calls it without argument
657 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
660 privatedir
="$withval"
666 #################################################
667 # set lock directory location
668 # Check whether --with-lockdir or --without-lockdir was given.
669 if test "${with_lockdir+set}" = set; then
670 withval
="$with_lockdir"
674 # Just in case anybody calls it without argument
676 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
685 #################################################
686 # set pid directory location
687 # Check whether --with-piddir or --without-piddir was given.
688 if test "${with_piddir+set}" = set; then
689 withval
="$with_piddir"
693 # Just in case anybody calls it without argument
695 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
704 #################################################
705 # set SWAT directory location
706 # Check whether --with-swatdir or --without-swatdir was given.
707 if test "${with_swatdir+set}" = set; then
708 withval
="$with_swatdir"
712 # Just in case anybody does it
714 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
723 #################################################
724 # set configuration directory location
725 # Check whether --with-configdir or --without-configdir was given.
726 if test "${with_configdir+set}" = set; then
727 withval
="$with_configdir"
731 # Just in case anybody does it
733 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
742 #################################################
743 # set log directory location
744 # Check whether --with-logfilebase or --without-logfilebase was given.
745 if test "${with_logfilebase+set}" = set; then
746 withval
="$with_logfilebase"
750 # Just in case anybody does it
752 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
755 logfilebase
="$withval"
789 # compile with optimization and without debugging by default
790 CFLAGS
="-O ${CFLAGS}"
792 # Check whether --enable-debug or --disable-debug was given.
793 if test "${enable_debug+set}" = set; then
794 enableval
="$enable_debug"
795 if eval "test x$enable_debug = xyes"; then
796 CFLAGS
="${CFLAGS} -g"
801 # Check whether --enable-developer or --disable-developer was given.
802 if test "${enable_developer+set}" = set; then
803 enableval
="$enable_developer"
804 if eval "test x$enable_developer = xyes"; then
805 CFLAGS
="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
810 # Check whether --enable-krb5developer or --disable-krb5developer was given.
811 if test "${enable_krb5developer+set}" = set; then
812 enableval
="$enable_krb5developer"
813 if eval "test x$enable_krb5developer = xyes"; then
814 CFLAGS
="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
819 # Check whether --enable-dmalloc or --disable-dmalloc was given.
820 if test "${enable_dmalloc+set}" = set; then
821 enableval
="$enable_dmalloc"
826 if test "x$enable_dmalloc" = xyes
828 cat >> confdefs.h
<<\EOF
829 #define ENABLE_DMALLOC 1
832 cat >> confdefs.h
<<\EOF
833 #define DMALLOC_FUNC_CHECK 1
836 LIBS
="$LIBS -ldmalloc"
839 # Extract the first word of "gcc", so it can be a program name with args.
840 set dummy gcc
; ac_word
=$2
841 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
842 echo "configure:843: checking for $ac_word" >&5
843 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
844 echo $ac_n "(cached) $ac_c" 1>&6
846 if test -n "$CC"; then
847 ac_cv_prog_CC
="$CC" # Let the user override the test.
849 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
851 for ac_dir
in $ac_dummy; do
852 test -z "$ac_dir" && ac_dir
=.
853 if test -f $ac_dir/$ac_word; then
862 if test -n "$CC"; then
863 echo "$ac_t""$CC" 1>&6
865 echo "$ac_t""no" 1>&6
868 if test -z "$CC"; then
869 # Extract the first word of "cc", so it can be a program name with args.
870 set dummy cc
; ac_word
=$2
871 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
872 echo "configure:873: checking for $ac_word" >&5
873 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
874 echo $ac_n "(cached) $ac_c" 1>&6
876 if test -n "$CC"; then
877 ac_cv_prog_CC
="$CC" # Let the user override the test.
879 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
882 for ac_dir
in $ac_dummy; do
883 test -z "$ac_dir" && ac_dir
=.
884 if test -f $ac_dir/$ac_word; then
885 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
894 if test $ac_prog_rejected = yes; then
895 # We found a bogon in the path, so make sure we never use it.
896 set dummy
$ac_cv_prog_CC
898 if test $# -gt 0; then
899 # We chose a different compiler from the bogus one.
900 # However, it has the same basename, so the bogon will be chosen
901 # first if we set CC to just the basename; use the full file name.
903 set dummy
"$ac_dir/$ac_word" "$@"
911 if test -n "$CC"; then
912 echo "$ac_t""$CC" 1>&6
914 echo "$ac_t""no" 1>&6
917 if test -z "$CC"; then
920 # Extract the first word of "cl", so it can be a program name with args.
921 set dummy cl
; ac_word
=$2
922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
923 echo "configure:924: checking for $ac_word" >&5
924 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
925 echo $ac_n "(cached) $ac_c" 1>&6
927 if test -n "$CC"; then
928 ac_cv_prog_CC
="$CC" # Let the user override the test.
930 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
932 for ac_dir
in $ac_dummy; do
933 test -z "$ac_dir" && ac_dir
=.
934 if test -f $ac_dir/$ac_word; then
943 if test -n "$CC"; then
944 echo "$ac_t""$CC" 1>&6
946 echo "$ac_t""no" 1>&6
951 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
954 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
955 echo "configure:956: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
958 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
959 ac_cpp
='$CPP $CPPFLAGS'
960 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
961 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
962 cross_compiling
=$ac_cv_prog_cc_cross
964 cat > conftest.
$ac_ext << EOF
966 #line 967 "configure"
967 #include "confdefs.h"
971 if { (eval echo configure
:972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
972 ac_cv_prog_cc_works
=yes
973 # If we can't run a trivial program, we are probably using a cross compiler.
974 if (.
/conftest
; exit) 2>/dev
/null
; then
975 ac_cv_prog_cc_cross
=no
977 ac_cv_prog_cc_cross
=yes
980 echo "configure: failed program was:" >&5
981 cat conftest.
$ac_ext >&5
982 ac_cv_prog_cc_works
=no
986 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
987 ac_cpp
='$CPP $CPPFLAGS'
988 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
989 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
990 cross_compiling
=$ac_cv_prog_cc_cross
992 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
993 if test $ac_cv_prog_cc_works = no
; then
994 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
996 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
997 echo "configure:998: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
998 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
999 cross_compiling
=$ac_cv_prog_cc_cross
1001 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1002 echo "configure:1003: checking whether we are using GNU C" >&5
1003 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1004 echo $ac_n "(cached) $ac_c" 1>&6
1006 cat > conftest.c
<<EOF
1011 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1018 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1020 if test $ac_cv_prog_gcc = yes; then
1026 ac_test_CFLAGS
="${CFLAGS+set}"
1027 ac_save_CFLAGS
="$CFLAGS"
1029 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1030 echo "configure:1031: checking whether ${CC-cc} accepts -g" >&5
1031 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1032 echo $ac_n "(cached) $ac_c" 1>&6
1034 echo 'void f(){}' > conftest.c
1035 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1044 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1045 if test "$ac_test_CFLAGS" = set; then
1046 CFLAGS
="$ac_save_CFLAGS"
1047 elif test $ac_cv_prog_cc_g = yes; then
1048 if test "$GCC" = yes; then
1054 if test "$GCC" = yes; then
1062 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1063 if test -f $ac_dir/install-sh
; then
1065 ac_install_sh
="$ac_aux_dir/install-sh -c"
1067 elif test -f $ac_dir/install.sh
; then
1069 ac_install_sh
="$ac_aux_dir/install.sh -c"
1073 if test -z "$ac_aux_dir"; then
1074 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1076 ac_config_guess
=$ac_aux_dir/config.guess
1077 ac_config_sub
=$ac_aux_dir/config.sub
1078 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1080 # Find a good install program. We prefer a C program (faster),
1081 # so one script is as good as another. But avoid the broken or
1082 # incompatible versions:
1083 # SysV /etc/install, /usr/sbin/install
1084 # SunOS /usr/etc/install
1085 # IRIX /sbin/install
1087 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1088 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1089 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1090 # ./install, which can be erroneously created by make from ./install.sh.
1091 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1092 echo "configure:1093: checking for a BSD compatible install" >&5
1093 if test -z "$INSTALL"; then
1094 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1097 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1098 for ac_dir
in $PATH; do
1099 # Account for people who put trailing slashes in PATH elements.
1101 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1103 # OSF1 and SCO ODT 3.0 have their own names for install.
1104 # Don't use installbsd from OSF since it installs stuff as root
1106 for ac_prog
in ginstall scoinst
install; do
1107 if test -f $ac_dir/$ac_prog; then
1108 if test $ac_prog = install &&
1109 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1110 # AIX install. It has an incompatible calling convention.
1113 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1124 if test "${ac_cv_path_install+set}" = set; then
1125 INSTALL
="$ac_cv_path_install"
1127 # As a last resort, use the slow shell script. We don't cache a
1128 # path for INSTALL within a source directory, because that will
1129 # break other packages using the cache if that directory is
1130 # removed, or if the path is relative.
1131 INSTALL
="$ac_install_sh"
1134 echo "$ac_t""$INSTALL" 1>&6
1136 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1137 # It thinks the first close brace ends the variable substitution.
1138 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1140 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1142 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1144 for ac_prog
in mawk gawk nawk
awk
1146 # Extract the first word of "$ac_prog", so it can be a program name with args.
1147 set dummy
$ac_prog; ac_word
=$2
1148 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1149 echo "configure:1150: checking for $ac_word" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1153 if test -n "$AWK"; then
1154 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1156 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1158 for ac_dir
in $ac_dummy; do
1159 test -z "$ac_dir" && ac_dir
=.
1160 if test -f $ac_dir/$ac_word; then
1161 ac_cv_prog_AWK
="$ac_prog"
1168 AWK
="$ac_cv_prog_AWK"
1169 if test -n "$AWK"; then
1170 echo "$ac_t""$AWK" 1>&6
1172 echo "$ac_t""no" 1>&6
1175 test -n "$AWK" && break
1180 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1181 echo "configure:1182: checking if the linker ($LD) is GNU ld" >&5
1182 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1183 echo $ac_n "(cached) $ac_c" 1>&6
1185 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1186 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1187 ac_cv_prog_gnu_ld
=yes
1189 ac_cv_prog_gnu_ld
=no
1193 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1196 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1197 echo "configure:1198: checking for POSIXized ISC" >&5
1198 if test -d /etc
/conf
/kconfig.d
&&
1199 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1201 echo "$ac_t""yes" 1>&6
1202 ISC
=yes # If later tests want to check for ISC.
1203 cat >> confdefs.h
<<\EOF
1204 #define _POSIX_SOURCE 1
1207 if test "$GCC" = yes; then
1213 echo "$ac_t""no" 1>&6
1218 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1219 echo "configure:1220: checking for Cygwin environment" >&5
1220 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 cat > conftest.
$ac_ext <<EOF
1224 #line 1225 "configure"
1225 #include "confdefs.h"
1230 #define __CYGWIN__ __CYGWIN32__
1235 if { (eval echo configure
:1236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1239 echo "configure: failed program was:" >&5
1240 cat conftest.
$ac_ext >&5
1248 echo "$ac_t""$ac_cv_cygwin" 1>&6
1250 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1251 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1252 echo "configure:1253: checking for mingw32 environment" >&5
1253 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1256 cat > conftest.
$ac_ext <<EOF
1257 #line 1258 "configure"
1258 #include "confdefs.h"
1264 if { (eval echo configure
:1265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1268 echo "configure: failed program was:" >&5
1269 cat conftest.
$ac_ext >&5
1277 echo "$ac_t""$ac_cv_mingw32" 1>&6
1279 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1282 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1283 echo "configure:1284: checking for executable suffix" >&5
1284 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1287 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1291 echo 'int main () { return 0; }' > conftest.
$ac_ext
1293 if { (eval echo configure
:1294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1294 for file in conftest.
*; do
1296 *.c |
*.C |
*.o |
*.obj
) ;;
1297 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1301 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1304 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1309 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1310 echo "$ac_t""${ac_cv_exeext}" 1>&6
1314 if test "x$CC" != xcc
; then
1315 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1316 echo "configure:1317: checking whether $CC and cc understand -c and -o together" >&5
1318 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1319 echo "configure:1320: checking whether cc understands -c and -o together" >&5
1321 set dummy
$CC; ac_cc
="`echo $2 |
1322 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1323 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1326 echo 'foo(){}' > conftest.c
1327 # Make sure it works both with $CC and with simple cc.
1328 # We do the test twice because some compilers refuse to overwrite an
1329 # existing .o file with -o, though they will create one.
1330 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1331 if { (eval echo configure
:1332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1332 test -f conftest.o
&& { (eval echo configure
:1333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1334 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1335 if test "x$CC" != xcc
; then
1336 # Test first that cc exists at all.
1337 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1338 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1339 if { (eval echo configure
:1340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1340 test -f conftest.o
&& { (eval echo configure
:1341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1345 # cc exists but doesn't like -o.
1346 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1351 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1356 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1357 echo "$ac_t""yes" 1>&6
1359 echo "$ac_t""no" 1>&6
1360 cat >> confdefs.h
<<\EOF
1361 #define NO_MINUS_C_MINUS_O 1
1366 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1373 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1374 echo "configure:1375: checking that the C compiler understands volatile" >&5
1375 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1379 cat > conftest.
$ac_ext <<EOF
1380 #line 1381 "configure"
1381 #include "confdefs.h"
1382 #include <sys/types.h>
1387 if { (eval echo configure
:1388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1389 samba_cv_volatile
=yes
1391 echo "configure: failed program was:" >&5
1392 cat conftest.
$ac_ext >&5
1394 samba_cv_volatile
=no
1399 echo "$ac_t""$samba_cv_volatile" 1>&6
1400 if test x
"$samba_cv_volatile" = x
"yes"; then
1401 cat >> confdefs.h
<<\EOF
1402 #define HAVE_VOLATILE 1
1409 # Do some error checking and defaulting for the host and target type.
1411 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1414 # 1. You are not allowed to specify --host, --target, and nonopt at the
1416 # 2. Host defaults to nonopt.
1417 # 3. If nonopt is not specified, then host defaults to the current host,
1418 # as determined by config.guess.
1419 # 4. Target and build default to nonopt.
1420 # 5. If nonopt is not specified, then target and build default to host.
1422 # The aliases save the names the user supplied, while $host etc.
1423 # will get canonicalized.
1424 case $host---$target---$nonopt in
1425 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1426 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1430 # Make sure we can run config.sub.
1431 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1432 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1435 echo $ac_n "checking host system type""... $ac_c" 1>&6
1436 echo "configure:1437: checking host system type" >&5
1439 case "$host_alias" in
1443 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1444 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1446 *) host_alias
=$nonopt ;;
1450 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1451 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1452 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1453 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1454 echo "$ac_t""$host" 1>&6
1456 echo $ac_n "checking target system type""... $ac_c" 1>&6
1457 echo "configure:1458: checking target system type" >&5
1459 target_alias
=$target
1460 case "$target_alias" in
1463 NONE
) target_alias
=$host_alias ;;
1464 *) target_alias
=$nonopt ;;
1468 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1469 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1470 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1471 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1472 echo "$ac_t""$target" 1>&6
1474 echo $ac_n "checking build system type""... $ac_c" 1>&6
1475 echo "configure:1476: checking build system type" >&5
1478 case "$build_alias" in
1481 NONE
) build_alias
=$host_alias ;;
1482 *) build_alias
=$nonopt ;;
1486 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1487 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1488 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1489 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1490 echo "$ac_t""$build" 1>&6
1492 test "$host_alias" != "$target_alias" &&
1493 test "$program_prefix$program_suffix$program_transform_name" = \
1495 program_prefix
=${target_alias}-
1499 *irix6
*) cat >> confdefs.h
<<\EOF
1500 #include <standards.h>
1508 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1509 echo "configure:1510: checking config.cache system type" >&5
1510 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1511 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1512 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1513 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1514 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1515 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1516 echo "$ac_t""different" 1>&6
1517 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1519 echo "$ac_t""same" 1>&6
1521 ac_cv_host_system_type
="$host"
1522 ac_cv_build_system_type
="$build"
1523 ac_cv_target_system_type
="$target"
1529 # Config CPPFLAG settings for strange OS's that must be set
1530 # before other tests.
1533 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1536 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1537 echo "configure:1538: checking whether ${CC-cc} accepts -Ae" >&5
1538 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1539 echo $ac_n "(cached) $ac_c" 1>&6
1541 echo 'void f(){}' > conftest.c
1542 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1543 ac_cv_prog_cc_Ae
=yes
1551 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1552 # mmap on HPUX is completely broken...
1553 cat >> confdefs.h
<<\EOF
1554 #define MMAP_BLACKLIST 1
1557 if test $ac_cv_prog_cc_Ae = yes; then
1558 CPPFLAGS
="$CPPFLAGS -Ae"
1561 # Defines needed for HPUX support.
1562 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1563 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1567 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1568 cat >> confdefs.h
<<\EOF
1569 #define USE_BOTH_CRYPT_CALLS 1
1572 cat >> confdefs.h
<<\EOF
1573 #define _HPUX_SOURCE 1
1576 cat >> confdefs.h
<<\EOF
1577 #define _POSIX_SOURCE 1
1580 cat >> confdefs.h
<<\EOF
1581 #define _ALIGNMENT_REQUIRED 1
1584 cat >> confdefs.h
<<\EOF
1585 #define _MAX_ALIGNMENT 4
1590 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1591 cat >> confdefs.h
<<\EOF
1592 #define USE_BOTH_CRYPT_CALLS 1
1595 cat >> confdefs.h
<<\EOF
1596 #define _HPUX_SOURCE 1
1599 cat >> confdefs.h
<<\EOF
1600 #define _POSIX_SOURCE 1
1603 cat >> confdefs.h
<<\EOF
1604 #define _LARGEFILE64_SOURCE 1
1607 cat >> confdefs.h
<<\EOF
1608 #define _ALIGNMENT_REQUIRED 1
1611 cat >> confdefs.h
<<\EOF
1612 #define _MAX_ALIGNMENT 4
1621 # CRAY Unicos has broken const handling
1623 echo "$ac_t""disabling const" 1>&6
1624 CPPFLAGS
="$CPPFLAGS -Dconst="
1628 # AIX4.x doesn't even admit to having large
1629 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1632 echo "$ac_t""enabling large file support" 1>&6
1633 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1634 cat >> confdefs.h
<<\EOF
1635 #define _LARGE_FILES 1
1640 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1641 # to the existance of large files..
1642 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1643 # recommendations on large file support, however it makes the
1644 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1645 # recommendation makes the compile fail on gcc2.7. JRA.
1649 5.0*|
5.1*|
5.2*|
5.3*|
5.5*)
1650 echo "$ac_t""no large file support" 1>&6
1653 echo "$ac_t""enabling large file support" 1>&6
1654 if test "$ac_cv_prog_gcc" = yes; then
1655 ${CC-cc} -v >conftest.c
2>&1
1656 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1658 case "$ac_cv_gcc_compiler_version_number" in
1659 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1660 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1661 cat >> confdefs.h
<<\EOF
1662 #define _LARGEFILE64_SOURCE 1
1667 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1668 cat >> confdefs.h
<<\EOF
1669 #define _LARGEFILE64_SOURCE 1
1672 cat >> confdefs.h
<<\EOF
1673 #define _FILE_OFFSET_BITS 64
1679 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1680 cat >> confdefs.h
<<\EOF
1681 #define _LARGEFILE64_SOURCE 1
1684 cat >> confdefs.h
<<\EOF
1685 #define _FILE_OFFSET_BITS 64
1693 # Tests needed for SINIX large file support.
1696 if test $host = mips-sni-sysv4
; then
1697 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1698 echo "configure:1699: checking for LFS support" >&5
1699 old_CPPFLAGS
="$CPPFLAGS"
1700 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1701 if test "$cross_compiling" = yes; then
1702 SINIX_LFS_SUPPORT
=cross
1704 cat > conftest.
$ac_ext <<EOF
1705 #line 1706 "configure"
1706 #include "confdefs.h"
1710 #if _LFS64_LARGEFILE == 1
1717 if { (eval echo configure
:1718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1719 SINIX_LFS_SUPPORT
=yes
1721 echo "configure: failed program was:" >&5
1722 cat conftest.
$ac_ext >&5
1724 SINIX_LFS_SUPPORT
=no
1729 CPPFLAGS
="$old_CPPFLAGS"
1730 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1731 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1732 cat >> confdefs.h
<<\EOF
1733 #define _LARGEFILE64_SOURCE 1
1736 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1737 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1738 LIBS
="`getconf LFS64_LIBS` $LIBS"
1740 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1744 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1747 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1748 echo "configure:1749: checking for LFS support" >&5
1749 old_CPPFLAGS
="$CPPFLAGS"
1750 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1751 if test "$cross_compiling" = yes; then
1752 LINUX_LFS_SUPPORT
=cross
1754 cat > conftest.
$ac_ext <<EOF
1755 #line 1756 "configure"
1756 #include "confdefs.h"
1759 #include <sys/utsname.h>
1761 #if _LFS64_LARGEFILE == 1
1766 /* Ensure this is glibc 2.2 or higher */
1767 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1768 int libc_major = __GLIBC__;
1769 int libc_minor = __GLIBC_MINOR__;
1777 /* Ensure this is kernel 2.4 or higher */
1780 release = uts.release;
1781 major = atoi(strsep(&release, "."));
1782 minor = atoi(strsep(&release, "."));
1784 if (major > 2 || (major == 2 && minor > 3))
1793 if { (eval echo configure
:1794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1795 LINUX_LFS_SUPPORT
=yes
1797 echo "configure: failed program was:" >&5
1798 cat conftest.
$ac_ext >&5
1800 LINUX_LFS_SUPPORT
=no
1805 CPPFLAGS
="$old_CPPFLAGS"
1806 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1807 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1808 cat >> confdefs.h
<<\EOF
1809 #define _LARGEFILE64_SOURCE 1
1812 cat >> confdefs.h
<<\EOF
1813 #define _FILE_OFFSET_BITS 64
1816 cat >> confdefs.h
<<\EOF
1817 #define _GNU_SOURCE 1
1821 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1825 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1826 echo "configure:1827: checking for LFS support" >&5
1827 old_CPPFLAGS
="$CPPFLAGS"
1828 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1829 if test "$cross_compiling" = yes; then
1830 GLIBC_LFS_SUPPORT
=cross
1832 cat > conftest.
$ac_ext <<EOF
1833 #line 1834 "configure"
1834 #include "confdefs.h"
1838 #if _LFS64_LARGEFILE == 1
1845 if { (eval echo configure
:1846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1847 GLIBC_LFS_SUPPORT
=yes
1849 echo "configure: failed program was:" >&5
1850 cat conftest.
$ac_ext >&5
1852 GLIBC_LFS_SUPPORT
=no
1857 CPPFLAGS
="$old_CPPFLAGS"
1858 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1859 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1860 cat >> confdefs.h
<<\EOF
1861 #define _LARGEFILE64_SOURCE 1
1864 cat >> confdefs.h
<<\EOF
1865 #define _GNU_SOURCE 1
1869 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1874 echo $ac_n "checking for inline""... $ac_c" 1>&6
1875 echo "configure:1876: checking for inline" >&5
1876 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1880 for ac_kw
in inline __inline__ __inline
; do
1881 cat > conftest.
$ac_ext <<EOF
1882 #line 1883 "configure"
1883 #include "confdefs.h"
1889 if { (eval echo configure
:1890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1891 ac_cv_c_inline
=$ac_kw; break
1893 echo "configure: failed program was:" >&5
1894 cat conftest.
$ac_ext >&5
1901 echo "$ac_t""$ac_cv_c_inline" 1>&6
1902 case "$ac_cv_c_inline" in
1904 no
) cat >> confdefs.h
<<\EOF
1908 *) cat >> confdefs.h
<<EOF
1909 #define inline $ac_cv_c_inline
1914 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1915 echo "configure:1916: checking how to run the C preprocessor" >&5
1916 # On Suns, sometimes $CPP names a directory.
1917 if test -n "$CPP" && test -d "$CPP"; then
1920 if test -z "$CPP"; then
1921 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1922 echo $ac_n "(cached) $ac_c" 1>&6
1924 # This must be in double quotes, not single quotes, because CPP may get
1925 # substituted into the Makefile and "${CC-cc}" will confuse make.
1927 # On the NeXT, cc -E runs the code through the compiler's parser,
1928 # not just through cpp.
1929 cat > conftest.
$ac_ext <<EOF
1930 #line 1931 "configure"
1931 #include "confdefs.h"
1935 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1936 { (eval echo configure
:1937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1937 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1938 if test -z "$ac_err"; then
1942 echo "configure: failed program was:" >&5
1943 cat conftest.
$ac_ext >&5
1945 CPP
="${CC-cc} -E -traditional-cpp"
1946 cat > conftest.
$ac_ext <<EOF
1947 #line 1948 "configure"
1948 #include "confdefs.h"
1952 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1953 { (eval echo configure
:1954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1954 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1955 if test -z "$ac_err"; then
1959 echo "configure: failed program was:" >&5
1960 cat conftest.
$ac_ext >&5
1962 CPP
="${CC-cc} -nologo -E"
1963 cat > conftest.
$ac_ext <<EOF
1964 #line 1965 "configure"
1965 #include "confdefs.h"
1969 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1970 { (eval echo configure
:1971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1971 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1972 if test -z "$ac_err"; then
1976 echo "configure: failed program was:" >&5
1977 cat conftest.
$ac_ext >&5
1986 ac_cv_prog_CPP
="$CPP"
1988 CPP
="$ac_cv_prog_CPP"
1990 ac_cv_prog_CPP
="$CPP"
1992 echo "$ac_t""$CPP" 1>&6
1994 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1995 echo "configure:1996: checking for ANSI C header files" >&5
1996 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1997 echo $ac_n "(cached) $ac_c" 1>&6
1999 cat > conftest.
$ac_ext <<EOF
2000 #line 2001 "configure"
2001 #include "confdefs.h"
2007 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2008 { (eval echo configure
:2009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2009 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2010 if test -z "$ac_err"; then
2012 ac_cv_header_stdc
=yes
2015 echo "configure: failed program was:" >&5
2016 cat conftest.
$ac_ext >&5
2018 ac_cv_header_stdc
=no
2022 if test $ac_cv_header_stdc = yes; then
2023 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2024 cat > conftest.
$ac_ext <<EOF
2025 #line 2026 "configure"
2026 #include "confdefs.h"
2029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2030 egrep "memchr" >/dev
/null
2>&1; then
2034 ac_cv_header_stdc
=no
2040 if test $ac_cv_header_stdc = yes; then
2041 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2042 cat > conftest.
$ac_ext <<EOF
2043 #line 2044 "configure"
2044 #include "confdefs.h"
2047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2048 egrep "free" >/dev
/null
2>&1; then
2052 ac_cv_header_stdc
=no
2058 if test $ac_cv_header_stdc = yes; then
2059 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2060 if test "$cross_compiling" = yes; then
2063 cat > conftest.
$ac_ext <<EOF
2064 #line 2065 "configure"
2065 #include "confdefs.h"
2067 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2068 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2069 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2070 int main () { int i; for (i = 0; i < 256; i++)
2071 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2075 if { (eval echo configure
:2076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2079 echo "configure: failed program was:" >&5
2080 cat conftest.
$ac_ext >&5
2082 ac_cv_header_stdc
=no
2090 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2091 if test $ac_cv_header_stdc = yes; then
2092 cat >> confdefs.h
<<\EOF
2093 #define STDC_HEADERS 1
2099 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2101 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2102 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2103 echo "configure:2104: checking for $ac_hdr that defines DIR" >&5
2104 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2105 echo $ac_n "(cached) $ac_c" 1>&6
2107 cat > conftest.
$ac_ext <<EOF
2108 #line 2109 "configure"
2109 #include "confdefs.h"
2110 #include <sys/types.h>
2116 if { (eval echo configure
:2117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2118 eval "ac_cv_header_dirent_$ac_safe=yes"
2120 echo "configure: failed program was:" >&5
2121 cat conftest.
$ac_ext >&5
2123 eval "ac_cv_header_dirent_$ac_safe=no"
2127 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2128 echo "$ac_t""yes" 1>&6
2129 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2130 cat >> confdefs.h
<<EOF
2131 #define $ac_tr_hdr 1
2133 ac_header_dirent
=$ac_hdr; break
2135 echo "$ac_t""no" 1>&6
2138 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2139 if test $ac_header_dirent = dirent.h
; then
2140 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2141 echo "configure:2142: checking for opendir in -ldir" >&5
2142 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2143 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2144 echo $ac_n "(cached) $ac_c" 1>&6
2146 ac_save_LIBS
="$LIBS"
2148 cat > conftest.
$ac_ext <<EOF
2149 #line 2150 "configure"
2150 #include "confdefs.h"
2151 /* Override any gcc2 internal prototype to avoid an error. */
2152 /* We use char because int might match the return type of a gcc2
2153 builtin and then its argument prototype would still apply. */
2160 if { (eval echo configure
:2161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2162 eval "ac_cv_lib_$ac_lib_var=yes"
2164 echo "configure: failed program was:" >&5
2165 cat conftest.
$ac_ext >&5
2167 eval "ac_cv_lib_$ac_lib_var=no"
2170 LIBS
="$ac_save_LIBS"
2173 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2174 echo "$ac_t""yes" 1>&6
2177 echo "$ac_t""no" 1>&6
2181 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2182 echo "configure:2183: checking for opendir in -lx" >&5
2183 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2185 echo $ac_n "(cached) $ac_c" 1>&6
2187 ac_save_LIBS
="$LIBS"
2189 cat > conftest.
$ac_ext <<EOF
2190 #line 2191 "configure"
2191 #include "confdefs.h"
2192 /* Override any gcc2 internal prototype to avoid an error. */
2193 /* We use char because int might match the return type of a gcc2
2194 builtin and then its argument prototype would still apply. */
2201 if { (eval echo configure
:2202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2203 eval "ac_cv_lib_$ac_lib_var=yes"
2205 echo "configure: failed program was:" >&5
2206 cat conftest.
$ac_ext >&5
2208 eval "ac_cv_lib_$ac_lib_var=no"
2211 LIBS
="$ac_save_LIBS"
2214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2215 echo "$ac_t""yes" 1>&6
2218 echo "$ac_t""no" 1>&6
2223 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2224 echo "configure:2225: checking whether time.h and sys/time.h may both be included" >&5
2225 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2226 echo $ac_n "(cached) $ac_c" 1>&6
2228 cat > conftest.
$ac_ext <<EOF
2229 #line 2230 "configure"
2230 #include "confdefs.h"
2231 #include <sys/types.h>
2232 #include <sys/time.h>
2238 if { (eval echo configure
:2239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2240 ac_cv_header_time
=yes
2242 echo "configure: failed program was:" >&5
2243 cat conftest.
$ac_ext >&5
2245 ac_cv_header_time
=no
2250 echo "$ac_t""$ac_cv_header_time" 1>&6
2251 if test $ac_cv_header_time = yes; then
2252 cat >> confdefs.h
<<\EOF
2253 #define TIME_WITH_SYS_TIME 1
2258 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2259 echo "configure:2260: checking for sys/wait.h that is POSIX.1 compatible" >&5
2260 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2261 echo $ac_n "(cached) $ac_c" 1>&6
2263 cat > conftest.
$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2266 #include <sys/types.h>
2267 #include <sys/wait.h>
2269 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2272 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2277 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2280 if { (eval echo configure
:2281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2282 ac_cv_header_sys_wait_h
=yes
2284 echo "configure: failed program was:" >&5
2285 cat conftest.
$ac_ext >&5
2287 ac_cv_header_sys_wait_h
=no
2292 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2293 if test $ac_cv_header_sys_wait_h = yes; then
2294 cat >> confdefs.h
<<\EOF
2295 #define HAVE_SYS_WAIT_H 1
2300 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2302 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2303 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2304 echo "configure:2305: checking for $ac_hdr" >&5
2305 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2306 echo $ac_n "(cached) $ac_c" 1>&6
2308 cat > conftest.
$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2313 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2314 { (eval echo configure
:2315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2315 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2316 if test -z "$ac_err"; then
2318 eval "ac_cv_header_$ac_safe=yes"
2321 echo "configure: failed program was:" >&5
2322 cat conftest.
$ac_ext >&5
2324 eval "ac_cv_header_$ac_safe=no"
2328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2329 echo "$ac_t""yes" 1>&6
2330 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2331 cat >> confdefs.h
<<EOF
2332 #define $ac_tr_hdr 1
2336 echo "$ac_t""no" 1>&6
2340 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2342 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2343 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2344 echo "configure:2345: checking for $ac_hdr" >&5
2345 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6
2348 cat > conftest.
$ac_ext <<EOF
2349 #line 2350 "configure"
2350 #include "confdefs.h"
2353 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2354 { (eval echo configure
:2355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2355 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2356 if test -z "$ac_err"; then
2358 eval "ac_cv_header_$ac_safe=yes"
2361 echo "configure: failed program was:" >&5
2362 cat conftest.
$ac_ext >&5
2364 eval "ac_cv_header_$ac_safe=no"
2368 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2369 echo "$ac_t""yes" 1>&6
2370 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2371 cat >> confdefs.h
<<EOF
2372 #define $ac_tr_hdr 1
2376 echo "$ac_t""no" 1>&6
2380 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2382 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2384 echo "configure:2385: checking for $ac_hdr" >&5
2385 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2386 echo $ac_n "(cached) $ac_c" 1>&6
2388 cat > conftest.
$ac_ext <<EOF
2389 #line 2390 "configure"
2390 #include "confdefs.h"
2393 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2394 { (eval echo configure
:2395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2395 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2396 if test -z "$ac_err"; then
2398 eval "ac_cv_header_$ac_safe=yes"
2401 echo "configure: failed program was:" >&5
2402 cat conftest.
$ac_ext >&5
2404 eval "ac_cv_header_$ac_safe=no"
2408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2409 echo "$ac_t""yes" 1>&6
2410 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2411 cat >> confdefs.h
<<EOF
2412 #define $ac_tr_hdr 1
2416 echo "$ac_t""no" 1>&6
2420 for ac_hdr
in sys
/param.h ctype.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/ipc.h sys
/mode.h
2422 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2423 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2424 echo "configure:2425: checking for $ac_hdr" >&5
2425 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2426 echo $ac_n "(cached) $ac_c" 1>&6
2428 cat > conftest.
$ac_ext <<EOF
2429 #line 2430 "configure"
2430 #include "confdefs.h"
2433 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2434 { (eval echo configure
:2435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2435 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2436 if test -z "$ac_err"; then
2438 eval "ac_cv_header_$ac_safe=yes"
2441 echo "configure: failed program was:" >&5
2442 cat conftest.
$ac_ext >&5
2444 eval "ac_cv_header_$ac_safe=no"
2448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2449 echo "$ac_t""yes" 1>&6
2450 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2451 cat >> confdefs.h
<<EOF
2452 #define $ac_tr_hdr 1
2456 echo "$ac_t""no" 1>&6
2460 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h sys
/shm.h string.h
strings.h stdlib.h sys
/socket.h
2462 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2463 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2464 echo "configure:2465: checking for $ac_hdr" >&5
2465 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2466 echo $ac_n "(cached) $ac_c" 1>&6
2468 cat > conftest.
$ac_ext <<EOF
2469 #line 2470 "configure"
2470 #include "confdefs.h"
2473 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2474 { (eval echo configure
:2475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2475 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2476 if test -z "$ac_err"; then
2478 eval "ac_cv_header_$ac_safe=yes"
2481 echo "configure: failed program was:" >&5
2482 cat conftest.
$ac_ext >&5
2484 eval "ac_cv_header_$ac_safe=no"
2488 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2489 echo "$ac_t""yes" 1>&6
2490 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2491 cat >> confdefs.h
<<EOF
2492 #define $ac_tr_hdr 1
2496 echo "$ac_t""no" 1>&6
2500 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2502 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2503 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2504 echo "configure:2505: checking for $ac_hdr" >&5
2505 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2508 cat > conftest.
$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2513 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2514 { (eval echo configure
:2515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2515 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2516 if test -z "$ac_err"; then
2518 eval "ac_cv_header_$ac_safe=yes"
2521 echo "configure: failed program was:" >&5
2522 cat conftest.
$ac_ext >&5
2524 eval "ac_cv_header_$ac_safe=no"
2528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2529 echo "$ac_t""yes" 1>&6
2530 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2531 cat >> confdefs.h
<<EOF
2532 #define $ac_tr_hdr 1
2536 echo "$ac_t""no" 1>&6
2540 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2542 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2543 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2544 echo "configure:2545: checking for $ac_hdr" >&5
2545 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2546 echo $ac_n "(cached) $ac_c" 1>&6
2548 cat > conftest.
$ac_ext <<EOF
2549 #line 2550 "configure"
2550 #include "confdefs.h"
2553 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2554 { (eval echo configure
:2555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2555 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2556 if test -z "$ac_err"; then
2558 eval "ac_cv_header_$ac_safe=yes"
2561 echo "configure: failed program was:" >&5
2562 cat conftest.
$ac_ext >&5
2564 eval "ac_cv_header_$ac_safe=no"
2568 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2569 echo "$ac_t""yes" 1>&6
2570 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2571 cat >> confdefs.h
<<EOF
2572 #define $ac_tr_hdr 1
2576 echo "$ac_t""no" 1>&6
2580 for ac_hdr
in security
/pam_modules.h security
/_pam_macros.h ldap.h lber.h dlfcn.h
2582 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2583 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2584 echo "configure:2585: checking for $ac_hdr" >&5
2585 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2586 echo $ac_n "(cached) $ac_c" 1>&6
2588 cat > conftest.
$ac_ext <<EOF
2589 #line 2590 "configure"
2590 #include "confdefs.h"
2593 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2594 { (eval echo configure
:2595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2595 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2596 if test -z "$ac_err"; then
2598 eval "ac_cv_header_$ac_safe=yes"
2601 echo "configure: failed program was:" >&5
2602 cat conftest.
$ac_ext >&5
2604 eval "ac_cv_header_$ac_safe=no"
2608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2609 echo "$ac_t""yes" 1>&6
2610 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2611 cat >> confdefs.h
<<EOF
2612 #define $ac_tr_hdr 1
2616 echo "$ac_t""no" 1>&6
2620 for ac_hdr
in sys
/syslog.h syslog.h
2622 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2623 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2624 echo "configure:2625: checking for $ac_hdr" >&5
2625 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2626 echo $ac_n "(cached) $ac_c" 1>&6
2628 cat > conftest.
$ac_ext <<EOF
2629 #line 2630 "configure"
2630 #include "confdefs.h"
2633 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2634 { (eval echo configure
:2635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2635 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2636 if test -z "$ac_err"; then
2638 eval "ac_cv_header_$ac_safe=yes"
2641 echo "configure: failed program was:" >&5
2642 cat conftest.
$ac_ext >&5
2644 eval "ac_cv_header_$ac_safe=no"
2648 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2649 echo "$ac_t""yes" 1>&6
2650 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2651 cat >> confdefs.h
<<EOF
2652 #define $ac_tr_hdr 1
2656 echo "$ac_t""no" 1>&6
2662 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2663 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2667 cat > conftest.
$ac_ext <<EOF
2668 #line 2669 "configure"
2669 #include "confdefs.h"
2675 if { (eval echo configure
:2676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2677 ac_cv_header_shadow_h
=yes
2679 echo "configure: failed program was:" >&5
2680 cat conftest.
$ac_ext >&5
2682 ac_cv_header_shadow_h
=no
2685 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2686 cat >> confdefs.h
<<\EOF
2687 #define HAVE_SHADOW_H 1
2693 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2695 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2696 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2697 echo "configure:2698: checking for $ac_hdr" >&5
2698 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2699 echo $ac_n "(cached) $ac_c" 1>&6
2701 cat > conftest.
$ac_ext <<EOF
2702 #line 2703 "configure"
2703 #include "confdefs.h"
2706 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2707 { (eval echo configure
:2708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2708 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2709 if test -z "$ac_err"; then
2711 eval "ac_cv_header_$ac_safe=yes"
2714 echo "configure: failed program was:" >&5
2715 cat conftest.
$ac_ext >&5
2717 eval "ac_cv_header_$ac_safe=no"
2721 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2722 echo "$ac_t""yes" 1>&6
2723 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2724 cat >> confdefs.h
<<EOF
2725 #define $ac_tr_hdr 1
2729 echo "$ac_t""no" 1>&6
2733 for ac_hdr
in nss.h nss_common.h ns_api.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2735 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2737 echo "configure:2738: checking for $ac_hdr" >&5
2738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2741 cat > conftest.
$ac_ext <<EOF
2742 #line 2743 "configure"
2743 #include "confdefs.h"
2746 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2747 { (eval echo configure
:2748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2748 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2749 if test -z "$ac_err"; then
2751 eval "ac_cv_header_$ac_safe=yes"
2754 echo "configure: failed program was:" >&5
2755 cat conftest.
$ac_ext >&5
2757 eval "ac_cv_header_$ac_safe=no"
2761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2762 echo "$ac_t""yes" 1>&6
2763 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2764 cat >> confdefs.h
<<EOF
2765 #define $ac_tr_hdr 1
2769 echo "$ac_t""no" 1>&6
2773 for ac_hdr
in stropts.h poll.h
2775 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2776 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2777 echo "configure:2778: checking for $ac_hdr" >&5
2778 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2779 echo $ac_n "(cached) $ac_c" 1>&6
2781 cat > conftest.
$ac_ext <<EOF
2782 #line 2783 "configure"
2783 #include "confdefs.h"
2786 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2787 { (eval echo configure
:2788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2788 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2789 if test -z "$ac_err"; then
2791 eval "ac_cv_header_$ac_safe=yes"
2794 echo "configure: failed program was:" >&5
2795 cat conftest.
$ac_ext >&5
2797 eval "ac_cv_header_$ac_safe=no"
2801 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2802 echo "$ac_t""yes" 1>&6
2803 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2804 cat >> confdefs.h
<<EOF
2805 #define $ac_tr_hdr 1
2809 echo "$ac_t""no" 1>&6
2813 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2815 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2816 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2817 echo "configure:2818: checking for $ac_hdr" >&5
2818 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2821 cat > conftest.
$ac_ext <<EOF
2822 #line 2823 "configure"
2823 #include "confdefs.h"
2826 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2827 { (eval echo configure
:2828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2828 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2829 if test -z "$ac_err"; then
2831 eval "ac_cv_header_$ac_safe=yes"
2834 echo "configure: failed program was:" >&5
2835 cat conftest.
$ac_ext >&5
2837 eval "ac_cv_header_$ac_safe=no"
2841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2842 echo "$ac_t""yes" 1>&6
2843 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2844 cat >> confdefs.h
<<EOF
2845 #define $ac_tr_hdr 1
2849 echo "$ac_t""no" 1>&6
2853 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2855 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2857 echo "configure:2858: checking for $ac_hdr" >&5
2858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2859 echo $ac_n "(cached) $ac_c" 1>&6
2861 cat > conftest.
$ac_ext <<EOF
2862 #line 2863 "configure"
2863 #include "confdefs.h"
2866 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2867 { (eval echo configure
:2868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2868 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2869 if test -z "$ac_err"; then
2871 eval "ac_cv_header_$ac_safe=yes"
2874 echo "configure: failed program was:" >&5
2875 cat conftest.
$ac_ext >&5
2877 eval "ac_cv_header_$ac_safe=no"
2881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2882 echo "$ac_t""yes" 1>&6
2883 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2884 cat >> confdefs.h
<<EOF
2885 #define $ac_tr_hdr 1
2889 echo "$ac_t""no" 1>&6
2894 # For experimental utmp support (lastlog on some BSD-like systems)
2895 for ac_hdr
in utmp.h utmpx.h lastlog.h
2897 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2898 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2899 echo "configure:2900: checking for $ac_hdr" >&5
2900 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2901 echo $ac_n "(cached) $ac_c" 1>&6
2903 cat > conftest.
$ac_ext <<EOF
2904 #line 2905 "configure"
2905 #include "confdefs.h"
2908 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2909 { (eval echo configure
:2910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2910 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2911 if test -z "$ac_err"; then
2913 eval "ac_cv_header_$ac_safe=yes"
2916 echo "configure: failed program was:" >&5
2917 cat conftest.
$ac_ext >&5
2919 eval "ac_cv_header_$ac_safe=no"
2923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2924 echo "$ac_t""yes" 1>&6
2925 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2926 cat >> confdefs.h
<<EOF
2927 #define $ac_tr_hdr 1
2931 echo "$ac_t""no" 1>&6
2936 # For quotas on Veritas VxFS filesystems
2937 for ac_hdr
in sys
/fs
/vx_quota.h
2939 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2940 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2941 echo "configure:2942: checking for $ac_hdr" >&5
2942 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2943 echo $ac_n "(cached) $ac_c" 1>&6
2945 cat > conftest.
$ac_ext <<EOF
2946 #line 2947 "configure"
2947 #include "confdefs.h"
2950 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2951 { (eval echo configure
:2952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2952 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2953 if test -z "$ac_err"; then
2955 eval "ac_cv_header_$ac_safe=yes"
2958 echo "configure: failed program was:" >&5
2959 cat conftest.
$ac_ext >&5
2961 eval "ac_cv_header_$ac_safe=no"
2965 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2966 echo "$ac_t""yes" 1>&6
2967 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2968 cat >> confdefs.h
<<EOF
2969 #define $ac_tr_hdr 1
2973 echo "$ac_t""no" 1>&6
2978 # For quotas on Linux XFS filesystems
2979 for ac_hdr
in linux
/xqm.h
2981 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2982 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2983 echo "configure:2984: checking for $ac_hdr" >&5
2984 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2985 echo $ac_n "(cached) $ac_c" 1>&6
2987 cat > conftest.
$ac_ext <<EOF
2988 #line 2989 "configure"
2989 #include "confdefs.h"
2992 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2993 { (eval echo configure
:2994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2994 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2995 if test -z "$ac_err"; then
2997 eval "ac_cv_header_$ac_safe=yes"
3000 echo "configure: failed program was:" >&5
3001 cat conftest.
$ac_ext >&5
3003 eval "ac_cv_header_$ac_safe=no"
3007 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3008 echo "$ac_t""yes" 1>&6
3009 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3010 cat >> confdefs.h
<<EOF
3011 #define $ac_tr_hdr 1
3015 echo "$ac_t""no" 1>&6
3019 for ac_hdr
in xfs
/xqm.h
3021 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3022 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3023 echo "configure:3024: checking for $ac_hdr" >&5
3024 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3027 cat > conftest.
$ac_ext <<EOF
3028 #line 3029 "configure"
3029 #include "confdefs.h"
3032 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3033 { (eval echo configure
:3034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3034 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3035 if test -z "$ac_err"; then
3037 eval "ac_cv_header_$ac_safe=yes"
3040 echo "configure: failed program was:" >&5
3041 cat conftest.
$ac_ext >&5
3043 eval "ac_cv_header_$ac_safe=no"
3047 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3048 echo "$ac_t""yes" 1>&6
3049 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3050 cat >> confdefs.h
<<EOF
3051 #define $ac_tr_hdr 1
3055 echo "$ac_t""no" 1>&6
3060 echo $ac_n "checking size of int""... $ac_c" 1>&6
3061 echo "configure:3062: checking size of int" >&5
3062 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3063 echo $ac_n "(cached) $ac_c" 1>&6
3065 if test "$cross_compiling" = yes; then
3066 ac_cv_sizeof_int
=cross
3068 cat > conftest.
$ac_ext <<EOF
3069 #line 3070 "configure"
3070 #include "confdefs.h"
3074 FILE *f=fopen("conftestval", "w");
3076 fprintf(f, "%d\n", sizeof(int));
3080 if { (eval echo configure
:3081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3082 ac_cv_sizeof_int
=`cat conftestval`
3084 echo "configure: failed program was:" >&5
3085 cat conftest.
$ac_ext >&5
3093 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3094 cat >> confdefs.h
<<EOF
3095 #define SIZEOF_INT $ac_cv_sizeof_int
3099 echo $ac_n "checking size of long""... $ac_c" 1>&6
3100 echo "configure:3101: checking size of long" >&5
3101 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3102 echo $ac_n "(cached) $ac_c" 1>&6
3104 if test "$cross_compiling" = yes; then
3105 ac_cv_sizeof_long
=cross
3107 cat > conftest.
$ac_ext <<EOF
3108 #line 3109 "configure"
3109 #include "confdefs.h"
3113 FILE *f=fopen("conftestval", "w");
3115 fprintf(f, "%d\n", sizeof(long));
3119 if { (eval echo configure
:3120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3121 ac_cv_sizeof_long
=`cat conftestval`
3123 echo "configure: failed program was:" >&5
3124 cat conftest.
$ac_ext >&5
3132 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3133 cat >> confdefs.h
<<EOF
3134 #define SIZEOF_LONG $ac_cv_sizeof_long
3138 echo $ac_n "checking size of short""... $ac_c" 1>&6
3139 echo "configure:3140: checking size of short" >&5
3140 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3141 echo $ac_n "(cached) $ac_c" 1>&6
3143 if test "$cross_compiling" = yes; then
3144 ac_cv_sizeof_short
=cross
3146 cat > conftest.
$ac_ext <<EOF
3147 #line 3148 "configure"
3148 #include "confdefs.h"
3152 FILE *f=fopen("conftestval", "w");
3154 fprintf(f, "%d\n", sizeof(short));
3158 if { (eval echo configure
:3159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3160 ac_cv_sizeof_short
=`cat conftestval`
3162 echo "configure: failed program was:" >&5
3163 cat conftest.
$ac_ext >&5
3165 ac_cv_sizeof_short
=0
3171 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3172 cat >> confdefs.h
<<EOF
3173 #define SIZEOF_SHORT $ac_cv_sizeof_short
3178 echo $ac_n "checking for working const""... $ac_c" 1>&6
3179 echo "configure:3180: checking for working const" >&5
3180 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3181 echo $ac_n "(cached) $ac_c" 1>&6
3183 cat > conftest.
$ac_ext <<EOF
3184 #line 3185 "configure"
3185 #include "confdefs.h"
3189 /* Ultrix mips cc rejects this. */
3190 typedef int charset[2]; const charset x;
3191 /* SunOS 4.1.1 cc rejects this. */
3192 char const *const *ccp;
3194 /* NEC SVR4.0.2 mips cc rejects this. */
3195 struct point {int x, y;};
3196 static struct point const zero = {0,0};
3197 /* AIX XL C 1.02.0.0 rejects this.
3198 It does not let you subtract one const X* pointer from another in an arm
3199 of an if-expression whose if-part is not a constant expression */
3200 const char *g = "string";
3201 ccp = &g + (g ? g-g : 0);
3202 /* HPUX 7.0 cc rejects these. */
3205 ccp = (char const *const *) p;
3206 { /* SCO 3.2v4 cc rejects this. */
3208 char const *s = 0 ? (char *) 0 : (char const *) 0;
3212 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3214 const int *foo = &x[0];
3217 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3218 typedef const int *iptr;
3222 { /* AIX XL C 1.02.0.0 rejects this saying
3223 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3224 struct s { int j; const int *ap[3]; };
3225 struct s *b; b->j = 5;
3227 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3233 if { (eval echo configure
:3234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3237 echo "configure: failed program was:" >&5
3238 cat conftest.
$ac_ext >&5
3245 echo "$ac_t""$ac_cv_c_const" 1>&6
3246 if test $ac_cv_c_const = no
; then
3247 cat >> confdefs.h
<<\EOF
3253 echo $ac_n "checking for inline""... $ac_c" 1>&6
3254 echo "configure:3255: checking for inline" >&5
3255 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3256 echo $ac_n "(cached) $ac_c" 1>&6
3259 for ac_kw
in inline __inline__ __inline
; do
3260 cat > conftest.
$ac_ext <<EOF
3261 #line 3262 "configure"
3262 #include "confdefs.h"
3268 if { (eval echo configure
:3269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3270 ac_cv_c_inline
=$ac_kw; break
3272 echo "configure: failed program was:" >&5
3273 cat conftest.
$ac_ext >&5
3280 echo "$ac_t""$ac_cv_c_inline" 1>&6
3281 case "$ac_cv_c_inline" in
3283 no
) cat >> confdefs.h
<<\EOF
3287 *) cat >> confdefs.h
<<EOF
3288 #define inline $ac_cv_c_inline
3293 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3294 echo "configure:3295: checking whether byte ordering is bigendian" >&5
3295 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3296 echo $ac_n "(cached) $ac_c" 1>&6
3298 ac_cv_c_bigendian
=unknown
3299 # See if sys/param.h defines the BYTE_ORDER macro.
3300 cat > conftest.
$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3303 #include <sys/types.h>
3304 #include <sys/param.h>
3307 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3312 if { (eval echo configure
:3313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3314 # It does; now see whether it defined to BIG_ENDIAN or not.
3315 cat > conftest.
$ac_ext <<EOF
3316 #line 3317 "configure"
3317 #include "confdefs.h"
3318 #include <sys/types.h>
3319 #include <sys/param.h>
3322 #if BYTE_ORDER != BIG_ENDIAN
3327 if { (eval echo configure
:3328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3329 ac_cv_c_bigendian
=yes
3331 echo "configure: failed program was:" >&5
3332 cat conftest.
$ac_ext >&5
3334 ac_cv_c_bigendian
=no
3338 echo "configure: failed program was:" >&5
3339 cat conftest.
$ac_ext >&5
3342 if test $ac_cv_c_bigendian = unknown
; then
3343 if test "$cross_compiling" = yes; then
3344 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3346 cat > conftest.
$ac_ext <<EOF
3347 #line 3348 "configure"
3348 #include "confdefs.h"
3350 /* Are we little or big endian? From Harbison&Steele. */
3354 char c[sizeof (long)];
3357 exit (u.c[sizeof (long) - 1] == 1);
3360 if { (eval echo configure
:3361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3362 ac_cv_c_bigendian
=no
3364 echo "configure: failed program was:" >&5
3365 cat conftest.
$ac_ext >&5
3367 ac_cv_c_bigendian
=yes
3375 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3376 if test $ac_cv_c_bigendian = yes; then
3377 cat >> confdefs.h
<<\EOF
3378 #define WORDS_BIGENDIAN 1
3383 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3384 echo "configure:3385: checking whether char is unsigned" >&5
3385 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3388 if test "$GCC" = yes; then
3389 # GCC predefines this symbol on systems where it applies.
3390 cat > conftest.
$ac_ext <<EOF
3391 #line 3392 "configure"
3392 #include "confdefs.h"
3393 #ifdef __CHAR_UNSIGNED__
3398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3399 egrep "yes" >/dev
/null
2>&1; then
3401 ac_cv_c_char_unsigned
=yes
3404 ac_cv_c_char_unsigned
=no
3409 if test "$cross_compiling" = yes; then
3410 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3412 cat > conftest.
$ac_ext <<EOF
3413 #line 3414 "configure"
3414 #include "confdefs.h"
3415 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3416 #if !defined(__STDC__) || __STDC__ != 1
3420 volatile char c = 255; exit(c < 0);
3423 if { (eval echo configure
:3424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3425 ac_cv_c_char_unsigned
=yes
3427 echo "configure: failed program was:" >&5
3428 cat conftest.
$ac_ext >&5
3430 ac_cv_c_char_unsigned
=no
3438 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3439 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3440 cat >> confdefs.h
<<\EOF
3441 #define __CHAR_UNSIGNED__ 1
3447 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3448 echo "configure:3449: checking return type of signal handlers" >&5
3449 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3450 echo $ac_n "(cached) $ac_c" 1>&6
3452 cat > conftest.
$ac_ext <<EOF
3453 #line 3454 "configure"
3454 #include "confdefs.h"
3455 #include <sys/types.h>
3461 extern "C" void (*signal (int, void (*)(int)))(int);
3463 void (*signal ()) ();
3470 if { (eval echo configure
:3471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3472 ac_cv_type_signal
=void
3474 echo "configure: failed program was:" >&5
3475 cat conftest.
$ac_ext >&5
3477 ac_cv_type_signal
=int
3482 echo "$ac_t""$ac_cv_type_signal" 1>&6
3483 cat >> confdefs.h
<<EOF
3484 #define RETSIGTYPE $ac_cv_type_signal
3488 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3489 echo "configure:3490: checking for uid_t in sys/types.h" >&5
3490 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3491 echo $ac_n "(cached) $ac_c" 1>&6
3493 cat > conftest.
$ac_ext <<EOF
3494 #line 3495 "configure"
3495 #include "confdefs.h"
3496 #include <sys/types.h>
3498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3499 egrep "uid_t" >/dev
/null
2>&1; then
3501 ac_cv_type_uid_t
=yes
3510 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3511 if test $ac_cv_type_uid_t = no
; then
3512 cat >> confdefs.h
<<\EOF
3516 cat >> confdefs.h
<<\EOF
3522 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3523 echo "configure:3524: checking for mode_t" >&5
3524 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3525 echo $ac_n "(cached) $ac_c" 1>&6
3527 cat > conftest.
$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3530 #include <sys/types.h>
3536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3537 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3539 ac_cv_type_mode_t
=yes
3542 ac_cv_type_mode_t
=no
3547 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3548 if test $ac_cv_type_mode_t = no
; then
3549 cat >> confdefs.h
<<\EOF
3555 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3556 echo "configure:3557: checking for off_t" >&5
3557 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3558 echo $ac_n "(cached) $ac_c" 1>&6
3560 cat > conftest.
$ac_ext <<EOF
3561 #line 3562 "configure"
3562 #include "confdefs.h"
3563 #include <sys/types.h>
3569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3570 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3572 ac_cv_type_off_t
=yes
3580 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3581 if test $ac_cv_type_off_t = no
; then
3582 cat >> confdefs.h
<<\EOF
3588 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3589 echo "configure:3590: checking for size_t" >&5
3590 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3591 echo $ac_n "(cached) $ac_c" 1>&6
3593 cat > conftest.
$ac_ext <<EOF
3594 #line 3595 "configure"
3595 #include "confdefs.h"
3596 #include <sys/types.h>
3602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3603 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3605 ac_cv_type_size_t
=yes
3608 ac_cv_type_size_t
=no
3613 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3614 if test $ac_cv_type_size_t = no
; then
3615 cat >> confdefs.h
<<\EOF
3616 #define size_t unsigned
3621 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3622 echo "configure:3623: checking for pid_t" >&5
3623 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3624 echo $ac_n "(cached) $ac_c" 1>&6
3626 cat > conftest.
$ac_ext <<EOF
3627 #line 3628 "configure"
3628 #include "confdefs.h"
3629 #include <sys/types.h>
3635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3636 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3638 ac_cv_type_pid_t
=yes
3646 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3647 if test $ac_cv_type_pid_t = no
; then
3648 cat >> confdefs.h
<<\EOF
3654 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3655 echo "configure:3656: checking for st_rdev in struct stat" >&5
3656 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3657 echo $ac_n "(cached) $ac_c" 1>&6
3659 cat > conftest.
$ac_ext <<EOF
3660 #line 3661 "configure"
3661 #include "confdefs.h"
3662 #include <sys/types.h>
3663 #include <sys/stat.h>
3665 struct stat s; s.st_rdev;
3668 if { (eval echo configure
:3669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3670 ac_cv_struct_st_rdev
=yes
3672 echo "configure: failed program was:" >&5
3673 cat conftest.
$ac_ext >&5
3675 ac_cv_struct_st_rdev
=no
3680 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3681 if test $ac_cv_struct_st_rdev = yes; then
3682 cat >> confdefs.h
<<\EOF
3683 #define HAVE_ST_RDEV 1
3688 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3689 echo "configure:3690: checking for d_off in dirent" >&5
3690 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3693 cat > conftest.
$ac_ext <<EOF
3694 #line 3695 "configure"
3695 #include "confdefs.h"
3698 #include <sys/types.h>
3701 struct dirent d; d.d_off;
3704 if { (eval echo configure
:3705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3706 ac_cv_dirent_d_off
=yes
3708 echo "configure: failed program was:" >&5
3709 cat conftest.
$ac_ext >&5
3711 ac_cv_dirent_d_off
=no
3716 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3717 if test $ac_cv_dirent_d_off = yes; then
3718 cat >> confdefs.h
<<\EOF
3719 #define HAVE_DIRENT_D_OFF 1
3724 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3725 echo "configure:3726: checking for ino_t" >&5
3726 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3727 echo $ac_n "(cached) $ac_c" 1>&6
3729 cat > conftest.
$ac_ext <<EOF
3730 #line 3731 "configure"
3731 #include "confdefs.h"
3732 #include <sys/types.h>
3738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3739 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3741 ac_cv_type_ino_t
=yes
3749 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3750 if test $ac_cv_type_ino_t = no
; then
3751 cat >> confdefs.h
<<\EOF
3752 #define ino_t unsigned
3757 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3758 echo "configure:3759: checking for loff_t" >&5
3759 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3760 echo $ac_n "(cached) $ac_c" 1>&6
3762 cat > conftest.
$ac_ext <<EOF
3763 #line 3764 "configure"
3764 #include "confdefs.h"
3765 #include <sys/types.h>
3771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3772 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3774 ac_cv_type_loff_t
=yes
3777 ac_cv_type_loff_t
=no
3782 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3783 if test $ac_cv_type_loff_t = no
; then
3784 cat >> confdefs.h
<<\EOF
3785 #define loff_t off_t
3790 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3791 echo "configure:3792: checking for offset_t" >&5
3792 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3793 echo $ac_n "(cached) $ac_c" 1>&6
3795 cat > conftest.
$ac_ext <<EOF
3796 #line 3797 "configure"
3797 #include "confdefs.h"
3798 #include <sys/types.h>
3804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3805 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3807 ac_cv_type_offset_t
=yes
3810 ac_cv_type_offset_t
=no
3815 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3816 if test $ac_cv_type_offset_t = no
; then
3817 cat >> confdefs.h
<<\EOF
3818 #define offset_t loff_t
3823 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3824 echo "configure:3825: checking for ssize_t" >&5
3825 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3828 cat > conftest.
$ac_ext <<EOF
3829 #line 3830 "configure"
3830 #include "confdefs.h"
3831 #include <sys/types.h>
3837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3838 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3840 ac_cv_type_ssize_t
=yes
3843 ac_cv_type_ssize_t
=no
3848 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3849 if test $ac_cv_type_ssize_t = no
; then
3850 cat >> confdefs.h
<<\EOF
3856 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3857 echo "configure:3858: checking for wchar_t" >&5
3858 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3859 echo $ac_n "(cached) $ac_c" 1>&6
3861 cat > conftest.
$ac_ext <<EOF
3862 #line 3863 "configure"
3863 #include "confdefs.h"
3864 #include <sys/types.h>
3870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3871 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3873 ac_cv_type_wchar_t
=yes
3876 ac_cv_type_wchar_t
=no
3881 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3882 if test $ac_cv_type_wchar_t = no
; then
3883 cat >> confdefs.h
<<\EOF
3884 #define wchar_t unsigned short
3890 ############################################
3891 # for cups support we need libcups, and a handful of header files
3893 # Check whether --enable-cups or --disable-cups was given.
3894 if test "${enable_cups+set}" = set; then
3895 enableval
="$enable_cups"
3900 if test x
$enable_cups != xno
; then
3901 # Extract the first word of "cups-config", so it can be a program name with args.
3902 set dummy cups-config
; ac_word
=$2
3903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3904 echo "configure:3905: checking for $ac_word" >&5
3905 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3908 case "$CUPS_CONFIG" in
3910 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a path.
3913 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a dos path.
3916 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3918 for ac_dir
in $ac_dummy; do
3919 test -z "$ac_dir" && ac_dir
=.
3920 if test -f $ac_dir/$ac_word; then
3921 ac_cv_path_CUPS_CONFIG
="$ac_dir/$ac_word"
3929 CUPS_CONFIG
="$ac_cv_path_CUPS_CONFIG"
3930 if test -n "$CUPS_CONFIG"; then
3931 echo "$ac_t""$CUPS_CONFIG" 1>&6
3933 echo "$ac_t""no" 1>&6
3937 if test "x$CUPS_CONFIG" != x
; then
3938 cat >> confdefs.h
<<\EOF
3942 CFLAGS
="$CFLAGS `$CUPS_CONFIG --cflags`"
3943 LDFLAGS
="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3944 PRINTLIBS
="$PRINTLIBS `$CUPS_CONFIG --libs`"
3948 ############################################
3949 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the plugin loading code
3950 for ac_func
in dlopen
3952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3953 echo "configure:3954: checking for $ac_func" >&5
3954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3957 cat > conftest.
$ac_ext <<EOF
3958 #line 3959 "configure"
3959 #include "confdefs.h"
3960 /* System header to define __stub macros and hopefully few prototypes,
3961 which can conflict with char $ac_func(); below. */
3963 /* Override any gcc2 internal prototype to avoid an error. */
3964 /* We use char because int might match the return type of a gcc2
3965 builtin and then its argument prototype would still apply. */
3970 /* The GNU C library defines this for functions which it implements
3971 to always fail with ENOSYS. Some functions are actually named
3972 something starting with __ and the normal name is an alias. */
3973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3981 if { (eval echo configure
:3982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3983 eval "ac_cv_func_$ac_func=yes"
3985 echo "configure: failed program was:" >&5
3986 cat conftest.
$ac_ext >&5
3988 eval "ac_cv_func_$ac_func=no"
3993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3994 echo "$ac_t""yes" 1>&6
3995 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3996 cat >> confdefs.h
<<EOF
3997 #define $ac_tr_func 1
4001 echo "$ac_t""no" 1>&6
4005 if test x
"$ac_cv_func_dlopen" = x
"no"; then
4006 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4007 echo "configure:4008: checking for dlopen in -ldl" >&5
4008 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4009 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4010 echo $ac_n "(cached) $ac_c" 1>&6
4012 ac_save_LIBS
="$LIBS"
4014 cat > conftest.
$ac_ext <<EOF
4015 #line 4016 "configure"
4016 #include "confdefs.h"
4017 /* Override any gcc2 internal prototype to avoid an error. */
4018 /* We use char because int might match the return type of a gcc2
4019 builtin and then its argument prototype would still apply. */
4026 if { (eval echo configure
:4027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4028 eval "ac_cv_lib_$ac_lib_var=yes"
4030 echo "configure: failed program was:" >&5
4031 cat conftest.
$ac_ext >&5
4033 eval "ac_cv_lib_$ac_lib_var=no"
4036 LIBS
="$ac_save_LIBS"
4039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4040 echo "$ac_t""yes" 1>&6
4042 cat >> confdefs.h
<<\EOF
4043 #define HAVE_DLOPEN 1
4047 echo "$ac_t""no" 1>&6
4051 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
4053 ############################################
4054 # check if the compiler can do immediate structures
4055 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
4056 echo "configure:4057: checking for immediate structures" >&5
4057 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
4058 echo $ac_n "(cached) $ac_c" 1>&6
4061 cat > conftest.
$ac_ext <<EOF
4062 #line 4063 "configure"
4063 #include "confdefs.h"
4068 typedef struct {unsigned x;} FOOBAR;
4069 #define X_FOOBAR(x) ((FOOBAR) { x })
4070 #define FOO_ONE X_FOOBAR(1)
4080 if { (eval echo configure
:4081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4082 samba_cv_immediate_structures
=yes
4084 echo "configure: failed program was:" >&5
4085 cat conftest.
$ac_ext >&5
4087 samba_cv_immediate_structures
=no
4092 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
4093 if test x
"$samba_cv_immediate_structures" = x
"yes"; then
4094 cat >> confdefs.h
<<\EOF
4095 #define HAVE_IMMEDIATE_STRUCTURES 1
4100 ############################################
4101 # check for unix domain sockets
4102 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
4103 echo "configure:4104: checking for unix domain sockets" >&5
4104 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
4105 echo $ac_n "(cached) $ac_c" 1>&6
4108 cat > conftest.
$ac_ext <<EOF
4109 #line 4110 "configure"
4110 #include "confdefs.h"
4112 #include <sys/types.h>
4115 #include <sys/socket.h>
4119 struct sockaddr_un sunaddr;
4120 sunaddr.sun_family = AF_UNIX;
4124 if { (eval echo configure
:4125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4126 samba_cv_unixsocket
=yes
4128 echo "configure: failed program was:" >&5
4129 cat conftest.
$ac_ext >&5
4131 samba_cv_unixsocket
=no
4136 echo "$ac_t""$samba_cv_unixsocket" 1>&6
4137 if test x
"$samba_cv_unixsocket" = x
"yes"; then
4138 cat >> confdefs.h
<<\EOF
4139 #define HAVE_UNIXSOCKET 1
4145 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
4146 echo "configure:4147: checking for socklen_t type" >&5
4147 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
4148 echo $ac_n "(cached) $ac_c" 1>&6
4151 cat > conftest.
$ac_ext <<EOF
4152 #line 4153 "configure"
4153 #include "confdefs.h"
4155 #include <sys/types.h>
4160 #include <sys/socket.h>
4165 if { (eval echo configure
:4166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4167 samba_cv_socklen_t
=yes
4169 echo "configure: failed program was:" >&5
4170 cat conftest.
$ac_ext >&5
4172 samba_cv_socklen_t
=no
4177 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4178 if test x
"$samba_cv_socklen_t" = x
"yes"; then
4179 cat >> confdefs.h
<<\EOF
4180 #define HAVE_SOCKLEN_T_TYPE 1
4185 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4186 echo "configure:4187: checking for sig_atomic_t type" >&5
4187 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4188 echo $ac_n "(cached) $ac_c" 1>&6
4191 cat > conftest.
$ac_ext <<EOF
4192 #line 4193 "configure"
4193 #include "confdefs.h"
4195 #include <sys/types.h>
4205 if { (eval echo configure
:4206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4207 samba_cv_sig_atomic_t
=yes
4209 echo "configure: failed program was:" >&5
4210 cat conftest.
$ac_ext >&5
4212 samba_cv_sig_atomic_t
=no
4217 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4218 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
4219 cat >> confdefs.h
<<\EOF
4220 #define HAVE_SIG_ATOMIC_T_TYPE 1
4225 # stupid headers have the functions but no declaration. grrrr.
4227 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4228 echo "configure:4229: checking for errno declaration" >&5
4229 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4230 echo $ac_n "(cached) $ac_c" 1>&6
4233 cat > conftest.
$ac_ext <<EOF
4234 #line 4235 "configure"
4235 #include "confdefs.h"
4241 if { (eval echo configure
:4242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4243 ac_cv_have_errno_decl
=yes
4245 echo "configure: failed program was:" >&5
4246 cat conftest.
$ac_ext >&5
4248 ac_cv_have_errno_decl
=no
4253 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4254 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
4255 cat >> confdefs.h
<<\EOF
4256 #define HAVE_ERRNO_DECL 1
4262 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4263 echo "configure:4264: checking for setresuid declaration" >&5
4264 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4265 echo $ac_n "(cached) $ac_c" 1>&6
4268 cat > conftest.
$ac_ext <<EOF
4269 #line 4270 "configure"
4270 #include "confdefs.h"
4273 int i = (int)setresuid
4276 if { (eval echo configure
:4277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4278 ac_cv_have_setresuid_decl
=yes
4280 echo "configure: failed program was:" >&5
4281 cat conftest.
$ac_ext >&5
4283 ac_cv_have_setresuid_decl
=no
4288 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4289 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
4290 cat >> confdefs.h
<<\EOF
4291 #define HAVE_SETRESUID_DECL 1
4297 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4298 echo "configure:4299: checking for setresgid declaration" >&5
4299 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4300 echo $ac_n "(cached) $ac_c" 1>&6
4303 cat > conftest.
$ac_ext <<EOF
4304 #line 4305 "configure"
4305 #include "confdefs.h"
4308 int i = (int)setresgid
4311 if { (eval echo configure
:4312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4313 ac_cv_have_setresgid_decl
=yes
4315 echo "configure: failed program was:" >&5
4316 cat conftest.
$ac_ext >&5
4318 ac_cv_have_setresgid_decl
=no
4323 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4324 if test x
"$ac_cv_have_setresgid_decl" = x
"yes"; then
4325 cat >> confdefs.h
<<\EOF
4326 #define HAVE_SETRESGID_DECL 1
4332 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4333 echo "configure:4334: checking for asprintf declaration" >&5
4334 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6
4338 cat > conftest.
$ac_ext <<EOF
4339 #line 4340 "configure"
4340 #include "confdefs.h"
4343 int i = (int)asprintf
4346 if { (eval echo configure
:4347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4348 ac_cv_have_asprintf_decl
=yes
4350 echo "configure: failed program was:" >&5
4351 cat conftest.
$ac_ext >&5
4353 ac_cv_have_asprintf_decl
=no
4358 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4359 if test x
"$ac_cv_have_asprintf_decl" = x
"yes"; then
4360 cat >> confdefs.h
<<\EOF
4361 #define HAVE_ASPRINTF_DECL 1
4367 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4368 echo "configure:4369: checking for vasprintf declaration" >&5
4369 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4370 echo $ac_n "(cached) $ac_c" 1>&6
4373 cat > conftest.
$ac_ext <<EOF
4374 #line 4375 "configure"
4375 #include "confdefs.h"
4378 int i = (int)vasprintf
4381 if { (eval echo configure
:4382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4383 ac_cv_have_vasprintf_decl
=yes
4385 echo "configure: failed program was:" >&5
4386 cat conftest.
$ac_ext >&5
4388 ac_cv_have_vasprintf_decl
=no
4393 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4394 if test x
"$ac_cv_have_vasprintf_decl" = x
"yes"; then
4395 cat >> confdefs.h
<<\EOF
4396 #define HAVE_VASPRINTF_DECL 1
4402 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4403 echo "configure:4404: checking for vsnprintf declaration" >&5
4404 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4405 echo $ac_n "(cached) $ac_c" 1>&6
4408 cat > conftest.
$ac_ext <<EOF
4409 #line 4410 "configure"
4410 #include "confdefs.h"
4413 int i = (int)vsnprintf
4416 if { (eval echo configure
:4417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4418 ac_cv_have_vsnprintf_decl
=yes
4420 echo "configure: failed program was:" >&5
4421 cat conftest.
$ac_ext >&5
4423 ac_cv_have_vsnprintf_decl
=no
4428 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4429 if test x
"$ac_cv_have_vsnprintf_decl" = x
"yes"; then
4430 cat >> confdefs.h
<<\EOF
4431 #define HAVE_VSNPRINTF_DECL 1
4437 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4438 echo "configure:4439: checking for snprintf declaration" >&5
4439 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4440 echo $ac_n "(cached) $ac_c" 1>&6
4443 cat > conftest.
$ac_ext <<EOF
4444 #line 4445 "configure"
4445 #include "confdefs.h"
4448 int i = (int)snprintf
4451 if { (eval echo configure
:4452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4453 ac_cv_have_snprintf_decl
=yes
4455 echo "configure: failed program was:" >&5
4456 cat conftest.
$ac_ext >&5
4458 ac_cv_have_snprintf_decl
=no
4463 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4464 if test x
"$ac_cv_have_snprintf_decl" = x
"yes"; then
4465 cat >> confdefs.h
<<\EOF
4466 #define HAVE_SNPRINTF_DECL 1
4472 # and glibc has setresuid under linux but the function does
4473 # nothing until kernel 2.1.44! very dumb.
4474 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4475 echo "configure:4476: checking for real setresuid" >&5
4476 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4477 echo $ac_n "(cached) $ac_c" 1>&6
4480 if test "$cross_compiling" = yes; then
4481 samba_cv_have_setresuid
=cross
4483 cat > conftest.
$ac_ext <<EOF
4484 #line 4485 "configure"
4485 #include "confdefs.h"
4487 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4489 if { (eval echo configure
:4490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4491 samba_cv_have_setresuid
=yes
4493 echo "configure: failed program was:" >&5
4494 cat conftest.
$ac_ext >&5
4496 samba_cv_have_setresuid
=no
4503 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4504 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4505 cat >> confdefs.h
<<\EOF
4506 #define HAVE_SETRESUID 1
4511 # Do the same check for setresguid...
4513 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4514 echo "configure:4515: checking for real setresgid" >&5
4515 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4516 echo $ac_n "(cached) $ac_c" 1>&6
4519 if test "$cross_compiling" = yes; then
4520 samba_cv_have_setresgid
=cross
4522 cat > conftest.
$ac_ext <<EOF
4523 #line 4524 "configure"
4524 #include "confdefs.h"
4527 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4529 if { (eval echo configure
:4530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4531 samba_cv_have_setresgid
=yes
4533 echo "configure: failed program was:" >&5
4534 cat conftest.
$ac_ext >&5
4536 samba_cv_have_setresgid
=no
4543 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4544 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4545 cat >> confdefs.h
<<\EOF
4546 #define HAVE_SETRESGID 1
4551 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4552 echo "configure:4553: checking for 8-bit clean memcmp" >&5
4553 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4554 echo $ac_n "(cached) $ac_c" 1>&6
4556 if test "$cross_compiling" = yes; then
4557 ac_cv_func_memcmp_clean
=no
4559 cat > conftest.
$ac_ext <<EOF
4560 #line 4561 "configure"
4561 #include "confdefs.h"
4565 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4566 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4570 if { (eval echo configure
:4571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4572 ac_cv_func_memcmp_clean
=yes
4574 echo "configure: failed program was:" >&5
4575 cat conftest.
$ac_ext >&5
4577 ac_cv_func_memcmp_clean
=no
4584 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4585 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4588 ###############################################
4589 # test for where we get crypt() from
4590 for ac_func
in crypt
4592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4593 echo "configure:4594: checking for $ac_func" >&5
4594 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4595 echo $ac_n "(cached) $ac_c" 1>&6
4597 cat > conftest.
$ac_ext <<EOF
4598 #line 4599 "configure"
4599 #include "confdefs.h"
4600 /* System header to define __stub macros and hopefully few prototypes,
4601 which can conflict with char $ac_func(); below. */
4603 /* Override any gcc2 internal prototype to avoid an error. */
4604 /* We use char because int might match the return type of a gcc2
4605 builtin and then its argument prototype would still apply. */
4610 /* The GNU C library defines this for functions which it implements
4611 to always fail with ENOSYS. Some functions are actually named
4612 something starting with __ and the normal name is an alias. */
4613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4621 if { (eval echo configure
:4622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4623 eval "ac_cv_func_$ac_func=yes"
4625 echo "configure: failed program was:" >&5
4626 cat conftest.
$ac_ext >&5
4628 eval "ac_cv_func_$ac_func=no"
4633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4634 echo "$ac_t""yes" 1>&6
4635 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4636 cat >> confdefs.h
<<EOF
4637 #define $ac_tr_func 1
4641 echo "$ac_t""no" 1>&6
4645 if test x
"$ac_cv_func_crypt" = x
"no"; then
4646 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4647 echo "configure:4648: checking for crypt in -lcrypt" >&5
4648 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4650 echo $ac_n "(cached) $ac_c" 1>&6
4652 ac_save_LIBS
="$LIBS"
4653 LIBS
="-lcrypt $LIBS"
4654 cat > conftest.
$ac_ext <<EOF
4655 #line 4656 "configure"
4656 #include "confdefs.h"
4657 /* Override any gcc2 internal prototype to avoid an error. */
4658 /* We use char because int might match the return type of a gcc2
4659 builtin and then its argument prototype would still apply. */
4666 if { (eval echo configure
:4667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4668 eval "ac_cv_lib_$ac_lib_var=yes"
4670 echo "configure: failed program was:" >&5
4671 cat conftest.
$ac_ext >&5
4673 eval "ac_cv_lib_$ac_lib_var=no"
4676 LIBS
="$ac_save_LIBS"
4679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4680 echo "$ac_t""yes" 1>&6
4681 AUTHLIBS
="$AUTHLIBS -lcrypt";
4682 cat >> confdefs.h
<<\EOF
4683 #define HAVE_CRYPT 1
4687 echo "$ac_t""no" 1>&6
4693 ###############################################
4694 # Readline included by default unless explicitly asked not to
4695 test "${with_readline+set}" != "set" && with_readline
=yes
4697 # test for where we get readline() from
4698 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4699 echo "configure:4700: checking whether to use readline" >&5
4700 # Check whether --with-readline or --without-readline was given.
4701 if test "${with_readline+set}" = set; then
4702 withval
="$with_readline"
4703 case "$with_readline" in
4705 echo "$ac_t""yes" 1>&6
4707 for ac_hdr
in readline.h
history.h readline
/readline.h
4709 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4710 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4711 echo "configure:4712: checking for $ac_hdr" >&5
4712 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4713 echo $ac_n "(cached) $ac_c" 1>&6
4715 cat > conftest.
$ac_ext <<EOF
4716 #line 4717 "configure"
4717 #include "confdefs.h"
4720 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4721 { (eval echo configure
:4722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4722 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4723 if test -z "$ac_err"; then
4725 eval "ac_cv_header_$ac_safe=yes"
4728 echo "configure: failed program was:" >&5
4729 cat conftest.
$ac_ext >&5
4731 eval "ac_cv_header_$ac_safe=no"
4735 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4736 echo "$ac_t""yes" 1>&6
4737 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4738 cat >> confdefs.h
<<EOF
4739 #define $ac_tr_hdr 1
4743 echo "$ac_t""no" 1>&6
4747 for ac_hdr
in readline
/history.h
4749 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4750 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4751 echo "configure:4752: checking for $ac_hdr" >&5
4752 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4753 echo $ac_n "(cached) $ac_c" 1>&6
4755 cat > conftest.
$ac_ext <<EOF
4756 #line 4757 "configure"
4757 #include "confdefs.h"
4760 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4761 { (eval echo configure
:4762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4762 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4763 if test -z "$ac_err"; then
4765 eval "ac_cv_header_$ac_safe=yes"
4768 echo "configure: failed program was:" >&5
4769 cat conftest.
$ac_ext >&5
4771 eval "ac_cv_header_$ac_safe=no"
4775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4776 echo "$ac_t""yes" 1>&6
4777 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4778 cat >> confdefs.h
<<EOF
4779 #define $ac_tr_hdr 1
4783 echo "$ac_t""no" 1>&6
4788 for ac_hdr
in readline.h readline
/readline.h
4790 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4791 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4792 echo "configure:4793: checking for $ac_hdr" >&5
4793 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4794 echo $ac_n "(cached) $ac_c" 1>&6
4796 cat > conftest.
$ac_ext <<EOF
4797 #line 4798 "configure"
4798 #include "confdefs.h"
4801 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4802 { (eval echo configure
:4803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4803 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4804 if test -z "$ac_err"; then
4806 eval "ac_cv_header_$ac_safe=yes"
4809 echo "configure: failed program was:" >&5
4810 cat conftest.
$ac_ext >&5
4812 eval "ac_cv_header_$ac_safe=no"
4816 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4817 echo "$ac_t""yes" 1>&6
4818 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4819 cat >> confdefs.h
<<EOF
4820 #define $ac_tr_hdr 1
4823 for termlib
in ncurses curses termcap terminfo termlib
; do
4824 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4825 echo "configure:4826: checking for tgetent in -l${termlib}" >&5
4826 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4827 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4828 echo $ac_n "(cached) $ac_c" 1>&6
4830 ac_save_LIBS
="$LIBS"
4831 LIBS
="-l${termlib} $LIBS"
4832 cat > conftest.
$ac_ext <<EOF
4833 #line 4834 "configure"
4834 #include "confdefs.h"
4835 /* Override any gcc2 internal prototype to avoid an error. */
4836 /* We use char because int might match the return type of a gcc2
4837 builtin and then its argument prototype would still apply. */
4844 if { (eval echo configure
:4845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4846 eval "ac_cv_lib_$ac_lib_var=yes"
4848 echo "configure: failed program was:" >&5
4849 cat conftest.
$ac_ext >&5
4851 eval "ac_cv_lib_$ac_lib_var=no"
4854 LIBS
="$ac_save_LIBS"
4857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4858 echo "$ac_t""yes" 1>&6
4859 TERMLIBS
="-l${termlib}"; break
4861 echo "$ac_t""no" 1>&6
4865 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4866 echo "configure:4867: checking for rl_callback_handler_install in -lreadline" >&5
4867 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4868 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4869 echo $ac_n "(cached) $ac_c" 1>&6
4871 ac_save_LIBS
="$LIBS"
4872 LIBS
="-lreadline $TERMLIBS $LIBS"
4873 cat > conftest.
$ac_ext <<EOF
4874 #line 4875 "configure"
4875 #include "confdefs.h"
4876 /* Override any gcc2 internal prototype to avoid an error. */
4877 /* We use char because int might match the return type of a gcc2
4878 builtin and then its argument prototype would still apply. */
4879 char rl_callback_handler_install();
4882 rl_callback_handler_install()
4885 if { (eval echo configure
:4886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4887 eval "ac_cv_lib_$ac_lib_var=yes"
4889 echo "configure: failed program was:" >&5
4890 cat conftest.
$ac_ext >&5
4892 eval "ac_cv_lib_$ac_lib_var=no"
4895 LIBS
="$ac_save_LIBS"
4898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4899 echo "$ac_t""yes" 1>&6
4900 TERMLIBS
="-lreadline $TERMLIBS"
4901 cat >> confdefs.h
<<\EOF
4902 #define HAVE_LIBREADLINE 1
4907 echo "$ac_t""no" 1>&6
4912 echo "$ac_t""no" 1>&6
4918 echo "$ac_t""no" 1>&6
4921 echo "$ac_t""yes" 1>&6
4923 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4924 # alternate readline path
4926 _cppflags
=${CPPFLAGS}
4928 # Add additional search path
4929 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4930 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4932 for ac_hdr
in readline.h
history.h readline
/readline.h
4934 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4935 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4936 echo "configure:4937: checking for $ac_hdr" >&5
4937 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4938 echo $ac_n "(cached) $ac_c" 1>&6
4940 cat > conftest.
$ac_ext <<EOF
4941 #line 4942 "configure"
4942 #include "confdefs.h"
4945 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4946 { (eval echo configure
:4947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4947 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4948 if test -z "$ac_err"; then
4950 eval "ac_cv_header_$ac_safe=yes"
4953 echo "configure: failed program was:" >&5
4954 cat conftest.
$ac_ext >&5
4956 eval "ac_cv_header_$ac_safe=no"
4960 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4961 echo "$ac_t""yes" 1>&6
4962 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4963 cat >> confdefs.h
<<EOF
4964 #define $ac_tr_hdr 1
4968 echo "$ac_t""no" 1>&6
4972 for ac_hdr
in readline
/history.h
4974 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4975 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4976 echo "configure:4977: checking for $ac_hdr" >&5
4977 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4978 echo $ac_n "(cached) $ac_c" 1>&6
4980 cat > conftest.
$ac_ext <<EOF
4981 #line 4982 "configure"
4982 #include "confdefs.h"
4985 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4986 { (eval echo configure
:4987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4987 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4988 if test -z "$ac_err"; then
4990 eval "ac_cv_header_$ac_safe=yes"
4993 echo "configure: failed program was:" >&5
4994 cat conftest.
$ac_ext >&5
4996 eval "ac_cv_header_$ac_safe=no"
5000 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5001 echo "$ac_t""yes" 1>&6
5002 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5003 cat >> confdefs.h
<<EOF
5004 #define $ac_tr_hdr 1
5008 echo "$ac_t""no" 1>&6
5013 for ac_hdr
in readline.h readline
/readline.h
5015 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5016 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5017 echo "configure:5018: checking for $ac_hdr" >&5
5018 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5019 echo $ac_n "(cached) $ac_c" 1>&6
5021 cat > conftest.
$ac_ext <<EOF
5022 #line 5023 "configure"
5023 #include "confdefs.h"
5026 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5027 { (eval echo configure
:5028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5028 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5029 if test -z "$ac_err"; then
5031 eval "ac_cv_header_$ac_safe=yes"
5034 echo "configure: failed program was:" >&5
5035 cat conftest.
$ac_ext >&5
5037 eval "ac_cv_header_$ac_safe=no"
5041 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5042 echo "$ac_t""yes" 1>&6
5043 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5044 cat >> confdefs.h
<<EOF
5045 #define $ac_tr_hdr 1
5048 for termlib
in ncurses curses termcap terminfo termlib
; do
5049 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
5050 echo "configure:5051: checking for tgetent in -l${termlib}" >&5
5051 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
5052 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5053 echo $ac_n "(cached) $ac_c" 1>&6
5055 ac_save_LIBS
="$LIBS"
5056 LIBS
="-l${termlib} $LIBS"
5057 cat > conftest.
$ac_ext <<EOF
5058 #line 5059 "configure"
5059 #include "confdefs.h"
5060 /* Override any gcc2 internal prototype to avoid an error. */
5061 /* We use char because int might match the return type of a gcc2
5062 builtin and then its argument prototype would still apply. */
5069 if { (eval echo configure
:5070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5071 eval "ac_cv_lib_$ac_lib_var=yes"
5073 echo "configure: failed program was:" >&5
5074 cat conftest.
$ac_ext >&5
5076 eval "ac_cv_lib_$ac_lib_var=no"
5079 LIBS
="$ac_save_LIBS"
5082 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5083 echo "$ac_t""yes" 1>&6
5084 TERMLIBS
="-l${termlib}"; break
5086 echo "$ac_t""no" 1>&6
5090 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
5091 echo "configure:5092: checking for rl_callback_handler_install in -lreadline" >&5
5092 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
5093 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5094 echo $ac_n "(cached) $ac_c" 1>&6
5096 ac_save_LIBS
="$LIBS"
5097 LIBS
="-lreadline $TERMLIBS $LIBS"
5098 cat > conftest.
$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5101 /* Override any gcc2 internal prototype to avoid an error. */
5102 /* We use char because int might match the return type of a gcc2
5103 builtin and then its argument prototype would still apply. */
5104 char rl_callback_handler_install();
5107 rl_callback_handler_install()
5110 if { (eval echo configure
:5111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5112 eval "ac_cv_lib_$ac_lib_var=yes"
5114 echo "configure: failed program was:" >&5
5115 cat conftest.
$ac_ext >&5
5117 eval "ac_cv_lib_$ac_lib_var=no"
5120 LIBS
="$ac_save_LIBS"
5123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5124 echo "$ac_t""yes" 1>&6
5125 TERMLDFLAGS
="-L$with_readline/lib"
5126 TERMCPPFLAGS
="-I$with_readline/include"
5127 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
5128 TERMLIBS
="-lreadline $TERMLIBS"
5129 cat >> confdefs.h
<<\EOF
5130 #define HAVE_LIBREADLINE 1
5135 echo "$ac_t""no" 1>&6
5136 TERMLIBS
= CPPFLAGS
=$_cppflags
5140 echo "$ac_t""no" 1>&6
5149 echo "$ac_t""no" 1>&6
5156 # The readline API changed slightly from readline3 to readline4, so
5157 # code will generate warnings on one of them unless we have a few
5159 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
5160 echo "configure:5161: checking for rl_completion_matches in -lreadline" >&5
5161 ac_lib_var
=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
5162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5163 echo $ac_n "(cached) $ac_c" 1>&6
5165 ac_save_LIBS
="$LIBS"
5166 LIBS
="-lreadline $TERMLIBS $LIBS"
5167 cat > conftest.
$ac_ext <<EOF
5168 #line 5169 "configure"
5169 #include "confdefs.h"
5170 /* Override any gcc2 internal prototype to avoid an error. */
5171 /* We use char because int might match the return type of a gcc2
5172 builtin and then its argument prototype would still apply. */
5173 char rl_completion_matches();
5176 rl_completion_matches()
5179 if { (eval echo configure
:5180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5181 eval "ac_cv_lib_$ac_lib_var=yes"
5183 echo "configure: failed program was:" >&5
5184 cat conftest.
$ac_ext >&5
5186 eval "ac_cv_lib_$ac_lib_var=no"
5189 LIBS
="$ac_save_LIBS"
5192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5193 echo "$ac_t""yes" 1>&6
5194 cat >> confdefs.h
<<\EOF
5195 #define HAVE_NEW_LIBREADLINE 1
5199 echo "$ac_t""no" 1>&6
5203 # The following test taken from the cvs sources
5204 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
5205 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
5206 # libsocket.so which has a bad implementation of gethostbyname (it
5207 # only looks in /etc/hosts), so we only look for -lsocket if we need
5209 for ac_func
in connect
5211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5212 echo "configure:5213: checking for $ac_func" >&5
5213 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5214 echo $ac_n "(cached) $ac_c" 1>&6
5216 cat > conftest.
$ac_ext <<EOF
5217 #line 5218 "configure"
5218 #include "confdefs.h"
5219 /* System header to define __stub macros and hopefully few prototypes,
5220 which can conflict with char $ac_func(); below. */
5222 /* Override any gcc2 internal prototype to avoid an error. */
5223 /* We use char because int might match the return type of a gcc2
5224 builtin and then its argument prototype would still apply. */
5229 /* The GNU C library defines this for functions which it implements
5230 to always fail with ENOSYS. Some functions are actually named
5231 something starting with __ and the normal name is an alias. */
5232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5240 if { (eval echo configure
:5241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5242 eval "ac_cv_func_$ac_func=yes"
5244 echo "configure: failed program was:" >&5
5245 cat conftest.
$ac_ext >&5
5247 eval "ac_cv_func_$ac_func=no"
5252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5253 echo "$ac_t""yes" 1>&6
5254 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5255 cat >> confdefs.h
<<EOF
5256 #define $ac_tr_func 1
5260 echo "$ac_t""no" 1>&6
5264 if test x
"$ac_cv_func_connect" = x
"no"; then
5267 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
5268 echo "configure:5269: checking for printf in -lnsl_s" >&5
5269 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
5270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5271 echo $ac_n "(cached) $ac_c" 1>&6
5273 ac_save_LIBS
="$LIBS"
5274 LIBS
="-lnsl_s $LIBS"
5275 cat > conftest.
$ac_ext <<EOF
5276 #line 5277 "configure"
5277 #include "confdefs.h"
5278 /* Override any gcc2 internal prototype to avoid an error. */
5279 /* We use char because int might match the return type of a gcc2
5280 builtin and then its argument prototype would still apply. */
5287 if { (eval echo configure
:5288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5289 eval "ac_cv_lib_$ac_lib_var=yes"
5291 echo "configure: failed program was:" >&5
5292 cat conftest.
$ac_ext >&5
5294 eval "ac_cv_lib_$ac_lib_var=no"
5297 LIBS
="$ac_save_LIBS"
5300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5301 echo "$ac_t""yes" 1>&6
5302 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5303 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5304 cat >> confdefs.h
<<EOF
5305 #define $ac_tr_lib 1
5308 LIBS
="-lnsl_s $LIBS"
5311 echo "$ac_t""no" 1>&6
5317 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5318 echo "configure:5319: checking for printf in -lnsl" >&5
5319 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5321 echo $ac_n "(cached) $ac_c" 1>&6
5323 ac_save_LIBS
="$LIBS"
5325 cat > conftest.
$ac_ext <<EOF
5326 #line 5327 "configure"
5327 #include "confdefs.h"
5328 /* Override any gcc2 internal prototype to avoid an error. */
5329 /* We use char because int might match the return type of a gcc2
5330 builtin and then its argument prototype would still apply. */
5337 if { (eval echo configure
:5338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5339 eval "ac_cv_lib_$ac_lib_var=yes"
5341 echo "configure: failed program was:" >&5
5342 cat conftest.
$ac_ext >&5
5344 eval "ac_cv_lib_$ac_lib_var=no"
5347 LIBS
="$ac_save_LIBS"
5350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5351 echo "$ac_t""yes" 1>&6
5352 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5353 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5354 cat >> confdefs.h
<<EOF
5355 #define $ac_tr_lib 1
5361 echo "$ac_t""no" 1>&6
5367 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5368 echo "configure:5369: checking for connect in -lsocket" >&5
5369 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5371 echo $ac_n "(cached) $ac_c" 1>&6
5373 ac_save_LIBS
="$LIBS"
5374 LIBS
="-lsocket $LIBS"
5375 cat > conftest.
$ac_ext <<EOF
5376 #line 5377 "configure"
5377 #include "confdefs.h"
5378 /* Override any gcc2 internal prototype to avoid an error. */
5379 /* We use char because int might match the return type of a gcc2
5380 builtin and then its argument prototype would still apply. */
5387 if { (eval echo configure
:5388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5389 eval "ac_cv_lib_$ac_lib_var=yes"
5391 echo "configure: failed program was:" >&5
5392 cat conftest.
$ac_ext >&5
5394 eval "ac_cv_lib_$ac_lib_var=no"
5397 LIBS
="$ac_save_LIBS"
5400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5401 echo "$ac_t""yes" 1>&6
5402 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5403 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5404 cat >> confdefs.h
<<EOF
5405 #define $ac_tr_lib 1
5408 LIBS
="-lsocket $LIBS"
5411 echo "$ac_t""no" 1>&6
5417 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5418 echo "configure:5419: checking for connect in -linet" >&5
5419 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5421 echo $ac_n "(cached) $ac_c" 1>&6
5423 ac_save_LIBS
="$LIBS"
5425 cat > conftest.
$ac_ext <<EOF
5426 #line 5427 "configure"
5427 #include "confdefs.h"
5428 /* Override any gcc2 internal prototype to avoid an error. */
5429 /* We use char because int might match the return type of a gcc2
5430 builtin and then its argument prototype would still apply. */
5437 if { (eval echo configure
:5438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5439 eval "ac_cv_lib_$ac_lib_var=yes"
5441 echo "configure: failed program was:" >&5
5442 cat conftest.
$ac_ext >&5
5444 eval "ac_cv_lib_$ac_lib_var=no"
5447 LIBS
="$ac_save_LIBS"
5450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5451 echo "$ac_t""yes" 1>&6
5452 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5453 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5454 cat >> confdefs.h
<<EOF
5455 #define $ac_tr_lib 1
5461 echo "$ac_t""no" 1>&6
5465 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
5466 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
5467 # ac_cv_func_connect=yes
5468 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5469 cat >> confdefs.h
<<\EOF
5470 #define HAVE_CONNECT 1
5476 ###############################################
5477 # test for where we get get_yp_default_domain() from
5478 for ac_func
in yp_get_default_domain
5480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5481 echo "configure:5482: checking for $ac_func" >&5
5482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5483 echo $ac_n "(cached) $ac_c" 1>&6
5485 cat > conftest.
$ac_ext <<EOF
5486 #line 5487 "configure"
5487 #include "confdefs.h"
5488 /* System header to define __stub macros and hopefully few prototypes,
5489 which can conflict with char $ac_func(); below. */
5491 /* Override any gcc2 internal prototype to avoid an error. */
5492 /* We use char because int might match the return type of a gcc2
5493 builtin and then its argument prototype would still apply. */
5498 /* The GNU C library defines this for functions which it implements
5499 to always fail with ENOSYS. Some functions are actually named
5500 something starting with __ and the normal name is an alias. */
5501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5509 if { (eval echo configure
:5510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5511 eval "ac_cv_func_$ac_func=yes"
5513 echo "configure: failed program was:" >&5
5514 cat conftest.
$ac_ext >&5
5516 eval "ac_cv_func_$ac_func=no"
5521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5522 echo "$ac_t""yes" 1>&6
5523 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5524 cat >> confdefs.h
<<EOF
5525 #define $ac_tr_func 1
5529 echo "$ac_t""no" 1>&6
5533 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
5534 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5535 echo "configure:5536: checking for yp_get_default_domain in -lnsl" >&5
5536 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5537 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5538 echo $ac_n "(cached) $ac_c" 1>&6
5540 ac_save_LIBS
="$LIBS"
5542 cat > conftest.
$ac_ext <<EOF
5543 #line 5544 "configure"
5544 #include "confdefs.h"
5545 /* Override any gcc2 internal prototype to avoid an error. */
5546 /* We use char because int might match the return type of a gcc2
5547 builtin and then its argument prototype would still apply. */
5548 char yp_get_default_domain();
5551 yp_get_default_domain()
5554 if { (eval echo configure
:5555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5556 eval "ac_cv_lib_$ac_lib_var=yes"
5558 echo "configure: failed program was:" >&5
5559 cat conftest.
$ac_ext >&5
5561 eval "ac_cv_lib_$ac_lib_var=no"
5564 LIBS
="$ac_save_LIBS"
5567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5568 echo "$ac_t""yes" 1>&6
5570 cat >> confdefs.h
<<\EOF
5571 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5575 echo "$ac_t""no" 1>&6
5580 # Check if we have execl, if not we need to compile smbrun.
5581 for ac_func
in execl
5583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5584 echo "configure:5585: checking for $ac_func" >&5
5585 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5586 echo $ac_n "(cached) $ac_c" 1>&6
5588 cat > conftest.
$ac_ext <<EOF
5589 #line 5590 "configure"
5590 #include "confdefs.h"
5591 /* System header to define __stub macros and hopefully few prototypes,
5592 which can conflict with char $ac_func(); below. */
5594 /* Override any gcc2 internal prototype to avoid an error. */
5595 /* We use char because int might match the return type of a gcc2
5596 builtin and then its argument prototype would still apply. */
5601 /* The GNU C library defines this for functions which it implements
5602 to always fail with ENOSYS. Some functions are actually named
5603 something starting with __ and the normal name is an alias. */
5604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5612 if { (eval echo configure
:5613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5614 eval "ac_cv_func_$ac_func=yes"
5616 echo "configure: failed program was:" >&5
5617 cat conftest.
$ac_ext >&5
5619 eval "ac_cv_func_$ac_func=no"
5624 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5625 echo "$ac_t""yes" 1>&6
5626 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5627 cat >> confdefs.h
<<EOF
5628 #define $ac_tr_func 1
5632 echo "$ac_t""no" 1>&6
5636 if test x
"$ac_cv_func_execl" = x
"no"; then
5637 EXTRA_BIN_PROGS
="$EXTRA_BIN_PROGS bin/smbrun\$(EXEEXT)"
5640 for ac_func
in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown
chmod fchmod chroot link mknod mknod64
5642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5643 echo "configure:5644: checking for $ac_func" >&5
5644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5645 echo $ac_n "(cached) $ac_c" 1>&6
5647 cat > conftest.
$ac_ext <<EOF
5648 #line 5649 "configure"
5649 #include "confdefs.h"
5650 /* System header to define __stub macros and hopefully few prototypes,
5651 which can conflict with char $ac_func(); below. */
5653 /* Override any gcc2 internal prototype to avoid an error. */
5654 /* We use char because int might match the return type of a gcc2
5655 builtin and then its argument prototype would still apply. */
5660 /* The GNU C library defines this for functions which it implements
5661 to always fail with ENOSYS. Some functions are actually named
5662 something starting with __ and the normal name is an alias. */
5663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5671 if { (eval echo configure
:5672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5673 eval "ac_cv_func_$ac_func=yes"
5675 echo "configure: failed program was:" >&5
5676 cat conftest.
$ac_ext >&5
5678 eval "ac_cv_func_$ac_func=no"
5683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5684 echo "$ac_t""yes" 1>&6
5685 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5686 cat >> confdefs.h
<<EOF
5687 #define $ac_tr_func 1
5691 echo "$ac_t""no" 1>&6
5695 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
5697 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5698 echo "configure:5699: checking for $ac_func" >&5
5699 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5700 echo $ac_n "(cached) $ac_c" 1>&6
5702 cat > conftest.
$ac_ext <<EOF
5703 #line 5704 "configure"
5704 #include "confdefs.h"
5705 /* System header to define __stub macros and hopefully few prototypes,
5706 which can conflict with char $ac_func(); below. */
5708 /* Override any gcc2 internal prototype to avoid an error. */
5709 /* We use char because int might match the return type of a gcc2
5710 builtin and then its argument prototype would still apply. */
5715 /* The GNU C library defines this for functions which it implements
5716 to always fail with ENOSYS. Some functions are actually named
5717 something starting with __ and the normal name is an alias. */
5718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5726 if { (eval echo configure
:5727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5728 eval "ac_cv_func_$ac_func=yes"
5730 echo "configure: failed program was:" >&5
5731 cat conftest.
$ac_ext >&5
5733 eval "ac_cv_func_$ac_func=no"
5738 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5739 echo "$ac_t""yes" 1>&6
5740 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5741 cat >> confdefs.h
<<EOF
5742 #define $ac_tr_func 1
5746 echo "$ac_t""no" 1>&6
5750 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5753 echo "configure:5754: checking for $ac_func" >&5
5754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5755 echo $ac_n "(cached) $ac_c" 1>&6
5757 cat > conftest.
$ac_ext <<EOF
5758 #line 5759 "configure"
5759 #include "confdefs.h"
5760 /* System header to define __stub macros and hopefully few prototypes,
5761 which can conflict with char $ac_func(); below. */
5763 /* Override any gcc2 internal prototype to avoid an error. */
5764 /* We use char because int might match the return type of a gcc2
5765 builtin and then its argument prototype would still apply. */
5770 /* The GNU C library defines this for functions which it implements
5771 to always fail with ENOSYS. Some functions are actually named
5772 something starting with __ and the normal name is an alias. */
5773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5781 if { (eval echo configure
:5782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5783 eval "ac_cv_func_$ac_func=yes"
5785 echo "configure: failed program was:" >&5
5786 cat conftest.
$ac_ext >&5
5788 eval "ac_cv_func_$ac_func=no"
5793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5794 echo "$ac_t""yes" 1>&6
5795 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5796 cat >> confdefs.h
<<EOF
5797 #define $ac_tr_func 1
5801 echo "$ac_t""no" 1>&6
5805 for ac_func
in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5808 echo "configure:5809: checking for $ac_func" >&5
5809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5810 echo $ac_n "(cached) $ac_c" 1>&6
5812 cat > conftest.
$ac_ext <<EOF
5813 #line 5814 "configure"
5814 #include "confdefs.h"
5815 /* System header to define __stub macros and hopefully few prototypes,
5816 which can conflict with char $ac_func(); below. */
5818 /* Override any gcc2 internal prototype to avoid an error. */
5819 /* We use char because int might match the return type of a gcc2
5820 builtin and then its argument prototype would still apply. */
5825 /* The GNU C library defines this for functions which it implements
5826 to always fail with ENOSYS. Some functions are actually named
5827 something starting with __ and the normal name is an alias. */
5828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5836 if { (eval echo configure
:5837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5838 eval "ac_cv_func_$ac_func=yes"
5840 echo "configure: failed program was:" >&5
5841 cat conftest.
$ac_ext >&5
5843 eval "ac_cv_func_$ac_func=no"
5848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5849 echo "$ac_t""yes" 1>&6
5850 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5851 cat >> confdefs.h
<<EOF
5852 #define $ac_tr_func 1
5856 echo "$ac_t""no" 1>&6
5860 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf realpath
5862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5863 echo "configure:5864: checking for $ac_func" >&5
5864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5865 echo $ac_n "(cached) $ac_c" 1>&6
5867 cat > conftest.
$ac_ext <<EOF
5868 #line 5869 "configure"
5869 #include "confdefs.h"
5870 /* System header to define __stub macros and hopefully few prototypes,
5871 which can conflict with char $ac_func(); below. */
5873 /* Override any gcc2 internal prototype to avoid an error. */
5874 /* We use char because int might match the return type of a gcc2
5875 builtin and then its argument prototype would still apply. */
5880 /* The GNU C library defines this for functions which it implements
5881 to always fail with ENOSYS. Some functions are actually named
5882 something starting with __ and the normal name is an alias. */
5883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5891 if { (eval echo configure
:5892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5893 eval "ac_cv_func_$ac_func=yes"
5895 echo "configure: failed program was:" >&5
5896 cat conftest.
$ac_ext >&5
5898 eval "ac_cv_func_$ac_func=no"
5903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5904 echo "$ac_t""yes" 1>&6
5905 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5906 cat >> confdefs.h
<<EOF
5907 #define $ac_tr_func 1
5911 echo "$ac_t""no" 1>&6
5915 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5917 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5918 echo "configure:5919: checking for $ac_func" >&5
5919 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5920 echo $ac_n "(cached) $ac_c" 1>&6
5922 cat > conftest.
$ac_ext <<EOF
5923 #line 5924 "configure"
5924 #include "confdefs.h"
5925 /* System header to define __stub macros and hopefully few prototypes,
5926 which can conflict with char $ac_func(); below. */
5928 /* Override any gcc2 internal prototype to avoid an error. */
5929 /* We use char because int might match the return type of a gcc2
5930 builtin and then its argument prototype would still apply. */
5935 /* The GNU C library defines this for functions which it implements
5936 to always fail with ENOSYS. Some functions are actually named
5937 something starting with __ and the normal name is an alias. */
5938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5946 if { (eval echo configure
:5947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5948 eval "ac_cv_func_$ac_func=yes"
5950 echo "configure: failed program was:" >&5
5951 cat conftest.
$ac_ext >&5
5953 eval "ac_cv_func_$ac_func=no"
5958 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5959 echo "$ac_t""yes" 1>&6
5960 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5961 cat >> confdefs.h
<<EOF
5962 #define $ac_tr_func 1
5966 echo "$ac_t""no" 1>&6
5970 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5973 echo "configure:5974: checking for $ac_func" >&5
5974 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5975 echo $ac_n "(cached) $ac_c" 1>&6
5977 cat > conftest.
$ac_ext <<EOF
5978 #line 5979 "configure"
5979 #include "confdefs.h"
5980 /* System header to define __stub macros and hopefully few prototypes,
5981 which can conflict with char $ac_func(); below. */
5983 /* Override any gcc2 internal prototype to avoid an error. */
5984 /* We use char because int might match the return type of a gcc2
5985 builtin and then its argument prototype would still apply. */
5990 /* The GNU C library defines this for functions which it implements
5991 to always fail with ENOSYS. Some functions are actually named
5992 something starting with __ and the normal name is an alias. */
5993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6001 if { (eval echo configure
:6002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6003 eval "ac_cv_func_$ac_func=yes"
6005 echo "configure: failed program was:" >&5
6006 cat conftest.
$ac_ext >&5
6008 eval "ac_cv_func_$ac_func=no"
6013 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6014 echo "$ac_t""yes" 1>&6
6015 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6016 cat >> confdefs.h
<<EOF
6017 #define $ac_tr_func 1
6021 echo "$ac_t""no" 1>&6
6025 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
6027 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6028 echo "configure:6029: checking for $ac_func" >&5
6029 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6030 echo $ac_n "(cached) $ac_c" 1>&6
6032 cat > conftest.
$ac_ext <<EOF
6033 #line 6034 "configure"
6034 #include "confdefs.h"
6035 /* System header to define __stub macros and hopefully few prototypes,
6036 which can conflict with char $ac_func(); below. */
6038 /* Override any gcc2 internal prototype to avoid an error. */
6039 /* We use char because int might match the return type of a gcc2
6040 builtin and then its argument prototype would still apply. */
6045 /* The GNU C library defines this for functions which it implements
6046 to always fail with ENOSYS. Some functions are actually named
6047 something starting with __ and the normal name is an alias. */
6048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6056 if { (eval echo configure
:6057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6058 eval "ac_cv_func_$ac_func=yes"
6060 echo "configure: failed program was:" >&5
6061 cat conftest.
$ac_ext >&5
6063 eval "ac_cv_func_$ac_func=no"
6068 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6069 echo "$ac_t""yes" 1>&6
6070 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6071 cat >> confdefs.h
<<EOF
6072 #define $ac_tr_func 1
6076 echo "$ac_t""no" 1>&6
6080 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl symlink readlink
6082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6083 echo "configure:6084: checking for $ac_func" >&5
6084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6085 echo $ac_n "(cached) $ac_c" 1>&6
6087 cat > conftest.
$ac_ext <<EOF
6088 #line 6089 "configure"
6089 #include "confdefs.h"
6090 /* System header to define __stub macros and hopefully few prototypes,
6091 which can conflict with char $ac_func(); below. */
6093 /* Override any gcc2 internal prototype to avoid an error. */
6094 /* We use char because int might match the return type of a gcc2
6095 builtin and then its argument prototype would still apply. */
6100 /* The GNU C library defines this for functions which it implements
6101 to always fail with ENOSYS. Some functions are actually named
6102 something starting with __ and the normal name is an alias. */
6103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6111 if { (eval echo configure
:6112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6113 eval "ac_cv_func_$ac_func=yes"
6115 echo "configure: failed program was:" >&5
6116 cat conftest.
$ac_ext >&5
6118 eval "ac_cv_func_$ac_func=no"
6123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6124 echo "$ac_t""yes" 1>&6
6125 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6126 cat >> confdefs.h
<<EOF
6127 #define $ac_tr_func 1
6131 echo "$ac_t""no" 1>&6
6135 for ac_func
in syslog vsyslog getgrouplist timegm
6137 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6138 echo "configure:6139: checking for $ac_func" >&5
6139 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6140 echo $ac_n "(cached) $ac_c" 1>&6
6142 cat > conftest.
$ac_ext <<EOF
6143 #line 6144 "configure"
6144 #include "confdefs.h"
6145 /* System header to define __stub macros and hopefully few prototypes,
6146 which can conflict with char $ac_func(); below. */
6148 /* Override any gcc2 internal prototype to avoid an error. */
6149 /* We use char because int might match the return type of a gcc2
6150 builtin and then its argument prototype would still apply. */
6155 /* The GNU C library defines this for functions which it implements
6156 to always fail with ENOSYS. Some functions are actually named
6157 something starting with __ and the normal name is an alias. */
6158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6166 if { (eval echo configure
:6167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6168 eval "ac_cv_func_$ac_func=yes"
6170 echo "configure: failed program was:" >&5
6171 cat conftest.
$ac_ext >&5
6173 eval "ac_cv_func_$ac_func=no"
6178 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6179 echo "$ac_t""yes" 1>&6
6180 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6181 cat >> confdefs.h
<<EOF
6182 #define $ac_tr_func 1
6186 echo "$ac_t""no" 1>&6
6190 # setbuffer, shmget, shm_open are needed for smbtorture
6191 for ac_func
in setbuffer shmget shm_open
6193 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6194 echo "configure:6195: checking for $ac_func" >&5
6195 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6196 echo $ac_n "(cached) $ac_c" 1>&6
6198 cat > conftest.
$ac_ext <<EOF
6199 #line 6200 "configure"
6200 #include "confdefs.h"
6201 /* System header to define __stub macros and hopefully few prototypes,
6202 which can conflict with char $ac_func(); below. */
6204 /* Override any gcc2 internal prototype to avoid an error. */
6205 /* We use char because int might match the return type of a gcc2
6206 builtin and then its argument prototype would still apply. */
6211 /* The GNU C library defines this for functions which it implements
6212 to always fail with ENOSYS. Some functions are actually named
6213 something starting with __ and the normal name is an alias. */
6214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6222 if { (eval echo configure
:6223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6224 eval "ac_cv_func_$ac_func=yes"
6226 echo "configure: failed program was:" >&5
6227 cat conftest.
$ac_ext >&5
6229 eval "ac_cv_func_$ac_func=no"
6234 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6235 echo "$ac_t""yes" 1>&6
6236 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6237 cat >> confdefs.h
<<EOF
6238 #define $ac_tr_func 1
6242 echo "$ac_t""no" 1>&6
6247 # syscall() is needed for smbwrapper.
6248 for ac_func
in syscall
6250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6251 echo "configure:6252: checking for $ac_func" >&5
6252 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6253 echo $ac_n "(cached) $ac_c" 1>&6
6255 cat > conftest.
$ac_ext <<EOF
6256 #line 6257 "configure"
6257 #include "confdefs.h"
6258 /* System header to define __stub macros and hopefully few prototypes,
6259 which can conflict with char $ac_func(); below. */
6261 /* Override any gcc2 internal prototype to avoid an error. */
6262 /* We use char because int might match the return type of a gcc2
6263 builtin and then its argument prototype would still apply. */
6268 /* The GNU C library defines this for functions which it implements
6269 to always fail with ENOSYS. Some functions are actually named
6270 something starting with __ and the normal name is an alias. */
6271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6279 if { (eval echo configure
:6280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6281 eval "ac_cv_func_$ac_func=yes"
6283 echo "configure: failed program was:" >&5
6284 cat conftest.
$ac_ext >&5
6286 eval "ac_cv_func_$ac_func=no"
6291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6292 echo "$ac_t""yes" 1>&6
6293 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6294 cat >> confdefs.h
<<EOF
6295 #define $ac_tr_func 1
6299 echo "$ac_t""no" 1>&6
6304 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
6306 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6307 echo "configure:6308: checking for $ac_func" >&5
6308 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6309 echo $ac_n "(cached) $ac_c" 1>&6
6311 cat > conftest.
$ac_ext <<EOF
6312 #line 6313 "configure"
6313 #include "confdefs.h"
6314 /* System header to define __stub macros and hopefully few prototypes,
6315 which can conflict with char $ac_func(); below. */
6317 /* Override any gcc2 internal prototype to avoid an error. */
6318 /* We use char because int might match the return type of a gcc2
6319 builtin and then its argument prototype would still apply. */
6324 /* The GNU C library defines this for functions which it implements
6325 to always fail with ENOSYS. Some functions are actually named
6326 something starting with __ and the normal name is an alias. */
6327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6335 if { (eval echo configure
:6336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6337 eval "ac_cv_func_$ac_func=yes"
6339 echo "configure: failed program was:" >&5
6340 cat conftest.
$ac_ext >&5
6342 eval "ac_cv_func_$ac_func=no"
6347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6348 echo "$ac_t""yes" 1>&6
6349 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6350 cat >> confdefs.h
<<EOF
6351 #define $ac_tr_func 1
6355 echo "$ac_t""no" 1>&6
6359 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6362 echo "configure:6363: checking for $ac_func" >&5
6363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6364 echo $ac_n "(cached) $ac_c" 1>&6
6366 cat > conftest.
$ac_ext <<EOF
6367 #line 6368 "configure"
6368 #include "confdefs.h"
6369 /* System header to define __stub macros and hopefully few prototypes,
6370 which can conflict with char $ac_func(); below. */
6372 /* Override any gcc2 internal prototype to avoid an error. */
6373 /* We use char because int might match the return type of a gcc2
6374 builtin and then its argument prototype would still apply. */
6379 /* The GNU C library defines this for functions which it implements
6380 to always fail with ENOSYS. Some functions are actually named
6381 something starting with __ and the normal name is an alias. */
6382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6390 if { (eval echo configure
:6391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6392 eval "ac_cv_func_$ac_func=yes"
6394 echo "configure: failed program was:" >&5
6395 cat conftest.
$ac_ext >&5
6397 eval "ac_cv_func_$ac_func=no"
6402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6403 echo "$ac_t""yes" 1>&6
6404 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6405 cat >> confdefs.h
<<EOF
6406 #define $ac_tr_func 1
6410 echo "$ac_t""no" 1>&6
6414 for ac_func
in __getcwd _getcwd
6416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6417 echo "configure:6418: checking for $ac_func" >&5
6418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6419 echo $ac_n "(cached) $ac_c" 1>&6
6421 cat > conftest.
$ac_ext <<EOF
6422 #line 6423 "configure"
6423 #include "confdefs.h"
6424 /* System header to define __stub macros and hopefully few prototypes,
6425 which can conflict with char $ac_func(); below. */
6427 /* Override any gcc2 internal prototype to avoid an error. */
6428 /* We use char because int might match the return type of a gcc2
6429 builtin and then its argument prototype would still apply. */
6434 /* The GNU C library defines this for functions which it implements
6435 to always fail with ENOSYS. Some functions are actually named
6436 something starting with __ and the normal name is an alias. */
6437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6445 if { (eval echo configure
:6446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6447 eval "ac_cv_func_$ac_func=yes"
6449 echo "configure: failed program was:" >&5
6450 cat conftest.
$ac_ext >&5
6452 eval "ac_cv_func_$ac_func=no"
6457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6458 echo "$ac_t""yes" 1>&6
6459 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6460 cat >> confdefs.h
<<EOF
6461 #define $ac_tr_func 1
6465 echo "$ac_t""no" 1>&6
6469 for ac_func
in __xstat __fxstat __lxstat
6471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6472 echo "configure:6473: checking for $ac_func" >&5
6473 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6474 echo $ac_n "(cached) $ac_c" 1>&6
6476 cat > conftest.
$ac_ext <<EOF
6477 #line 6478 "configure"
6478 #include "confdefs.h"
6479 /* System header to define __stub macros and hopefully few prototypes,
6480 which can conflict with char $ac_func(); below. */
6482 /* Override any gcc2 internal prototype to avoid an error. */
6483 /* We use char because int might match the return type of a gcc2
6484 builtin and then its argument prototype would still apply. */
6489 /* The GNU C library defines this for functions which it implements
6490 to always fail with ENOSYS. Some functions are actually named
6491 something starting with __ and the normal name is an alias. */
6492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6500 if { (eval echo configure
:6501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6502 eval "ac_cv_func_$ac_func=yes"
6504 echo "configure: failed program was:" >&5
6505 cat conftest.
$ac_ext >&5
6507 eval "ac_cv_func_$ac_func=no"
6512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6513 echo "$ac_t""yes" 1>&6
6514 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6515 cat >> confdefs.h
<<EOF
6516 #define $ac_tr_func 1
6520 echo "$ac_t""no" 1>&6
6524 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
6526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6527 echo "configure:6528: checking for $ac_func" >&5
6528 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6529 echo $ac_n "(cached) $ac_c" 1>&6
6531 cat > conftest.
$ac_ext <<EOF
6532 #line 6533 "configure"
6533 #include "confdefs.h"
6534 /* System header to define __stub macros and hopefully few prototypes,
6535 which can conflict with char $ac_func(); below. */
6537 /* Override any gcc2 internal prototype to avoid an error. */
6538 /* We use char because int might match the return type of a gcc2
6539 builtin and then its argument prototype would still apply. */
6544 /* The GNU C library defines this for functions which it implements
6545 to always fail with ENOSYS. Some functions are actually named
6546 something starting with __ and the normal name is an alias. */
6547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6555 if { (eval echo configure
:6556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6557 eval "ac_cv_func_$ac_func=yes"
6559 echo "configure: failed program was:" >&5
6560 cat conftest.
$ac_ext >&5
6562 eval "ac_cv_func_$ac_func=no"
6567 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6568 echo "$ac_t""yes" 1>&6
6569 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6570 cat >> confdefs.h
<<EOF
6571 #define $ac_tr_func 1
6575 echo "$ac_t""no" 1>&6
6579 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
6581 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6582 echo "configure:6583: checking for $ac_func" >&5
6583 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6584 echo $ac_n "(cached) $ac_c" 1>&6
6586 cat > conftest.
$ac_ext <<EOF
6587 #line 6588 "configure"
6588 #include "confdefs.h"
6589 /* System header to define __stub macros and hopefully few prototypes,
6590 which can conflict with char $ac_func(); below. */
6592 /* Override any gcc2 internal prototype to avoid an error. */
6593 /* We use char because int might match the return type of a gcc2
6594 builtin and then its argument prototype would still apply. */
6599 /* The GNU C library defines this for functions which it implements
6600 to always fail with ENOSYS. Some functions are actually named
6601 something starting with __ and the normal name is an alias. */
6602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6610 if { (eval echo configure
:6611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6612 eval "ac_cv_func_$ac_func=yes"
6614 echo "configure: failed program was:" >&5
6615 cat conftest.
$ac_ext >&5
6617 eval "ac_cv_func_$ac_func=no"
6622 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6623 echo "$ac_t""yes" 1>&6
6624 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6625 cat >> confdefs.h
<<EOF
6626 #define $ac_tr_func 1
6630 echo "$ac_t""no" 1>&6
6634 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
6636 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6637 echo "configure:6638: checking for $ac_func" >&5
6638 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6639 echo $ac_n "(cached) $ac_c" 1>&6
6641 cat > conftest.
$ac_ext <<EOF
6642 #line 6643 "configure"
6643 #include "confdefs.h"
6644 /* System header to define __stub macros and hopefully few prototypes,
6645 which can conflict with char $ac_func(); below. */
6647 /* Override any gcc2 internal prototype to avoid an error. */
6648 /* We use char because int might match the return type of a gcc2
6649 builtin and then its argument prototype would still apply. */
6654 /* The GNU C library defines this for functions which it implements
6655 to always fail with ENOSYS. Some functions are actually named
6656 something starting with __ and the normal name is an alias. */
6657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6665 if { (eval echo configure
:6666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6667 eval "ac_cv_func_$ac_func=yes"
6669 echo "configure: failed program was:" >&5
6670 cat conftest.
$ac_ext >&5
6672 eval "ac_cv_func_$ac_func=no"
6677 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6678 echo "$ac_t""yes" 1>&6
6679 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6680 cat >> confdefs.h
<<EOF
6681 #define $ac_tr_func 1
6685 echo "$ac_t""no" 1>&6
6689 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
6691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6692 echo "configure:6693: checking for $ac_func" >&5
6693 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6694 echo $ac_n "(cached) $ac_c" 1>&6
6696 cat > conftest.
$ac_ext <<EOF
6697 #line 6698 "configure"
6698 #include "confdefs.h"
6699 /* System header to define __stub macros and hopefully few prototypes,
6700 which can conflict with char $ac_func(); below. */
6702 /* Override any gcc2 internal prototype to avoid an error. */
6703 /* We use char because int might match the return type of a gcc2
6704 builtin and then its argument prototype would still apply. */
6709 /* The GNU C library defines this for functions which it implements
6710 to always fail with ENOSYS. Some functions are actually named
6711 something starting with __ and the normal name is an alias. */
6712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6720 if { (eval echo configure
:6721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6722 eval "ac_cv_func_$ac_func=yes"
6724 echo "configure: failed program was:" >&5
6725 cat conftest.
$ac_ext >&5
6727 eval "ac_cv_func_$ac_func=no"
6732 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6733 echo "$ac_t""yes" 1>&6
6734 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6735 cat >> confdefs.h
<<EOF
6736 #define $ac_tr_func 1
6740 echo "$ac_t""no" 1>&6
6744 for ac_func
in _write __write _fork __fork
6746 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6747 echo "configure:6748: checking for $ac_func" >&5
6748 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6749 echo $ac_n "(cached) $ac_c" 1>&6
6751 cat > conftest.
$ac_ext <<EOF
6752 #line 6753 "configure"
6753 #include "confdefs.h"
6754 /* System header to define __stub macros and hopefully few prototypes,
6755 which can conflict with char $ac_func(); below. */
6757 /* Override any gcc2 internal prototype to avoid an error. */
6758 /* We use char because int might match the return type of a gcc2
6759 builtin and then its argument prototype would still apply. */
6764 /* The GNU C library defines this for functions which it implements
6765 to always fail with ENOSYS. Some functions are actually named
6766 something starting with __ and the normal name is an alias. */
6767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6775 if { (eval echo configure
:6776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6777 eval "ac_cv_func_$ac_func=yes"
6779 echo "configure: failed program was:" >&5
6780 cat conftest.
$ac_ext >&5
6782 eval "ac_cv_func_$ac_func=no"
6787 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6788 echo "$ac_t""yes" 1>&6
6789 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6790 cat >> confdefs.h
<<EOF
6791 #define $ac_tr_func 1
6795 echo "$ac_t""no" 1>&6
6799 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6801 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6802 echo "configure:6803: checking for $ac_func" >&5
6803 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6804 echo $ac_n "(cached) $ac_c" 1>&6
6806 cat > conftest.
$ac_ext <<EOF
6807 #line 6808 "configure"
6808 #include "confdefs.h"
6809 /* System header to define __stub macros and hopefully few prototypes,
6810 which can conflict with char $ac_func(); below. */
6812 /* Override any gcc2 internal prototype to avoid an error. */
6813 /* We use char because int might match the return type of a gcc2
6814 builtin and then its argument prototype would still apply. */
6819 /* The GNU C library defines this for functions which it implements
6820 to always fail with ENOSYS. Some functions are actually named
6821 something starting with __ and the normal name is an alias. */
6822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6830 if { (eval echo configure
:6831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6832 eval "ac_cv_func_$ac_func=yes"
6834 echo "configure: failed program was:" >&5
6835 cat conftest.
$ac_ext >&5
6837 eval "ac_cv_func_$ac_func=no"
6842 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6843 echo "$ac_t""yes" 1>&6
6844 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6845 cat >> confdefs.h
<<EOF
6846 #define $ac_tr_func 1
6850 echo "$ac_t""no" 1>&6
6854 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6856 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6857 echo "configure:6858: checking for $ac_func" >&5
6858 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6859 echo $ac_n "(cached) $ac_c" 1>&6
6861 cat > conftest.
$ac_ext <<EOF
6862 #line 6863 "configure"
6863 #include "confdefs.h"
6864 /* System header to define __stub macros and hopefully few prototypes,
6865 which can conflict with char $ac_func(); below. */
6867 /* Override any gcc2 internal prototype to avoid an error. */
6868 /* We use char because int might match the return type of a gcc2
6869 builtin and then its argument prototype would still apply. */
6874 /* The GNU C library defines this for functions which it implements
6875 to always fail with ENOSYS. Some functions are actually named
6876 something starting with __ and the normal name is an alias. */
6877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6885 if { (eval echo configure
:6886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6887 eval "ac_cv_func_$ac_func=yes"
6889 echo "configure: failed program was:" >&5
6890 cat conftest.
$ac_ext >&5
6892 eval "ac_cv_func_$ac_func=no"
6897 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6898 echo "$ac_t""yes" 1>&6
6899 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6900 cat >> confdefs.h
<<EOF
6901 #define $ac_tr_func 1
6905 echo "$ac_t""no" 1>&6
6909 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6911 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6912 echo "configure:6913: checking for $ac_func" >&5
6913 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6914 echo $ac_n "(cached) $ac_c" 1>&6
6916 cat > conftest.
$ac_ext <<EOF
6917 #line 6918 "configure"
6918 #include "confdefs.h"
6919 /* System header to define __stub macros and hopefully few prototypes,
6920 which can conflict with char $ac_func(); below. */
6922 /* Override any gcc2 internal prototype to avoid an error. */
6923 /* We use char because int might match the return type of a gcc2
6924 builtin and then its argument prototype would still apply. */
6929 /* The GNU C library defines this for functions which it implements
6930 to always fail with ENOSYS. Some functions are actually named
6931 something starting with __ and the normal name is an alias. */
6932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6940 if { (eval echo configure
:6941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6942 eval "ac_cv_func_$ac_func=yes"
6944 echo "configure: failed program was:" >&5
6945 cat conftest.
$ac_ext >&5
6947 eval "ac_cv_func_$ac_func=no"
6952 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6953 echo "$ac_t""yes" 1>&6
6954 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6955 cat >> confdefs.h
<<EOF
6956 #define $ac_tr_func 1
6960 echo "$ac_t""no" 1>&6
6964 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6966 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6967 echo "configure:6968: checking for $ac_func" >&5
6968 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6969 echo $ac_n "(cached) $ac_c" 1>&6
6971 cat > conftest.
$ac_ext <<EOF
6972 #line 6973 "configure"
6973 #include "confdefs.h"
6974 /* System header to define __stub macros and hopefully few prototypes,
6975 which can conflict with char $ac_func(); below. */
6977 /* Override any gcc2 internal prototype to avoid an error. */
6978 /* We use char because int might match the return type of a gcc2
6979 builtin and then its argument prototype would still apply. */
6984 /* The GNU C library defines this for functions which it implements
6985 to always fail with ENOSYS. Some functions are actually named
6986 something starting with __ and the normal name is an alias. */
6987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6995 if { (eval echo configure
:6996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6997 eval "ac_cv_func_$ac_func=yes"
6999 echo "configure: failed program was:" >&5
7000 cat conftest.
$ac_ext >&5
7002 eval "ac_cv_func_$ac_func=no"
7007 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7008 echo "$ac_t""yes" 1>&6
7009 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7010 cat >> confdefs.h
<<EOF
7011 #define $ac_tr_func 1
7015 echo "$ac_t""no" 1>&6
7019 for ac_func
in open64 _open64 __open64 creat64
7021 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7022 echo "configure:7023: checking for $ac_func" >&5
7023 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7024 echo $ac_n "(cached) $ac_c" 1>&6
7026 cat > conftest.
$ac_ext <<EOF
7027 #line 7028 "configure"
7028 #include "confdefs.h"
7029 /* System header to define __stub macros and hopefully few prototypes,
7030 which can conflict with char $ac_func(); below. */
7032 /* Override any gcc2 internal prototype to avoid an error. */
7033 /* We use char because int might match the return type of a gcc2
7034 builtin and then its argument prototype would still apply. */
7039 /* The GNU C library defines this for functions which it implements
7040 to always fail with ENOSYS. Some functions are actually named
7041 something starting with __ and the normal name is an alias. */
7042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7050 if { (eval echo configure
:7051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7052 eval "ac_cv_func_$ac_func=yes"
7054 echo "configure: failed program was:" >&5
7055 cat conftest.
$ac_ext >&5
7057 eval "ac_cv_func_$ac_func=no"
7062 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7063 echo "$ac_t""yes" 1>&6
7064 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7065 cat >> confdefs.h
<<EOF
7066 #define $ac_tr_func 1
7070 echo "$ac_t""no" 1>&6
7076 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
7079 if test x
$ac_cv_func_stat64 = xno
; then
7080 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
7081 echo "configure:7082: checking for stat64 in <sys/stat.h>" >&5
7082 cat > conftest.
$ac_ext <<EOF
7083 #line 7084 "configure"
7084 #include "confdefs.h"
7086 #if defined(HAVE_UNISTD_H)
7089 #include <sys/stat.h>
7092 struct stat64 st64; exit(stat64(".",&st64));
7095 if { (eval echo configure
:7096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7097 ac_cv_func_stat64
=yes
7099 echo "configure: failed program was:" >&5
7100 cat conftest.
$ac_ext >&5
7103 echo "$ac_t""$ac_cv_func_stat64" 1>&6
7104 if test x
$ac_cv_func_stat64 = xyes
; then
7105 cat >> confdefs.h
<<\EOF
7106 #define HAVE_STAT64 1
7112 if test x
$ac_cv_func_lstat64 = xno
; then
7113 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
7114 echo "configure:7115: checking for lstat64 in <sys/stat.h>" >&5
7115 cat > conftest.
$ac_ext <<EOF
7116 #line 7117 "configure"
7117 #include "confdefs.h"
7119 #if defined(HAVE_UNISTD_H)
7122 #include <sys/stat.h>
7125 struct stat64 st64; exit(lstat64(".",&st64));
7128 if { (eval echo configure
:7129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7130 ac_cv_func_lstat64
=yes
7132 echo "configure: failed program was:" >&5
7133 cat conftest.
$ac_ext >&5
7136 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
7137 if test x
$ac_cv_func_lstat64 = xyes
; then
7138 cat >> confdefs.h
<<\EOF
7139 #define HAVE_LSTAT64 Whether lstat64() is available
7145 if test x
$ac_cv_func_fstat64 = xno
; then
7146 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
7147 echo "configure:7148: checking for fstat64 in <sys/stat.h>" >&5
7148 cat > conftest.
$ac_ext <<EOF
7149 #line 7150 "configure"
7150 #include "confdefs.h"
7152 #if defined(HAVE_UNISTD_H)
7155 #include <sys/stat.h>
7158 struct stat64 st64; exit(fstat64(0,&st64));
7161 if { (eval echo configure
:7162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7163 ac_cv_func_fstat64
=yes
7165 echo "configure: failed program was:" >&5
7166 cat conftest.
$ac_ext >&5
7169 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
7170 if test x
$ac_cv_func_fstat64 = xyes
; then
7171 cat >> confdefs.h
<<\EOF
7172 #define HAVE_FSTAT64 1
7178 #####################################
7179 # we might need the resolv library on some systems
7180 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
7181 echo "configure:7182: checking for dn_expand in -lresolv" >&5
7182 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
7183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7184 echo $ac_n "(cached) $ac_c" 1>&6
7186 ac_save_LIBS
="$LIBS"
7187 LIBS
="-lresolv $LIBS"
7188 cat > conftest.
$ac_ext <<EOF
7189 #line 7190 "configure"
7190 #include "confdefs.h"
7191 /* Override any gcc2 internal prototype to avoid an error. */
7192 /* We use char because int might match the return type of a gcc2
7193 builtin and then its argument prototype would still apply. */
7200 if { (eval echo configure
:7201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7202 eval "ac_cv_lib_$ac_lib_var=yes"
7204 echo "configure: failed program was:" >&5
7205 cat conftest.
$ac_ext >&5
7207 eval "ac_cv_lib_$ac_lib_var=no"
7210 LIBS
="$ac_save_LIBS"
7213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7214 echo "$ac_t""yes" 1>&6
7215 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7216 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7217 cat >> confdefs.h
<<EOF
7218 #define $ac_tr_lib 1
7221 LIBS
="-lresolv $LIBS"
7224 echo "$ac_t""no" 1>&6
7229 # Check for the functions putprpwnam, set_auth_parameters,
7230 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
7231 # Needed for OSF1 and HPUX.
7235 *-lsecurity*) for ac_func
in putprpwnam
7237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7238 echo "configure:7239: checking for $ac_func" >&5
7239 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7240 echo $ac_n "(cached) $ac_c" 1>&6
7242 cat > conftest.
$ac_ext <<EOF
7243 #line 7244 "configure"
7244 #include "confdefs.h"
7245 /* System header to define __stub macros and hopefully few prototypes,
7246 which can conflict with char $ac_func(); below. */
7248 /* Override any gcc2 internal prototype to avoid an error. */
7249 /* We use char because int might match the return type of a gcc2
7250 builtin and then its argument prototype would still apply. */
7255 /* The GNU C library defines this for functions which it implements
7256 to always fail with ENOSYS. Some functions are actually named
7257 something starting with __ and the normal name is an alias. */
7258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7266 if { (eval echo configure
:7267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7268 eval "ac_cv_func_$ac_func=yes"
7270 echo "configure: failed program was:" >&5
7271 cat conftest.
$ac_ext >&5
7273 eval "ac_cv_func_$ac_func=no"
7278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7279 echo "$ac_t""yes" 1>&6
7280 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7281 cat >> confdefs.h
<<EOF
7282 #define $ac_tr_func 1
7286 echo "$ac_t""no" 1>&6
7290 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
7291 echo "configure:7292: checking for putprpwnam in -lsecurity" >&5
7292 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
7293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7294 echo $ac_n "(cached) $ac_c" 1>&6
7296 ac_save_LIBS
="$LIBS"
7297 LIBS
="-lsecurity $LIBS"
7298 cat > conftest.
$ac_ext <<EOF
7299 #line 7300 "configure"
7300 #include "confdefs.h"
7301 /* Override any gcc2 internal prototype to avoid an error. */
7302 /* We use char because int might match the return type of a gcc2
7303 builtin and then its argument prototype would still apply. */
7310 if { (eval echo configure
:7311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7312 eval "ac_cv_lib_$ac_lib_var=yes"
7314 echo "configure: failed program was:" >&5
7315 cat conftest.
$ac_ext >&5
7317 eval "ac_cv_lib_$ac_lib_var=no"
7320 LIBS
="$ac_save_LIBS"
7323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7324 echo "$ac_t""yes" 1>&6
7325 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7326 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7327 cat >> confdefs.h
<<EOF
7328 #define $ac_tr_lib 1
7331 LIBS
="-lsecurity $LIBS"
7334 echo "$ac_t""no" 1>&6
7337 for ac_func
in putprpwnam
7339 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7340 echo "configure:7341: checking for $ac_func" >&5
7341 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7342 echo $ac_n "(cached) $ac_c" 1>&6
7344 cat > conftest.
$ac_ext <<EOF
7345 #line 7346 "configure"
7346 #include "confdefs.h"
7347 /* System header to define __stub macros and hopefully few prototypes,
7348 which can conflict with char $ac_func(); below. */
7350 /* Override any gcc2 internal prototype to avoid an error. */
7351 /* We use char because int might match the return type of a gcc2
7352 builtin and then its argument prototype would still apply. */
7357 /* The GNU C library defines this for functions which it implements
7358 to always fail with ENOSYS. Some functions are actually named
7359 something starting with __ and the normal name is an alias. */
7360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7368 if { (eval echo configure
:7369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7370 eval "ac_cv_func_$ac_func=yes"
7372 echo "configure: failed program was:" >&5
7373 cat conftest.
$ac_ext >&5
7375 eval "ac_cv_func_$ac_func=no"
7380 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7381 echo "$ac_t""yes" 1>&6
7382 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7383 cat >> confdefs.h
<<EOF
7384 #define $ac_tr_func 1
7388 echo "$ac_t""no" 1>&6
7396 *-lsec*) for ac_func
in putprpwnam
7398 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7399 echo "configure:7400: checking for $ac_func" >&5
7400 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7401 echo $ac_n "(cached) $ac_c" 1>&6
7403 cat > conftest.
$ac_ext <<EOF
7404 #line 7405 "configure"
7405 #include "confdefs.h"
7406 /* System header to define __stub macros and hopefully few prototypes,
7407 which can conflict with char $ac_func(); below. */
7409 /* Override any gcc2 internal prototype to avoid an error. */
7410 /* We use char because int might match the return type of a gcc2
7411 builtin and then its argument prototype would still apply. */
7416 /* The GNU C library defines this for functions which it implements
7417 to always fail with ENOSYS. Some functions are actually named
7418 something starting with __ and the normal name is an alias. */
7419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7427 if { (eval echo configure
:7428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7429 eval "ac_cv_func_$ac_func=yes"
7431 echo "configure: failed program was:" >&5
7432 cat conftest.
$ac_ext >&5
7434 eval "ac_cv_func_$ac_func=no"
7439 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7440 echo "$ac_t""yes" 1>&6
7441 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7442 cat >> confdefs.h
<<EOF
7443 #define $ac_tr_func 1
7447 echo "$ac_t""no" 1>&6
7451 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7452 echo "configure:7453: checking for putprpwnam in -lsec" >&5
7453 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7454 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7455 echo $ac_n "(cached) $ac_c" 1>&6
7457 ac_save_LIBS
="$LIBS"
7459 cat > conftest.
$ac_ext <<EOF
7460 #line 7461 "configure"
7461 #include "confdefs.h"
7462 /* Override any gcc2 internal prototype to avoid an error. */
7463 /* We use char because int might match the return type of a gcc2
7464 builtin and then its argument prototype would still apply. */
7471 if { (eval echo configure
:7472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7473 eval "ac_cv_lib_$ac_lib_var=yes"
7475 echo "configure: failed program was:" >&5
7476 cat conftest.
$ac_ext >&5
7478 eval "ac_cv_lib_$ac_lib_var=no"
7481 LIBS
="$ac_save_LIBS"
7484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7485 echo "$ac_t""yes" 1>&6
7486 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7487 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7488 cat >> confdefs.h
<<EOF
7489 #define $ac_tr_lib 1
7495 echo "$ac_t""no" 1>&6
7498 for ac_func
in putprpwnam
7500 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7501 echo "configure:7502: checking for $ac_func" >&5
7502 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7503 echo $ac_n "(cached) $ac_c" 1>&6
7505 cat > conftest.
$ac_ext <<EOF
7506 #line 7507 "configure"
7507 #include "confdefs.h"
7508 /* System header to define __stub macros and hopefully few prototypes,
7509 which can conflict with char $ac_func(); below. */
7511 /* Override any gcc2 internal prototype to avoid an error. */
7512 /* We use char because int might match the return type of a gcc2
7513 builtin and then its argument prototype would still apply. */
7518 /* The GNU C library defines this for functions which it implements
7519 to always fail with ENOSYS. Some functions are actually named
7520 something starting with __ and the normal name is an alias. */
7521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7529 if { (eval echo configure
:7530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7531 eval "ac_cv_func_$ac_func=yes"
7533 echo "configure: failed program was:" >&5
7534 cat conftest.
$ac_ext >&5
7536 eval "ac_cv_func_$ac_func=no"
7541 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7542 echo "$ac_t""yes" 1>&6
7543 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7544 cat >> confdefs.h
<<EOF
7545 #define $ac_tr_func 1
7549 echo "$ac_t""no" 1>&6
7558 *-lsecurity*) for ac_func
in set_auth_parameters
7560 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7561 echo "configure:7562: checking for $ac_func" >&5
7562 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7563 echo $ac_n "(cached) $ac_c" 1>&6
7565 cat > conftest.
$ac_ext <<EOF
7566 #line 7567 "configure"
7567 #include "confdefs.h"
7568 /* System header to define __stub macros and hopefully few prototypes,
7569 which can conflict with char $ac_func(); below. */
7571 /* Override any gcc2 internal prototype to avoid an error. */
7572 /* We use char because int might match the return type of a gcc2
7573 builtin and then its argument prototype would still apply. */
7578 /* The GNU C library defines this for functions which it implements
7579 to always fail with ENOSYS. Some functions are actually named
7580 something starting with __ and the normal name is an alias. */
7581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7589 if { (eval echo configure
:7590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7591 eval "ac_cv_func_$ac_func=yes"
7593 echo "configure: failed program was:" >&5
7594 cat conftest.
$ac_ext >&5
7596 eval "ac_cv_func_$ac_func=no"
7601 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7602 echo "$ac_t""yes" 1>&6
7603 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7604 cat >> confdefs.h
<<EOF
7605 #define $ac_tr_func 1
7609 echo "$ac_t""no" 1>&6
7613 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7614 echo "configure:7615: checking for set_auth_parameters in -lsecurity" >&5
7615 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7616 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7617 echo $ac_n "(cached) $ac_c" 1>&6
7619 ac_save_LIBS
="$LIBS"
7620 LIBS
="-lsecurity $LIBS"
7621 cat > conftest.
$ac_ext <<EOF
7622 #line 7623 "configure"
7623 #include "confdefs.h"
7624 /* Override any gcc2 internal prototype to avoid an error. */
7625 /* We use char because int might match the return type of a gcc2
7626 builtin and then its argument prototype would still apply. */
7627 char set_auth_parameters();
7630 set_auth_parameters()
7633 if { (eval echo configure
:7634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7635 eval "ac_cv_lib_$ac_lib_var=yes"
7637 echo "configure: failed program was:" >&5
7638 cat conftest.
$ac_ext >&5
7640 eval "ac_cv_lib_$ac_lib_var=no"
7643 LIBS
="$ac_save_LIBS"
7646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7647 echo "$ac_t""yes" 1>&6
7648 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7649 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7650 cat >> confdefs.h
<<EOF
7651 #define $ac_tr_lib 1
7654 LIBS
="-lsecurity $LIBS"
7657 echo "$ac_t""no" 1>&6
7660 for ac_func
in set_auth_parameters
7662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7663 echo "configure:7664: checking for $ac_func" >&5
7664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7665 echo $ac_n "(cached) $ac_c" 1>&6
7667 cat > conftest.
$ac_ext <<EOF
7668 #line 7669 "configure"
7669 #include "confdefs.h"
7670 /* System header to define __stub macros and hopefully few prototypes,
7671 which can conflict with char $ac_func(); below. */
7673 /* Override any gcc2 internal prototype to avoid an error. */
7674 /* We use char because int might match the return type of a gcc2
7675 builtin and then its argument prototype would still apply. */
7680 /* The GNU C library defines this for functions which it implements
7681 to always fail with ENOSYS. Some functions are actually named
7682 something starting with __ and the normal name is an alias. */
7683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7691 if { (eval echo configure
:7692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7693 eval "ac_cv_func_$ac_func=yes"
7695 echo "configure: failed program was:" >&5
7696 cat conftest.
$ac_ext >&5
7698 eval "ac_cv_func_$ac_func=no"
7703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7704 echo "$ac_t""yes" 1>&6
7705 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7706 cat >> confdefs.h
<<EOF
7707 #define $ac_tr_func 1
7711 echo "$ac_t""no" 1>&6
7719 *-lsec*) for ac_func
in set_auth_parameters
7721 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7722 echo "configure:7723: checking for $ac_func" >&5
7723 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7724 echo $ac_n "(cached) $ac_c" 1>&6
7726 cat > conftest.
$ac_ext <<EOF
7727 #line 7728 "configure"
7728 #include "confdefs.h"
7729 /* System header to define __stub macros and hopefully few prototypes,
7730 which can conflict with char $ac_func(); below. */
7732 /* Override any gcc2 internal prototype to avoid an error. */
7733 /* We use char because int might match the return type of a gcc2
7734 builtin and then its argument prototype would still apply. */
7739 /* The GNU C library defines this for functions which it implements
7740 to always fail with ENOSYS. Some functions are actually named
7741 something starting with __ and the normal name is an alias. */
7742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7750 if { (eval echo configure
:7751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7752 eval "ac_cv_func_$ac_func=yes"
7754 echo "configure: failed program was:" >&5
7755 cat conftest.
$ac_ext >&5
7757 eval "ac_cv_func_$ac_func=no"
7762 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7763 echo "$ac_t""yes" 1>&6
7764 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7765 cat >> confdefs.h
<<EOF
7766 #define $ac_tr_func 1
7770 echo "$ac_t""no" 1>&6
7774 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7775 echo "configure:7776: checking for set_auth_parameters in -lsec" >&5
7776 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7777 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7778 echo $ac_n "(cached) $ac_c" 1>&6
7780 ac_save_LIBS
="$LIBS"
7782 cat > conftest.
$ac_ext <<EOF
7783 #line 7784 "configure"
7784 #include "confdefs.h"
7785 /* Override any gcc2 internal prototype to avoid an error. */
7786 /* We use char because int might match the return type of a gcc2
7787 builtin and then its argument prototype would still apply. */
7788 char set_auth_parameters();
7791 set_auth_parameters()
7794 if { (eval echo configure
:7795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7796 eval "ac_cv_lib_$ac_lib_var=yes"
7798 echo "configure: failed program was:" >&5
7799 cat conftest.
$ac_ext >&5
7801 eval "ac_cv_lib_$ac_lib_var=no"
7804 LIBS
="$ac_save_LIBS"
7807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7808 echo "$ac_t""yes" 1>&6
7809 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7810 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7811 cat >> confdefs.h
<<EOF
7812 #define $ac_tr_lib 1
7818 echo "$ac_t""no" 1>&6
7821 for ac_func
in set_auth_parameters
7823 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7824 echo "configure:7825: checking for $ac_func" >&5
7825 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7826 echo $ac_n "(cached) $ac_c" 1>&6
7828 cat > conftest.
$ac_ext <<EOF
7829 #line 7830 "configure"
7830 #include "confdefs.h"
7831 /* System header to define __stub macros and hopefully few prototypes,
7832 which can conflict with char $ac_func(); below. */
7834 /* Override any gcc2 internal prototype to avoid an error. */
7835 /* We use char because int might match the return type of a gcc2
7836 builtin and then its argument prototype would still apply. */
7841 /* The GNU C library defines this for functions which it implements
7842 to always fail with ENOSYS. Some functions are actually named
7843 something starting with __ and the normal name is an alias. */
7844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7852 if { (eval echo configure
:7853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7854 eval "ac_cv_func_$ac_func=yes"
7856 echo "configure: failed program was:" >&5
7857 cat conftest.
$ac_ext >&5
7859 eval "ac_cv_func_$ac_func=no"
7864 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7865 echo "$ac_t""yes" 1>&6
7866 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7867 cat >> confdefs.h
<<EOF
7868 #define $ac_tr_func 1
7872 echo "$ac_t""no" 1>&6
7880 # UnixWare 7.x has its getspnam in -lgen
7882 *-lgen*) for ac_func
in getspnam
7884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7885 echo "configure:7886: checking for $ac_func" >&5
7886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7887 echo $ac_n "(cached) $ac_c" 1>&6
7889 cat > conftest.
$ac_ext <<EOF
7890 #line 7891 "configure"
7891 #include "confdefs.h"
7892 /* System header to define __stub macros and hopefully few prototypes,
7893 which can conflict with char $ac_func(); below. */
7895 /* Override any gcc2 internal prototype to avoid an error. */
7896 /* We use char because int might match the return type of a gcc2
7897 builtin and then its argument prototype would still apply. */
7902 /* The GNU C library defines this for functions which it implements
7903 to always fail with ENOSYS. Some functions are actually named
7904 something starting with __ and the normal name is an alias. */
7905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7913 if { (eval echo configure
:7914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7915 eval "ac_cv_func_$ac_func=yes"
7917 echo "configure: failed program was:" >&5
7918 cat conftest.
$ac_ext >&5
7920 eval "ac_cv_func_$ac_func=no"
7925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7926 echo "$ac_t""yes" 1>&6
7927 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7928 cat >> confdefs.h
<<EOF
7929 #define $ac_tr_func 1
7933 echo "$ac_t""no" 1>&6
7937 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7938 echo "configure:7939: checking for getspnam in -lgen" >&5
7939 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7940 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7941 echo $ac_n "(cached) $ac_c" 1>&6
7943 ac_save_LIBS
="$LIBS"
7945 cat > conftest.
$ac_ext <<EOF
7946 #line 7947 "configure"
7947 #include "confdefs.h"
7948 /* Override any gcc2 internal prototype to avoid an error. */
7949 /* We use char because int might match the return type of a gcc2
7950 builtin and then its argument prototype would still apply. */
7957 if { (eval echo configure
:7958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7959 eval "ac_cv_lib_$ac_lib_var=yes"
7961 echo "configure: failed program was:" >&5
7962 cat conftest.
$ac_ext >&5
7964 eval "ac_cv_lib_$ac_lib_var=no"
7967 LIBS
="$ac_save_LIBS"
7970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7971 echo "$ac_t""yes" 1>&6
7972 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7973 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7974 cat >> confdefs.h
<<EOF
7975 #define $ac_tr_lib 1
7981 echo "$ac_t""no" 1>&6
7984 for ac_func
in getspnam
7986 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7987 echo "configure:7988: checking for $ac_func" >&5
7988 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7989 echo $ac_n "(cached) $ac_c" 1>&6
7991 cat > conftest.
$ac_ext <<EOF
7992 #line 7993 "configure"
7993 #include "confdefs.h"
7994 /* System header to define __stub macros and hopefully few prototypes,
7995 which can conflict with char $ac_func(); below. */
7997 /* Override any gcc2 internal prototype to avoid an error. */
7998 /* We use char because int might match the return type of a gcc2
7999 builtin and then its argument prototype would still apply. */
8004 /* The GNU C library defines this for functions which it implements
8005 to always fail with ENOSYS. Some functions are actually named
8006 something starting with __ and the normal name is an alias. */
8007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8015 if { (eval echo configure
:8016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8017 eval "ac_cv_func_$ac_func=yes"
8019 echo "configure: failed program was:" >&5
8020 cat conftest.
$ac_ext >&5
8022 eval "ac_cv_func_$ac_func=no"
8027 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8028 echo "$ac_t""yes" 1>&6
8029 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8030 cat >> confdefs.h
<<EOF
8031 #define $ac_tr_func 1
8035 echo "$ac_t""no" 1>&6
8044 *-lsecurity*) for ac_func
in getspnam
8046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8047 echo "configure:8048: checking for $ac_func" >&5
8048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8049 echo $ac_n "(cached) $ac_c" 1>&6
8051 cat > conftest.
$ac_ext <<EOF
8052 #line 8053 "configure"
8053 #include "confdefs.h"
8054 /* System header to define __stub macros and hopefully few prototypes,
8055 which can conflict with char $ac_func(); below. */
8057 /* Override any gcc2 internal prototype to avoid an error. */
8058 /* We use char because int might match the return type of a gcc2
8059 builtin and then its argument prototype would still apply. */
8064 /* The GNU C library defines this for functions which it implements
8065 to always fail with ENOSYS. Some functions are actually named
8066 something starting with __ and the normal name is an alias. */
8067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8075 if { (eval echo configure
:8076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8077 eval "ac_cv_func_$ac_func=yes"
8079 echo "configure: failed program was:" >&5
8080 cat conftest.
$ac_ext >&5
8082 eval "ac_cv_func_$ac_func=no"
8087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8088 echo "$ac_t""yes" 1>&6
8089 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8090 cat >> confdefs.h
<<EOF
8091 #define $ac_tr_func 1
8095 echo "$ac_t""no" 1>&6
8099 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
8100 echo "configure:8101: checking for getspnam in -lsecurity" >&5
8101 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
8102 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8103 echo $ac_n "(cached) $ac_c" 1>&6
8105 ac_save_LIBS
="$LIBS"
8106 LIBS
="-lsecurity $LIBS"
8107 cat > conftest.
$ac_ext <<EOF
8108 #line 8109 "configure"
8109 #include "confdefs.h"
8110 /* Override any gcc2 internal prototype to avoid an error. */
8111 /* We use char because int might match the return type of a gcc2
8112 builtin and then its argument prototype would still apply. */
8119 if { (eval echo configure
:8120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8121 eval "ac_cv_lib_$ac_lib_var=yes"
8123 echo "configure: failed program was:" >&5
8124 cat conftest.
$ac_ext >&5
8126 eval "ac_cv_lib_$ac_lib_var=no"
8129 LIBS
="$ac_save_LIBS"
8132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8133 echo "$ac_t""yes" 1>&6
8134 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8135 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8136 cat >> confdefs.h
<<EOF
8137 #define $ac_tr_lib 1
8140 LIBS
="-lsecurity $LIBS"
8143 echo "$ac_t""no" 1>&6
8146 for ac_func
in getspnam
8148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8149 echo "configure:8150: checking for $ac_func" >&5
8150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8151 echo $ac_n "(cached) $ac_c" 1>&6
8153 cat > conftest.
$ac_ext <<EOF
8154 #line 8155 "configure"
8155 #include "confdefs.h"
8156 /* System header to define __stub macros and hopefully few prototypes,
8157 which can conflict with char $ac_func(); below. */
8159 /* Override any gcc2 internal prototype to avoid an error. */
8160 /* We use char because int might match the return type of a gcc2
8161 builtin and then its argument prototype would still apply. */
8166 /* The GNU C library defines this for functions which it implements
8167 to always fail with ENOSYS. Some functions are actually named
8168 something starting with __ and the normal name is an alias. */
8169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8177 if { (eval echo configure
:8178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8179 eval "ac_cv_func_$ac_func=yes"
8181 echo "configure: failed program was:" >&5
8182 cat conftest.
$ac_ext >&5
8184 eval "ac_cv_func_$ac_func=no"
8189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8190 echo "$ac_t""yes" 1>&6
8191 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8192 cat >> confdefs.h
<<EOF
8193 #define $ac_tr_func 1
8197 echo "$ac_t""no" 1>&6
8205 *-lsec*) for ac_func
in getspnam
8207 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8208 echo "configure:8209: checking for $ac_func" >&5
8209 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8210 echo $ac_n "(cached) $ac_c" 1>&6
8212 cat > conftest.
$ac_ext <<EOF
8213 #line 8214 "configure"
8214 #include "confdefs.h"
8215 /* System header to define __stub macros and hopefully few prototypes,
8216 which can conflict with char $ac_func(); below. */
8218 /* Override any gcc2 internal prototype to avoid an error. */
8219 /* We use char because int might match the return type of a gcc2
8220 builtin and then its argument prototype would still apply. */
8225 /* The GNU C library defines this for functions which it implements
8226 to always fail with ENOSYS. Some functions are actually named
8227 something starting with __ and the normal name is an alias. */
8228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8236 if { (eval echo configure
:8237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8238 eval "ac_cv_func_$ac_func=yes"
8240 echo "configure: failed program was:" >&5
8241 cat conftest.
$ac_ext >&5
8243 eval "ac_cv_func_$ac_func=no"
8248 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8249 echo "$ac_t""yes" 1>&6
8250 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8251 cat >> confdefs.h
<<EOF
8252 #define $ac_tr_func 1
8256 echo "$ac_t""no" 1>&6
8260 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
8261 echo "configure:8262: checking for getspnam in -lsec" >&5
8262 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
8263 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8264 echo $ac_n "(cached) $ac_c" 1>&6
8266 ac_save_LIBS
="$LIBS"
8268 cat > conftest.
$ac_ext <<EOF
8269 #line 8270 "configure"
8270 #include "confdefs.h"
8271 /* Override any gcc2 internal prototype to avoid an error. */
8272 /* We use char because int might match the return type of a gcc2
8273 builtin and then its argument prototype would still apply. */
8280 if { (eval echo configure
:8281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8282 eval "ac_cv_lib_$ac_lib_var=yes"
8284 echo "configure: failed program was:" >&5
8285 cat conftest.
$ac_ext >&5
8287 eval "ac_cv_lib_$ac_lib_var=no"
8290 LIBS
="$ac_save_LIBS"
8293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8294 echo "$ac_t""yes" 1>&6
8295 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8296 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8297 cat >> confdefs.h
<<EOF
8298 #define $ac_tr_lib 1
8304 echo "$ac_t""no" 1>&6
8307 for ac_func
in getspnam
8309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8310 echo "configure:8311: checking for $ac_func" >&5
8311 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8312 echo $ac_n "(cached) $ac_c" 1>&6
8314 cat > conftest.
$ac_ext <<EOF
8315 #line 8316 "configure"
8316 #include "confdefs.h"
8317 /* System header to define __stub macros and hopefully few prototypes,
8318 which can conflict with char $ac_func(); below. */
8320 /* Override any gcc2 internal prototype to avoid an error. */
8321 /* We use char because int might match the return type of a gcc2
8322 builtin and then its argument prototype would still apply. */
8327 /* The GNU C library defines this for functions which it implements
8328 to always fail with ENOSYS. Some functions are actually named
8329 something starting with __ and the normal name is an alias. */
8330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8338 if { (eval echo configure
:8339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8340 eval "ac_cv_func_$ac_func=yes"
8342 echo "configure: failed program was:" >&5
8343 cat conftest.
$ac_ext >&5
8345 eval "ac_cv_func_$ac_func=no"
8350 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8351 echo "$ac_t""yes" 1>&6
8352 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8353 cat >> confdefs.h
<<EOF
8354 #define $ac_tr_func 1
8358 echo "$ac_t""no" 1>&6
8367 *-lsecurity*) for ac_func
in bigcrypt
8369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8370 echo "configure:8371: checking for $ac_func" >&5
8371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8372 echo $ac_n "(cached) $ac_c" 1>&6
8374 cat > conftest.
$ac_ext <<EOF
8375 #line 8376 "configure"
8376 #include "confdefs.h"
8377 /* System header to define __stub macros and hopefully few prototypes,
8378 which can conflict with char $ac_func(); below. */
8380 /* Override any gcc2 internal prototype to avoid an error. */
8381 /* We use char because int might match the return type of a gcc2
8382 builtin and then its argument prototype would still apply. */
8387 /* The GNU C library defines this for functions which it implements
8388 to always fail with ENOSYS. Some functions are actually named
8389 something starting with __ and the normal name is an alias. */
8390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8398 if { (eval echo configure
:8399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8400 eval "ac_cv_func_$ac_func=yes"
8402 echo "configure: failed program was:" >&5
8403 cat conftest.
$ac_ext >&5
8405 eval "ac_cv_func_$ac_func=no"
8410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8411 echo "$ac_t""yes" 1>&6
8412 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8413 cat >> confdefs.h
<<EOF
8414 #define $ac_tr_func 1
8418 echo "$ac_t""no" 1>&6
8422 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8423 echo "configure:8424: checking for bigcrypt in -lsecurity" >&5
8424 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8425 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8426 echo $ac_n "(cached) $ac_c" 1>&6
8428 ac_save_LIBS
="$LIBS"
8429 LIBS
="-lsecurity $LIBS"
8430 cat > conftest.
$ac_ext <<EOF
8431 #line 8432 "configure"
8432 #include "confdefs.h"
8433 /* Override any gcc2 internal prototype to avoid an error. */
8434 /* We use char because int might match the return type of a gcc2
8435 builtin and then its argument prototype would still apply. */
8442 if { (eval echo configure
:8443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8444 eval "ac_cv_lib_$ac_lib_var=yes"
8446 echo "configure: failed program was:" >&5
8447 cat conftest.
$ac_ext >&5
8449 eval "ac_cv_lib_$ac_lib_var=no"
8452 LIBS
="$ac_save_LIBS"
8455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8456 echo "$ac_t""yes" 1>&6
8457 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8458 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8459 cat >> confdefs.h
<<EOF
8460 #define $ac_tr_lib 1
8463 LIBS
="-lsecurity $LIBS"
8466 echo "$ac_t""no" 1>&6
8469 for ac_func
in bigcrypt
8471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8472 echo "configure:8473: checking for $ac_func" >&5
8473 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8474 echo $ac_n "(cached) $ac_c" 1>&6
8476 cat > conftest.
$ac_ext <<EOF
8477 #line 8478 "configure"
8478 #include "confdefs.h"
8479 /* System header to define __stub macros and hopefully few prototypes,
8480 which can conflict with char $ac_func(); below. */
8482 /* Override any gcc2 internal prototype to avoid an error. */
8483 /* We use char because int might match the return type of a gcc2
8484 builtin and then its argument prototype would still apply. */
8489 /* The GNU C library defines this for functions which it implements
8490 to always fail with ENOSYS. Some functions are actually named
8491 something starting with __ and the normal name is an alias. */
8492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8500 if { (eval echo configure
:8501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8502 eval "ac_cv_func_$ac_func=yes"
8504 echo "configure: failed program was:" >&5
8505 cat conftest.
$ac_ext >&5
8507 eval "ac_cv_func_$ac_func=no"
8512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8513 echo "$ac_t""yes" 1>&6
8514 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8515 cat >> confdefs.h
<<EOF
8516 #define $ac_tr_func 1
8520 echo "$ac_t""no" 1>&6
8528 *-lsec*) for ac_func
in bigcrypt
8530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8531 echo "configure:8532: checking for $ac_func" >&5
8532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8533 echo $ac_n "(cached) $ac_c" 1>&6
8535 cat > conftest.
$ac_ext <<EOF
8536 #line 8537 "configure"
8537 #include "confdefs.h"
8538 /* System header to define __stub macros and hopefully few prototypes,
8539 which can conflict with char $ac_func(); below. */
8541 /* Override any gcc2 internal prototype to avoid an error. */
8542 /* We use char because int might match the return type of a gcc2
8543 builtin and then its argument prototype would still apply. */
8548 /* The GNU C library defines this for functions which it implements
8549 to always fail with ENOSYS. Some functions are actually named
8550 something starting with __ and the normal name is an alias. */
8551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8559 if { (eval echo configure
:8560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8561 eval "ac_cv_func_$ac_func=yes"
8563 echo "configure: failed program was:" >&5
8564 cat conftest.
$ac_ext >&5
8566 eval "ac_cv_func_$ac_func=no"
8571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8572 echo "$ac_t""yes" 1>&6
8573 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8574 cat >> confdefs.h
<<EOF
8575 #define $ac_tr_func 1
8579 echo "$ac_t""no" 1>&6
8583 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8584 echo "configure:8585: checking for bigcrypt in -lsec" >&5
8585 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8586 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8587 echo $ac_n "(cached) $ac_c" 1>&6
8589 ac_save_LIBS
="$LIBS"
8591 cat > conftest.
$ac_ext <<EOF
8592 #line 8593 "configure"
8593 #include "confdefs.h"
8594 /* Override any gcc2 internal prototype to avoid an error. */
8595 /* We use char because int might match the return type of a gcc2
8596 builtin and then its argument prototype would still apply. */
8603 if { (eval echo configure
:8604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8605 eval "ac_cv_lib_$ac_lib_var=yes"
8607 echo "configure: failed program was:" >&5
8608 cat conftest.
$ac_ext >&5
8610 eval "ac_cv_lib_$ac_lib_var=no"
8613 LIBS
="$ac_save_LIBS"
8616 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8617 echo "$ac_t""yes" 1>&6
8618 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8619 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8620 cat >> confdefs.h
<<EOF
8621 #define $ac_tr_lib 1
8627 echo "$ac_t""no" 1>&6
8630 for ac_func
in bigcrypt
8632 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8633 echo "configure:8634: checking for $ac_func" >&5
8634 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8635 echo $ac_n "(cached) $ac_c" 1>&6
8637 cat > conftest.
$ac_ext <<EOF
8638 #line 8639 "configure"
8639 #include "confdefs.h"
8640 /* System header to define __stub macros and hopefully few prototypes,
8641 which can conflict with char $ac_func(); below. */
8643 /* Override any gcc2 internal prototype to avoid an error. */
8644 /* We use char because int might match the return type of a gcc2
8645 builtin and then its argument prototype would still apply. */
8650 /* The GNU C library defines this for functions which it implements
8651 to always fail with ENOSYS. Some functions are actually named
8652 something starting with __ and the normal name is an alias. */
8653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8661 if { (eval echo configure
:8662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8663 eval "ac_cv_func_$ac_func=yes"
8665 echo "configure: failed program was:" >&5
8666 cat conftest.
$ac_ext >&5
8668 eval "ac_cv_func_$ac_func=no"
8673 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8674 echo "$ac_t""yes" 1>&6
8675 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8676 cat >> confdefs.h
<<EOF
8677 #define $ac_tr_func 1
8681 echo "$ac_t""no" 1>&6
8690 *-lsecurity*) for ac_func
in getprpwnam
8692 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8693 echo "configure:8694: checking for $ac_func" >&5
8694 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8695 echo $ac_n "(cached) $ac_c" 1>&6
8697 cat > conftest.
$ac_ext <<EOF
8698 #line 8699 "configure"
8699 #include "confdefs.h"
8700 /* System header to define __stub macros and hopefully few prototypes,
8701 which can conflict with char $ac_func(); below. */
8703 /* Override any gcc2 internal prototype to avoid an error. */
8704 /* We use char because int might match the return type of a gcc2
8705 builtin and then its argument prototype would still apply. */
8710 /* The GNU C library defines this for functions which it implements
8711 to always fail with ENOSYS. Some functions are actually named
8712 something starting with __ and the normal name is an alias. */
8713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8721 if { (eval echo configure
:8722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8723 eval "ac_cv_func_$ac_func=yes"
8725 echo "configure: failed program was:" >&5
8726 cat conftest.
$ac_ext >&5
8728 eval "ac_cv_func_$ac_func=no"
8733 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8734 echo "$ac_t""yes" 1>&6
8735 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8736 cat >> confdefs.h
<<EOF
8737 #define $ac_tr_func 1
8741 echo "$ac_t""no" 1>&6
8745 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8746 echo "configure:8747: checking for getprpwnam in -lsecurity" >&5
8747 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8748 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8749 echo $ac_n "(cached) $ac_c" 1>&6
8751 ac_save_LIBS
="$LIBS"
8752 LIBS
="-lsecurity $LIBS"
8753 cat > conftest.
$ac_ext <<EOF
8754 #line 8755 "configure"
8755 #include "confdefs.h"
8756 /* Override any gcc2 internal prototype to avoid an error. */
8757 /* We use char because int might match the return type of a gcc2
8758 builtin and then its argument prototype would still apply. */
8765 if { (eval echo configure
:8766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8767 eval "ac_cv_lib_$ac_lib_var=yes"
8769 echo "configure: failed program was:" >&5
8770 cat conftest.
$ac_ext >&5
8772 eval "ac_cv_lib_$ac_lib_var=no"
8775 LIBS
="$ac_save_LIBS"
8778 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8779 echo "$ac_t""yes" 1>&6
8780 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8781 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8782 cat >> confdefs.h
<<EOF
8783 #define $ac_tr_lib 1
8786 LIBS
="-lsecurity $LIBS"
8789 echo "$ac_t""no" 1>&6
8792 for ac_func
in getprpwnam
8794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8795 echo "configure:8796: checking for $ac_func" >&5
8796 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8797 echo $ac_n "(cached) $ac_c" 1>&6
8799 cat > conftest.
$ac_ext <<EOF
8800 #line 8801 "configure"
8801 #include "confdefs.h"
8802 /* System header to define __stub macros and hopefully few prototypes,
8803 which can conflict with char $ac_func(); below. */
8805 /* Override any gcc2 internal prototype to avoid an error. */
8806 /* We use char because int might match the return type of a gcc2
8807 builtin and then its argument prototype would still apply. */
8812 /* The GNU C library defines this for functions which it implements
8813 to always fail with ENOSYS. Some functions are actually named
8814 something starting with __ and the normal name is an alias. */
8815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8823 if { (eval echo configure
:8824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8825 eval "ac_cv_func_$ac_func=yes"
8827 echo "configure: failed program was:" >&5
8828 cat conftest.
$ac_ext >&5
8830 eval "ac_cv_func_$ac_func=no"
8835 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8836 echo "$ac_t""yes" 1>&6
8837 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8838 cat >> confdefs.h
<<EOF
8839 #define $ac_tr_func 1
8843 echo "$ac_t""no" 1>&6
8851 *-lsec*) for ac_func
in getprpwnam
8853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8854 echo "configure:8855: checking for $ac_func" >&5
8855 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8856 echo $ac_n "(cached) $ac_c" 1>&6
8858 cat > conftest.
$ac_ext <<EOF
8859 #line 8860 "configure"
8860 #include "confdefs.h"
8861 /* System header to define __stub macros and hopefully few prototypes,
8862 which can conflict with char $ac_func(); below. */
8864 /* Override any gcc2 internal prototype to avoid an error. */
8865 /* We use char because int might match the return type of a gcc2
8866 builtin and then its argument prototype would still apply. */
8871 /* The GNU C library defines this for functions which it implements
8872 to always fail with ENOSYS. Some functions are actually named
8873 something starting with __ and the normal name is an alias. */
8874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8882 if { (eval echo configure
:8883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8884 eval "ac_cv_func_$ac_func=yes"
8886 echo "configure: failed program was:" >&5
8887 cat conftest.
$ac_ext >&5
8889 eval "ac_cv_func_$ac_func=no"
8894 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8895 echo "$ac_t""yes" 1>&6
8896 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8897 cat >> confdefs.h
<<EOF
8898 #define $ac_tr_func 1
8902 echo "$ac_t""no" 1>&6
8906 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8907 echo "configure:8908: checking for getprpwnam in -lsec" >&5
8908 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8909 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8910 echo $ac_n "(cached) $ac_c" 1>&6
8912 ac_save_LIBS
="$LIBS"
8914 cat > conftest.
$ac_ext <<EOF
8915 #line 8916 "configure"
8916 #include "confdefs.h"
8917 /* Override any gcc2 internal prototype to avoid an error. */
8918 /* We use char because int might match the return type of a gcc2
8919 builtin and then its argument prototype would still apply. */
8926 if { (eval echo configure
:8927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8928 eval "ac_cv_lib_$ac_lib_var=yes"
8930 echo "configure: failed program was:" >&5
8931 cat conftest.
$ac_ext >&5
8933 eval "ac_cv_lib_$ac_lib_var=no"
8936 LIBS
="$ac_save_LIBS"
8939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8940 echo "$ac_t""yes" 1>&6
8941 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8942 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8943 cat >> confdefs.h
<<EOF
8944 #define $ac_tr_lib 1
8950 echo "$ac_t""no" 1>&6
8953 for ac_func
in getprpwnam
8955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8956 echo "configure:8957: checking for $ac_func" >&5
8957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8958 echo $ac_n "(cached) $ac_c" 1>&6
8960 cat > conftest.
$ac_ext <<EOF
8961 #line 8962 "configure"
8962 #include "confdefs.h"
8963 /* System header to define __stub macros and hopefully few prototypes,
8964 which can conflict with char $ac_func(); below. */
8966 /* Override any gcc2 internal prototype to avoid an error. */
8967 /* We use char because int might match the return type of a gcc2
8968 builtin and then its argument prototype would still apply. */
8973 /* The GNU C library defines this for functions which it implements
8974 to always fail with ENOSYS. Some functions are actually named
8975 something starting with __ and the normal name is an alias. */
8976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8984 if { (eval echo configure
:8985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8986 eval "ac_cv_func_$ac_func=yes"
8988 echo "configure: failed program was:" >&5
8989 cat conftest.
$ac_ext >&5
8991 eval "ac_cv_func_$ac_func=no"
8996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8997 echo "$ac_t""yes" 1>&6
8998 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8999 cat >> confdefs.h
<<EOF
9000 #define $ac_tr_func 1
9004 echo "$ac_t""no" 1>&6
9012 # this bit needs to be modified for each OS that is suported by
9013 # smbwrapper. You need to specify how to created a shared library and
9014 # how to compile C code to produce PIC object files
9016 # these are the defaults, good for lots of systems
9025 # Assume non-shared by default and override below
9027 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
9028 echo "configure:9029: checking ability to build shared libraries" >&5
9030 # and these are for particular systems
9032 *linux
*) cat >> confdefs.h
<<\EOF
9038 DYNEXP
="-Wl,--export-dynamic"
9040 SONAMEFLAG
="-Wl,-soname="
9041 cat >> confdefs.h
<<\EOF
9042 #define STAT_ST_BLOCKSIZE 512
9046 *solaris
*) cat >> confdefs.h
<<\EOF
9053 if test "${GCC}" = "yes"; then
9055 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
9060 ## ${CFLAGS} added for building 64-bit shared
9061 ## libs using Sun's Compiler
9062 LDSHFLAGS
="-G \${CFLAGS}"
9066 cat >> confdefs.h
<<\EOF
9067 #define STAT_ST_BLOCKSIZE 512
9071 *sunos
*) cat >> confdefs.h
<<\EOF
9077 SONAMEFLAG
="-Wl,-h,"
9078 PICFLAG
="-KPIC" # Is this correct for SunOS
9079 cat >> confdefs.h
<<\EOF
9080 #define STAT_ST_BLOCKSIZE 512
9084 *freebsd
*) BLDSHARED
="true"
9086 DYNEXP
="-Wl,--export-dynamic"
9087 SONAMEFLAG
="-Wl,-soname,"
9088 PICFLAG
="-fPIC -DPIC"
9089 cat >> confdefs.h
<<\EOF
9090 #define STAT_ST_BLOCKSIZE 512
9094 *openbsd
*) BLDSHARED
="true"
9096 DYNEXP
="-Wl,-Bdynamic"
9097 SONAMEFLAG
="-Wl,-soname,"
9099 cat >> confdefs.h
<<\EOF
9100 #define STAT_ST_BLOCKSIZE 512
9104 *irix
*) cat >> confdefs.h
<<\EOF
9109 *irix6
*) cat >> confdefs.h
<<\EOF
9115 ATTEMPT_WRAP32_BUILD
=yes
9117 LDSHFLAGS
="-set_version sgi1.0 -shared"
9118 SONAMEFLAG
="-soname "
9120 if test "${GCC}" = "yes"; then
9125 cat >> confdefs.h
<<\EOF
9126 #define STAT_ST_BLOCKSIZE 512
9130 *aix
*) cat >> confdefs.h
<<\EOF
9135 LDSHFLAGS
="-Wl,-bexpall,-bM:SRE,-bnoentry"
9136 DYNEXP
="-Wl,-brtl,-bexpall"
9138 if test "${GCC}" != "yes"; then
9139 ## for funky AIX compiler using strncpy()
9140 CFLAGS
="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
9143 cat >> confdefs.h
<<\EOF
9144 #define STAT_ST_BLOCKSIZE DEV_BSIZE
9148 *hpux
*) cat >> confdefs.h
<<\EOF
9153 # Use special PIC flags for the native HP-UX compiler.
9154 if test $ac_cv_prog_cc_Ae = yes; then
9157 LDSHFLAGS
="-B symbolic -b -z"
9162 cat >> confdefs.h
<<\EOF
9163 #define STAT_ST_BLOCKSIZE 8192
9167 *qnx
*) cat >> confdefs.h
<<\EOF
9171 cat >> confdefs.h
<<\EOF
9172 #define STAT_ST_BLOCKSIZE 512
9176 *osf
*) cat >> confdefs.h
<<\EOF
9182 SONAMEFLAG
="-Wl,-soname,"
9184 cat >> confdefs.h
<<\EOF
9185 #define STAT_ST_BLOCKSIZE 512
9189 *sco
*) cat >> confdefs.h
<<\EOF
9193 cat >> confdefs.h
<<\EOF
9194 #define STAT_ST_BLOCKSIZE 512
9198 *unixware
*) cat >> confdefs.h
<<\EOF
9204 SONAMEFLAG
="-Wl,-soname,"
9206 cat >> confdefs.h
<<\EOF
9207 #define STAT_ST_BLOCKSIZE 512
9211 *next2
*) cat >> confdefs.h
<<\EOF
9215 cat >> confdefs.h
<<\EOF
9216 #define STAT_ST_BLOCKSIZE 512
9220 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
9221 set dummy
groff; ac_word
=$2
9222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9223 echo "configure:9224: checking for $ac_word" >&5
9224 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
9225 echo $ac_n "(cached) $ac_c" 1>&6
9227 if test -n "$ROFF"; then
9228 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
9230 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
9232 for ac_dir
in $ac_dummy; do
9233 test -z "$ac_dir" && ac_dir
=.
9234 if test -f $ac_dir/$ac_word; then
9235 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
9242 ROFF
="$ac_cv_prog_ROFF"
9243 if test -n "$ROFF"; then
9244 echo "$ac_t""$ROFF" 1>&6
9246 echo "$ac_t""no" 1>&6
9249 cat >> confdefs.h
<<\EOF
9250 #define STAT_ST_BLOCKSIZE 512
9254 *sysv4
*) cat >> confdefs.h
<<\EOF
9259 *-univel-*) if test "$GCC" != yes ; then
9260 cat >> confdefs.h
<<\EOF
9261 #define HAVE_MEMSET 1
9268 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
9269 #define RELIANTUNIX 1
9273 cat >> confdefs.h
<<\EOF
9274 #define STAT_ST_BLOCKSIZE 512
9279 *sysv5
*) cat >> confdefs.h
<<\EOF
9283 if test "$GCC" != yes ; then
9284 cat >> confdefs.h
<<\EOF
9285 #define HAVE_MEMSET 1
9290 cat >> confdefs.h
<<\EOF
9291 #define STAT_ST_BLOCKSIZE 512
9296 cat >> confdefs.h
<<\EOF
9297 #define STAT_ST_BLOCKSIZE 512
9303 echo "$ac_t""$BLDSHARED" 1>&6
9304 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
9305 echo "configure:9306: checking linker flags for shared libraries" >&5
9306 echo "$ac_t""$LDSHFLAGS" 1>&6
9307 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
9308 echo "configure:9309: checking compiler flags for position-independent code" >&5
9309 echo "$ac_t""$PICFLAGS" 1>&6
9311 #######################################################
9312 # test whether building a shared library actually works
9313 if test $BLDSHARED = true
; then
9314 echo $ac_n "checking whether building shared libraries actually works""... $ac_c" 1>&6
9315 echo "configure:9316: checking whether building shared libraries actually works" >&5
9316 if eval "test \"`echo '$''{'ac_cv_shlib_works'+set}'`\" = set"; then
9317 echo $ac_n "(cached) $ac_c" 1>&6
9320 ac_cv_shlib_works
=no
9321 # try building a trivial shared library
9322 if test "$PICSUFFIX" = "po"; then
9323 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po
${srcdir-.}/tests
/shlib.c
&&
9324 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po
&&
9325 ac_cv_shlib_works
=yes
9327 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.
$PICSUFFIX ${srcdir-.}/tests
/shlib.c
&&
9328 mv shlib.
$PICSUFFIX shlib.po
&&
9329 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po
&&
9330 ac_cv_shlib_works
=yes
9332 rm -f shlib.so shlib.po
9336 echo "$ac_t""$ac_cv_shlib_works" 1>&6
9337 if test $ac_cv_shlib_works = no
; then
9343 # this updates our target list if we can build shared libs
9344 if test $BLDSHARED = true
; then
9345 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
9347 LIBSMBCLIENT_SHARED
=
9352 echo $ac_n "checking for long long""... $ac_c" 1>&6
9353 echo "configure:9354: checking for long long" >&5
9354 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
9355 echo $ac_n "(cached) $ac_c" 1>&6
9358 if test "$cross_compiling" = yes; then
9359 samba_cv_have_longlong
=cross
9361 cat > conftest.
$ac_ext <<EOF
9362 #line 9363 "configure"
9363 #include "confdefs.h"
9365 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
9367 if { (eval echo configure
:9368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9369 samba_cv_have_longlong
=yes
9371 echo "configure: failed program was:" >&5
9372 cat conftest.
$ac_ext >&5
9374 samba_cv_have_longlong
=no
9381 echo "$ac_t""$samba_cv_have_longlong" 1>&6
9382 if test x
"$samba_cv_have_longlong" = x
"yes"; then
9383 cat >> confdefs.h
<<\EOF
9384 #define HAVE_LONGLONG 1
9390 # Check if the compiler supports the LL prefix on long long integers.
9393 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9394 echo "configure:9395: checking for LL suffix on long long integers" >&5
9395 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9396 echo $ac_n "(cached) $ac_c" 1>&6
9399 cat > conftest.
$ac_ext <<EOF
9400 #line 9401 "configure"
9401 #include "confdefs.h"
9404 long long i = 0x8000000000LL
9407 if { (eval echo configure
:9408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9409 samba_cv_compiler_supports_ll
=yes
9411 echo "configure: failed program was:" >&5
9412 cat conftest.
$ac_ext >&5
9414 samba_cv_compiler_supports_ll
=no
9419 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9420 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
9421 cat >> confdefs.h
<<\EOF
9422 #define COMPILER_SUPPORTS_LL 1
9428 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9429 echo "configure:9430: checking for 64 bit off_t" >&5
9430 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9431 echo $ac_n "(cached) $ac_c" 1>&6
9434 if test "$cross_compiling" = yes; then
9435 samba_cv_SIZEOF_OFF_T
=cross
9437 cat > conftest.
$ac_ext <<EOF
9438 #line 9439 "configure"
9439 #include "confdefs.h"
9441 #include <sys/stat.h>
9442 main() { exit((sizeof(off_t) == 8) ? 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_SIZEOF_OFF_T
=yes
9448 echo "configure: failed program was:" >&5
9449 cat conftest.
$ac_ext >&5
9451 samba_cv_SIZEOF_OFF_T
=no
9458 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9459 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
9460 cat >> confdefs.h
<<\EOF
9461 #define SIZEOF_OFF_T 8
9466 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9467 echo "configure:9468: checking for off64_t" >&5
9468 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9469 echo $ac_n "(cached) $ac_c" 1>&6
9472 if test "$cross_compiling" = yes; then
9473 samba_cv_HAVE_OFF64_T
=cross
9475 cat > conftest.
$ac_ext <<EOF
9476 #line 9477 "configure"
9477 #include "confdefs.h"
9479 #if defined(HAVE_UNISTD_H)
9483 #include <sys/stat.h>
9484 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9486 if { (eval echo configure
:9487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9488 samba_cv_HAVE_OFF64_T
=yes
9490 echo "configure: failed program was:" >&5
9491 cat conftest.
$ac_ext >&5
9493 samba_cv_HAVE_OFF64_T
=no
9500 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9501 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
9502 cat >> confdefs.h
<<\EOF
9503 #define HAVE_OFF64_T 1
9508 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9509 echo "configure:9510: checking for 64 bit ino_t" >&5
9510 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9511 echo $ac_n "(cached) $ac_c" 1>&6
9514 if test "$cross_compiling" = yes; then
9515 samba_cv_SIZEOF_INO_T
=cross
9517 cat > conftest.
$ac_ext <<EOF
9518 #line 9519 "configure"
9519 #include "confdefs.h"
9521 #include <sys/stat.h>
9522 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9524 if { (eval echo configure
:9525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9526 samba_cv_SIZEOF_INO_T
=yes
9528 echo "configure: failed program was:" >&5
9529 cat conftest.
$ac_ext >&5
9531 samba_cv_SIZEOF_INO_T
=no
9538 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9539 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
9540 cat >> confdefs.h
<<\EOF
9541 #define SIZEOF_INO_T 8
9546 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9547 echo "configure:9548: checking for ino64_t" >&5
9548 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9549 echo $ac_n "(cached) $ac_c" 1>&6
9552 if test "$cross_compiling" = yes; then
9553 samba_cv_HAVE_INO64_T
=cross
9555 cat > conftest.
$ac_ext <<EOF
9556 #line 9557 "configure"
9557 #include "confdefs.h"
9559 #if defined(HAVE_UNISTD_H)
9563 #include <sys/stat.h>
9564 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9566 if { (eval echo configure
:9567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9568 samba_cv_HAVE_INO64_T
=yes
9570 echo "configure: failed program was:" >&5
9571 cat conftest.
$ac_ext >&5
9573 samba_cv_HAVE_INO64_T
=no
9580 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9581 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
9582 cat >> confdefs.h
<<\EOF
9583 #define HAVE_INO64_T 1
9588 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9589 echo "configure:9590: checking for dev64_t" >&5
9590 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9591 echo $ac_n "(cached) $ac_c" 1>&6
9594 if test "$cross_compiling" = yes; then
9595 samba_cv_HAVE_DEV64_T
=cross
9597 cat > conftest.
$ac_ext <<EOF
9598 #line 9599 "configure"
9599 #include "confdefs.h"
9601 #if defined(HAVE_UNISTD_H)
9605 #include <sys/stat.h>
9606 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9608 if { (eval echo configure
:9609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9610 samba_cv_HAVE_DEV64_T
=yes
9612 echo "configure: failed program was:" >&5
9613 cat conftest.
$ac_ext >&5
9615 samba_cv_HAVE_DEV64_T
=no
9622 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9623 if test x
"$samba_cv_HAVE_DEV64_T" = x
"yes"; then
9624 cat >> confdefs.h
<<\EOF
9625 #define HAVE_DEV64_T 1
9630 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9631 echo "configure:9632: checking for struct dirent64" >&5
9632 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9633 echo $ac_n "(cached) $ac_c" 1>&6
9636 cat > conftest.
$ac_ext <<EOF
9637 #line 9638 "configure"
9638 #include "confdefs.h"
9640 #if defined(HAVE_UNISTD_H)
9643 #include <sys/types.h>
9649 if { (eval echo configure
:9650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9651 samba_cv_HAVE_STRUCT_DIRENT64
=yes
9653 echo "configure: failed program was:" >&5
9654 cat conftest.
$ac_ext >&5
9656 samba_cv_HAVE_STRUCT_DIRENT64
=no
9661 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9662 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes" && test x
"$ac_cv_func_readdir64" = x
"yes"; then
9663 cat >> confdefs.h
<<\EOF
9664 #define HAVE_STRUCT_DIRENT64 1
9669 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9670 echo "configure:9671: checking for major macro" >&5
9671 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9672 echo $ac_n "(cached) $ac_c" 1>&6
9675 if test "$cross_compiling" = yes; then
9676 samba_cv_HAVE_DEVICE_MAJOR_FN
=cross
9678 cat > conftest.
$ac_ext <<EOF
9679 #line 9680 "configure"
9680 #include "confdefs.h"
9682 #if defined(HAVE_UNISTD_H)
9685 #include <sys/types.h>
9686 main() { dev_t dev; int i = major(dev); return 0; }
9688 if { (eval echo configure
:9689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9690 samba_cv_HAVE_DEVICE_MAJOR_FN
=yes
9692 echo "configure: failed program was:" >&5
9693 cat conftest.
$ac_ext >&5
9695 samba_cv_HAVE_DEVICE_MAJOR_FN
=no
9702 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9703 if test x
"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x
"yes"; then
9704 cat >> confdefs.h
<<\EOF
9705 #define HAVE_DEVICE_MAJOR_FN 1
9710 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9711 echo "configure:9712: checking for minor macro" >&5
9712 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9713 echo $ac_n "(cached) $ac_c" 1>&6
9716 if test "$cross_compiling" = yes; then
9717 samba_cv_HAVE_DEVICE_MINOR_FN
=cross
9719 cat > conftest.
$ac_ext <<EOF
9720 #line 9721 "configure"
9721 #include "confdefs.h"
9723 #if defined(HAVE_UNISTD_H)
9726 #include <sys/types.h>
9727 main() { dev_t dev; int i = minor(dev); return 0; }
9729 if { (eval echo configure
:9730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9731 samba_cv_HAVE_DEVICE_MINOR_FN
=yes
9733 echo "configure: failed program was:" >&5
9734 cat conftest.
$ac_ext >&5
9736 samba_cv_HAVE_DEVICE_MINOR_FN
=no
9743 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9744 if test x
"$samba_cv_HAVE_DEVICE_MINOR_FN" = x
"yes"; then
9745 cat >> confdefs.h
<<\EOF
9746 #define HAVE_DEVICE_MINOR_FN 1
9751 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9752 echo "configure:9753: checking for unsigned char" >&5
9753 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9754 echo $ac_n "(cached) $ac_c" 1>&6
9757 if test "$cross_compiling" = yes; then
9758 samba_cv_HAVE_UNSIGNED_CHAR
=cross
9760 cat > conftest.
$ac_ext <<EOF
9761 #line 9762 "configure"
9762 #include "confdefs.h"
9764 main() { char c; c=250; exit((c > 0)?0:1); }
9766 if { (eval echo configure
:9767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9768 samba_cv_HAVE_UNSIGNED_CHAR
=yes
9770 echo "configure: failed program was:" >&5
9771 cat conftest.
$ac_ext >&5
9773 samba_cv_HAVE_UNSIGNED_CHAR
=no
9780 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9781 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
9782 cat >> confdefs.h
<<\EOF
9783 #define HAVE_UNSIGNED_CHAR 1
9788 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9789 echo "configure:9790: checking for sin_len in sock" >&5
9790 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9791 echo $ac_n "(cached) $ac_c" 1>&6
9794 cat > conftest.
$ac_ext <<EOF
9795 #line 9796 "configure"
9796 #include "confdefs.h"
9797 #include <sys/types.h>
9798 #include <sys/socket.h>
9799 #include <netinet/in.h>
9801 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9804 if { (eval echo configure
:9805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9806 samba_cv_HAVE_SOCK_SIN_LEN
=yes
9808 echo "configure: failed program was:" >&5
9809 cat conftest.
$ac_ext >&5
9811 samba_cv_HAVE_SOCK_SIN_LEN
=no
9816 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9817 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
9818 cat >> confdefs.h
<<\EOF
9819 #define HAVE_SOCK_SIN_LEN 1
9824 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9825 echo "configure:9826: checking whether seekdir returns void" >&5
9826 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9827 echo $ac_n "(cached) $ac_c" 1>&6
9830 cat > conftest.
$ac_ext <<EOF
9831 #line 9832 "configure"
9832 #include "confdefs.h"
9833 #include <sys/types.h>
9835 void seekdir(DIR *d, long loc) { return; }
9840 if { (eval echo configure
:9841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9842 samba_cv_SEEKDIR_RETURNS_VOID
=yes
9844 echo "configure: failed program was:" >&5
9845 cat conftest.
$ac_ext >&5
9847 samba_cv_SEEKDIR_RETURNS_VOID
=no
9852 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9853 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
9854 cat >> confdefs.h
<<\EOF
9855 #define SEEKDIR_RETURNS_VOID 1
9860 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9861 echo "configure:9862: checking for __FUNCTION__ macro" >&5
9862 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9863 echo $ac_n "(cached) $ac_c" 1>&6
9866 cat > conftest.
$ac_ext <<EOF
9867 #line 9868 "configure"
9868 #include "confdefs.h"
9871 printf("%s\n", __FUNCTION__);
9874 if { (eval echo configure
:9875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9876 samba_cv_HAVE_FUNCTION_MACRO
=yes
9878 echo "configure: failed program was:" >&5
9879 cat conftest.
$ac_ext >&5
9881 samba_cv_HAVE_FUNCTION_MACRO
=no
9886 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9887 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
9888 cat >> confdefs.h
<<\EOF
9889 #define HAVE_FUNCTION_MACRO 1
9894 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9895 echo "configure:9896: checking if gettimeofday takes tz argument" >&5
9896 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9897 echo $ac_n "(cached) $ac_c" 1>&6
9900 if test "$cross_compiling" = yes; then
9901 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
9903 cat > conftest.
$ac_ext <<EOF
9904 #line 9905 "configure"
9905 #include "confdefs.h"
9907 #include <sys/time.h>
9909 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9911 if { (eval echo configure
:9912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9913 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
9915 echo "configure: failed program was:" >&5
9916 cat conftest.
$ac_ext >&5
9918 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
9925 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9926 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
9927 cat >> confdefs.h
<<\EOF
9928 #define HAVE_GETTIMEOFDAY_TZ 1
9933 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9934 echo "configure:9935: checking for __va_copy" >&5
9935 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9936 echo $ac_n "(cached) $ac_c" 1>&6
9939 cat > conftest.
$ac_ext <<EOF
9940 #line 9941 "configure"
9941 #include "confdefs.h"
9948 if { (eval echo configure
:9949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9950 samba_cv_HAVE_VA_COPY
=yes
9952 echo "configure: failed program was:" >&5
9953 cat conftest.
$ac_ext >&5
9955 samba_cv_HAVE_VA_COPY
=no
9960 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9961 if test x
"$samba_cv_HAVE_VA_COPY" = x
"yes"; then
9962 cat >> confdefs.h
<<\EOF
9963 #define HAVE_VA_COPY 1
9968 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9969 echo "configure:9970: checking for C99 vsnprintf" >&5
9970 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9971 echo $ac_n "(cached) $ac_c" 1>&6
9974 if test "$cross_compiling" = yes; then
9975 samba_cv_HAVE_C99_VSNPRINTF
=cross
9977 cat > conftest.
$ac_ext <<EOF
9978 #line 9979 "configure"
9979 #include "confdefs.h"
9981 #include <sys/types.h>
9983 void foo(const char *format, ...) {
9988 va_start(ap, format);
9989 len = vsnprintf(buf, 0, format, ap);
9991 if (len != 5) exit(1);
9993 va_start(ap, format);
9994 len = vsnprintf(0, 0, format, ap);
9996 if (len != 5) exit(1);
9998 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
10002 main() { foo("hello"); }
10005 if { (eval echo configure
:10006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10007 samba_cv_HAVE_C99_VSNPRINTF
=yes
10009 echo "configure: failed program was:" >&5
10010 cat conftest.
$ac_ext >&5
10012 samba_cv_HAVE_C99_VSNPRINTF
=no
10019 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
10020 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
10021 cat >> confdefs.h
<<\EOF
10022 #define HAVE_C99_VSNPRINTF 1
10027 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
10028 echo "configure:10029: checking for broken readdir" >&5
10029 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
10030 echo $ac_n "(cached) $ac_c" 1>&6
10033 if test "$cross_compiling" = yes; then
10034 samba_cv_HAVE_BROKEN_READDIR
=cross
10036 cat > conftest.
$ac_ext <<EOF
10037 #line 10038 "configure"
10038 #include "confdefs.h"
10039 #include <sys/types.h>
10040 #include <dirent.h>
10041 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
10042 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
10043 di->d_name[0] == 0) exit(0); exit(1);}
10045 if { (eval echo configure
:10046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10047 samba_cv_HAVE_BROKEN_READDIR
=yes
10049 echo "configure: failed program was:" >&5
10050 cat conftest.
$ac_ext >&5
10052 samba_cv_HAVE_BROKEN_READDIR
=no
10059 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
10060 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
10061 cat >> confdefs.h
<<\EOF
10062 #define HAVE_BROKEN_READDIR 1
10067 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
10068 echo "configure:10069: checking for utimbuf" >&5
10069 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
10070 echo $ac_n "(cached) $ac_c" 1>&6
10073 cat > conftest.
$ac_ext <<EOF
10074 #line 10075 "configure"
10075 #include "confdefs.h"
10076 #include <sys/types.h>
10079 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
10082 if { (eval echo configure
:10083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10084 samba_cv_HAVE_UTIMBUF
=yes
10086 echo "configure: failed program was:" >&5
10087 cat conftest.
$ac_ext >&5
10089 samba_cv_HAVE_UTIMBUF
=no
10094 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
10095 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
10096 cat >> confdefs.h
<<\EOF
10097 #define HAVE_UTIMBUF 1
10103 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
10105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10106 echo "configure:10107: checking for $ac_func" >&5
10107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10108 echo $ac_n "(cached) $ac_c" 1>&6
10110 cat > conftest.
$ac_ext <<EOF
10111 #line 10112 "configure"
10112 #include "confdefs.h"
10113 /* System header to define __stub macros and hopefully few prototypes,
10114 which can conflict with char $ac_func(); below. */
10115 #include <assert.h>
10116 /* Override any gcc2 internal prototype to avoid an error. */
10117 /* We use char because int might match the return type of a gcc2
10118 builtin and then its argument prototype would still apply. */
10123 /* The GNU C library defines this for functions which it implements
10124 to always fail with ENOSYS. Some functions are actually named
10125 something starting with __ and the normal name is an alias. */
10126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10134 if { (eval echo configure
:10135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10136 eval "ac_cv_func_$ac_func=yes"
10138 echo "configure: failed program was:" >&5
10139 cat conftest.
$ac_ext >&5
10141 eval "ac_cv_func_$ac_func=no"
10146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10147 echo "$ac_t""yes" 1>&6
10148 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10149 cat >> confdefs.h
<<EOF
10150 #define $ac_tr_func 1
10154 echo "$ac_t""no" 1>&6
10159 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
10160 echo "configure:10161: checking for ut_name in utmp" >&5
10161 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
10162 echo $ac_n "(cached) $ac_c" 1>&6
10165 cat > conftest.
$ac_ext <<EOF
10166 #line 10167 "configure"
10167 #include "confdefs.h"
10168 #include <sys/types.h>
10171 struct utmp ut; ut.ut_name[0] = 'a';
10174 if { (eval echo configure
:10175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10176 samba_cv_HAVE_UT_UT_NAME
=yes
10178 echo "configure: failed program was:" >&5
10179 cat conftest.
$ac_ext >&5
10181 samba_cv_HAVE_UT_UT_NAME
=no
10186 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
10187 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
10188 cat >> confdefs.h
<<\EOF
10189 #define HAVE_UT_UT_NAME 1
10194 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
10195 echo "configure:10196: checking for ut_user in utmp" >&5
10196 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
10197 echo $ac_n "(cached) $ac_c" 1>&6
10200 cat > conftest.
$ac_ext <<EOF
10201 #line 10202 "configure"
10202 #include "confdefs.h"
10203 #include <sys/types.h>
10206 struct utmp ut; ut.ut_user[0] = 'a';
10209 if { (eval echo configure
:10210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10211 samba_cv_HAVE_UT_UT_USER
=yes
10213 echo "configure: failed program was:" >&5
10214 cat conftest.
$ac_ext >&5
10216 samba_cv_HAVE_UT_UT_USER
=no
10221 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
10222 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
10223 cat >> confdefs.h
<<\EOF
10224 #define HAVE_UT_UT_USER 1
10229 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
10230 echo "configure:10231: checking for ut_id in utmp" >&5
10231 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
10232 echo $ac_n "(cached) $ac_c" 1>&6
10235 cat > conftest.
$ac_ext <<EOF
10236 #line 10237 "configure"
10237 #include "confdefs.h"
10238 #include <sys/types.h>
10241 struct utmp ut; ut.ut_id[0] = 'a';
10244 if { (eval echo configure
:10245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10246 samba_cv_HAVE_UT_UT_ID
=yes
10248 echo "configure: failed program was:" >&5
10249 cat conftest.
$ac_ext >&5
10251 samba_cv_HAVE_UT_UT_ID
=no
10256 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
10257 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
10258 cat >> confdefs.h
<<\EOF
10259 #define HAVE_UT_UT_ID 1
10264 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
10265 echo "configure:10266: checking for ut_host in utmp" >&5
10266 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
10267 echo $ac_n "(cached) $ac_c" 1>&6
10270 cat > conftest.
$ac_ext <<EOF
10271 #line 10272 "configure"
10272 #include "confdefs.h"
10273 #include <sys/types.h>
10276 struct utmp ut; ut.ut_host[0] = 'a';
10279 if { (eval echo configure
:10280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10281 samba_cv_HAVE_UT_UT_HOST
=yes
10283 echo "configure: failed program was:" >&5
10284 cat conftest.
$ac_ext >&5
10286 samba_cv_HAVE_UT_UT_HOST
=no
10291 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
10292 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
10293 cat >> confdefs.h
<<\EOF
10294 #define HAVE_UT_UT_HOST 1
10299 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
10300 echo "configure:10301: checking for ut_time in utmp" >&5
10301 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
10302 echo $ac_n "(cached) $ac_c" 1>&6
10305 cat > conftest.
$ac_ext <<EOF
10306 #line 10307 "configure"
10307 #include "confdefs.h"
10308 #include <sys/types.h>
10311 struct utmp ut; time_t t; ut.ut_time = t;
10314 if { (eval echo configure
:10315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10316 samba_cv_HAVE_UT_UT_TIME
=yes
10318 echo "configure: failed program was:" >&5
10319 cat conftest.
$ac_ext >&5
10321 samba_cv_HAVE_UT_UT_TIME
=no
10326 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10327 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
10328 cat >> confdefs.h
<<\EOF
10329 #define HAVE_UT_UT_TIME 1
10334 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10335 echo "configure:10336: checking for ut_tv in utmp" >&5
10336 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10337 echo $ac_n "(cached) $ac_c" 1>&6
10340 cat > conftest.
$ac_ext <<EOF
10341 #line 10342 "configure"
10342 #include "confdefs.h"
10343 #include <sys/types.h>
10346 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10349 if { (eval echo configure
:10350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10351 samba_cv_HAVE_UT_UT_TV
=yes
10353 echo "configure: failed program was:" >&5
10354 cat conftest.
$ac_ext >&5
10356 samba_cv_HAVE_UT_UT_TV
=no
10361 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10362 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
10363 cat >> confdefs.h
<<\EOF
10364 #define HAVE_UT_UT_TV 1
10369 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10370 echo "configure:10371: checking for ut_type in utmp" >&5
10371 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10372 echo $ac_n "(cached) $ac_c" 1>&6
10375 cat > conftest.
$ac_ext <<EOF
10376 #line 10377 "configure"
10377 #include "confdefs.h"
10378 #include <sys/types.h>
10381 struct utmp ut; ut.ut_type = 0;
10384 if { (eval echo configure
:10385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10386 samba_cv_HAVE_UT_UT_TYPE
=yes
10388 echo "configure: failed program was:" >&5
10389 cat conftest.
$ac_ext >&5
10391 samba_cv_HAVE_UT_UT_TYPE
=no
10396 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10397 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
10398 cat >> confdefs.h
<<\EOF
10399 #define HAVE_UT_UT_TYPE 1
10404 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10405 echo "configure:10406: checking for ut_pid in utmp" >&5
10406 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10407 echo $ac_n "(cached) $ac_c" 1>&6
10410 cat > conftest.
$ac_ext <<EOF
10411 #line 10412 "configure"
10412 #include "confdefs.h"
10413 #include <sys/types.h>
10416 struct utmp ut; ut.ut_pid = 0;
10419 if { (eval echo configure
:10420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10421 samba_cv_HAVE_UT_UT_PID
=yes
10423 echo "configure: failed program was:" >&5
10424 cat conftest.
$ac_ext >&5
10426 samba_cv_HAVE_UT_UT_PID
=no
10431 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10432 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
10433 cat >> confdefs.h
<<\EOF
10434 #define HAVE_UT_UT_PID 1
10439 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10440 echo "configure:10441: checking for ut_exit in utmp" >&5
10441 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10442 echo $ac_n "(cached) $ac_c" 1>&6
10445 cat > conftest.
$ac_ext <<EOF
10446 #line 10447 "configure"
10447 #include "confdefs.h"
10448 #include <sys/types.h>
10451 struct utmp ut; ut.ut_exit.e_exit = 0;
10454 if { (eval echo configure
:10455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10456 samba_cv_HAVE_UT_UT_EXIT
=yes
10458 echo "configure: failed program was:" >&5
10459 cat conftest.
$ac_ext >&5
10461 samba_cv_HAVE_UT_UT_EXIT
=no
10466 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10467 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
10468 cat >> confdefs.h
<<\EOF
10469 #define HAVE_UT_UT_EXIT 1
10474 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10475 echo "configure:10476: checking for ut_addr in utmp" >&5
10476 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10477 echo $ac_n "(cached) $ac_c" 1>&6
10480 cat > conftest.
$ac_ext <<EOF
10481 #line 10482 "configure"
10482 #include "confdefs.h"
10483 #include <sys/types.h>
10486 struct utmp ut; ut.ut_addr = 0;
10489 if { (eval echo configure
:10490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10491 samba_cv_HAVE_UT_UT_ADDR
=yes
10493 echo "configure: failed program was:" >&5
10494 cat conftest.
$ac_ext >&5
10496 samba_cv_HAVE_UT_UT_ADDR
=no
10501 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10502 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
10503 cat >> confdefs.h
<<\EOF
10504 #define HAVE_UT_UT_ADDR 1
10509 if test x
$ac_cv_func_pututline = xyes
; then
10510 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10511 echo "configure:10512: checking whether pututline returns pointer" >&5
10512 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10513 echo $ac_n "(cached) $ac_c" 1>&6
10516 cat > conftest.
$ac_ext <<EOF
10517 #line 10518 "configure"
10518 #include "confdefs.h"
10519 #include <sys/types.h>
10522 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10525 if { (eval echo configure
:10526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10527 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
10529 echo "configure: failed program was:" >&5
10530 cat conftest.
$ac_ext >&5
10532 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
10537 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10538 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
10539 cat >> confdefs.h
<<\EOF
10540 #define PUTUTLINE_RETURNS_UTMP 1
10546 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10547 echo "configure:10548: checking for ut_syslen in utmpx" >&5
10548 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10549 echo $ac_n "(cached) $ac_c" 1>&6
10552 cat > conftest.
$ac_ext <<EOF
10553 #line 10554 "configure"
10554 #include "confdefs.h"
10555 #include <sys/types.h>
10558 struct utmpx ux; ux.ut_syslen = 0;
10561 if { (eval echo configure
:10562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10563 samba_cv_HAVE_UX_UT_SYSLEN
=yes
10565 echo "configure: failed program was:" >&5
10566 cat conftest.
$ac_ext >&5
10568 samba_cv_HAVE_UX_UT_SYSLEN
=no
10573 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10574 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
10575 cat >> confdefs.h
<<\EOF
10576 #define HAVE_UX_UT_SYSLEN 1
10582 #################################################
10583 # check for libiconv support
10584 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
10585 echo "configure:10586: checking whether to use libiconv" >&5
10586 # Check whether --with-libiconv or --without-libiconv was given.
10587 if test "${with_libiconv+set}" = set; then
10588 withval
="$with_libiconv"
10591 echo "$ac_t""no" 1>&6
10594 echo "$ac_t""yes" 1>&6
10595 CFLAGS
="$CFLAGS -I$withval/include"
10596 LDFLAGS
="$LDFLAGS -L$withval/lib"
10597 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
10598 echo "configure:10599: checking for iconv_open in -liconv" >&5
10599 ac_lib_var
=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
10600 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10601 echo $ac_n "(cached) $ac_c" 1>&6
10603 ac_save_LIBS
="$LIBS"
10604 LIBS
="-liconv $LIBS"
10605 cat > conftest.
$ac_ext <<EOF
10606 #line 10607 "configure"
10607 #include "confdefs.h"
10608 /* Override any gcc2 internal prototype to avoid an error. */
10609 /* We use char because int might match the return type of a gcc2
10610 builtin and then its argument prototype would still apply. */
10617 if { (eval echo configure
:10618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10619 eval "ac_cv_lib_$ac_lib_var=yes"
10621 echo "configure: failed program was:" >&5
10622 cat conftest.
$ac_ext >&5
10624 eval "ac_cv_lib_$ac_lib_var=no"
10627 LIBS
="$ac_save_LIBS"
10630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10631 echo "$ac_t""yes" 1>&6
10632 ac_tr_lib
=HAVE_LIB
`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10633 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10634 cat >> confdefs.h
<<EOF
10635 #define $ac_tr_lib 1
10638 LIBS
="-liconv $LIBS"
10641 echo "$ac_t""no" 1>&6
10644 cat >> confdefs.h
<<EOF
10645 #define WITH_LIBICONV "${withval}"
10651 echo "$ac_t""no" 1>&6
10658 # check for iconv in libc
10659 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
10660 echo "configure:10661: checking for working iconv" >&5
10661 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
10662 echo $ac_n "(cached) $ac_c" 1>&6
10665 if test "$cross_compiling" = yes; then
10666 samba_cv_HAVE_NATIVE_ICONV
=cross
10668 cat > conftest.
$ac_ext <<EOF
10669 #line 10670 "configure"
10670 #include "confdefs.h"
10674 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
10675 if (cd == 0 || cd == (iconv_t)-1) return -1;
10680 if { (eval echo configure
:10681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10682 samba_cv_HAVE_NATIVE_ICONV
=yes
10684 echo "configure: failed program was:" >&5
10685 cat conftest.
$ac_ext >&5
10687 samba_cv_HAVE_NATIVE_ICONV
=no
10694 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
10695 if test x
"$samba_cv_HAVE_NATIVE_ICONV" = x
"yes"; then
10696 cat >> confdefs.h
<<\EOF
10697 #define HAVE_NATIVE_ICONV 1
10703 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10704 echo "configure:10705: checking for Linux kernel oplocks" >&5
10705 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10706 echo $ac_n "(cached) $ac_c" 1>&6
10709 if test "$cross_compiling" = yes; then
10710 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
10712 cat > conftest.
$ac_ext <<EOF
10713 #line 10714 "configure"
10714 #include "confdefs.h"
10716 #include <sys/types.h>
10719 #define F_GETLEASE 1025
10722 int fd = open("/dev/null", O_RDONLY);
10723 return fcntl(fd, F_GETLEASE, 0) == -1;
10727 if { (eval echo configure
:10728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10729 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
10731 echo "configure: failed program was:" >&5
10732 cat conftest.
$ac_ext >&5
10734 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
10741 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10742 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
10743 cat >> confdefs.h
<<\EOF
10744 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10749 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10750 echo "configure:10751: checking for kernel change notify support" >&5
10751 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10752 echo $ac_n "(cached) $ac_c" 1>&6
10755 if test "$cross_compiling" = yes; then
10756 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
10758 cat > conftest.
$ac_ext <<EOF
10759 #line 10760 "configure"
10760 #include "confdefs.h"
10762 #include <sys/types.h>
10764 #include <signal.h>
10766 #define F_NOTIFY 1026
10769 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10773 if { (eval echo configure
:10774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10775 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
10777 echo "configure: failed program was:" >&5
10778 cat conftest.
$ac_ext >&5
10780 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
10787 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10788 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
10789 cat >> confdefs.h
<<\EOF
10790 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10795 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10796 echo "configure:10797: checking for kernel share modes" >&5
10797 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10798 echo $ac_n "(cached) $ac_c" 1>&6
10801 if test "$cross_compiling" = yes; then
10802 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
10804 cat > conftest.
$ac_ext <<EOF
10805 #line 10806 "configure"
10806 #include "confdefs.h"
10808 #include <sys/types.h>
10810 #include <signal.h>
10811 #include <sys/file.h>
10813 #define LOCK_MAND 32
10814 #define LOCK_READ 64
10817 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10821 if { (eval echo configure
:10822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10823 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
10825 echo "configure: failed program was:" >&5
10826 cat conftest.
$ac_ext >&5
10828 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
10835 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10836 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
10837 cat >> confdefs.h
<<\EOF
10838 #define HAVE_KERNEL_SHARE_MODES 1
10846 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10847 echo "configure:10848: checking for IRIX kernel oplock type definitions" >&5
10848 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10849 echo $ac_n "(cached) $ac_c" 1>&6
10852 cat > conftest.
$ac_ext <<EOF
10853 #line 10854 "configure"
10854 #include "confdefs.h"
10855 #include <sys/types.h>
10858 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10861 if { (eval echo configure
:10862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10863 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
10865 echo "configure: failed program was:" >&5
10866 cat conftest.
$ac_ext >&5
10868 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
10873 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10874 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
10875 cat >> confdefs.h
<<\EOF
10876 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10881 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10882 echo "configure:10883: checking for irix specific capabilities" >&5
10883 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10884 echo $ac_n "(cached) $ac_c" 1>&6
10887 if test "$cross_compiling" = yes; then
10888 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
10890 cat > conftest.
$ac_ext <<EOF
10891 #line 10892 "configure"
10892 #include "confdefs.h"
10893 #include <sys/types.h>
10894 #include <sys/capability.h>
10897 if ((cap = cap_get_proc()) == NULL)
10899 cap->cap_effective |= CAP_NETWORK_MGT;
10900 cap->cap_inheritable |= CAP_NETWORK_MGT;
10906 if { (eval echo configure
:10907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10908 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
10910 echo "configure: failed program was:" >&5
10911 cat conftest.
$ac_ext >&5
10913 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
10920 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10921 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
10922 cat >> confdefs.h
<<\EOF
10923 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10929 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10930 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10933 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10934 echo "configure:10935: checking for int16 typedef included by rpc/rpc.h" >&5
10935 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10936 echo $ac_n "(cached) $ac_c" 1>&6
10939 cat > conftest.
$ac_ext <<EOF
10940 #line 10941 "configure"
10941 #include "confdefs.h"
10942 #include <sys/types.h>
10943 #if defined(HAVE_RPC_RPC_H)
10944 #include <rpc/rpc.h>
10950 if { (eval echo configure
:10951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10952 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
10954 echo "configure: failed program was:" >&5
10955 cat conftest.
$ac_ext >&5
10957 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
10962 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10963 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
10964 cat >> confdefs.h
<<\EOF
10965 #define HAVE_INT16_FROM_RPC_RPC_H 1
10970 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10971 echo "configure:10972: checking for uint16 typedef included by rpc/rpc.h" >&5
10972 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10973 echo $ac_n "(cached) $ac_c" 1>&6
10976 cat > conftest.
$ac_ext <<EOF
10977 #line 10978 "configure"
10978 #include "confdefs.h"
10979 #include <sys/types.h>
10980 #if defined(HAVE_RPC_RPC_H)
10981 #include <rpc/rpc.h>
10987 if { (eval echo configure
:10988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10989 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
10991 echo "configure: failed program was:" >&5
10992 cat conftest.
$ac_ext >&5
10994 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
10999 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
11000 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
11001 cat >> confdefs.h
<<\EOF
11002 #define HAVE_UINT16_FROM_RPC_RPC_H 1
11007 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
11008 echo "configure:11009: checking for int32 typedef included by rpc/rpc.h" >&5
11009 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
11010 echo $ac_n "(cached) $ac_c" 1>&6
11013 cat > conftest.
$ac_ext <<EOF
11014 #line 11015 "configure"
11015 #include "confdefs.h"
11016 #include <sys/types.h>
11017 #if defined(HAVE_RPC_RPC_H)
11018 #include <rpc/rpc.h>
11024 if { (eval echo configure
:11025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11026 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
11028 echo "configure: failed program was:" >&5
11029 cat conftest.
$ac_ext >&5
11031 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
11036 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
11037 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
11038 cat >> confdefs.h
<<\EOF
11039 #define HAVE_INT32_FROM_RPC_RPC_H 1
11044 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
11045 echo "configure:11046: checking for uint32 typedef included by rpc/rpc.h" >&5
11046 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
11047 echo $ac_n "(cached) $ac_c" 1>&6
11050 cat > conftest.
$ac_ext <<EOF
11051 #line 11052 "configure"
11052 #include "confdefs.h"
11053 #include <sys/types.h>
11054 #if defined(HAVE_RPC_RPC_H)
11055 #include <rpc/rpc.h>
11061 if { (eval echo configure
:11062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11063 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
11065 echo "configure: failed program was:" >&5
11066 cat conftest.
$ac_ext >&5
11068 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
11073 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
11074 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
11075 cat >> confdefs.h
<<\EOF
11076 #define HAVE_UINT32_FROM_RPC_RPC_H 1
11082 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
11083 echo "configure:11084: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
11084 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
11085 echo $ac_n "(cached) $ac_c" 1>&6
11088 cat > conftest.
$ac_ext <<EOF
11089 #line 11090 "configure"
11090 #include "confdefs.h"
11091 #include <sys/types.h>
11092 #ifdef HAVE_SYS_SECURITY_H
11093 #include <sys/security.h>
11095 #endif /* HAVE_SYS_SECURITY_H */
11096 #if defined(HAVE_RPC_RPC_H)
11097 #include <rpc/rpc.h>
11103 if { (eval echo configure
:11104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11105 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
11107 echo "configure: failed program was:" >&5
11108 cat conftest.
$ac_ext >&5
11110 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
11115 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
11116 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
11117 cat >> confdefs.h
<<\EOF
11118 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
11123 echo $ac_n "checking for test routines""... $ac_c" 1>&6
11124 echo "configure:11125: checking for test routines" >&5
11125 if test "$cross_compiling" = yes; then
11126 echo "configure: warning: cannot run when cross-compiling" 1>&2
11128 cat > conftest.
$ac_ext <<EOF
11129 #line 11130 "configure"
11130 #include "confdefs.h"
11131 #include "${srcdir-.}/tests/trivial.c"
11133 if { (eval echo configure
:11134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11135 echo "$ac_t""yes" 1>&6
11137 echo "configure: failed program was:" >&5
11138 cat conftest.
$ac_ext >&5
11140 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
11146 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
11147 echo "configure:11148: checking for ftruncate extend" >&5
11148 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
11149 echo $ac_n "(cached) $ac_c" 1>&6
11152 if test "$cross_compiling" = yes; then
11153 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
11155 cat > conftest.
$ac_ext <<EOF
11156 #line 11157 "configure"
11157 #include "confdefs.h"
11158 #include "${srcdir-.}/tests/ftruncate.c"
11160 if { (eval echo configure
:11161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11162 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
11164 echo "configure: failed program was:" >&5
11165 cat conftest.
$ac_ext >&5
11167 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
11174 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
11175 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
11176 cat >> confdefs.h
<<\EOF
11177 #define HAVE_FTRUNCATE_EXTEND 1
11182 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
11183 echo "configure:11184: checking for AF_LOCAL socket support" >&5
11184 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
11185 echo $ac_n "(cached) $ac_c" 1>&6
11188 if test "$cross_compiling" = yes; then
11189 samba_cv_HAVE_WORKING_AF_LOCAL
=cross
11191 cat > conftest.
$ac_ext <<EOF
11192 #line 11193 "configure"
11193 #include "confdefs.h"
11194 #include "${srcdir-.}/tests/unixsock.c"
11196 if { (eval echo configure
:11197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11198 samba_cv_HAVE_WORKING_AF_LOCAL
=yes
11200 echo "configure: failed program was:" >&5
11201 cat conftest.
$ac_ext >&5
11203 samba_cv_HAVE_WORKING_AF_LOCAL
=no
11210 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
11211 if test x
"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
11213 cat >> confdefs.h
<<\EOF
11214 #define HAVE_WORKING_AF_LOCAL 1
11219 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
11220 echo "configure:11221: checking for broken getgroups" >&5
11221 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
11222 echo $ac_n "(cached) $ac_c" 1>&6
11225 if test "$cross_compiling" = yes; then
11226 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
11228 cat > conftest.
$ac_ext <<EOF
11229 #line 11230 "configure"
11230 #include "confdefs.h"
11231 #include "${srcdir-.}/tests/getgroups.c"
11233 if { (eval echo configure
:11234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11235 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
11237 echo "configure: failed program was:" >&5
11238 cat conftest.
$ac_ext >&5
11240 samba_cv_HAVE_BROKEN_GETGROUPS
=no
11247 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
11248 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
11249 cat >> confdefs.h
<<\EOF
11250 #define HAVE_BROKEN_GETGROUPS 1
11255 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
11256 echo "configure:11257: checking whether getpass should be replaced" >&5
11257 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
11258 echo $ac_n "(cached) $ac_c" 1>&6
11261 SAVE_CPPFLAGS
="$CPPFLAGS"
11262 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
11263 cat > conftest.
$ac_ext <<EOF
11264 #line 11265 "configure"
11265 #include "confdefs.h"
11267 #define REPLACE_GETPASS 1
11268 #define NO_CONFIG_H 1
11269 #define main dont_declare_main
11270 #include "${srcdir-.}/lib/getsmbpass.c"
11277 if { (eval echo configure
:11278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11279 samba_cv_REPLACE_GETPASS
=yes
11281 echo "configure: failed program was:" >&5
11282 cat conftest.
$ac_ext >&5
11284 samba_cv_REPLACE_GETPASS
=no
11287 CPPFLAGS
="$SAVE_CPPFLAGS"
11291 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
11292 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
11293 cat >> confdefs.h
<<\EOF
11294 #define REPLACE_GETPASS 1
11299 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
11300 echo "configure:11301: checking for broken inet_ntoa" >&5
11301 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
11302 echo $ac_n "(cached) $ac_c" 1>&6
11305 if test "$cross_compiling" = yes; then
11306 samba_cv_REPLACE_INET_NTOA
=cross
11308 cat > conftest.
$ac_ext <<EOF
11309 #line 11310 "configure"
11310 #include "confdefs.h"
11313 #include <sys/types.h>
11314 #include <netinet/in.h>
11315 #ifdef HAVE_ARPA_INET_H
11316 #include <arpa/inet.h>
11318 main() { struct in_addr ip; ip.s_addr = 0x12345678;
11319 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
11320 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
11323 if { (eval echo configure
:11324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11325 samba_cv_REPLACE_INET_NTOA
=yes
11327 echo "configure: failed program was:" >&5
11328 cat conftest.
$ac_ext >&5
11330 samba_cv_REPLACE_INET_NTOA
=no
11337 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
11338 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
11339 cat >> confdefs.h
<<\EOF
11340 #define REPLACE_INET_NTOA 1
11345 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
11346 echo "configure:11347: checking for secure mkstemp" >&5
11347 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
11348 echo $ac_n "(cached) $ac_c" 1>&6
11351 if test "$cross_compiling" = yes; then
11352 samba_cv_HAVE_SECURE_MKSTEMP
=cross
11354 cat > conftest.
$ac_ext <<EOF
11355 #line 11356 "configure"
11356 #include "confdefs.h"
11357 #include <stdlib.h>
11358 #include <sys/types.h>
11359 #include <sys/stat.h>
11360 #include <unistd.h>
11363 char tpl[20]="/tmp/test.XXXXXX";
11364 int fd = mkstemp(tpl);
11365 if (fd == -1) exit(1);
11367 if (fstat(fd, &st) != 0) exit(1);
11368 if ((st.st_mode & 0777) != 0600) exit(1);
11372 if { (eval echo configure
:11373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11374 samba_cv_HAVE_SECURE_MKSTEMP
=yes
11376 echo "configure: failed program was:" >&5
11377 cat conftest.
$ac_ext >&5
11379 samba_cv_HAVE_SECURE_MKSTEMP
=no
11386 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
11387 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
11388 cat >> confdefs.h
<<\EOF
11389 #define HAVE_SECURE_MKSTEMP 1
11394 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
11395 echo "configure:11396: checking for sysconf(_SC_NGROUPS_MAX)" >&5
11396 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
11397 echo $ac_n "(cached) $ac_c" 1>&6
11400 if test "$cross_compiling" = yes; then
11401 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
11403 cat > conftest.
$ac_ext <<EOF
11404 #line 11405 "configure"
11405 #include "confdefs.h"
11406 #include <unistd.h>
11407 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
11409 if { (eval echo configure
:11410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11411 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
11413 echo "configure: failed program was:" >&5
11414 cat conftest.
$ac_ext >&5
11416 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
11423 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
11424 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
11425 cat >> confdefs.h
<<\EOF
11426 #define SYSCONF_SC_NGROUPS_MAX 1
11431 echo $ac_n "checking for root""... $ac_c" 1>&6
11432 echo "configure:11433: checking for root" >&5
11433 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
11434 echo $ac_n "(cached) $ac_c" 1>&6
11437 if test "$cross_compiling" = yes; then
11438 samba_cv_HAVE_ROOT
=cross
11440 cat > conftest.
$ac_ext <<EOF
11441 #line 11442 "configure"
11442 #include "confdefs.h"
11443 main() { exit(getuid() != 0); }
11445 if { (eval echo configure
:11446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11447 samba_cv_HAVE_ROOT
=yes
11449 echo "configure: failed program was:" >&5
11450 cat conftest.
$ac_ext >&5
11452 samba_cv_HAVE_ROOT
=no
11459 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
11460 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
11461 cat >> confdefs.h
<<\EOF
11462 #define HAVE_ROOT 1
11466 echo "configure: warning: running as non-root will disable some tests" 1>&2
11470 # look for a method of finding the list of network interfaces
11472 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11473 echo "configure:11474: checking for iface AIX" >&5
11474 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11475 echo $ac_n "(cached) $ac_c" 1>&6
11478 if test "$cross_compiling" = yes; then
11479 samba_cv_HAVE_IFACE_AIX
=cross
11481 cat > conftest.
$ac_ext <<EOF
11482 #line 11483 "configure"
11483 #include "confdefs.h"
11485 #define HAVE_IFACE_AIX 1
11486 #define AUTOCONF_TEST 1
11487 #include "confdefs.h"
11488 #include "${srcdir-.}/lib/interfaces.c"
11490 if { (eval echo configure
:11491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11492 samba_cv_HAVE_IFACE_AIX
=yes
11494 echo "configure: failed program was:" >&5
11495 cat conftest.
$ac_ext >&5
11497 samba_cv_HAVE_IFACE_AIX
=no
11504 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11505 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
11506 iface
=yes;cat >> confdefs.h
<<\EOF
11507 #define HAVE_IFACE_AIX 1
11512 if test $iface = no
; then
11513 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11514 echo "configure:11515: checking for iface ifconf" >&5
11515 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11516 echo $ac_n "(cached) $ac_c" 1>&6
11519 if test "$cross_compiling" = yes; then
11520 samba_cv_HAVE_IFACE_IFCONF
=cross
11522 cat > conftest.
$ac_ext <<EOF
11523 #line 11524 "configure"
11524 #include "confdefs.h"
11526 #define HAVE_IFACE_IFCONF 1
11527 #define AUTOCONF_TEST 1
11528 #include "confdefs.h"
11529 #include "${srcdir-.}/lib/interfaces.c"
11531 if { (eval echo configure
:11532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11533 samba_cv_HAVE_IFACE_IFCONF
=yes
11535 echo "configure: failed program was:" >&5
11536 cat conftest.
$ac_ext >&5
11538 samba_cv_HAVE_IFACE_IFCONF
=no
11545 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11546 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
11547 iface
=yes;cat >> confdefs.h
<<\EOF
11548 #define HAVE_IFACE_IFCONF 1
11554 if test $iface = no
; then
11555 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11556 echo "configure:11557: checking for iface ifreq" >&5
11557 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11558 echo $ac_n "(cached) $ac_c" 1>&6
11561 if test "$cross_compiling" = yes; then
11562 samba_cv_HAVE_IFACE_IFREQ
=cross
11564 cat > conftest.
$ac_ext <<EOF
11565 #line 11566 "configure"
11566 #include "confdefs.h"
11568 #define HAVE_IFACE_IFREQ 1
11569 #define AUTOCONF_TEST 1
11570 #include "confdefs.h"
11571 #include "${srcdir-.}/lib/interfaces.c"
11573 if { (eval echo configure
:11574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11575 samba_cv_HAVE_IFACE_IFREQ
=yes
11577 echo "configure: failed program was:" >&5
11578 cat conftest.
$ac_ext >&5
11580 samba_cv_HAVE_IFACE_IFREQ
=no
11587 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11588 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
11589 iface
=yes;cat >> confdefs.h
<<\EOF
11590 #define HAVE_IFACE_IFREQ 1
11597 ################################################
11598 # look for a method of setting the effective uid
11600 if test $seteuid = no
; then
11601 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11602 echo "configure:11603: checking for setresuid" >&5
11603 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11604 echo $ac_n "(cached) $ac_c" 1>&6
11607 if test "$cross_compiling" = yes; then
11608 samba_cv_USE_SETRESUID
=cross
11610 cat > conftest.
$ac_ext <<EOF
11611 #line 11612 "configure"
11612 #include "confdefs.h"
11614 #define AUTOCONF_TEST 1
11615 #define USE_SETRESUID 1
11616 #include "confdefs.h"
11617 #include "${srcdir-.}/lib/util_sec.c"
11619 if { (eval echo configure
:11620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11621 samba_cv_USE_SETRESUID
=yes
11623 echo "configure: failed program was:" >&5
11624 cat conftest.
$ac_ext >&5
11626 samba_cv_USE_SETRESUID
=no
11633 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11634 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
11635 seteuid
=yes;cat >> confdefs.h
<<\EOF
11636 #define USE_SETRESUID 1
11643 if test $seteuid = no
; then
11644 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11645 echo "configure:11646: checking for setreuid" >&5
11646 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11647 echo $ac_n "(cached) $ac_c" 1>&6
11650 if test "$cross_compiling" = yes; then
11651 samba_cv_USE_SETREUID
=cross
11653 cat > conftest.
$ac_ext <<EOF
11654 #line 11655 "configure"
11655 #include "confdefs.h"
11657 #define AUTOCONF_TEST 1
11658 #define USE_SETREUID 1
11659 #include "confdefs.h"
11660 #include "${srcdir-.}/lib/util_sec.c"
11662 if { (eval echo configure
:11663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11664 samba_cv_USE_SETREUID
=yes
11666 echo "configure: failed program was:" >&5
11667 cat conftest.
$ac_ext >&5
11669 samba_cv_USE_SETREUID
=no
11676 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11677 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
11678 seteuid
=yes;cat >> confdefs.h
<<\EOF
11679 #define USE_SETREUID 1
11685 if test $seteuid = no
; then
11686 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11687 echo "configure:11688: checking for seteuid" >&5
11688 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11689 echo $ac_n "(cached) $ac_c" 1>&6
11692 if test "$cross_compiling" = yes; then
11693 samba_cv_USE_SETEUID
=cross
11695 cat > conftest.
$ac_ext <<EOF
11696 #line 11697 "configure"
11697 #include "confdefs.h"
11699 #define AUTOCONF_TEST 1
11700 #define USE_SETEUID 1
11701 #include "confdefs.h"
11702 #include "${srcdir-.}/lib/util_sec.c"
11704 if { (eval echo configure
:11705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11706 samba_cv_USE_SETEUID
=yes
11708 echo "configure: failed program was:" >&5
11709 cat conftest.
$ac_ext >&5
11711 samba_cv_USE_SETEUID
=no
11718 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11719 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
11720 seteuid
=yes;cat >> confdefs.h
<<\EOF
11721 #define USE_SETEUID 1
11727 if test $seteuid = no
; then
11728 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11729 echo "configure:11730: checking for setuidx" >&5
11730 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11731 echo $ac_n "(cached) $ac_c" 1>&6
11734 if test "$cross_compiling" = yes; then
11735 samba_cv_USE_SETUIDX
=cross
11737 cat > conftest.
$ac_ext <<EOF
11738 #line 11739 "configure"
11739 #include "confdefs.h"
11741 #define AUTOCONF_TEST 1
11742 #define USE_SETUIDX 1
11743 #include "confdefs.h"
11744 #include "${srcdir-.}/lib/util_sec.c"
11746 if { (eval echo configure
:11747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11748 samba_cv_USE_SETUIDX
=yes
11750 echo "configure: failed program was:" >&5
11751 cat conftest.
$ac_ext >&5
11753 samba_cv_USE_SETUIDX
=no
11760 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11761 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
11762 seteuid
=yes;cat >> confdefs.h
<<\EOF
11763 #define USE_SETUIDX 1
11770 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11771 echo "configure:11772: checking for working mmap" >&5
11772 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11773 echo $ac_n "(cached) $ac_c" 1>&6
11776 if test "$cross_compiling" = yes; then
11777 samba_cv_HAVE_MMAP
=cross
11779 cat > conftest.
$ac_ext <<EOF
11780 #line 11781 "configure"
11781 #include "confdefs.h"
11782 #include "${srcdir-.}/tests/shared_mmap.c"
11784 if { (eval echo configure
:11785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11786 samba_cv_HAVE_MMAP
=yes
11788 echo "configure: failed program was:" >&5
11789 cat conftest.
$ac_ext >&5
11791 samba_cv_HAVE_MMAP
=no
11798 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11799 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
11800 cat >> confdefs.h
<<\EOF
11801 #define HAVE_MMAP 1
11806 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11807 echo "configure:11808: checking for ftruncate needs root" >&5
11808 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11809 echo $ac_n "(cached) $ac_c" 1>&6
11812 if test "$cross_compiling" = yes; then
11813 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
11815 cat > conftest.
$ac_ext <<EOF
11816 #line 11817 "configure"
11817 #include "confdefs.h"
11818 #include "${srcdir-.}/tests/ftruncroot.c"
11820 if { (eval echo configure
:11821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11822 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
11824 echo "configure: failed program was:" >&5
11825 cat conftest.
$ac_ext >&5
11827 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
11834 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11835 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
11836 cat >> confdefs.h
<<\EOF
11837 #define FTRUNCATE_NEEDS_ROOT 1
11842 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11843 echo "configure:11844: checking for fcntl locking" >&5
11844 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11845 echo $ac_n "(cached) $ac_c" 1>&6
11848 if test "$cross_compiling" = yes; then
11849 samba_cv_HAVE_FCNTL_LOCK
=cross
11851 cat > conftest.
$ac_ext <<EOF
11852 #line 11853 "configure"
11853 #include "confdefs.h"
11854 #include "${srcdir-.}/tests/fcntl_lock.c"
11856 if { (eval echo configure
:11857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11858 samba_cv_HAVE_FCNTL_LOCK
=yes
11860 echo "configure: failed program was:" >&5
11861 cat conftest.
$ac_ext >&5
11863 samba_cv_HAVE_FCNTL_LOCK
=no
11870 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11871 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
11872 cat >> confdefs.h
<<\EOF
11873 #define HAVE_FCNTL_LOCK 1
11878 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11879 echo "configure:11880: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11880 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11881 echo $ac_n "(cached) $ac_c" 1>&6
11884 if test "$cross_compiling" = yes; then
11885 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
11887 cat > conftest.
$ac_ext <<EOF
11888 #line 11889 "configure"
11889 #include "confdefs.h"
11890 #include "${srcdir-.}/tests/fcntl_lock64.c"
11892 if { (eval echo configure
:11893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11894 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
11896 echo "configure: failed program was:" >&5
11897 cat conftest.
$ac_ext >&5
11899 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
11906 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11907 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
11908 cat >> confdefs.h
<<\EOF
11909 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11916 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11917 echo "configure:11918: checking for 64 bit fcntl locking" >&5
11918 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11919 echo $ac_n "(cached) $ac_c" 1>&6
11922 if test "$cross_compiling" = yes; then
11923 samba_cv_HAVE_STRUCT_FLOCK64
=cross
11925 cat > conftest.
$ac_ext <<EOF
11926 #line 11927 "configure"
11927 #include "confdefs.h"
11929 #if defined(HAVE_UNISTD_H)
11930 #include <unistd.h>
11933 #include <stdlib.h>
11935 #ifdef HAVE_FCNTL_H
11939 #ifdef HAVE_SYS_FCNTL_H
11940 #include <sys/fcntl.h>
11942 main() { struct flock64 fl64;
11943 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11950 if { (eval echo configure
:11951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11952 samba_cv_HAVE_STRUCT_FLOCK64
=yes
11954 echo "configure: failed program was:" >&5
11955 cat conftest.
$ac_ext >&5
11957 samba_cv_HAVE_STRUCT_FLOCK64
=no
11964 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11966 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
11967 cat >> confdefs.h
<<\EOF
11968 #define HAVE_STRUCT_FLOCK64 1
11974 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11975 echo "configure:11976: checking for st_blocks in struct stat" >&5
11976 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11977 echo $ac_n "(cached) $ac_c" 1>&6
11980 cat > conftest.
$ac_ext <<EOF
11981 #line 11982 "configure"
11982 #include "confdefs.h"
11983 #include <sys/types.h>
11984 #include <sys/stat.h>
11985 #include <unistd.h>
11987 struct stat st; st.st_blocks = 0;
11990 if { (eval echo configure
:11991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11992 samba_cv_HAVE_STAT_ST_BLOCKS
=yes
11994 echo "configure: failed program was:" >&5
11995 cat conftest.
$ac_ext >&5
11997 samba_cv_HAVE_STAT_ST_BLOCKS
=no
12002 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
12003 if test x
"$samba_cv_HAVE_STAT_ST_BLOCKS" = x
"yes"; then
12004 cat >> confdefs.h
<<\EOF
12005 #define HAVE_STAT_ST_BLOCKS 1
12010 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
12011 echo "configure:12012: checking for st_blksize in struct stat" >&5
12012 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLKSIZE'+set}'`\" = set"; then
12013 echo $ac_n "(cached) $ac_c" 1>&6
12016 cat > conftest.
$ac_ext <<EOF
12017 #line 12018 "configure"
12018 #include "confdefs.h"
12019 #include <sys/types.h>
12020 #include <sys/stat.h>
12021 #include <unistd.h>
12023 struct stat st; st.st_blksize = 0;
12026 if { (eval echo configure
:12027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12028 samba_cv_HAVE_STAT_ST_BLKSIZE
=yes
12030 echo "configure: failed program was:" >&5
12031 cat conftest.
$ac_ext >&5
12033 samba_cv_HAVE_STAT_ST_BLKSIZE
=no
12038 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLKSIZE" 1>&6
12039 if test x
"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x
"yes"; then
12040 cat >> confdefs.h
<<\EOF
12041 #define HAVE_STAT_ST_BLKSIZE 1
12048 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
12049 echo "configure:12050: checking for broken RedHat 7.2 system header files" >&5
12050 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
12051 echo $ac_n "(cached) $ac_c" 1>&6
12054 cat > conftest.
$ac_ext <<EOF
12055 #line 12056 "configure"
12056 #include "confdefs.h"
12058 #ifdef HAVE_SYS_VFS_H
12059 #include <sys/vfs.h>
12061 #ifdef HAVE_SYS_CAPABILITY_H
12062 #include <sys/capability.h>
12069 if { (eval echo configure
:12070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12071 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=no
12073 echo "configure: failed program was:" >&5
12074 cat conftest.
$ac_ext >&5
12076 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=yes
12081 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
12082 if test x
"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x
"yes"; then
12083 cat >> confdefs.h
<<\EOF
12084 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
12091 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
12092 echo "configure:12093: checking for broken nisplus include files" >&5
12093 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
12094 echo $ac_n "(cached) $ac_c" 1>&6
12097 cat > conftest.
$ac_ext <<EOF
12098 #line 12099 "configure"
12099 #include "confdefs.h"
12100 #include <sys/acl.h>
12101 #if defined(HAVE_RPCSVC_NIS_H)
12102 #include <rpcsvc/nis.h>
12108 if { (eval echo configure
:12109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12110 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
12112 echo "configure: failed program was:" >&5
12113 cat conftest.
$ac_ext >&5
12115 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
12120 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
12121 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
12122 cat >> confdefs.h
<<\EOF
12123 #define BROKEN_NISPLUS_INCLUDE_FILES 1
12129 #################################################
12130 # check for smbwrapper support
12131 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
12132 echo "configure:12133: checking whether to use smbwrapper" >&5
12133 # Check whether --with-smbwrapper or --without-smbwrapper was given.
12134 if test "${with_smbwrapper+set}" = set; then
12135 withval
="$with_smbwrapper"
12138 echo "$ac_t""yes" 1>&6
12139 cat >> confdefs.h
<<\EOF
12140 #define WITH_SMBWRAPPER 1
12143 WRAPPROG
="bin/smbsh\$(EXEEXT)"
12144 WRAP
="bin/smbwrapper.$SHLIBEXT"
12146 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
12149 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
12152 # Conditions under which smbwrapper should not be built.
12154 if test x
$PICFLAG = x
; then
12155 echo No support
for PIC code
- disabling smbwrapper and smbsh
12159 elif test x
$ac_cv_func_syscall = xno
; then
12160 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
12165 EXTRA_ALL_TARGETS
="$EXTRA_ALL_TARGETS $WRAPPROG $WRAP $WRAP32"
12166 SMBWRAPPER
="$WRAPPROG $WRAP $WRAP32"
12169 echo "$ac_t""no" 1>&6
12173 echo "$ac_t""no" 1>&6
12178 #################################################
12179 # check for AFS clear-text auth support
12180 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
12181 echo "configure:12182: checking whether to use AFS clear-text auth" >&5
12182 # Check whether --with-afs or --without-afs was given.
12183 if test "${with_afs+set}" = set; then
12184 withval
="$with_afs"
12187 echo "$ac_t""yes" 1>&6
12188 cat >> confdefs.h
<<\EOF
12194 echo "$ac_t""no" 1>&6
12198 echo "$ac_t""no" 1>&6
12204 #################################################
12205 # check for the DFS clear-text auth system
12206 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
12207 echo "configure:12208: checking whether to use DFS clear-text auth" >&5
12208 # Check whether --with-dfs or --without-dfs was given.
12209 if test "${with_dfs+set}" = set; then
12210 withval
="$with_dfs"
12213 echo "$ac_t""yes" 1>&6
12214 cat >> confdefs.h
<<\EOF
12220 echo "$ac_t""no" 1>&6
12224 echo "$ac_t""no" 1>&6
12229 #################################################
12230 # active directory support
12232 with_ads_support
=yes
12233 echo $ac_n "checking whether to use Active Directory""... $ac_c" 1>&6
12234 echo "configure:12235: checking whether to use Active Directory" >&5
12236 # Check whether --with-ads or --without-ads was given.
12237 if test "${with_ads+set}" = set; then
12238 withval
="$with_ads"
12241 with_ads_support
=no
12247 if test x
"$with_ads_support" = x
"yes"; then
12248 cat >> confdefs.h
<<\EOF
12254 echo "$ac_t""$with_ads_support" 1>&6
12257 if test x
"$with_ads_support" = x
"yes"; then
12259 #################################################
12260 # check for location of Kerberos 5 install
12261 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
12262 echo "configure:12263: checking for kerberos 5 install path" >&5
12263 # Check whether --with-krb5 or --without-krb5 was given.
12264 if test "${with_krb5+set}" = set; then
12265 withval
="$with_krb5"
12268 echo "$ac_t""no" 1>&6
12271 echo "$ac_t""yes" 1>&6
12272 LIBS
="$LIBS -lkrb5"
12273 CFLAGS
="$CFLAGS -I$withval/include"
12274 CPPFLAGS
="$CPPFLAGS -I$withval/include"
12275 LDFLAGS
="$LDFLAGS -L$withval/lib"
12280 echo "$ac_t""no" 1>&6
12286 if test x
$FOUND_KRB5 = x
"no"; then
12287 #################################################
12288 # see if this box has the SuSE location for the heimdal kerberos implementation
12289 echo $ac_n "checking for /usr/include/heimdal""... $ac_c" 1>&6
12290 echo "configure:12291: checking for /usr/include/heimdal" >&5
12291 if test -d /usr
/include
/heimdal
; then
12292 CFLAGS
="$CFLAGS -I/usr/include/heimdal"
12293 CPPFLAGS
="$CPPFLAGS -I/usr/include/heimdal"
12294 echo "$ac_t""yes" 1>&6
12296 echo "$ac_t""no" 1>&6
12301 if test x
$FOUND_KRB5 = x
"no"; then
12302 #################################################
12303 # see if this box has the RedHat location for kerberos
12304 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
12305 echo "configure:12306: checking for /usr/kerberos" >&5
12306 if test -d /usr
/kerberos
; then
12307 LDFLAGS
="$LDFLAGS -L/usr/kerberos/lib"
12308 CFLAGS
="$CFLAGS -I/usr/kerberos/include"
12309 CPPFLAGS
="$CPPFLAGS -I/usr/kerberos/include"
12310 echo "$ac_t""yes" 1>&6
12312 echo "$ac_t""no" 1>&6
12317 # now check for krb5.h. Some systems have the libraries without the headers!
12318 # note that this check is done here to allow for different kerberos
12320 for ac_hdr
in krb5.h
12322 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12323 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12324 echo "configure:12325: checking for $ac_hdr" >&5
12325 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12326 echo $ac_n "(cached) $ac_c" 1>&6
12328 cat > conftest.
$ac_ext <<EOF
12329 #line 12330 "configure"
12330 #include "confdefs.h"
12333 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12334 { (eval echo configure
:12335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12335 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12336 if test -z "$ac_err"; then
12338 eval "ac_cv_header_$ac_safe=yes"
12341 echo "configure: failed program was:" >&5
12342 cat conftest.
$ac_ext >&5
12344 eval "ac_cv_header_$ac_safe=no"
12348 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12349 echo "$ac_t""yes" 1>&6
12350 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12351 cat >> confdefs.h
<<EOF
12352 #define $ac_tr_hdr 1
12356 echo "$ac_t""no" 1>&6
12361 # now check for gssapi headers. This is also done here to allow for
12362 # different kerberos include paths
12363 for ac_hdr
in gssapi
/gssapi_generic.h gssapi
/gssapi.h
12365 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12366 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12367 echo "configure:12368: checking for $ac_hdr" >&5
12368 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12369 echo $ac_n "(cached) $ac_c" 1>&6
12371 cat > conftest.
$ac_ext <<EOF
12372 #line 12373 "configure"
12373 #include "confdefs.h"
12376 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12377 { (eval echo configure
:12378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12378 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12379 if test -z "$ac_err"; then
12381 eval "ac_cv_header_$ac_safe=yes"
12384 echo "configure: failed program was:" >&5
12385 cat conftest.
$ac_ext >&5
12387 eval "ac_cv_header_$ac_safe=no"
12391 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12392 echo "$ac_t""yes" 1>&6
12393 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12394 cat >> confdefs.h
<<EOF
12395 #define $ac_tr_hdr 1
12399 echo "$ac_t""no" 1>&6
12404 ##################################################################
12405 # we might need the k5crypto and com_err libraries on some systems
12406 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
12407 echo "configure:12408: checking for _et_list in -lcom_err" >&5
12408 ac_lib_var
=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
12409 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12410 echo $ac_n "(cached) $ac_c" 1>&6
12412 ac_save_LIBS
="$LIBS"
12413 LIBS
="-lcom_err $LIBS"
12414 cat > conftest.
$ac_ext <<EOF
12415 #line 12416 "configure"
12416 #include "confdefs.h"
12417 /* Override any gcc2 internal prototype to avoid an error. */
12418 /* We use char because int might match the return type of a gcc2
12419 builtin and then its argument prototype would still apply. */
12426 if { (eval echo configure
:12427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12428 eval "ac_cv_lib_$ac_lib_var=yes"
12430 echo "configure: failed program was:" >&5
12431 cat conftest.
$ac_ext >&5
12433 eval "ac_cv_lib_$ac_lib_var=no"
12436 LIBS
="$ac_save_LIBS"
12439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12440 echo "$ac_t""yes" 1>&6
12441 LIBS
="$LIBS -lcom_err"
12443 echo "$ac_t""no" 1>&6
12446 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
12447 echo "configure:12448: checking for krb5_encrypt_data in -lk5crypto" >&5
12448 ac_lib_var
=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
12449 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12450 echo $ac_n "(cached) $ac_c" 1>&6
12452 ac_save_LIBS
="$LIBS"
12453 LIBS
="-lk5crypto $LIBS"
12454 cat > conftest.
$ac_ext <<EOF
12455 #line 12456 "configure"
12456 #include "confdefs.h"
12457 /* Override any gcc2 internal prototype to avoid an error. */
12458 /* We use char because int might match the return type of a gcc2
12459 builtin and then its argument prototype would still apply. */
12460 char krb5_encrypt_data();
12463 krb5_encrypt_data()
12466 if { (eval echo configure
:12467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12468 eval "ac_cv_lib_$ac_lib_var=yes"
12470 echo "configure: failed program was:" >&5
12471 cat conftest.
$ac_ext >&5
12473 eval "ac_cv_lib_$ac_lib_var=no"
12476 LIBS
="$ac_save_LIBS"
12479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12480 echo "$ac_t""yes" 1>&6
12481 LIBS
="$LIBS -lk5crypto"
12483 echo "$ac_t""no" 1>&6
12487 ########################################################
12488 # now see if we can find the krb5 libs in standard paths
12489 # or as specified above
12490 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
12491 echo "configure:12492: checking for krb5_mk_req_extended in -lkrb5" >&5
12492 ac_lib_var
=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
12493 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12494 echo $ac_n "(cached) $ac_c" 1>&6
12496 ac_save_LIBS
="$LIBS"
12497 LIBS
="-lkrb5 $LIBS"
12498 cat > conftest.
$ac_ext <<EOF
12499 #line 12500 "configure"
12500 #include "confdefs.h"
12501 /* Override any gcc2 internal prototype to avoid an error. */
12502 /* We use char because int might match the return type of a gcc2
12503 builtin and then its argument prototype would still apply. */
12504 char krb5_mk_req_extended();
12507 krb5_mk_req_extended()
12510 if { (eval echo configure
:12511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12512 eval "ac_cv_lib_$ac_lib_var=yes"
12514 echo "configure: failed program was:" >&5
12515 cat conftest.
$ac_ext >&5
12517 eval "ac_cv_lib_$ac_lib_var=no"
12520 LIBS
="$ac_save_LIBS"
12523 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12524 echo "$ac_t""yes" 1>&6
12525 LIBS
="$LIBS -lkrb5";
12526 cat >> confdefs.h
<<\EOF
12527 #define HAVE_KRB5 1
12531 echo "$ac_t""no" 1>&6
12535 ########################################################
12536 # now see if we can find the gssapi libs in standard paths
12537 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
12538 echo "configure:12539: checking for gss_display_status in -lgssapi_krb5" >&5
12539 ac_lib_var
=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
12540 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12541 echo $ac_n "(cached) $ac_c" 1>&6
12543 ac_save_LIBS
="$LIBS"
12544 LIBS
="-lgssapi_krb5 $LIBS"
12545 cat > conftest.
$ac_ext <<EOF
12546 #line 12547 "configure"
12547 #include "confdefs.h"
12548 /* Override any gcc2 internal prototype to avoid an error. */
12549 /* We use char because int might match the return type of a gcc2
12550 builtin and then its argument prototype would still apply. */
12551 char gss_display_status();
12554 gss_display_status()
12557 if { (eval echo configure
:12558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12559 eval "ac_cv_lib_$ac_lib_var=yes"
12561 echo "configure: failed program was:" >&5
12562 cat conftest.
$ac_ext >&5
12564 eval "ac_cv_lib_$ac_lib_var=no"
12567 LIBS
="$ac_save_LIBS"
12570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12571 echo "$ac_t""yes" 1>&6
12572 LIBS
="$LIBS -lgssapi_krb5";
12573 cat >> confdefs.h
<<\EOF
12574 #define HAVE_GSSAPI 1
12578 echo "$ac_t""no" 1>&6
12583 ########################################################
12584 # Compile with LDAP support?
12586 with_ldap_support
=yes
12587 echo $ac_n "checking whether to use LDAP""... $ac_c" 1>&6
12588 echo "configure:12589: checking whether to use LDAP" >&5
12590 # Check whether --with-ldap or --without-ldap was given.
12591 if test "${with_ldap+set}" = set; then
12592 withval
="$with_ldap"
12595 with_ldap_support
=no
12601 echo "$ac_t""$with_ldap_support" 1>&6
12603 if test x
"$with_ldap_support" = x
"yes"; then
12605 ##################################################################
12606 # we might need the lber lib on some systems. To avoid link errors
12607 # this test must be before the libldap test
12608 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
12609 echo "configure:12610: checking for ber_scanf in -llber" >&5
12610 ac_lib_var
=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
12611 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12612 echo $ac_n "(cached) $ac_c" 1>&6
12614 ac_save_LIBS
="$LIBS"
12615 LIBS
="-llber $LIBS"
12616 cat > conftest.
$ac_ext <<EOF
12617 #line 12618 "configure"
12618 #include "confdefs.h"
12619 /* Override any gcc2 internal prototype to avoid an error. */
12620 /* We use char because int might match the return type of a gcc2
12621 builtin and then its argument prototype would still apply. */
12628 if { (eval echo configure
:12629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12630 eval "ac_cv_lib_$ac_lib_var=yes"
12632 echo "configure: failed program was:" >&5
12633 cat conftest.
$ac_ext >&5
12635 eval "ac_cv_lib_$ac_lib_var=no"
12638 LIBS
="$ac_save_LIBS"
12641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12642 echo "$ac_t""yes" 1>&6
12643 LIBS
="$LIBS -llber"
12645 echo "$ac_t""no" 1>&6
12649 ########################################################
12650 # now see if we can find the ldap libs in standard paths
12651 if test x
$have_ldap != xyes
; then
12652 echo $ac_n "checking for ldap_domain2hostlist in -lldap""... $ac_c" 1>&6
12653 echo "configure:12654: checking for ldap_domain2hostlist in -lldap" >&5
12654 ac_lib_var
=`echo ldap'_'ldap_domain2hostlist | sed 'y%./+-%__p_%'`
12655 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12656 echo $ac_n "(cached) $ac_c" 1>&6
12658 ac_save_LIBS
="$LIBS"
12659 LIBS
="-lldap $LIBS"
12660 cat > conftest.
$ac_ext <<EOF
12661 #line 12662 "configure"
12662 #include "confdefs.h"
12663 /* Override any gcc2 internal prototype to avoid an error. */
12664 /* We use char because int might match the return type of a gcc2
12665 builtin and then its argument prototype would still apply. */
12666 char ldap_domain2hostlist();
12669 ldap_domain2hostlist()
12672 if { (eval echo configure
:12673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12674 eval "ac_cv_lib_$ac_lib_var=yes"
12676 echo "configure: failed program was:" >&5
12677 cat conftest.
$ac_ext >&5
12679 eval "ac_cv_lib_$ac_lib_var=no"
12682 LIBS
="$ac_save_LIBS"
12685 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12686 echo "$ac_t""yes" 1>&6
12687 LIBS
="$LIBS -lldap";
12688 cat >> confdefs.h
<<\EOF
12689 #define HAVE_LDAP 1
12693 echo "$ac_t""no" 1>&6
12697 ########################################################
12698 # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
12699 # Check found in pam_ldap 145.
12700 for ac_func
in ldap_set_rebind_proc
12702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12703 echo "configure:12704: checking for $ac_func" >&5
12704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12705 echo $ac_n "(cached) $ac_c" 1>&6
12707 cat > conftest.
$ac_ext <<EOF
12708 #line 12709 "configure"
12709 #include "confdefs.h"
12710 /* System header to define __stub macros and hopefully few prototypes,
12711 which can conflict with char $ac_func(); below. */
12712 #include <assert.h>
12713 /* Override any gcc2 internal prototype to avoid an error. */
12714 /* We use char because int might match the return type of a gcc2
12715 builtin and then its argument prototype would still apply. */
12720 /* The GNU C library defines this for functions which it implements
12721 to always fail with ENOSYS. Some functions are actually named
12722 something starting with __ and the normal name is an alias. */
12723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12731 if { (eval echo configure
:12732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12733 eval "ac_cv_func_$ac_func=yes"
12735 echo "configure: failed program was:" >&5
12736 cat conftest.
$ac_ext >&5
12738 eval "ac_cv_func_$ac_func=no"
12743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12744 echo "$ac_t""yes" 1>&6
12745 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12746 cat >> confdefs.h
<<EOF
12747 #define $ac_tr_func 1
12751 echo "$ac_t""no" 1>&6
12755 echo $ac_n "checking whether ldap_set_rebind_proc takes 3 arguments""... $ac_c" 1>&6
12756 echo "configure:12757: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
12757 if eval "test \"`echo '$''{'pam_ldap_cv_ldap_set_rebind_proc'+set}'`\" = set"; then
12758 echo $ac_n "(cached) $ac_c" 1>&6
12761 cat > conftest.
$ac_ext <<EOF
12762 #line 12763 "configure"
12763 #include "confdefs.h"
12768 ldap_set_rebind_proc(0, 0, 0);
12771 if { (eval echo configure
:12772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12773 pam_ldap_cv_ldap_set_rebind_proc
=3
12775 echo "configure: failed program was:" >&5
12776 cat conftest.
$ac_ext >&5
12778 pam_ldap_cv_ldap_set_rebind_proc
=2
12783 echo "$ac_t""$pam_ldap_cv_ldap_set_rebind_proc" 1>&6
12784 cat >> confdefs.h
<<EOF
12785 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
12791 ########################################################
12792 # Compile with MySQL support?
12793 # Check whether --with-mysql-prefix or --without-mysql-prefix was given.
12794 if test "${with_mysql_prefix+set}" = set; then
12795 withval
="$with_mysql_prefix"
12796 mysql_prefix
="$withval"
12801 # Check whether --with-mysql-exec-prefix or --without-mysql-exec-prefix was given.
12802 if test "${with_mysql_exec_prefix+set}" = set; then
12803 withval
="$with_mysql_exec_prefix"
12804 mysql_exec_prefix
="$withval"
12806 mysql_exec_prefix
=""
12809 # Check whether --enable-mysqltest or --disable-mysqltest was given.
12810 if test "${enable_mysqltest+set}" = set; then
12811 enableval
="$enable_mysqltest"
12814 enable_mysqltest
=yes
12818 if test x
$mysql_exec_prefix != x
; then
12819 mysql_args
="$mysql_args --exec-prefix=$mysql_exec_prefix"
12820 if test x
${MYSQL_CONFIG+set} != xset
; then
12821 MYSQL_CONFIG
=$mysql_exec_prefix/bin
/mysql_config
12824 if test x
$mysql_prefix != x
; then
12825 mysql_args
="$mysql_args --prefix=$mysql_prefix"
12826 if test x
${MYSQL_CONFIG+set} != xset
; then
12827 MYSQL_CONFIG
=$mysql_prefix/bin
/mysql_config
12832 # Extract the first word of "mysql_config", so it can be a program name with args.
12833 set dummy mysql_config
; ac_word
=$2
12834 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12835 echo "configure:12836: checking for $ac_word" >&5
12836 if eval "test \"`echo '$''{'ac_cv_path_MYSQL_CONFIG'+set}'`\" = set"; then
12837 echo $ac_n "(cached) $ac_c" 1>&6
12839 case "$MYSQL_CONFIG" in
12841 ac_cv_path_MYSQL_CONFIG
="$MYSQL_CONFIG" # Let the user override the test with a path.
12844 ac_cv_path_MYSQL_CONFIG
="$MYSQL_CONFIG" # Let the user override the test with a dos path.
12847 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
12849 for ac_dir
in $ac_dummy; do
12850 test -z "$ac_dir" && ac_dir
=.
12851 if test -f $ac_dir/$ac_word; then
12852 ac_cv_path_MYSQL_CONFIG
="$ac_dir/$ac_word"
12857 test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG
="no"
12861 MYSQL_CONFIG
="$ac_cv_path_MYSQL_CONFIG"
12862 if test -n "$MYSQL_CONFIG"; then
12863 echo "$ac_t""$MYSQL_CONFIG" 1>&6
12865 echo "$ac_t""no" 1>&6
12868 min_mysql_version
=0.11.0
12869 echo $ac_n "checking for MYSQL - version >= $min_mysql_version""... $ac_c" 1>&6
12870 echo "configure:12871: checking for MYSQL - version >= $min_mysql_version" >&5
12872 if test "$MYSQL_CONFIG" = "no" ; then
12875 MYSQL_CFLAGS
=`$MYSQL_CONFIG $mysqlconf_args --cflags | sed -e "s/'//g"`
12876 MYSQL_LIBS
=`$MYSQL_CONFIG $mysqlconf_args --libs | sed -e "s/'//g"`
12878 mysql_major_version
=`$MYSQL_CONFIG $mysql_args --version | \
12879 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12880 mysql_minor_version
=`$MYSQL_CONFIG $mysql_args --version | \
12881 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12882 mysql_micro_version
=`$MYSQL_CONFIG $mysql_config_args --version | \
12883 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12884 if test "x$enable_mysqltest" = "xyes" ; then
12885 ac_save_CFLAGS
="$CFLAGS"
12886 ac_save_LIBS
="$LIBS"
12887 CFLAGS
="$CFLAGS $MYSQL_CFLAGS"
12888 LIBS
="$LIBS $MYSQL_LIBS"
12889 rm -f conf.mysqltest
12890 if test "$cross_compiling" = yes; then
12891 echo $ac_n "cross compiling; assumed OK... $ac_c"
12893 cat > conftest.
$ac_ext <<EOF
12894 #line 12895 "configure"
12895 #include "confdefs.h"
12898 #include <stdlib.h>
12899 #include <string.h>
12903 my_strdup (char *str)
12909 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12910 strcpy (new_str, str);
12918 int main (int argc, char *argv[])
12920 int major, minor, micro;
12923 /* This hangs on some systems (?)
12924 system ("touch conf.mysqltest");
12926 { FILE *fp = fopen("conf.mysqltest", "a"); if ( fp ) fclose(fp); }
12928 /* HP/UX 9 (%@#!) writes to sscanf strings */
12929 tmp_version = my_strdup("$min_mysql_version");
12930 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
12931 printf("%s, bad version string\n", "$min_mysql_version");
12935 if (($mysql_major_version > major) ||
12936 (($mysql_major_version == major) && ($mysql_minor_version > minor)) ||
12937 (($mysql_major_version == major) && ($mysql_minor_version == minor) && ($mysql_micro_version >= micro)))
12943 printf("\n*** 'mysql_config --version' returned %d.%d.%d, but the minimum version\n", $mysql_major_version, $mysql_minor_version, $mysql_micro_version);
12944 printf("*** of MYSQL required is %d.%d.%d. If mysql_config is correct, then it is\n", major, minor, micro);
12945 printf("*** best to upgrade to the required version.\n");
12946 printf("*** If mysql_config was wrong, set the environment variable MYSQL_CONFIG\n");
12947 printf("*** to point to the correct copy of mysql_config, and remove the file\n");
12948 printf("*** config.cache before re-running configure\n");
12955 if { (eval echo configure
:12956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12959 echo "configure: failed program was:" >&5
12960 cat conftest.
$ac_ext >&5
12967 CFLAGS
="$ac_save_CFLAGS"
12968 LIBS
="$ac_save_LIBS"
12971 if test "x$no_mysql" = x
; then
12972 echo "$ac_t""yes" 1>&6
12973 MODULE_MYSQL
=bin
/mysql.so
12975 echo "$ac_t""no" 1>&6
12976 if test "$MYSQL_CONFIG" = "no" ; then
12977 echo "*** The mysql_config script installed by MYSQL could not be found"
12978 echo "*** If MYSQL was installed in PREFIX, make sure PREFIX/bin is in"
12979 echo "*** your path, or set the MYSQL_CONFIG environment variable to the"
12980 echo "*** full path to mysql_config."
12982 if test -f conf.mysqltest
; then
12985 echo "*** Could not run MYSQL test program, checking why..."
12986 CFLAGS
="$CFLAGS $MYSQL_CFLAGS"
12987 LIBS
="$LIBS $MYSQL_LIBS"
12988 cat > conftest.
$ac_ext <<EOF
12989 #line 12990 "configure"
12990 #include "confdefs.h"
12995 int main(int argc, char *argv[])
12998 #define main K_and_R_C_main
13004 if { (eval echo configure
:13005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13006 echo "*** The test program compiled, but did not run. This usually means"
13007 echo "*** that the run-time linker is not finding MYSQL or finding the wrong"
13008 echo "*** version of MYSQL. If it is not finding MYSQL, you'll need to set your"
13009 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13010 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13011 echo "*** is required on your system"
13013 echo "*** If you have an old version installed, it is best to remove it, although"
13014 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13016 echo "configure: failed program was:" >&5
13017 cat conftest.
$ac_ext >&5
13019 echo "*** The test program failed to compile or link. See the file config.log for the"
13020 echo "*** exact error that occured. This usually means MYSQL was incorrectly installed"
13021 echo "*** or that you have moved MYSQL since it was installed. In the latter case, you"
13022 echo "*** may want to edit the mysql_config script: $MYSQL_CONFIG"
13025 CFLAGS
="$ac_save_CFLAGS"
13026 LIBS
="$ac_save_LIBS"
13035 rm -f conf.mysqltest
13037 CFLAGS
="$CFLAGS $MYSQL_CFLAGS"
13040 ########################################################
13041 # Compile with XML support?
13043 # Check whether --with-xml-prefix or --without-xml-prefix was given.
13044 if test "${with_xml_prefix+set}" = set; then
13045 withval
="$with_xml_prefix"
13046 xml_config_prefix
="$withval"
13048 xml_config_prefix
=""
13051 # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
13052 if test "${with_xml_exec_prefix+set}" = set; then
13053 withval
="$with_xml_exec_prefix"
13054 xml_config_exec_prefix
="$withval"
13056 xml_config_exec_prefix
=""
13059 # Check whether --enable-xmltest or --disable-xmltest was given.
13060 if test "${enable_xmltest+set}" = set; then
13061 enableval
="$enable_xmltest"
13068 if test x
$xml_config_exec_prefix != x
; then
13069 xml_config_args
="$xml_config_args --exec-prefix=$xml_config_exec_prefix"
13070 if test x
${XML2_CONFIG+set} != xset
; then
13071 XML2_CONFIG
=$xml_config_exec_prefix/bin
/xml2-config
13074 if test x
$xml_config_prefix != x
; then
13075 xml_config_args
="$xml_config_args --prefix=$xml_config_prefix"
13076 if test x
${XML2_CONFIG+set} != xset
; then
13077 XML2_CONFIG
=$xml_config_prefix/bin
/xml2-config
13081 # Extract the first word of "xml2-config", so it can be a program name with args.
13082 set dummy xml2-config
; ac_word
=$2
13083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13084 echo "configure:13085: checking for $ac_word" >&5
13085 if eval "test \"`echo '$''{'ac_cv_path_XML2_CONFIG'+set}'`\" = set"; then
13086 echo $ac_n "(cached) $ac_c" 1>&6
13088 case "$XML2_CONFIG" in
13090 ac_cv_path_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test with a path.
13093 ac_cv_path_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test with a dos path.
13096 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
13098 for ac_dir
in $ac_dummy; do
13099 test -z "$ac_dir" && ac_dir
=.
13100 if test -f $ac_dir/$ac_word; then
13101 ac_cv_path_XML2_CONFIG
="$ac_dir/$ac_word"
13106 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG
="no"
13110 XML2_CONFIG
="$ac_cv_path_XML2_CONFIG"
13111 if test -n "$XML2_CONFIG"; then
13112 echo "$ac_t""$XML2_CONFIG" 1>&6
13114 echo "$ac_t""no" 1>&6
13117 min_xml_version
=2.0.0
13118 echo $ac_n "checking for libxml - version >= $min_xml_version""... $ac_c" 1>&6
13119 echo "configure:13120: checking for libxml - version >= $min_xml_version" >&5
13121 if test "$XML2_CONFIG" = "no" ; then
13124 XML_CFLAGS
=`$XML2_CONFIG $xml_config_args --cflags`
13125 XML_LIBS
=`$XML2_CONFIG $xml_config_args --libs`
13126 xml_config_major_version
=`$XML2_CONFIG $xml_config_args --version | \
13127 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13128 xml_config_minor_version
=`$XML2_CONFIG $xml_config_args --version | \
13129 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13130 xml_config_micro_version
=`$XML2_CONFIG $xml_config_args --version | \
13131 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13132 if test "x$enable_xmltest" = "xyes" ; then
13133 ac_save_CFLAGS
="$CFLAGS"
13134 ac_save_LIBS
="$LIBS"
13135 CFLAGS
="$CFLAGS $XML_CFLAGS"
13136 LIBS
="$XML_LIBS $LIBS"
13138 if test "$cross_compiling" = yes; then
13139 echo $ac_n "cross compiling; assumed OK... $ac_c"
13141 cat > conftest.
$ac_ext <<EOF
13142 #line 13143 "configure"
13143 #include "confdefs.h"
13145 #include <stdlib.h>
13147 #include <string.h>
13148 #include <libxml/xmlversion.h>
13153 int xml_major_version, xml_minor_version, xml_micro_version;
13154 int major, minor, micro;
13157 system("touch conf.xmltest");
13159 /* Capture xml2-config output via autoconf/configure variables */
13160 /* HP/UX 9 (%@#!) writes to sscanf strings */
13161 tmp_version = (char *)strdup("$min_xml_version");
13162 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
13163 printf("%s, bad version string from xml2-config\n", "$min_xml_version");
13168 /* Capture the version information from the header files */
13169 tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
13170 if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
13171 printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
13176 /* Compare xml2-config output to the libxml headers */
13177 if ((xml_major_version != $xml_config_major_version) ||
13178 (xml_minor_version != $xml_config_minor_version) ||
13179 (xml_micro_version != $xml_config_micro_version))
13181 printf("*** libxml header files (version %d.%d.%d) do not match\n",
13182 xml_major_version, xml_minor_version, xml_micro_version);
13183 printf("*** xml2-config (version %d.%d.%d)\n",
13184 $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
13187 /* Compare the headers to the library to make sure we match */
13188 /* Less than ideal -- doesn't provide us with return value feedback,
13189 * only exits if there's a serious mismatch between header and library.
13191 LIBXML_TEST_VERSION;
13193 /* Test that the library is greater than our minimum version */
13194 if ((xml_major_version > major) ||
13195 ((xml_major_version == major) && (xml_minor_version > minor)) ||
13196 ((xml_major_version == major) && (xml_minor_version == minor) &&
13197 (xml_micro_version >= micro)))
13203 printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
13204 xml_major_version, xml_minor_version, xml_micro_version);
13205 printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
13206 major, minor, micro);
13207 printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
13209 printf("*** If you have already installed a sufficiently new version, this error\n");
13210 printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
13211 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13212 printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
13213 printf("*** correct copy of xml2-config. (In this case, you will have to\n");
13214 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13215 printf("*** so that the correct libraries are found at run-time))\n");
13221 if { (eval echo configure
:13222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13225 echo "configure: failed program was:" >&5
13226 cat conftest.
$ac_ext >&5
13233 CFLAGS
="$ac_save_CFLAGS"
13234 LIBS
="$ac_save_LIBS"
13238 if test "x$no_xml" = x
; then
13239 echo "$ac_t""yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" 1>&6
13240 MODULE_XML
=bin
/xml.so
13242 echo "$ac_t""no" 1>&6
13243 if test "$XML2_CONFIG" = "no" ; then
13244 echo "*** The xml2-config script installed by LIBXML could not be found"
13245 echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
13246 echo "*** your path, or set the XML2_CONFIG environment variable to the"
13247 echo "*** full path to xml2-config."
13249 if test -f conf.xmltest
; then
13252 echo "*** Could not run libxml test program, checking why..."
13253 CFLAGS
="$CFLAGS $XML_CFLAGS"
13254 LIBS
="$LIBS $XML_LIBS"
13255 cat > conftest.
$ac_ext <<EOF
13256 #line 13257 "configure"
13257 #include "confdefs.h"
13259 #include <libxml/xmlversion.h>
13263 LIBXML_TEST_VERSION; return 0;
13266 if { (eval echo configure
:13267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13268 echo "*** The test program compiled, but did not run. This usually means"
13269 echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
13270 echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
13271 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13272 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13273 echo "*** is required on your system"
13275 echo "*** If you have an old version installed, it is best to remove it, although"
13276 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13278 echo "configure: failed program was:" >&5
13279 cat conftest.
$ac_ext >&5
13281 echo "*** The test program failed to compile or link. See the file config.log for the"
13282 echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
13283 echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
13284 echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
13287 CFLAGS
="$ac_save_CFLAGS"
13288 LIBS
="$ac_save_LIBS"
13300 CFLAGS
="$CFLAGS $XML_CFLAGS"
13303 #################################################
13304 # check for automount support
13305 echo $ac_n "checking whether to use automount""... $ac_c" 1>&6
13306 echo "configure:13307: checking whether to use automount" >&5
13307 # Check whether --with-automount or --without-automount was given.
13308 if test "${with_automount+set}" = set; then
13309 withval
="$with_automount"
13312 echo "$ac_t""yes" 1>&6
13313 cat >> confdefs.h
<<\EOF
13314 #define WITH_AUTOMOUNT 1
13319 echo "$ac_t""no" 1>&6
13323 echo "$ac_t""no" 1>&6
13328 #################################################
13329 # check for smbmount support
13330 echo $ac_n "checking whether to use smbmount""... $ac_c" 1>&6
13331 echo "configure:13332: checking whether to use smbmount" >&5
13332 # Check whether --with-smbmount or --without-smbmount was given.
13333 if test "${with_smbmount+set}" = set; then
13334 withval
="$with_smbmount"
13339 echo "$ac_t""yes" 1>&6
13340 cat >> confdefs.h
<<\EOF
13341 #define WITH_SMBMOUNT 1
13344 EXTRA_BIN_PROGS
="$EXTRA_BIN_PROGS bin/smbmount bin/smbmnt bin/smbumount"
13347 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
13352 echo "$ac_t""no" 1>&6
13356 echo "$ac_t""no" 1>&6
13362 #################################################
13363 # check for a PAM clear-text auth, accounts, password and session support
13364 with_pam_for_crypt
=no
13365 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
13366 echo "configure:13367: checking whether to use PAM" >&5
13367 # Check whether --with-pam or --without-pam was given.
13368 if test "${with_pam+set}" = set; then
13369 withval
="$with_pam"
13372 echo "$ac_t""yes" 1>&6
13373 cat >> confdefs.h
<<\EOF
13377 AUTHLIBS
="$AUTHLIBS -lpam"
13378 with_pam_for_crypt
=yes
13381 echo "$ac_t""no" 1>&6
13385 echo "$ac_t""no" 1>&6
13390 # we can't build a pam module if we don't have pam.
13391 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
13392 echo "configure:13393: checking for pam_get_data in -lpam" >&5
13393 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
13394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13395 echo $ac_n "(cached) $ac_c" 1>&6
13397 ac_save_LIBS
="$LIBS"
13399 cat > conftest.
$ac_ext <<EOF
13400 #line 13401 "configure"
13401 #include "confdefs.h"
13402 /* Override any gcc2 internal prototype to avoid an error. */
13403 /* We use char because int might match the return type of a gcc2
13404 builtin and then its argument prototype would still apply. */
13405 char pam_get_data();
13411 if { (eval echo configure
:13412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13413 eval "ac_cv_lib_$ac_lib_var=yes"
13415 echo "configure: failed program was:" >&5
13416 cat conftest.
$ac_ext >&5
13418 eval "ac_cv_lib_$ac_lib_var=no"
13421 LIBS
="$ac_save_LIBS"
13424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13425 echo "$ac_t""yes" 1>&6
13426 cat >> confdefs.h
<<\EOF
13427 #define HAVE_LIBPAM 1
13431 echo "$ac_t""no" 1>&6
13435 #################################################
13436 # check for pam_smbpass support
13437 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
13438 echo "configure:13439: checking whether to use pam_smbpass" >&5
13439 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
13440 if test "${with_pam_smbpass+set}" = set; then
13441 withval
="$with_pam_smbpass"
13444 echo "$ac_t""yes" 1>&6
13446 # Conditions under which pam_smbpass should not be built.
13448 if test x
$PICFLAG = x
; then
13449 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
13450 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
13451 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
13453 SHLIB_PROGS
="$SHLIB_PROGS bin/pam_smbpass.so"
13457 echo "$ac_t""no" 1>&6
13461 echo "$ac_t""no" 1>&6
13467 ###############################################
13468 # test for where we get crypt() from, but only
13470 if test x
"$with_pam_for_crypt" = x
"no"; then
13471 for ac_func
in crypt
13473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13474 echo "configure:13475: checking for $ac_func" >&5
13475 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13476 echo $ac_n "(cached) $ac_c" 1>&6
13478 cat > conftest.
$ac_ext <<EOF
13479 #line 13480 "configure"
13480 #include "confdefs.h"
13481 /* System header to define __stub macros and hopefully few prototypes,
13482 which can conflict with char $ac_func(); below. */
13483 #include <assert.h>
13484 /* Override any gcc2 internal prototype to avoid an error. */
13485 /* We use char because int might match the return type of a gcc2
13486 builtin and then its argument prototype would still apply. */
13491 /* The GNU C library defines this for functions which it implements
13492 to always fail with ENOSYS. Some functions are actually named
13493 something starting with __ and the normal name is an alias. */
13494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13502 if { (eval echo configure
:13503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13504 eval "ac_cv_func_$ac_func=yes"
13506 echo "configure: failed program was:" >&5
13507 cat conftest.
$ac_ext >&5
13509 eval "ac_cv_func_$ac_func=no"
13514 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13515 echo "$ac_t""yes" 1>&6
13516 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13517 cat >> confdefs.h
<<EOF
13518 #define $ac_tr_func 1
13522 echo "$ac_t""no" 1>&6
13526 if test x
"$ac_cv_func_crypt" = x
"no"; then
13527 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13528 echo "configure:13529: checking for crypt in -lcrypt" >&5
13529 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
13530 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13531 echo $ac_n "(cached) $ac_c" 1>&6
13533 ac_save_LIBS
="$LIBS"
13534 LIBS
="-lcrypt $LIBS"
13535 cat > conftest.
$ac_ext <<EOF
13536 #line 13537 "configure"
13537 #include "confdefs.h"
13538 /* Override any gcc2 internal prototype to avoid an error. */
13539 /* We use char because int might match the return type of a gcc2
13540 builtin and then its argument prototype would still apply. */
13547 if { (eval echo configure
:13548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13549 eval "ac_cv_lib_$ac_lib_var=yes"
13551 echo "configure: failed program was:" >&5
13552 cat conftest.
$ac_ext >&5
13554 eval "ac_cv_lib_$ac_lib_var=no"
13557 LIBS
="$ac_save_LIBS"
13560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13561 echo "$ac_t""yes" 1>&6
13562 AUTHLIBS
="$AUTHLIBS -lcrypt";
13563 cat >> confdefs.h
<<\EOF
13564 #define HAVE_CRYPT 1
13568 echo "$ac_t""no" 1>&6
13575 ## moved after the check for -lcrypt in order to
13576 ## ensure that the necessary libraries are included
13577 ## check checking for truncated salt. Wrapped by the
13578 ## $with_pam_for_crypt variable as above --jerry
13580 if test $with_pam_for_crypt = no
; then
13581 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
13582 echo "configure:13583: checking for a crypt that needs truncated salt" >&5
13583 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
13584 echo $ac_n "(cached) $ac_c" 1>&6
13588 LIBS
="$AUTHLIBS $LIBS"
13589 if test "$cross_compiling" = yes; then
13590 samba_cv_HAVE_TRUNCATED_SALT
=cross
13592 cat > conftest.
$ac_ext <<EOF
13593 #line 13594 "configure"
13594 #include "confdefs.h"
13595 #include "${srcdir-.}/tests/crypttest.c"
13597 if { (eval echo configure
:13598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13599 samba_cv_HAVE_TRUNCATED_SALT
=no
13601 echo "configure: failed program was:" >&5
13602 cat conftest.
$ac_ext >&5
13604 samba_cv_HAVE_TRUNCATED_SALT
=yes
13612 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
13613 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
13614 cat >> confdefs.h
<<\EOF
13615 #define HAVE_TRUNCATED_SALT 1
13621 # New experimental SAM system
13623 echo $ac_n "checking whether to build the new (experimental) SAM database""... $ac_c" 1>&6
13624 echo "configure:13625: checking whether to build the new (experimental) SAM database" >&5
13625 # Check whether --with-sam or --without-sam was given.
13626 if test "${with_sam+set}" = set; then
13627 withval
="$with_sam"
13630 echo "$ac_t""yes" 1>&6
13631 cat >> confdefs.h
<<\EOF
13637 echo "$ac_t""no" 1>&6
13641 echo "$ac_t""no" 1>&6
13647 ########################################################################################
13649 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
13651 ########################################################################################
13653 #################################################
13654 # check for a LDAP password database configuration backwards compatibility
13655 echo $ac_n "checking whether to use LDAP SAM 2.2 compatible configuration""... $ac_c" 1>&6
13656 echo "configure:13657: checking whether to use LDAP SAM 2.2 compatible configuration" >&5
13657 # Check whether --with-ldapsam or --without-ldapsam was given.
13658 if test "${with_ldapsam+set}" = set; then
13659 withval
="$with_ldapsam"
13662 echo "$ac_t""yes" 1>&6
13663 cat >> confdefs.h
<<\EOF
13664 #define WITH_LDAP_SAMCONFIG 1
13669 echo "$ac_t""no" 1>&6
13673 echo "$ac_t""no" 1>&6
13678 #################################################
13679 # check for a TDB password database
13680 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
13681 echo "configure:13682: checking whether to use TDB SAM database" >&5
13682 # Check whether --with-tdbsam or --without-tdbsam was given.
13683 if test "${with_tdbsam+set}" = set; then
13684 withval
="$with_tdbsam"
13687 echo "$ac_t""yes" 1>&6
13688 cat >> confdefs.h
<<\EOF
13689 #define WITH_TDB_SAM 1
13694 echo "$ac_t""no" 1>&6
13698 echo "$ac_t""no" 1>&6
13703 #################################################
13704 # check for a NISPLUS password database
13705 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
13706 echo "configure:13707: checking whether to use NISPLUS SAM database" >&5
13707 # Check whether --with-nisplussam or --without-nisplussam was given.
13708 if test "${with_nisplussam+set}" = set; then
13709 withval
="$with_nisplussam"
13712 echo "$ac_t""yes" 1>&6
13713 cat >> confdefs.h
<<\EOF
13714 #define WITH_NISPLUS_SAM 1
13719 echo "$ac_t""no" 1>&6
13723 echo "$ac_t""no" 1>&6
13728 ########################################################################################
13730 ## END OF TESTS FOR SAM BACKENDS.
13732 ########################################################################################
13734 #################################################
13735 # check for a NISPLUS_HOME support
13736 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
13737 echo "configure:13738: checking whether to use NISPLUS_HOME" >&5
13738 # Check whether --with-nisplus-home or --without-nisplus-home was given.
13739 if test "${with_nisplus_home+set}" = set; then
13740 withval
="$with_nisplus_home"
13743 echo "$ac_t""yes" 1>&6
13744 cat >> confdefs.h
<<\EOF
13745 #define WITH_NISPLUS_HOME 1
13750 echo "$ac_t""no" 1>&6
13754 echo "$ac_t""no" 1>&6
13759 #################################################
13760 # check for syslog logging
13761 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
13762 echo "configure:13763: checking whether to use syslog logging" >&5
13763 # Check whether --with-syslog or --without-syslog was given.
13764 if test "${with_syslog+set}" = set; then
13765 withval
="$with_syslog"
13768 echo "$ac_t""yes" 1>&6
13769 cat >> confdefs.h
<<\EOF
13770 #define WITH_SYSLOG 1
13775 echo "$ac_t""no" 1>&6
13779 echo "$ac_t""no" 1>&6
13784 #################################################
13785 # check for a shared memory profiling support
13786 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
13787 echo "configure:13788: checking whether to use profiling" >&5
13788 # Check whether --with-profiling-data or --without-profiling-data was given.
13789 if test "${with_profiling_data+set}" = set; then
13790 withval
="$with_profiling_data"
13793 echo "$ac_t""yes" 1>&6
13794 cat >> confdefs.h
<<\EOF
13795 #define WITH_PROFILE 1
13800 echo "$ac_t""no" 1>&6
13804 echo "$ac_t""no" 1>&6
13810 #################################################
13811 # check for experimental disk-quotas support
13812 QUOTAOBJS
=smbd
/noquotas.o
13814 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
13815 echo "configure:13816: checking whether to support disk-quotas" >&5
13816 # Check whether --with-quotas or --without-quotas was given.
13817 if test "${with_quotas+set}" = set; then
13818 withval
="$with_quotas"
13821 echo "$ac_t""yes" 1>&6
13824 # Check for kernel 2.4.x quota braindamage...
13825 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
13826 echo "configure:13827: checking for linux 2.4.x quota braindamage.." >&5
13827 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
13828 echo $ac_n "(cached) $ac_c" 1>&6
13831 cat > conftest.
$ac_ext <<EOF
13832 #line 13833 "configure"
13833 #include "confdefs.h"
13835 #include <sys/types.h>
13836 #include <asm/types.h>
13837 #include <linux/quota.h>
13838 #include <mntent.h>
13839 #include <linux/unistd.h>
13841 struct mem_dqblk D;
13844 if { (eval echo configure
:13845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13846 samba_cv_linux_2_4_quota_braindamage
=yes
13848 echo "configure: failed program was:" >&5
13849 cat conftest.
$ac_ext >&5
13851 samba_cv_linux_2_4_quota_braindamage
=no
13856 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
13857 if test x
"$samba_cv_linux_2_4_quota_braindamage" = x
"yes"; then
13858 cat >> confdefs.h
<<\EOF
13859 #define LINUX_QUOTAS_2 1
13863 cat >> confdefs.h
<<\EOF
13864 #define LINUX_QUOTAS_1 1
13872 QUOTAOBJS
=smbd
/quotas.o
13873 cat >> confdefs.h
<<\EOF
13874 #define WITH_QUOTAS 1
13879 echo "$ac_t""no" 1>&6
13883 echo "$ac_t""no" 1>&6
13889 #################################################
13890 # check for experimental utmp accounting
13892 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
13893 echo "configure:13894: checking whether to support utmp accounting" >&5
13894 # Check whether --with-utmp or --without-utmp was given.
13895 if test "${with_utmp+set}" = set; then
13896 withval
="$with_utmp"
13899 echo "$ac_t""yes" 1>&6
13900 cat >> confdefs.h
<<\EOF
13901 #define WITH_UTMP 1
13906 echo "$ac_t""no" 1>&6
13910 echo "$ac_t""no" 1>&6
13915 #################################################
13916 # choose native language(s) of man pages
13917 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
13918 echo "configure:13919: checking chosen man pages' language(s)" >&5
13919 # Check whether --with-manpages-langs or --without-manpages-langs was given.
13920 if test "${with_manpages_langs+set}" = set; then
13921 withval
="$with_manpages_langs"
13924 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
13928 manlangs
="$withval"
13932 echo "$ac_t""$manlangs" 1>&6
13933 manlangs
=`echo $manlangs | sed "s/,/ /g"` # replacing commas with spaces to produce a list
13937 echo "$ac_t""$manlangs" 1>&6
13943 #################################################
13944 # should we build libsmbclient?
13946 LIBSMBCLIENT_SHARED
=
13948 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
13949 echo "configure:13950: checking whether to build the libsmbclient shared library" >&5
13950 # Check whether --with-libsmbclient or --without-libsmbclient was given.
13951 if test "${with_libsmbclient+set}" = set; then
13952 withval
="$with_libsmbclient"
13955 echo "$ac_t""no" 1>&6
13958 if test $BLDSHARED = true
; then
13959 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
13960 LIBSMBCLIENT
=libsmbclient
13961 echo "$ac_t""yes" 1>&6
13963 echo "$ac_t""no shared library support" 1>&6
13968 echo "$ac_t""yes" 1>&6
13974 #################################################
13975 # these tests are taken from the GNU fileutils package
13976 echo "checking how to get filesystem space usage" 1>&6
13977 echo "configure:13978: checking how to get filesystem space usage" >&5
13980 # Test for statvfs64.
13981 if test $space = no
; then
13983 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
13984 echo "configure:13985: checking statvfs64 function (SVR4)" >&5
13985 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
13986 echo $ac_n "(cached) $ac_c" 1>&6
13988 if test "$cross_compiling" = yes; then
13989 fu_cv_sys_stat_statvfs64
=cross
13991 cat > conftest.
$ac_ext <<EOF
13992 #line 13993 "configure"
13993 #include "confdefs.h"
13995 #if defined(HAVE_UNISTD_H)
13996 #include <unistd.h>
13998 #include <sys/types.h>
13999 #include <sys/statvfs.h>
14002 struct statvfs64 fsd;
14003 exit (statvfs64 (".", &fsd));
14006 if { (eval echo configure
:14007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14008 fu_cv_sys_stat_statvfs64
=yes
14010 echo "configure: failed program was:" >&5
14011 cat conftest.
$ac_ext >&5
14013 fu_cv_sys_stat_statvfs64
=no
14020 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
14021 if test $fu_cv_sys_stat_statvfs64 = yes; then
14023 cat >> confdefs.h
<<\EOF
14024 #define STAT_STATVFS64 1
14030 # Perform only the link test since it seems there are no variants of the
14031 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
14032 # because that got a false positive on SCO OSR5. Adding the declaration
14033 # of a `struct statvfs' causes this test to fail (as it should) on such
14034 # systems. That system is reported to work fine with STAT_STATFS4 which
14035 # is what it gets when this test fails.
14036 if test $space = no
; then
14038 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
14039 echo "configure:14040: checking statvfs function (SVR4)" >&5
14040 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
14041 echo $ac_n "(cached) $ac_c" 1>&6
14043 cat > conftest.
$ac_ext <<EOF
14044 #line 14045 "configure"
14045 #include "confdefs.h"
14046 #include <sys/types.h>
14047 #include <sys/statvfs.h>
14049 struct statvfs fsd; statvfs (0, &fsd);
14052 if { (eval echo configure
:14053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14054 fu_cv_sys_stat_statvfs
=yes
14056 echo "configure: failed program was:" >&5
14057 cat conftest.
$ac_ext >&5
14059 fu_cv_sys_stat_statvfs
=no
14064 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
14065 if test $fu_cv_sys_stat_statvfs = yes; then
14067 cat >> confdefs.h
<<\EOF
14068 #define STAT_STATVFS 1
14074 if test $space = no
; then
14075 # DEC Alpha running OSF/1
14076 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
14077 echo "configure:14078: checking for 3-argument statfs function (DEC OSF/1)" >&5
14078 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
14079 echo $ac_n "(cached) $ac_c" 1>&6
14081 if test "$cross_compiling" = yes; then
14082 fu_cv_sys_stat_statfs3_osf1
=no
14084 cat > conftest.
$ac_ext <<EOF
14085 #line 14086 "configure"
14086 #include "confdefs.h"
14088 #include <sys/param.h>
14089 #include <sys/types.h>
14090 #include <sys/mount.h>
14095 exit (statfs (".", &fsd, sizeof (struct statfs)));
14098 if { (eval echo configure
:14099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14100 fu_cv_sys_stat_statfs3_osf1
=yes
14102 echo "configure: failed program was:" >&5
14103 cat conftest.
$ac_ext >&5
14105 fu_cv_sys_stat_statfs3_osf1
=no
14112 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
14113 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
14115 cat >> confdefs.h
<<\EOF
14116 #define STAT_STATFS3_OSF1 1
14122 if test $space = no
; then
14124 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
14125 echo "configure:14126: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
14126 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
14127 echo $ac_n "(cached) $ac_c" 1>&6
14129 if test "$cross_compiling" = yes; then
14130 fu_cv_sys_stat_statfs2_bsize
=no
14132 cat > conftest.
$ac_ext <<EOF
14133 #line 14134 "configure"
14134 #include "confdefs.h"
14136 #ifdef HAVE_SYS_PARAM_H
14137 #include <sys/param.h>
14139 #ifdef HAVE_SYS_MOUNT_H
14140 #include <sys/mount.h>
14142 #ifdef HAVE_SYS_VFS_H
14143 #include <sys/vfs.h>
14149 exit (statfs (".", &fsd));
14152 if { (eval echo configure
:14153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14154 fu_cv_sys_stat_statfs2_bsize
=yes
14156 echo "configure: failed program was:" >&5
14157 cat conftest.
$ac_ext >&5
14159 fu_cv_sys_stat_statfs2_bsize
=no
14166 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
14167 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
14169 cat >> confdefs.h
<<\EOF
14170 #define STAT_STATFS2_BSIZE 1
14176 if test $space = no
; then
14178 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
14179 echo "configure:14180: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
14180 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
14181 echo $ac_n "(cached) $ac_c" 1>&6
14183 if test "$cross_compiling" = yes; then
14184 fu_cv_sys_stat_statfs4
=no
14186 cat > conftest.
$ac_ext <<EOF
14187 #line 14188 "configure"
14188 #include "confdefs.h"
14189 #include <sys/types.h>
14190 #include <sys/statfs.h>
14194 exit (statfs (".", &fsd, sizeof fsd, 0));
14197 if { (eval echo configure
:14198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14199 fu_cv_sys_stat_statfs4
=yes
14201 echo "configure: failed program was:" >&5
14202 cat conftest.
$ac_ext >&5
14204 fu_cv_sys_stat_statfs4
=no
14211 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
14212 if test $fu_cv_sys_stat_statfs4 = yes; then
14214 cat >> confdefs.h
<<\EOF
14215 #define STAT_STATFS4 1
14221 if test $space = no
; then
14222 # 4.4BSD and NetBSD
14223 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
14224 echo "configure:14225: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
14225 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
14226 echo $ac_n "(cached) $ac_c" 1>&6
14228 if test "$cross_compiling" = yes; then
14229 fu_cv_sys_stat_statfs2_fsize
=no
14231 cat > conftest.
$ac_ext <<EOF
14232 #line 14233 "configure"
14233 #include "confdefs.h"
14234 #include <sys/types.h>
14235 #ifdef HAVE_SYS_PARAM_H
14236 #include <sys/param.h>
14238 #ifdef HAVE_SYS_MOUNT_H
14239 #include <sys/mount.h>
14245 exit (statfs (".", &fsd));
14248 if { (eval echo configure
:14249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14250 fu_cv_sys_stat_statfs2_fsize
=yes
14252 echo "configure: failed program was:" >&5
14253 cat conftest.
$ac_ext >&5
14255 fu_cv_sys_stat_statfs2_fsize
=no
14262 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
14263 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
14265 cat >> confdefs.h
<<\EOF
14266 #define STAT_STATFS2_FSIZE 1
14272 if test $space = no
; then
14274 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
14275 echo "configure:14276: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
14276 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
14277 echo $ac_n "(cached) $ac_c" 1>&6
14279 if test "$cross_compiling" = yes; then
14280 fu_cv_sys_stat_fs_data
=no
14282 cat > conftest.
$ac_ext <<EOF
14283 #line 14284 "configure"
14284 #include "confdefs.h"
14285 #include <sys/types.h>
14286 #ifdef HAVE_SYS_PARAM_H
14287 #include <sys/param.h>
14289 #ifdef HAVE_SYS_MOUNT_H
14290 #include <sys/mount.h>
14292 #ifdef HAVE_SYS_FS_TYPES_H
14293 #include <sys/fs_types.h>
14297 struct fs_data fsd;
14298 /* Ultrix's statfs returns 1 for success,
14299 0 for not mounted, -1 for failure. */
14300 exit (statfs (".", &fsd) != 1);
14303 if { (eval echo configure
:14304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
14305 fu_cv_sys_stat_fs_data
=yes
14307 echo "configure: failed program was:" >&5
14308 cat conftest.
$ac_ext >&5
14310 fu_cv_sys_stat_fs_data
=no
14317 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
14318 if test $fu_cv_sys_stat_fs_data = yes; then
14320 cat >> confdefs.h
<<\EOF
14321 #define STAT_STATFS2_FS_DATA 1
14328 # As a gating factor for large file support, in order to
14329 # use <4GB files we must have the following minimal support
14331 # long long, and a 64 bit off_t or off64_t.
14332 # If we don't have all of these then disable large
14335 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
14336 echo "configure:14337: checking if large file support can be enabled" >&5
14337 cat > conftest.
$ac_ext <<EOF
14338 #line 14339 "configure"
14339 #include "confdefs.h"
14341 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
14342 #include <sys/types.h>
14351 if { (eval echo configure
:14352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14353 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
14355 echo "configure: failed program was:" >&5
14356 cat conftest.
$ac_ext >&5
14358 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
14361 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
14362 cat >> confdefs.h
<<\EOF
14363 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
14367 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
14369 # Check whether --with-spinlocks or --without-spinlocks was given.
14370 if test "${with_spinlocks+set}" = set; then
14371 withval
="$with_spinlocks"
14375 if test "x$with_spinlocks" = "xyes"; then
14376 cat >> confdefs.h
<<\EOF
14377 #define USE_SPINLOCKS 1
14381 case "$host_cpu" in
14383 cat >> confdefs.h
<<\EOF
14384 #define SPARC_SPINLOCKS 1
14389 i386|i486|i586|i686
)
14390 cat >> confdefs.h
<<\EOF
14391 #define INTEL_SPINLOCKS 1
14397 cat >> confdefs.h
<<\EOF
14398 #define MIPS_SPINLOCKS 1
14404 cat >> confdefs.h
<<\EOF
14405 #define POWERPC_SPINLOCKS 1
14412 #################################################
14413 # check for ACL support
14415 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
14416 echo "configure:14417: checking whether to support ACLs" >&5
14417 # Check whether --with-acl-support or --without-acl-support was given.
14418 if test "${with_acl_support+set}" = set; then
14419 withval
="$with_acl_support"
14425 echo "$ac_t""Using UnixWare ACLs" 1>&6
14426 cat >> confdefs.h
<<\EOF
14427 #define HAVE_UNIXWARE_ACLS 1
14432 echo "$ac_t""Using solaris ACLs" 1>&6
14433 cat >> confdefs.h
<<\EOF
14434 #define HAVE_SOLARIS_ACLS 1
14439 echo "$ac_t""Using HPUX ACLs" 1>&6
14440 cat >> confdefs.h
<<\EOF
14441 #define HAVE_HPUX_ACLS 1
14446 echo "$ac_t""Using IRIX ACLs" 1>&6
14447 cat >> confdefs.h
<<\EOF
14448 #define HAVE_IRIX_ACLS 1
14453 echo "$ac_t""Using AIX ACLs" 1>&6
14454 cat >> confdefs.h
<<\EOF
14455 #define HAVE_AIX_ACLS 1
14460 echo "$ac_t""Using Tru64 ACLs" 1>&6
14461 cat >> confdefs.h
<<\EOF
14462 #define HAVE_TRU64_ACLS 1
14465 LIBS
="$LIBS -lpacl"
14468 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
14469 echo "configure:14470: checking for acl_get_file in -lacl" >&5
14470 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
14471 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14472 echo $ac_n "(cached) $ac_c" 1>&6
14474 ac_save_LIBS
="$LIBS"
14476 cat > conftest.
$ac_ext <<EOF
14477 #line 14478 "configure"
14478 #include "confdefs.h"
14479 /* Override any gcc2 internal prototype to avoid an error. */
14480 /* We use char because int might match the return type of a gcc2
14481 builtin and then its argument prototype would still apply. */
14482 char acl_get_file();
14488 if { (eval echo configure
:14489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14490 eval "ac_cv_lib_$ac_lib_var=yes"
14492 echo "configure: failed program was:" >&5
14493 cat conftest.
$ac_ext >&5
14495 eval "ac_cv_lib_$ac_lib_var=no"
14498 LIBS
="$ac_save_LIBS"
14501 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14502 echo "$ac_t""yes" 1>&6
14503 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14504 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14505 cat >> confdefs.h
<<EOF
14506 #define $ac_tr_lib 1
14512 echo "$ac_t""no" 1>&6
14515 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
14516 echo "configure:14517: checking for ACL support" >&5
14517 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
14518 echo $ac_n "(cached) $ac_c" 1>&6
14521 cat > conftest.
$ac_ext <<EOF
14522 #line 14523 "configure"
14523 #include "confdefs.h"
14524 #include <sys/types.h>
14525 #include <sys/acl.h>
14527 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
14530 if { (eval echo configure
:14531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14532 samba_cv_HAVE_POSIX_ACLS
=yes
14534 echo "configure: failed program was:" >&5
14535 cat conftest.
$ac_ext >&5
14537 samba_cv_HAVE_POSIX_ACLS
=no
14542 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
14543 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
14544 echo "$ac_t""Using posix ACLs" 1>&6
14545 cat >> confdefs.h
<<\EOF
14546 #define HAVE_POSIX_ACLS 1
14549 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
14550 echo "configure:14551: checking for acl_get_perm_np" >&5
14551 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
14552 echo $ac_n "(cached) $ac_c" 1>&6
14555 cat > conftest.
$ac_ext <<EOF
14556 #line 14557 "configure"
14557 #include "confdefs.h"
14558 #include <sys/types.h>
14559 #include <sys/acl.h>
14561 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
14564 if { (eval echo configure
:14565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14566 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
14568 echo "configure: failed program was:" >&5
14569 cat conftest.
$ac_ext >&5
14571 samba_cv_HAVE_ACL_GET_PERM_NP
=no
14576 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
14577 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
14578 cat >> confdefs.h
<<\EOF
14579 #define HAVE_ACL_GET_PERM_NP 1
14588 echo "$ac_t""no" 1>&6
14589 cat >> confdefs.h
<<\EOF
14590 #define HAVE_NO_ACLS 1
14596 cat >> confdefs.h
<<\EOF
14597 #define HAVE_NO_ACLS 1
14600 echo "$ac_t""no" 1>&6
14605 #################################################
14606 # check for sendfile support
14608 with_sendfile_support
=yes
14609 echo $ac_n "checking whether to check to support sendfile""... $ac_c" 1>&6
14610 echo "configure:14611: checking whether to check to support sendfile" >&5
14611 # Check whether --with-sendfile-support or --without-sendfile-support was given.
14612 if test "${with_sendfile_support+set}" = set; then
14613 withval
="$with_sendfile_support"
14617 echo "$ac_t""yes" 1>&6;
14621 echo $ac_n "checking for linux sendfile64 support""... $ac_c" 1>&6
14622 echo "configure:14623: checking for linux sendfile64 support" >&5
14623 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
14624 echo $ac_n "(cached) $ac_c" 1>&6
14627 cat > conftest.
$ac_ext <<EOF
14628 #line 14629 "configure"
14629 #include "confdefs.h"
14630 #include <sys/sendfile.h>
14636 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
14640 if { (eval echo configure
:14641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14642 samba_cv_HAVE_SENDFILE64
=yes
14644 echo "configure: failed program was:" >&5
14645 cat conftest.
$ac_ext >&5
14647 samba_cv_HAVE_SENDFILE64
=no
14652 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
14654 echo $ac_n "checking for linux sendfile support""... $ac_c" 1>&6
14655 echo "configure:14656: checking for linux sendfile support" >&5
14656 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
14657 echo $ac_n "(cached) $ac_c" 1>&6
14660 cat > conftest.
$ac_ext <<EOF
14661 #line 14662 "configure"
14662 #include "confdefs.h"
14663 #include <sys/sendfile.h>
14669 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
14673 if { (eval echo configure
:14674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14675 samba_cv_HAVE_SENDFILE
=yes
14677 echo "configure: failed program was:" >&5
14678 cat conftest.
$ac_ext >&5
14680 samba_cv_HAVE_SENDFILE
=no
14685 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
14687 # Try and cope with broken Linux sendfile....
14688 echo $ac_n "checking for broken linux sendfile support""... $ac_c" 1>&6
14689 echo "configure:14690: checking for broken linux sendfile support" >&5
14690 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_LINUX_SENDFILE'+set}'`\" = set"; then
14691 echo $ac_n "(cached) $ac_c" 1>&6
14694 cat > conftest.
$ac_ext <<EOF
14695 #line 14696 "configure"
14696 #include "confdefs.h"
14698 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
14699 #undef _FILE_OFFSET_BITS
14701 #include <sys/sendfile.h>
14707 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
14711 if { (eval echo configure
:14712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14713 samba_cv_HAVE_BROKEN_LINUX_SENDFILE
=yes
14715 echo "configure: failed program was:" >&5
14716 cat conftest.
$ac_ext >&5
14718 samba_cv_HAVE_BROKEN_LINUX_SENDFILE
=no
14723 echo "$ac_t""$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" 1>&6
14725 if test x
"$samba_cv_HAVE_SENDFILE64" = x
"yes"; then
14726 cat >> confdefs.h
<<\EOF
14727 #define HAVE_SENDFILE64 1
14730 cat >> confdefs.h
<<\EOF
14731 #define LINUX_SENDFILE_API 1
14734 cat >> confdefs.h
<<\EOF
14735 #define WITH_SENDFILE 1
14738 elif test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
14739 cat >> confdefs.h
<<\EOF
14740 #define HAVE_SENDFILE 1
14743 cat >> confdefs.h
<<\EOF
14744 #define LINUX_SENDFILE_API 1
14747 cat >> confdefs.h
<<\EOF
14748 #define WITH_SENDFILE 1
14751 elif test x
"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x
"yes"; then
14752 cat >> confdefs.h
<<\EOF
14753 #define LINUX_BROKEN_SENDFILE_API 1
14756 cat >> confdefs.h
<<\EOF
14757 #define WITH_SENDFILE 1
14761 echo "$ac_t""no" 1>&6;
14766 echo $ac_n "checking for freebsd sendfile support""... $ac_c" 1>&6
14767 echo "configure:14768: checking for freebsd sendfile support" >&5
14768 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
14769 echo $ac_n "(cached) $ac_c" 1>&6
14772 cat > conftest.
$ac_ext <<EOF
14773 #line 14774 "configure"
14774 #include "confdefs.h"
14776 #include <sys/types.h>
14777 #include <unistd.h>
14778 #include <sys/socket.h>
14779 #include <sys/uio.h>
14782 int fromfd, tofd, ret, total=0;
14783 off_t offset, nwritten;
14784 struct sf_hdtr hdr;
14785 struct iovec hdtrl;
14786 hdr.headers = &hdtrl;
14788 hdr.trailers = NULL;
14790 hdtrl.iov_base = NULL;
14792 ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
14796 if { (eval echo configure
:14797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14798 samba_cv_HAVE_SENDFILE
=yes
14800 echo "configure: failed program was:" >&5
14801 cat conftest.
$ac_ext >&5
14803 samba_cv_HAVE_SENDFILE
=no
14808 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
14810 if test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
14811 cat >> confdefs.h
<<\EOF
14812 #define HAVE_SENDFILE 1
14815 cat >> confdefs.h
<<\EOF
14816 #define FREEBSD_SENDFILE_API 1
14819 cat >> confdefs.h
<<\EOF
14820 #define WITH_SENDFILE 1
14824 echo "$ac_t""no" 1>&6;
14829 echo $ac_n "checking for hpux sendfile64 support""... $ac_c" 1>&6
14830 echo "configure:14831: checking for hpux sendfile64 support" >&5
14831 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
14832 echo $ac_n "(cached) $ac_c" 1>&6
14835 cat > conftest.
$ac_ext <<EOF
14836 #line 14837 "configure"
14837 #include "confdefs.h"
14839 #include <sys/socket.h>
14840 #include <sys/uio.h>
14845 struct iovec hdtrl[2];
14849 hdtrl[0].iov_base = 0;
14850 hdtrl[0].iov_len = 0;
14852 nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
14856 if { (eval echo configure
:14857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14858 samba_cv_HAVE_SENDFILE64
=yes
14860 echo "configure: failed program was:" >&5
14861 cat conftest.
$ac_ext >&5
14863 samba_cv_HAVE_SENDFILE64
=no
14868 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
14869 if test x
"$samba_cv_HAVE_SENDFILE64" = x
"yes"; then
14870 cat >> confdefs.h
<<\EOF
14871 #define HAVE_SENDFILE64 1
14874 cat >> confdefs.h
<<\EOF
14875 #define HPUX_SENDFILE_API 1
14878 cat >> confdefs.h
<<\EOF
14879 #define WITH_SENDFILE 1
14883 echo "$ac_t""no" 1>&6;
14886 echo $ac_n "checking for hpux sendfile support""... $ac_c" 1>&6
14887 echo "configure:14888: checking for hpux sendfile support" >&5
14888 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
14889 echo $ac_n "(cached) $ac_c" 1>&6
14892 cat > conftest.
$ac_ext <<EOF
14893 #line 14894 "configure"
14894 #include "confdefs.h"
14896 #include <sys/socket.h>
14897 #include <sys/uio.h>
14902 struct iovec hdtrl[2];
14906 hdtrl[0].iov_base = 0;
14907 hdtrl[0].iov_len = 0;
14909 nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
14913 if { (eval echo configure
:14914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14915 samba_cv_HAVE_SENDFILE
=yes
14917 echo "configure: failed program was:" >&5
14918 cat conftest.
$ac_ext >&5
14920 samba_cv_HAVE_SENDFILE
=no
14925 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
14926 if test x
"$samba_cv_HAVE_SENDFILE" = x
"yes"; then
14927 cat >> confdefs.h
<<\EOF
14928 #define HAVE_SENDFILE 1
14931 cat >> confdefs.h
<<\EOF
14932 #define HPUX_SENDFILE_API 1
14935 cat >> confdefs.h
<<\EOF
14936 #define WITH_SENDFILE 1
14940 echo "$ac_t""no" 1>&6;
14945 echo $ac_n "checking for sendfilev in -lsendfile""... $ac_c" 1>&6
14946 echo "configure:14947: checking for sendfilev in -lsendfile" >&5
14947 ac_lib_var
=`echo sendfile'_'sendfilev | sed 'y%./+-%__p_%'`
14948 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14949 echo $ac_n "(cached) $ac_c" 1>&6
14951 ac_save_LIBS
="$LIBS"
14952 LIBS
="-lsendfile $LIBS"
14953 cat > conftest.
$ac_ext <<EOF
14954 #line 14955 "configure"
14955 #include "confdefs.h"
14956 /* Override any gcc2 internal prototype to avoid an error. */
14957 /* We use char because int might match the return type of a gcc2
14958 builtin and then its argument prototype would still apply. */
14965 if { (eval echo configure
:14966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
14967 eval "ac_cv_lib_$ac_lib_var=yes"
14969 echo "configure: failed program was:" >&5
14970 cat conftest.
$ac_ext >&5
14972 eval "ac_cv_lib_$ac_lib_var=no"
14975 LIBS
="$ac_save_LIBS"
14978 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14979 echo "$ac_t""yes" 1>&6
14980 ac_tr_lib
=HAVE_LIB
`echo sendfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14981 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14982 cat >> confdefs.h
<<EOF
14983 #define $ac_tr_lib 1
14986 LIBS
="-lsendfile $LIBS"
14989 echo "$ac_t""no" 1>&6
14992 echo $ac_n "checking for solaris sendfilev64 support""... $ac_c" 1>&6
14993 echo "configure:14994: checking for solaris sendfilev64 support" >&5
14994 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV64'+set}'`\" = set"; then
14995 echo $ac_n "(cached) $ac_c" 1>&6
14998 cat > conftest.
$ac_ext <<EOF
14999 #line 15000 "configure"
15000 #include "confdefs.h"
15002 #include <sys/sendfile.h>
15007 struct sendfilevec vec[2];
15013 vec[0].sfv_fd = SFV_FD_SELF;
15014 vec[0].sfv_flag = 0;
15015 vec[0].sfv_off = 0;
15016 vec[0].sfv_len = 0;
15019 vec[1].sfv_flag = 0;
15020 vec[1].sfv_off = 0;
15021 vec[1].sfv_len = 0;
15022 nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
15026 if { (eval echo configure
:15027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15028 samba_cv_HAVE_SENDFILEV64
=yes
15030 echo "configure: failed program was:" >&5
15031 cat conftest.
$ac_ext >&5
15033 samba_cv_HAVE_SENDFILEV64
=no
15038 echo "$ac_t""$samba_cv_HAVE_SENDFILEV64" 1>&6
15040 if test x
"$samba_cv_HAVE_SENDFILEV64" = x
"yes"; then
15041 cat >> confdefs.h
<<\EOF
15042 #define HAVE_SENDFILEV64 1
15045 cat >> confdefs.h
<<\EOF
15046 #define SOLARIS_SENDFILE_API 1
15049 cat >> confdefs.h
<<\EOF
15050 #define WITH_SENDFILE 1
15054 echo "$ac_t""no" 1>&6;
15057 echo $ac_n "checking for solaris sendfilev support""... $ac_c" 1>&6
15058 echo "configure:15059: checking for solaris sendfilev support" >&5
15059 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV'+set}'`\" = set"; then
15060 echo $ac_n "(cached) $ac_c" 1>&6
15063 cat > conftest.
$ac_ext <<EOF
15064 #line 15065 "configure"
15065 #include "confdefs.h"
15067 #include <sys/sendfile.h>
15072 struct sendfilevec vec[2];
15078 vec[0].sfv_fd = SFV_FD_SELF;
15079 vec[0].sfv_flag = 0;
15080 vec[0].sfv_off = 0;
15081 vec[0].sfv_len = 0;
15084 vec[1].sfv_flag = 0;
15085 vec[1].sfv_off = 0;
15086 vec[1].sfv_len = 0;
15087 nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
15091 if { (eval echo configure
:15092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15093 samba_cv_HAVE_SENDFILEV
=yes
15095 echo "configure: failed program was:" >&5
15096 cat conftest.
$ac_ext >&5
15098 samba_cv_HAVE_SENDFILEV
=no
15103 echo "$ac_t""$samba_cv_HAVE_SENDFILEV" 1>&6
15105 if test x
"$samba_cv_HAVE_SENDFILEV" = x
"yes"; then
15106 cat >> confdefs.h
<<\EOF
15107 #define HAVE_SENDFILEV 1
15110 cat >> confdefs.h
<<\EOF
15111 #define SOLARIS_SENDFILE_API 1
15114 cat >> confdefs.h
<<\EOF
15115 #define WITH_SENDFILE 1
15119 echo "$ac_t""no" 1>&6;
15128 echo "$ac_t""no" 1>&6
15132 echo "$ac_t""yes" 1>&6
15138 #################################################
15139 # Check whether winbind is supported on this platform. If so we need to
15140 # build and install client programs, sbin programs and shared libraries
15142 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
15143 echo "configure:15144: checking whether to build winbind" >&5
15145 # Initially, the value of $host_os decides whether winbind is supported
15153 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
15154 WINBIND_NSS_EXTRA_LIBS
="-lsocket"
15158 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
15162 winbind_no_reason
=", unsupported on $host_os"
15169 # Check the setting of --with-winbindd
15171 # Check whether --with-winbind or --without-winbind was given.
15172 if test "${with_winbind+set}" = set; then
15173 withval
="$with_winbind"
15187 # We need unix domain sockets for winbind
15189 if test x
"$HAVE_WINBIND" = x
"yes"; then
15190 if test x
"$samba_cv_unixsocket" = x
"no"; then
15191 winbind_no_reason
=", no unix domain socket support on $host_os"
15196 # Display test results
15198 if test x
"$HAVE_WINBIND" = x
"yes"; then
15199 echo "$ac_t""yes" 1>&6
15200 cat >> confdefs.h
<<\EOF
15201 #define WITH_WINBIND 1
15205 EXTRA_BIN_PROGS
="$EXTRA_BIN_PROGS bin/wbinfo\$(EXEEXT)"
15206 EXTRA_SBIN_PROGS
="$EXTRA_SBIN_PROGS bin/winbindd\$(EXEEXT)"
15207 if test x
"$BLDSHARED" = x
"true"; then
15208 SHLIB_PROGS
="$SHLIB_PROGS nsswitch/libnss_winbind.so"
15209 if test x
"$with_pam" = x
"yes"; then
15210 SHLIB_PROGS
="$SHLIB_PROGS nsswitch/pam_winbind.so"
15214 echo "$ac_t""no$winbind_no_reason" 1>&6
15217 # Solaris has some extra fields in struct passwd that need to be
15218 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
15219 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
15222 #AC_CHECK_MEMBER(struct passwd.pw_comment,
15223 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
15224 # [#include <pwd.h>])
15226 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
15227 echo "configure:15228: checking whether struct passwd has pw_comment" >&5
15228 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
15229 echo $ac_n "(cached) $ac_c" 1>&6
15232 cat > conftest.
$ac_ext <<EOF
15233 #line 15234 "configure"
15234 #include "confdefs.h"
15237 struct passwd p; p.pw_comment;
15240 if { (eval echo configure
:15241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15242 samba_cv_passwd_pw_comment
=yes
15244 echo "configure: failed program was:" >&5
15245 cat conftest.
$ac_ext >&5
15247 samba_cv_passwd_pw_comment
=no
15252 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
15253 if test x
"$samba_cv_passwd_pw_comment" = x
"yes"; then
15254 cat >> confdefs.h
<<\EOF
15255 #define HAVE_PASSWD_PW_COMMENT 1
15260 #AC_CHECK_MEMBER(struct passwd.pw_age,
15261 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
15262 # [#include <pwd.h>])
15264 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
15265 echo "configure:15266: checking whether struct passwd has pw_age" >&5
15266 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
15267 echo $ac_n "(cached) $ac_c" 1>&6
15270 cat > conftest.
$ac_ext <<EOF
15271 #line 15272 "configure"
15272 #include "confdefs.h"
15275 struct passwd p; p.pw_age;
15278 if { (eval echo configure
:15279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15280 samba_cv_passwd_pw_age
=yes
15282 echo "configure: failed program was:" >&5
15283 cat conftest.
$ac_ext >&5
15285 samba_cv_passwd_pw_age
=no
15290 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
15291 if test x
"$samba_cv_passwd_pw_age" = x
"yes"; then
15292 cat >> confdefs.h
<<\EOF
15293 #define HAVE_PASSWD_PW_AGE 1
15298 #################################################
15299 # Check to see if we should use the included popt
15301 # Check whether --with-included-popt or --without-included-popt was given.
15302 if test "${with_included_popt+set}" = set; then
15303 withval
="$with_included_popt"
15315 if test x
"$INCLUDED_POPT" != x
"yes"; then
15316 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
15317 echo "configure:15318: checking for poptGetContext in -lpopt" >&5
15318 ac_lib_var
=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
15319 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15320 echo $ac_n "(cached) $ac_c" 1>&6
15322 ac_save_LIBS
="$LIBS"
15323 LIBS
="-lpopt $LIBS"
15324 cat > conftest.
$ac_ext <<EOF
15325 #line 15326 "configure"
15326 #include "confdefs.h"
15327 /* Override any gcc2 internal prototype to avoid an error. */
15328 /* We use char because int might match the return type of a gcc2
15329 builtin and then its argument prototype would still apply. */
15330 char poptGetContext();
15336 if { (eval echo configure
:15337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
15338 eval "ac_cv_lib_$ac_lib_var=yes"
15340 echo "configure: failed program was:" >&5
15341 cat conftest.
$ac_ext >&5
15343 eval "ac_cv_lib_$ac_lib_var=no"
15346 LIBS
="$ac_save_LIBS"
15349 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15350 echo "$ac_t""yes" 1>&6
15353 echo "$ac_t""no" 1>&6
15359 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
15360 echo "configure:15361: checking whether to use included popt" >&5
15361 if test x
"$INCLUDED_POPT" = x
"yes"; then
15362 echo "$ac_t""yes" 1>&6
15363 BUILD_POPT
='$(POPT_OBJS)'
15364 FLAGS1
="-I$srcdir/popt"
15366 echo "$ac_t""no" 1>&6
15367 LIBS
="$LIBS -lpopt"
15372 #################################################
15373 # Check if the user wants Python
15375 # At the moment, you can use this to set which Python binary to link
15376 # against. (Libraries built for Python2.2 can't be used by 2.1,
15377 # though they can coexist in different directories.) In the future
15378 # this might make the Python stuff be built by default.
15380 # Defaulting python breaks the clean target if python isn't installed
15384 # Check whether --with-python or --without-python was given.
15385 if test "${with_python+set}" = set; then
15386 withval
="$with_python"
15387 case "${withval-python}" in
15390 EXTRA_ALL_TARGETS
="$EXTRA_ALL_TARGETS python_ext"
15396 PYTHON
=${withval-python}
15403 #################################################
15404 # do extra things if we are running insure
15406 if test "${ac_cv_prog_CC}" = "insure"; then
15407 CPPFLAGS
="$CPPFLAGS -D__INSURE__"
15410 #################################################
15411 # final configure stuff
15413 echo $ac_n "checking configure summary""... $ac_c" 1>&6
15414 echo "configure:15415: checking configure summary" >&5
15415 if test "$cross_compiling" = yes; then
15416 echo "configure: warning: cannot run when cross-compiling" 1>&2
15418 cat > conftest.
$ac_ext <<EOF
15419 #line 15420 "configure"
15420 #include "confdefs.h"
15421 #include "${srcdir-.}/tests/summary.c"
15423 if { (eval echo configure
:15424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
15425 echo "$ac_t""yes" 1>&6
15427 echo "configure: failed program was:" >&5
15428 cat conftest.
$ac_ext >&5
15430 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
15440 cat > confcache
<<\EOF
15441 # This file is a shell script that caches the results of configure
15442 # tests run on this system so they can be shared between configure
15443 # scripts and configure runs. It is not useful on other systems.
15444 # If it contains results you don't want to keep, you may remove or edit it.
15446 # By default, configure uses ./config.cache as the cache file,
15447 # creating it if it does not exist already. You can give configure
15448 # the --cache-file=FILE option to use a different cache file; that is
15449 # what configure does when it calls configure scripts in
15450 # subdirectories, so they share the cache.
15451 # Giving --cache-file=/dev/null disables caching, for debugging configure.
15452 # config.status only pays attention to the cache file if you give it the
15453 # --recheck option to rerun configure.
15456 # The following way of writing the cache mishandles newlines in values,
15457 # but we know of no workaround that is simple, portable, and efficient.
15458 # So, don't put newlines in cache variables' values.
15459 # Ultrix sh set writes to stderr and can't be redirected directly,
15460 # and sets the high bit in the cache file unless we assign to the vars.
15462 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15464 # `set' does not quote correctly, so add quotes (double-quote substitution
15465 # turns \\\\ into \\, and sed turns \\ into \).
15467 -e "s/'/'\\\\''/g" \
15468 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15471 # `set' quotes correctly as required by POSIX, so do not add quotes.
15472 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15475 if cmp -s $cache_file confcache
; then
15478 if test -w $cache_file; then
15479 echo "updating cache $cache_file"
15480 cat confcache
> $cache_file
15482 echo "not updating unwritable cache $cache_file"
15487 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15489 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15490 # Let make expand exec_prefix.
15491 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15493 # Any assignment to VPATH causes Sun make to only execute
15494 # the first set of double-colon rules, so remove it if not needed.
15495 # If there is a colon in the path, we need to keep it.
15496 if test "x$srcdir" = x.
; then
15497 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
15500 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15502 DEFS
=-DHAVE_CONFIG_H
15504 # Without the "./", some shells look in PATH for config.status.
15505 : ${CONFIG_STATUS=./config.status}
15507 echo creating
$CONFIG_STATUS
15508 rm -f $CONFIG_STATUS
15509 cat > $CONFIG_STATUS <<EOF
15511 # Generated automatically by configure.
15512 # Run this file to recreate the current configuration.
15513 # This directory was configured as follows,
15514 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15516 # $0 $ac_configure_args
15518 # Compiler output produced by configure, useful for debugging
15519 # configure, is in ./config.log if it exists.
15521 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15524 case "\$ac_option" in
15525 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15526 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15527 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15528 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15529 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15531 -help | --help | --hel | --he | --h)
15532 echo "\$ac_cs_usage"; exit 0 ;;
15533 *) echo "\$ac_cs_usage"; exit 1 ;;
15537 ac_given_srcdir=$srcdir
15538 ac_given_INSTALL="$INSTALL"
15540 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15542 cat >> $CONFIG_STATUS <<EOF
15544 # Protect against being on the right side of a sed subst in config.status.
15545 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15546 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15550 s%@CFLAGS@%$CFLAGS%g
15551 s%@CPPFLAGS@%$CPPFLAGS%g
15552 s%@CXXFLAGS@%$CXXFLAGS%g
15553 s%@FFLAGS@%$FFLAGS%g
15555 s%@LDFLAGS@%$LDFLAGS%g
15557 s%@exec_prefix@%$exec_prefix%g
15558 s%@prefix@%$prefix%g
15559 s%@program_transform_name@%$program_transform_name%g
15560 s%@bindir@%$bindir%g
15561 s%@sbindir@%$sbindir%g
15562 s%@libexecdir@%$libexecdir%g
15563 s%@datadir@%$datadir%g
15564 s%@sysconfdir@%$sysconfdir%g
15565 s%@sharedstatedir@%$sharedstatedir%g
15566 s%@localstatedir@%$localstatedir%g
15567 s%@libdir@%$libdir%g
15568 s%@includedir@%$includedir%g
15569 s%@oldincludedir@%$oldincludedir%g
15570 s%@infodir@%$infodir%g
15571 s%@mandir@%$mandir%g
15572 s%@configdir@%$configdir%g
15573 s%@lockdir@%$lockdir%g
15574 s%@piddir@%$piddir%g
15575 s%@logfilebase@%$logfilebase%g
15576 s%@privatedir@%$privatedir%g
15577 s%@swatdir@%$swatdir%g
15578 s%@LDSHFLAGS@%$LDSHFLAGS%g
15579 s%@SONAMEFLAG@%$SONAMEFLAG%g
15581 s%@HOST_OS@%$HOST_OS%g
15582 s%@PICFLAG@%$PICFLAG%g
15583 s%@PICSUFFIX@%$PICSUFFIX%g
15584 s%@POBAD_CC@%$POBAD_CC%g
15585 s%@SHLIBEXT@%$SHLIBEXT%g
15586 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
15587 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
15588 s%@PRINTLIBS@%$PRINTLIBS%g
15589 s%@AUTHLIBS@%$AUTHLIBS%g
15590 s%@SHLIB_PROGS@%$SHLIB_PROGS%g
15591 s%@SMBWRAPPER@%$SMBWRAPPER%g
15592 s%@EXTRA_BIN_PROGS@%$EXTRA_BIN_PROGS%g
15593 s%@EXTRA_SBIN_PROGS@%$EXTRA_SBIN_PROGS%g
15594 s%@EXTRA_ALL_TARGETS@%$EXTRA_ALL_TARGETS%g
15596 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15597 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15598 s%@INSTALL_DATA@%$INSTALL_DATA%g
15600 s%@EXEEXT@%$EXEEXT%g
15601 s%@BROKEN_CC@%$BROKEN_CC%g
15603 s%@host_alias@%$host_alias%g
15604 s%@host_cpu@%$host_cpu%g
15605 s%@host_vendor@%$host_vendor%g
15606 s%@host_os@%$host_os%g
15607 s%@target@%$target%g
15608 s%@target_alias@%$target_alias%g
15609 s%@target_cpu@%$target_cpu%g
15610 s%@target_vendor@%$target_vendor%g
15611 s%@target_os@%$target_os%g
15613 s%@build_alias@%$build_alias%g
15614 s%@build_cpu@%$build_cpu%g
15615 s%@build_vendor@%$build_vendor%g
15616 s%@build_os@%$build_os%g
15618 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
15619 s%@LIBOBJS@%$LIBOBJS%g
15620 s%@TERMLIBS@%$TERMLIBS%g
15621 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
15623 s%@DYNEXP@%$DYNEXP%g
15624 s%@MYSQL_CONFIG@%$MYSQL_CONFIG%g
15625 s%@MYSQL_CFLAGS@%$MYSQL_CFLAGS%g
15626 s%@MYSQL_LIBS@%$MYSQL_LIBS%g
15627 s%@MODULE_MYSQL@%$MODULE_MYSQL%g
15628 s%@XML2_CONFIG@%$XML2_CONFIG%g
15629 s%@XML_CFLAGS@%$XML_CFLAGS%g
15630 s%@XML_LIBS@%$XML_LIBS%g
15631 s%@MODULE_XML@%$MODULE_XML%g
15632 s%@QUOTAOBJS@%$QUOTAOBJS%g
15633 s%@manlangs@%$manlangs%g
15634 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
15635 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
15636 s%@BUILD_POPT@%$BUILD_POPT%g
15637 s%@FLAGS1@%$FLAGS1%g
15638 s%@PYTHON@%$PYTHON%g
15639 s%@builddir@%$builddir%g
15644 cat >> $CONFIG_STATUS <<\EOF
15646 # Split the substitutions into bite-sized pieces for seds with
15647 # small command number limits, like on Digital OSF/1 and HP-UX.
15648 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
15649 ac_file
=1 # Number of current file.
15650 ac_beg
=1 # First line for current file.
15651 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
15654 while $ac_more_lines; do
15655 if test $ac_beg -gt 1; then
15656 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
15658 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
15660 if test ! -s conftest.s
$ac_file; then
15661 ac_more_lines
=false
15662 rm -f conftest.s
$ac_file
15664 if test -z "$ac_sed_cmds"; then
15665 ac_sed_cmds
="sed -f conftest.s$ac_file"
15667 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
15669 ac_file
=`expr $ac_file + 1`
15671 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
15674 if test -z "$ac_sed_cmds"; then
15679 cat >> $CONFIG_STATUS <<EOF
15681 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
15683 cat >> $CONFIG_STATUS <<\EOF
15684 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
15685 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15687 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
15688 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
15689 *) ac_file_in
="${ac_file}.in" ;;
15692 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15694 # Remove last slash and all that follows it. Not all systems have dirname.
15695 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15696 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
15697 # The file is in a subdirectory.
15698 test ! -d "$ac_dir" && mkdir
"$ac_dir"
15699 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
15700 # A "../" for each directory in $ac_dir_suffix.
15701 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15703 ac_dir_suffix
= ac_dots
=
15706 case "$ac_given_srcdir" in
15708 if test -z "$ac_dots"; then top_srcdir
=.
15709 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15710 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
15711 *) # Relative path.
15712 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15713 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
15716 case "$ac_given_INSTALL" in
15717 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
15718 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
15721 echo creating
"$ac_file"
15723 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15725 *Makefile
*) ac_comsub
="1i\\
15726 # $configure_input" ;;
15730 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15732 s%@configure_input@%$configure_input%g
15733 s%@srcdir@%$srcdir%g
15734 s%@top_srcdir@%$top_srcdir%g
15735 s%@INSTALL@%$INSTALL%g
15736 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
15740 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15741 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15743 # ac_d sets the value in "#define NAME VALUE" lines.
15744 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15745 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
15748 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15749 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15750 ac_uB
='\([ ]\)%\1#\2define\3'
15753 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15754 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15755 ac_eB
='$%\1#\2define\3'
15759 if test "${CONFIG_HEADERS+set}" != set; then
15761 cat >> $CONFIG_STATUS <<EOF
15762 CONFIG_HEADERS="include/config.h"
15764 cat >> $CONFIG_STATUS <<\EOF
15766 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
15767 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15769 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
15770 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
15771 *) ac_file_in
="${ac_file}.in" ;;
15774 echo creating
$ac_file
15776 rm -f conftest.frag conftest.
in conftest.out
15777 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15778 cat $ac_file_inputs > conftest.
in
15782 # Transform confdefs.h into a sed script conftest.vals that substitutes
15783 # the proper values into config.h.in to produce config.h. And first:
15784 # Protect against being on the right side of a sed subst in config.status.
15785 # Protect against being in an unquoted here document in config.status.
15786 rm -f conftest.vals
15787 cat > conftest.hdr
<<\EOF
15790 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15794 sed -n -f conftest.hdr confdefs.h > conftest.vals
15797 # This sed command replaces #undef with comments. This is necessary, for
15798 # example, in the case of _POSIX_SOURCE, which is predefined and required
15799 # on some systems where configure will not decide to define it.
15800 cat >> conftest.vals <<\EOF
15801 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15804 # Break up conftest.vals because some shells have a limit on
15805 # the size of here documents, and old seds have small limits too.
15807 rm -f conftest.tail
15810 ac_lines=`grep -c . conftest.vals
`
15811 # grep -c gives empty output for an empty file on some AIX systems.
15812 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15813 # Write a limited-size here document to conftest.frag.
15814 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15815 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15817 sed -f conftest.frag conftest.in > conftest.out
15819 mv conftest.out conftest.in
15820 ' >> $CONFIG_STATUS
15821 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15822 rm -f conftest.vals
15823 mv conftest.tail conftest.vals
15825 rm -f conftest.vals
15827 cat >> $CONFIG_STATUS <<\EOF
15828 rm -f conftest.frag conftest.h
15829 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15830 cat conftest.in >> conftest.h
15832 if cmp -s $ac_file conftest.h 2>/dev/null; then
15833 echo "$ac_file is unchanged"
15836 # Remove last slash and all that follows it. Not all systems have dirname.
15837 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
15838 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15839 # The file is in a subdirectory.
15840 test ! -d "$ac_dir" && mkdir "$ac_dir"
15843 mv conftest.h $ac_file
15848 cat >> $CONFIG_STATUS <<EOF
15851 cat >> $CONFIG_STATUS <<\EOF
15855 chmod +x $CONFIG_STATUS
15856 rm -fr confdefs* $ac_clean_files
15857 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
15860 #################################################
15861 # Print very concise instructions on building/use
15862 if test "x$enable_dmalloc" = xyes
15864 echo "$ac_t""Note: The dmalloc debug library will be included. To turn it on use" 1>&6
15865 echo "$ac_t"" \$ eval \`dmalloc samba\
`." 1>&6