3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
/samba
16 --with-fhs Use FHS-compliant paths (default=no)"
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
22 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)"
24 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
26 --with-configdir=DIR Where to put configuration files (\$libdir)"
28 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
30 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
32 --enable-debug Turn on compiler debugging information (default=no)"
34 --enable-cups Turn on CUPS support (default=auto)"
36 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto)"
38 --with-smbwrapper Include SMB wrapper support (default=no)"
40 --with-afs Include AFS support (default=no)"
42 --with-dce-dfs Include DCE/DFS support (default=no)"
44 --with-krb4=base-dir Include Kerberos IV support (default=no)"
46 --with-krb5=base-dir Include Kerberos 5 support (default=no)"
48 --with-automount Include AUTOMOUNT support (default=no)"
50 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
52 --with-pam Include PAM password database support (default=no)"
54 --with-pam_smbpass Include the smbpass PAM module (default=no)"
56 --with-tdbsam Include experimental TDB SAM support (default=no)"
58 --with-ldapsam Include experimental LDAP SAM support (default=no)"
60 --with-nisplussam Include NISPLUS SAM support (default=no)"
62 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
64 --with-ssl Include SSL support (default=no)
65 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
66 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
68 --with-syslog Include experimental SYSLOG support (default=no)"
70 --with-profiling-data Include gathering source code profile information (default=no)"
72 --with-quotas Include experimental disk-quota support (default=no)"
74 --with-utmp Include experimental utmp accounting (default=no)"
76 --with-msdfs Include MS Dfs support (default=no)"
78 --with-libsmbclient Build the libsmbclient shared library (default=no)"
80 --with-spinlocks Use spin locks instead of fcntl locks (default=no)"
82 --with-acl-support Include ACL support (default=no)"
84 --with-winbind Build winbind (default, if supported by OS)"
86 --with-winbind-auth-challenge Enable winbindd_pam_auth_crap() functionality (default no)"
88 --with-winbind-ldap-hack Enable winbindd_ldap_hack() functionality (default no)"
90 --with-included-popt use bundled popt library, not from system"
92 # Initialize some variables set by options.
93 # The variables have the same names as the options, with
94 # dashes changed to underlines.
96 cache_file
=.
/config.cache
105 program_transform_name
=s
,x
,x
,
113 bindir
='${exec_prefix}/bin'
114 sbindir
='${exec_prefix}/sbin'
115 libexecdir
='${exec_prefix}/libexec'
116 datadir
='${prefix}/share'
117 sysconfdir
='${prefix}/etc'
118 sharedstatedir
='${prefix}/com'
119 localstatedir
='${prefix}/var'
120 libdir
='${exec_prefix}/lib'
121 includedir
='${prefix}/include'
122 oldincludedir
='/usr/include'
123 infodir
='${prefix}/info'
124 mandir
='${prefix}/man'
126 # Initialize some other variables.
129 SHELL
=${CONFIG_SHELL-/bin/sh}
130 # Maximum number of lines to put in a shell here document.
137 # If the previous option needs an argument, assign it.
138 if test -n "$ac_prev"; then
139 eval "$ac_prev=\$ac_option"
145 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
149 # Accept the important Cygnus configure options, so we can diagnose typos.
153 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
155 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
156 bindir
="$ac_optarg" ;;
158 -build |
--build |
--buil |
--bui |
--bu)
160 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
161 build
="$ac_optarg" ;;
163 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
164 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
165 ac_prev
=cache_file
;;
166 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
167 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
168 cache_file
="$ac_optarg" ;;
170 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
172 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
174 datadir
="$ac_optarg" ;;
176 -disable-* |
--disable-*)
177 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
178 # Reject names that are not valid shell variable names.
179 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
180 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
182 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
183 eval "enable_${ac_feature}=no" ;;
185 -enable-* |
--enable-*)
186 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
187 # Reject names that are not valid shell variable names.
188 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
189 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
191 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
196 eval "enable_${ac_feature}='$ac_optarg'" ;;
198 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
199 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
200 |
--exec |
--exe |
--ex)
201 ac_prev
=exec_prefix
;;
202 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
203 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
204 |
--exec=* |
--exe=* |
--ex=*)
205 exec_prefix
="$ac_optarg" ;;
207 -gas |
--gas |
--ga |
--g)
208 # Obsolete; use --with-gas.
211 -help |
--help |
--hel |
--he)
212 # Omit some internal or obsolete options to make the list less imposing.
213 # This message is too long to be a string in the A/UX 3.1 sh.
215 Usage: configure [options] [host]
216 Options: [defaults in brackets after descriptions]
218 --cache-file=FILE cache test results in FILE
219 --help print this message
220 --no-create do not create output files
221 --quiet, --silent do not print \`checking...' messages
222 --version print the version of autoconf that created configure
223 Directory and file names:
224 --prefix=PREFIX install architecture-independent files in PREFIX
226 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
228 --bindir=DIR user executables in DIR [EPREFIX/bin]
229 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
230 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
231 --datadir=DIR read-only architecture-independent data in DIR
233 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
234 --sharedstatedir=DIR modifiable architecture-independent data in DIR
236 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
237 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
238 --includedir=DIR C header files in DIR [PREFIX/include]
239 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
240 --infodir=DIR info documentation in DIR [PREFIX/info]
241 --mandir=DIR man documentation in DIR [PREFIX/man]
242 --srcdir=DIR find the sources in DIR [configure dir or ..]
243 --program-prefix=PREFIX prepend PREFIX to installed program names
244 --program-suffix=SUFFIX append SUFFIX to installed program names
245 --program-transform-name=PROGRAM
246 run sed PROGRAM on installed program names
250 --build=BUILD configure for building on BUILD [BUILD=HOST]
251 --host=HOST configure for HOST [guessed]
252 --target=TARGET configure for TARGET [TARGET=HOST]
253 Features and packages:
254 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
255 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
256 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
257 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
258 --x-includes=DIR X include files are in DIR
259 --x-libraries=DIR X library files are in DIR
261 if test -n "$ac_help"; then
262 echo "--enable and --with options recognized:$ac_help"
266 -host |
--host |
--hos |
--ho)
268 -host=* |
--host=* |
--hos=* |
--ho=*)
271 -includedir |
--includedir |
--includedi |
--included |
--include \
272 |
--includ |
--inclu |
--incl |
--inc)
273 ac_prev
=includedir
;;
274 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
275 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
276 includedir
="$ac_optarg" ;;
278 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
280 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
281 infodir
="$ac_optarg" ;;
283 -libdir |
--libdir |
--libdi |
--libd)
285 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
286 libdir
="$ac_optarg" ;;
288 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
289 |
--libexe |
--libex |
--libe)
290 ac_prev
=libexecdir
;;
291 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
292 |
--libexe=* |
--libex=* |
--libe=*)
293 libexecdir
="$ac_optarg" ;;
295 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
296 |
--localstate |
--localstat |
--localsta |
--localst \
297 |
--locals |
--local |
--loca |
--loc |
--lo)
298 ac_prev
=localstatedir
;;
299 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
300 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
301 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
302 localstatedir
="$ac_optarg" ;;
304 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
306 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
307 mandir
="$ac_optarg" ;;
310 # Obsolete; use --without-fp.
313 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
317 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
318 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
321 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
322 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
323 |
--oldin |
--oldi |
--old |
--ol |
--o)
324 ac_prev
=oldincludedir
;;
325 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
326 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
327 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
328 oldincludedir
="$ac_optarg" ;;
330 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
332 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
333 prefix
="$ac_optarg" ;;
335 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
336 |
--program-pre |
--program-pr |
--program-p)
337 ac_prev
=program_prefix
;;
338 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
339 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
340 program_prefix
="$ac_optarg" ;;
342 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
343 |
--program-suf |
--program-su |
--program-s)
344 ac_prev
=program_suffix
;;
345 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
346 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
347 program_suffix
="$ac_optarg" ;;
349 -program-transform-name |
--program-transform-name \
350 |
--program-transform-nam |
--program-transform-na \
351 |
--program-transform-n |
--program-transform- \
352 |
--program-transform |
--program-transfor \
353 |
--program-transfo |
--program-transf \
354 |
--program-trans |
--program-tran \
355 |
--progr-tra |
--program-tr |
--program-t)
356 ac_prev
=program_transform_name
;;
357 -program-transform-name=* |
--program-transform-name=* \
358 |
--program-transform-nam=* |
--program-transform-na=* \
359 |
--program-transform-n=* |
--program-transform-=* \
360 |
--program-transform=* |
--program-transfor=* \
361 |
--program-transfo=* |
--program-transf=* \
362 |
--program-trans=* |
--program-tran=* \
363 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
364 program_transform_name
="$ac_optarg" ;;
366 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
367 |
-silent |
--silent |
--silen |
--sile |
--sil)
370 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
372 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
374 sbindir
="$ac_optarg" ;;
376 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
377 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
378 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
380 ac_prev
=sharedstatedir
;;
381 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
382 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
383 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
385 sharedstatedir
="$ac_optarg" ;;
387 -site |
--site |
--sit)
389 -site=* |
--site=* |
--sit=*)
392 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
394 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
395 srcdir
="$ac_optarg" ;;
397 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
398 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
399 ac_prev
=sysconfdir
;;
400 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
401 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
402 sysconfdir
="$ac_optarg" ;;
404 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
406 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
407 target
="$ac_optarg" ;;
409 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
412 -version |
--version |
--versio |
--versi |
--vers)
413 echo "configure generated by autoconf version 2.13"
417 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
418 # Reject names that are not valid shell variable names.
419 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
420 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
422 ac_package
=`echo $ac_package| sed 's/-/_/g'`
427 eval "with_${ac_package}='$ac_optarg'" ;;
429 -without-* |
--without-*)
430 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
431 # Reject names that are not valid shell variable names.
432 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
433 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
435 ac_package
=`echo $ac_package| sed 's/-/_/g'`
436 eval "with_${ac_package}=no" ;;
439 # Obsolete; use --with-x.
442 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
443 |
--x-incl |
--x-inc |
--x-in |
--x-i)
444 ac_prev
=x_includes
;;
445 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
446 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
447 x_includes
="$ac_optarg" ;;
449 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
450 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
451 ac_prev
=x_libraries
;;
452 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
453 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
454 x_libraries
="$ac_optarg" ;;
456 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
460 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
461 echo "configure: warning: $ac_option: invalid host type" 1>&2
463 if test "x$nonopt" != xNONE
; then
464 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
472 if test -n "$ac_prev"; then
473 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
476 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
478 # File descriptor usage:
481 # 2 errors and warnings
482 # 3 some systems may open it to /dev/tty
483 # 4 used on the Kubota Titan
484 # 6 checking for... messages and results
485 # 5 compiler messages saved in config.log
486 if test "$silent" = yes; then
494 This file contains any messages produced by compilers while
495 running configure, to aid debugging if configure makes a mistake.
498 # Strip out --no-create and --no-recursion so they do not pile up.
499 # Also quote any args containing shell metacharacters.
504 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
505 |
--no-cr |
--no-c) ;;
506 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
507 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
508 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
509 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
510 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
515 # Only set these to C if already set. These must not be set unconditionally
516 # because not all systems understand e.g. LANG=C (notably SCO).
517 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
518 # Non-C LC_CTYPE values break the ctype check.
519 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
520 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
521 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
522 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
524 # confdefs.h avoids OS command line length limits that DEFS can exceed.
525 rm -rf conftest
* confdefs.h
526 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
529 # A filename unique to this package, relative to the directory that
530 # configure is in, which we can look for to find out if srcdir is correct.
531 ac_unique_file
=include
/includes.h
533 # Find the source files, if location was not specified.
534 if test -z "$srcdir"; then
535 ac_srcdir_defaulted
=yes
536 # Try the directory containing this script, then its parent.
538 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
539 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
541 if test ! -r $srcdir/$ac_unique_file; then
545 ac_srcdir_defaulted
=no
547 if test ! -r $srcdir/$ac_unique_file; then
548 if test "$ac_srcdir_defaulted" = yes; then
549 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
551 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
554 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
556 # Prefer explicitly selected file to automatically selected ones.
557 if test -z "$CONFIG_SITE"; then
558 if test "x$prefix" != xNONE
; then
559 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
561 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
564 for ac_site_file
in $CONFIG_SITE; do
565 if test -r "$ac_site_file"; then
566 echo "loading site script $ac_site_file"
571 if test -r "$cache_file"; then
572 echo "loading cache $cache_file"
575 echo "creating cache $cache_file"
580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
581 ac_cpp
='$CPP $CPPFLAGS'
582 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
583 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
584 cross_compiling
=$ac_cv_prog_cc_cross
588 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
589 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
590 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
597 ac_n
= ac_c
='\c' ac_t
=
603 #################################################
604 # Directory handling stuff to support both the
605 # legacy SAMBA directories and FHS compliant
609 # Check whether --with-fhs or --without-fhs was given.
610 if test "${with_fhs+set}" = set; then
612 codepagedir
="\$(DATADIR)/samba/codepages"
613 configdir
="${sysconfdir}/samba"
614 lockdir
="\${VARDIR}/cache/samba"
615 piddir
="\$(VARDIR)/run/samba"
616 logfilebase
="\${VARDIR}/log/samba"
617 privatedir
="\${CONFIGDIR}/private"
618 swatdir
="\${DATADIR}/samba/swat"
620 codepagedir
="\$(LIBDIR)/codepages"
621 configdir
="\$(LIBDIR)"
622 logfilebase
="\$(VARDIR)"
623 lockdir
="\${VARDIR}/locks"
624 piddir
="\$(VARDIR)/locks"
625 privatedir
="\${prefix}/private"
626 swatdir
="\${prefix}/swat"
630 #################################################
631 # set private directory location
632 # Check whether --with-privatedir or --without-privatedir was given.
633 if test "${with_privatedir+set}" = set; then
634 withval
="$with_privatedir"
638 # Just in case anybody calls it without argument
640 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
643 privatedir
="$withval"
649 #################################################
650 # set lock directory location
651 # Check whether --with-lockdir or --without-lockdir was given.
652 if test "${with_lockdir+set}" = set; then
653 withval
="$with_lockdir"
657 # Just in case anybody calls it without argument
659 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
668 #################################################
669 # set pid directory location
670 # Check whether --with-piddir or --without-piddir was given.
671 if test "${with_piddir+set}" = set; then
672 withval
="$with_piddir"
676 # Just in case anybody calls it without argument
678 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
687 #################################################
688 # set SWAT directory location
689 # Check whether --with-swatdir or --without-swatdir was given.
690 if test "${with_swatdir+set}" = set; then
691 withval
="$with_swatdir"
695 # Just in case anybody does it
697 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
706 #################################################
707 # set configuration directory location
708 # Check whether --with-configdir or --without-configdir was given.
709 if test "${with_configdir+set}" = set; then
710 withval
="$with_configdir"
714 # Just in case anybody does it
716 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
725 #################################################
726 # set codepage directory location
727 # Check whether --with-codepagedir or --without-codepagedir was given.
728 if test "${with_codepagedir+set}" = set; then
729 withval
="$with_codepagedir"
733 # Just in case anybody does it
735 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
738 codepagedir
="$withval"
744 #################################################
745 # set log directory location
746 # Check whether --with-logfilebase or --without-logfilebase was given.
747 if test "${with_logfilebase+set}" = set; then
748 withval
="$with_logfilebase"
752 # Just in case anybody does it
754 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
757 logfilebase
="$withval"
792 # compile with optimization and without debugging by default
793 CFLAGS
="-O ${CFLAGS}"
795 # Check whether --enable-debug or --disable-debug was given.
796 if test "${enable_debug+set}" = set; then
797 enableval
="$enable_debug"
798 if eval "test x$enable_debug = xyes"; then
799 CFLAGS
="${CFLAGS} -g"
806 # Extract the first word of "gcc", so it can be a program name with args.
807 set dummy gcc
; ac_word
=$2
808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
809 echo "configure:810: checking for $ac_word" >&5
810 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
811 echo $ac_n "(cached) $ac_c" 1>&6
813 if test -n "$CC"; then
814 ac_cv_prog_CC
="$CC" # Let the user override the test.
816 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
818 for ac_dir
in $ac_dummy; do
819 test -z "$ac_dir" && ac_dir
=.
820 if test -f $ac_dir/$ac_word; then
829 if test -n "$CC"; then
830 echo "$ac_t""$CC" 1>&6
832 echo "$ac_t""no" 1>&6
835 if test -z "$CC"; then
836 # Extract the first word of "cc", so it can be a program name with args.
837 set dummy cc
; ac_word
=$2
838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
839 echo "configure:840: checking for $ac_word" >&5
840 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
843 if test -n "$CC"; then
844 ac_cv_prog_CC
="$CC" # Let the user override the test.
846 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
849 for ac_dir
in $ac_dummy; do
850 test -z "$ac_dir" && ac_dir
=.
851 if test -f $ac_dir/$ac_word; then
852 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
861 if test $ac_prog_rejected = yes; then
862 # We found a bogon in the path, so make sure we never use it.
863 set dummy
$ac_cv_prog_CC
865 if test $# -gt 0; then
866 # We chose a different compiler from the bogus one.
867 # However, it has the same basename, so the bogon will be chosen
868 # first if we set CC to just the basename; use the full file name.
870 set dummy
"$ac_dir/$ac_word" "$@"
878 if test -n "$CC"; then
879 echo "$ac_t""$CC" 1>&6
881 echo "$ac_t""no" 1>&6
884 if test -z "$CC"; then
887 # Extract the first word of "cl", so it can be a program name with args.
888 set dummy cl
; ac_word
=$2
889 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
890 echo "configure:891: checking for $ac_word" >&5
891 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
892 echo $ac_n "(cached) $ac_c" 1>&6
894 if test -n "$CC"; then
895 ac_cv_prog_CC
="$CC" # Let the user override the test.
897 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
899 for ac_dir
in $ac_dummy; do
900 test -z "$ac_dir" && ac_dir
=.
901 if test -f $ac_dir/$ac_word; then
910 if test -n "$CC"; then
911 echo "$ac_t""$CC" 1>&6
913 echo "$ac_t""no" 1>&6
918 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
921 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
922 echo "configure:923: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
925 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
926 ac_cpp
='$CPP $CPPFLAGS'
927 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
928 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
929 cross_compiling
=$ac_cv_prog_cc_cross
931 cat > conftest.
$ac_ext << EOF
933 #line 934 "configure"
934 #include "confdefs.h"
938 if { (eval echo configure
:939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
939 ac_cv_prog_cc_works
=yes
940 # If we can't run a trivial program, we are probably using a cross compiler.
941 if (.
/conftest
; exit) 2>/dev
/null
; then
942 ac_cv_prog_cc_cross
=no
944 ac_cv_prog_cc_cross
=yes
947 echo "configure: failed program was:" >&5
948 cat conftest.
$ac_ext >&5
949 ac_cv_prog_cc_works
=no
953 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
954 ac_cpp
='$CPP $CPPFLAGS'
955 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
956 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
957 cross_compiling
=$ac_cv_prog_cc_cross
959 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
960 if test $ac_cv_prog_cc_works = no
; then
961 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
963 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
964 echo "configure:965: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
965 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
966 cross_compiling
=$ac_cv_prog_cc_cross
968 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
969 echo "configure:970: checking whether we are using GNU C" >&5
970 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
971 echo $ac_n "(cached) $ac_c" 1>&6
973 cat > conftest.c
<<EOF
978 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
985 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
987 if test $ac_cv_prog_gcc = yes; then
993 ac_test_CFLAGS
="${CFLAGS+set}"
994 ac_save_CFLAGS
="$CFLAGS"
996 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
997 echo "configure:998: checking whether ${CC-cc} accepts -g" >&5
998 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
999 echo $ac_n "(cached) $ac_c" 1>&6
1001 echo 'void f(){}' > conftest.c
1002 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1011 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1012 if test "$ac_test_CFLAGS" = set; then
1013 CFLAGS
="$ac_save_CFLAGS"
1014 elif test $ac_cv_prog_cc_g = yes; then
1015 if test "$GCC" = yes; then
1021 if test "$GCC" = yes; then
1029 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1030 if test -f $ac_dir/install-sh
; then
1032 ac_install_sh
="$ac_aux_dir/install-sh -c"
1034 elif test -f $ac_dir/install.sh
; then
1036 ac_install_sh
="$ac_aux_dir/install.sh -c"
1040 if test -z "$ac_aux_dir"; then
1041 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1043 ac_config_guess
=$ac_aux_dir/config.guess
1044 ac_config_sub
=$ac_aux_dir/config.sub
1045 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1047 # Find a good install program. We prefer a C program (faster),
1048 # so one script is as good as another. But avoid the broken or
1049 # incompatible versions:
1050 # SysV /etc/install, /usr/sbin/install
1051 # SunOS /usr/etc/install
1052 # IRIX /sbin/install
1054 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1055 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1056 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1057 # ./install, which can be erroneously created by make from ./install.sh.
1058 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1059 echo "configure:1060: checking for a BSD compatible install" >&5
1060 if test -z "$INSTALL"; then
1061 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1062 echo $ac_n "(cached) $ac_c" 1>&6
1064 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1065 for ac_dir
in $PATH; do
1066 # Account for people who put trailing slashes in PATH elements.
1068 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1070 # OSF1 and SCO ODT 3.0 have their own names for install.
1071 # Don't use installbsd from OSF since it installs stuff as root
1073 for ac_prog
in ginstall scoinst
install; do
1074 if test -f $ac_dir/$ac_prog; then
1075 if test $ac_prog = install &&
1076 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1077 # AIX install. It has an incompatible calling convention.
1080 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1091 if test "${ac_cv_path_install+set}" = set; then
1092 INSTALL
="$ac_cv_path_install"
1094 # As a last resort, use the slow shell script. We don't cache a
1095 # path for INSTALL within a source directory, because that will
1096 # break other packages using the cache if that directory is
1097 # removed, or if the path is relative.
1098 INSTALL
="$ac_install_sh"
1101 echo "$ac_t""$INSTALL" 1>&6
1103 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1104 # It thinks the first close brace ends the variable substitution.
1105 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1107 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1109 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1111 for ac_prog
in gawk mawk nawk
awk
1113 # Extract the first word of "$ac_prog", so it can be a program name with args.
1114 set dummy
$ac_prog; ac_word
=$2
1115 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1116 echo "configure:1117: checking for $ac_word" >&5
1117 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1120 if test -n "$AWK"; then
1121 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1123 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1125 for ac_dir
in $ac_dummy; do
1126 test -z "$ac_dir" && ac_dir
=.
1127 if test -f $ac_dir/$ac_word; then
1128 ac_cv_prog_AWK
="$ac_prog"
1135 AWK
="$ac_cv_prog_AWK"
1136 if test -n "$AWK"; then
1137 echo "$ac_t""$AWK" 1>&6
1139 echo "$ac_t""no" 1>&6
1142 test -n "$AWK" && break
1146 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1147 echo "configure:1148: checking if the linker ($LD) is GNU ld" >&5
1148 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1151 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1152 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1153 ac_cv_prog_gnu_ld
=yes
1155 ac_cv_prog_gnu_ld
=no
1159 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1161 # Extract the first word of "passwd", so it can be a program name with args.
1162 set dummy passwd
; ac_word
=$2
1163 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1164 echo "configure:1165: checking for $ac_word" >&5
1165 if eval "test \"`echo '$''{'ac_cv_path_passwd_program'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1168 case "$passwd_program" in
1170 ac_cv_path_passwd_program
="$passwd_program" # Let the user override the test with a path.
1173 ac_cv_path_passwd_program
="$passwd_program" # Let the user override the test with a dos path.
1176 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1178 for ac_dir
in $ac_dummy; do
1179 test -z "$ac_dir" && ac_dir
=.
1180 if test -f $ac_dir/$ac_word; then
1181 ac_cv_path_passwd_program
="$ac_dir/$ac_word"
1186 test -z "$ac_cv_path_passwd_program" && ac_cv_path_passwd_program
="/bin/passwd"
1190 passwd_program
="$ac_cv_path_passwd_program"
1191 if test -n "$passwd_program"; then
1192 echo "$ac_t""$passwd_program" 1>&6
1194 echo "$ac_t""no" 1>&6
1199 if test "x$CC" != xcc
; then
1200 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1201 echo "configure:1202: checking whether $CC and cc understand -c and -o together" >&5
1203 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1204 echo "configure:1205: checking whether cc understands -c and -o together" >&5
1206 set dummy
$CC; ac_cc
="`echo $2 |
1207 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1208 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1211 echo 'foo(){}' > conftest.c
1212 # Make sure it works both with $CC and with simple cc.
1213 # We do the test twice because some compilers refuse to overwrite an
1214 # existing .o file with -o, though they will create one.
1215 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1216 if { (eval echo configure
:1217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1217 test -f conftest.o
&& { (eval echo configure
:1218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1219 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1220 if test "x$CC" != xcc
; then
1221 # Test first that cc exists at all.
1222 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1223 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1224 if { (eval echo configure
:1225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1225 test -f conftest.o
&& { (eval echo configure
:1226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1230 # cc exists but doesn't like -o.
1231 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1236 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1241 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1242 echo "$ac_t""yes" 1>&6
1244 echo "$ac_t""no" 1>&6
1245 cat >> confdefs.h
<<\EOF
1246 #define NO_MINUS_C_MINUS_O 1
1251 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1258 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1259 echo "configure:1260: checking that the C compiler understands volatile" >&5
1260 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1261 echo $ac_n "(cached) $ac_c" 1>&6
1264 cat > conftest.
$ac_ext <<EOF
1265 #line 1266 "configure"
1266 #include "confdefs.h"
1267 #include <sys/types.h>
1272 if { (eval echo configure
:1273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1274 samba_cv_volatile
=yes
1276 echo "configure: failed program was:" >&5
1277 cat conftest.
$ac_ext >&5
1279 samba_cv_volatile
=no
1284 echo "$ac_t""$samba_cv_volatile" 1>&6
1285 if test x
"$samba_cv_volatile" = x
"yes"; then
1286 cat >> confdefs.h
<<\EOF
1287 #define HAVE_VOLATILE 1
1295 # Do some error checking and defaulting for the host and target type.
1297 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1300 # 1. You are not allowed to specify --host, --target, and nonopt at the
1302 # 2. Host defaults to nonopt.
1303 # 3. If nonopt is not specified, then host defaults to the current host,
1304 # as determined by config.guess.
1305 # 4. Target and build default to nonopt.
1306 # 5. If nonopt is not specified, then target and build default to host.
1308 # The aliases save the names the user supplied, while $host etc.
1309 # will get canonicalized.
1310 case $host---$target---$nonopt in
1311 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1312 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1316 # Make sure we can run config.sub.
1317 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1318 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1321 echo $ac_n "checking host system type""... $ac_c" 1>&6
1322 echo "configure:1323: checking host system type" >&5
1325 case "$host_alias" in
1329 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1330 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1332 *) host_alias
=$nonopt ;;
1336 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1337 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1338 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1339 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1340 echo "$ac_t""$host" 1>&6
1342 echo $ac_n "checking target system type""... $ac_c" 1>&6
1343 echo "configure:1344: checking target system type" >&5
1345 target_alias
=$target
1346 case "$target_alias" in
1349 NONE
) target_alias
=$host_alias ;;
1350 *) target_alias
=$nonopt ;;
1354 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1355 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1356 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1357 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1358 echo "$ac_t""$target" 1>&6
1360 echo $ac_n "checking build system type""... $ac_c" 1>&6
1361 echo "configure:1362: checking build system type" >&5
1364 case "$build_alias" in
1367 NONE
) build_alias
=$host_alias ;;
1368 *) build_alias
=$nonopt ;;
1372 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1373 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1374 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1375 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1376 echo "$ac_t""$build" 1>&6
1378 test "$host_alias" != "$target_alias" &&
1379 test "$program_prefix$program_suffix$program_transform_name" = \
1381 program_prefix
=${target_alias}-
1385 *irix6
*) cat >> confdefs.h
<<\EOF
1386 #include <standards.h>
1394 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1395 echo "configure:1396: checking config.cache system type" >&5
1396 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1397 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1398 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1399 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1400 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1401 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1402 echo "$ac_t""different" 1>&6
1403 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1405 echo "$ac_t""same" 1>&6
1407 ac_cv_host_system_type
="$host"
1408 ac_cv_build_system_type
="$build"
1409 ac_cv_target_system_type
="$target"
1415 # Config CPPFLAG settings for strange OS's that must be set
1416 # before other tests.
1419 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1421 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1422 echo "configure:1423: checking whether ${CC-cc} accepts -Ae" >&5
1423 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1424 echo $ac_n "(cached) $ac_c" 1>&6
1426 echo 'void f(){}' > conftest.c
1427 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1428 ac_cv_prog_cc_Ae
=yes
1436 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1437 # mmap on HPUX is completely broken...
1438 cat >> confdefs.h
<<\EOF
1439 #define MMAP_BLACKLIST 1
1442 if test $ac_cv_prog_cc_Ae = yes; then
1443 CPPFLAGS
="$CPPFLAGS -Ae"
1446 # Defines needed for HPUX support.
1447 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1448 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1452 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1453 cat >> confdefs.h
<<\EOF
1454 #define USE_BOTH_CRYPT_CALLS 1
1457 cat >> confdefs.h
<<\EOF
1458 #define _HPUX_SOURCE 1
1461 cat >> confdefs.h
<<\EOF
1462 #define _POSIX_SOURCE 1
1465 cat >> confdefs.h
<<\EOF
1466 #define _ALIGNMENT_REQUIRED 1
1469 cat >> confdefs.h
<<\EOF
1470 #define _MAX_ALIGNMENT 4
1475 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1476 cat >> confdefs.h
<<\EOF
1477 #define _HPUX_SOURCE 1
1480 cat >> confdefs.h
<<\EOF
1481 #define _POSIX_SOURCE 1
1484 cat >> confdefs.h
<<\EOF
1485 #define _LARGEFILE64_SOURCE 1
1488 cat >> confdefs.h
<<\EOF
1489 #define _ALIGNMENT_REQUIRED 1
1492 cat >> confdefs.h
<<\EOF
1493 #define _MAX_ALIGNMENT 4
1496 cat >> confdefs.h
<<\EOF
1497 #define USE_BOTH_CRYPT_CALLS 1
1507 # CRAY Unicos has broken const handling
1509 echo "$ac_t""disabling const" 1>&6
1510 CPPFLAGS
="$CPPFLAGS -Dconst="
1514 # AIX4.x doesn't even admit to having large
1515 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1518 echo "$ac_t""enabling large file support" 1>&6
1519 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1520 cat >> confdefs.h
<<\EOF
1521 #define _LARGE_FILES 1
1526 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1527 # to the existance of large files..
1528 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1529 # recommendations on large file support, however it makes the
1530 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1531 # recommendation makes the compile fail on gcc2.7. JRA.
1535 5.0*|
5.1*|
5.2*|
5.3*|
5.5*)
1536 echo "$ac_t""no large file support" 1>&6
1539 echo "$ac_t""enabling large file support" 1>&6
1540 if test "$ac_cv_prog_gcc" = yes; then
1541 ${CC-cc} -v >conftest.c
2>&1
1542 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1544 case "$ac_cv_gcc_compiler_version_number" in
1545 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1546 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1547 cat >> confdefs.h
<<\EOF
1548 #define _LARGEFILE64_SOURCE 1
1553 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1554 cat >> confdefs.h
<<\EOF
1555 #define _LARGEFILE64_SOURCE 1
1558 cat >> confdefs.h
<<\EOF
1559 #define _FILE_OFFSET_BITS 64
1565 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1566 cat >> confdefs.h
<<\EOF
1567 #define _LARGEFILE64_SOURCE 1
1570 cat >> confdefs.h
<<\EOF
1571 #define _FILE_OFFSET_BITS 64
1579 # Tests needed for SINIX large file support.
1582 if test $host = mips-sni-sysv4
; then
1583 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1584 echo "configure:1585: checking for LFS support" >&5
1585 old_CPPFLAGS
="$CPPFLAGS"
1586 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1587 if test "$cross_compiling" = yes; then
1588 SINIX_LFS_SUPPORT
=cross
1590 cat > conftest.
$ac_ext <<EOF
1591 #line 1592 "configure"
1592 #include "confdefs.h"
1596 #if _LFS64_LARGEFILE == 1
1603 if { (eval echo configure
:1604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1605 SINIX_LFS_SUPPORT
=yes
1607 echo "configure: failed program was:" >&5
1608 cat conftest.
$ac_ext >&5
1610 SINIX_LFS_SUPPORT
=no
1615 CPPFLAGS
="$old_CPPFLAGS"
1616 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1617 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1618 cat >> confdefs.h
<<\EOF
1619 #define _LARGEFILE64_SOURCE 1
1622 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1623 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1624 LIBS
="`getconf LFS64_LIBS` $LIBS"
1626 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1630 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1633 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1634 echo "configure:1635: checking for LFS support" >&5
1635 old_CPPFLAGS
="$CPPFLAGS"
1636 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1637 if test "$cross_compiling" = yes; then
1638 LINUX_LFS_SUPPORT
=cross
1640 cat > conftest.
$ac_ext <<EOF
1641 #line 1642 "configure"
1642 #include "confdefs.h"
1645 #include <sys/utsname.h>
1647 #if _LFS64_LARGEFILE == 1
1652 /* Ensure this is glibc 2.2 or higher */
1653 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1654 int libc_major = __GLIBC__;
1655 int libc_minor = __GLIBC_MINOR__;
1663 /* Ensure this is kernel 2.4 or higher */
1666 release = uts.release;
1667 major = atoi(strsep(&release, "."));
1668 minor = atoi(strsep(&release, "."));
1670 if (major > 2 || (major == 2 && minor > 3))
1679 if { (eval echo configure
:1680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1681 LINUX_LFS_SUPPORT
=yes
1683 echo "configure: failed program was:" >&5
1684 cat conftest.
$ac_ext >&5
1686 LINUX_LFS_SUPPORT
=no
1691 CPPFLAGS
="$old_CPPFLAGS"
1692 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1693 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1694 cat >> confdefs.h
<<\EOF
1695 #define _LARGEFILE64_SOURCE 1
1698 cat >> confdefs.h
<<\EOF
1699 #define _FILE_OFFSET_BITS 64
1702 cat >> confdefs.h
<<\EOF
1703 #define _GNU_SOURCE 1
1707 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1711 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1712 echo "configure:1713: checking for LFS support" >&5
1713 old_CPPFLAGS
="$CPPFLAGS"
1714 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1715 if test "$cross_compiling" = yes; then
1716 GLIBC_LFS_SUPPORT
=cross
1718 cat > conftest.
$ac_ext <<EOF
1719 #line 1720 "configure"
1720 #include "confdefs.h"
1724 #if _LFS64_LARGEFILE == 1
1731 if { (eval echo configure
:1732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1733 GLIBC_LFS_SUPPORT
=yes
1735 echo "configure: failed program was:" >&5
1736 cat conftest.
$ac_ext >&5
1738 GLIBC_LFS_SUPPORT
=no
1743 CPPFLAGS
="$old_CPPFLAGS"
1744 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1745 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1746 cat >> confdefs.h
<<\EOF
1747 #define _LARGEFILE64_SOURCE 1
1750 cat >> confdefs.h
<<\EOF
1751 #define _GNU_SOURCE 1
1755 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1760 echo $ac_n "checking for inline""... $ac_c" 1>&6
1761 echo "configure:1762: checking for inline" >&5
1762 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1763 echo $ac_n "(cached) $ac_c" 1>&6
1766 for ac_kw
in inline __inline__ __inline
; do
1767 cat > conftest.
$ac_ext <<EOF
1768 #line 1769 "configure"
1769 #include "confdefs.h"
1775 if { (eval echo configure
:1776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1777 ac_cv_c_inline
=$ac_kw; break
1779 echo "configure: failed program was:" >&5
1780 cat conftest.
$ac_ext >&5
1787 echo "$ac_t""$ac_cv_c_inline" 1>&6
1788 case "$ac_cv_c_inline" in
1790 no
) cat >> confdefs.h
<<\EOF
1794 *) cat >> confdefs.h
<<EOF
1795 #define inline $ac_cv_c_inline
1800 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1801 echo "configure:1802: checking how to run the C preprocessor" >&5
1802 # On Suns, sometimes $CPP names a directory.
1803 if test -n "$CPP" && test -d "$CPP"; then
1806 if test -z "$CPP"; then
1807 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1808 echo $ac_n "(cached) $ac_c" 1>&6
1810 # This must be in double quotes, not single quotes, because CPP may get
1811 # substituted into the Makefile and "${CC-cc}" will confuse make.
1813 # On the NeXT, cc -E runs the code through the compiler's parser,
1814 # not just through cpp.
1815 cat > conftest.
$ac_ext <<EOF
1816 #line 1817 "configure"
1817 #include "confdefs.h"
1821 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1822 { (eval echo configure
:1823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1823 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1824 if test -z "$ac_err"; then
1828 echo "configure: failed program was:" >&5
1829 cat conftest.
$ac_ext >&5
1831 CPP
="${CC-cc} -E -traditional-cpp"
1832 cat > conftest.
$ac_ext <<EOF
1833 #line 1834 "configure"
1834 #include "confdefs.h"
1838 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1839 { (eval echo configure
:1840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1840 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1841 if test -z "$ac_err"; then
1845 echo "configure: failed program was:" >&5
1846 cat conftest.
$ac_ext >&5
1848 CPP
="${CC-cc} -nologo -E"
1849 cat > conftest.
$ac_ext <<EOF
1850 #line 1851 "configure"
1851 #include "confdefs.h"
1855 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1856 { (eval echo configure
:1857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1857 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1858 if test -z "$ac_err"; then
1862 echo "configure: failed program was:" >&5
1863 cat conftest.
$ac_ext >&5
1872 ac_cv_prog_CPP
="$CPP"
1874 CPP
="$ac_cv_prog_CPP"
1876 ac_cv_prog_CPP
="$CPP"
1878 echo "$ac_t""$CPP" 1>&6
1880 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1881 echo "configure:1882: checking for ANSI C header files" >&5
1882 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1885 cat > conftest.
$ac_ext <<EOF
1886 #line 1887 "configure"
1887 #include "confdefs.h"
1893 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1894 { (eval echo configure
:1895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1895 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1896 if test -z "$ac_err"; then
1898 ac_cv_header_stdc
=yes
1901 echo "configure: failed program was:" >&5
1902 cat conftest.
$ac_ext >&5
1904 ac_cv_header_stdc
=no
1908 if test $ac_cv_header_stdc = yes; then
1909 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1910 cat > conftest.
$ac_ext <<EOF
1911 #line 1912 "configure"
1912 #include "confdefs.h"
1915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1916 egrep "memchr" >/dev
/null
2>&1; then
1920 ac_cv_header_stdc
=no
1926 if test $ac_cv_header_stdc = yes; then
1927 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1928 cat > conftest.
$ac_ext <<EOF
1929 #line 1930 "configure"
1930 #include "confdefs.h"
1933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1934 egrep "free" >/dev
/null
2>&1; then
1938 ac_cv_header_stdc
=no
1944 if test $ac_cv_header_stdc = yes; then
1945 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1946 if test "$cross_compiling" = yes; then
1949 cat > conftest.
$ac_ext <<EOF
1950 #line 1951 "configure"
1951 #include "confdefs.h"
1953 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1954 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1955 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1956 int main () { int i; for (i = 0; i < 256; i++)
1957 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1961 if { (eval echo configure
:1962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1965 echo "configure: failed program was:" >&5
1966 cat conftest.
$ac_ext >&5
1968 ac_cv_header_stdc
=no
1976 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1977 if test $ac_cv_header_stdc = yes; then
1978 cat >> confdefs.h
<<\EOF
1979 #define STDC_HEADERS 1
1985 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1987 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1988 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1989 echo "configure:1990: checking for $ac_hdr that defines DIR" >&5
1990 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1991 echo $ac_n "(cached) $ac_c" 1>&6
1993 cat > conftest.
$ac_ext <<EOF
1994 #line 1995 "configure"
1995 #include "confdefs.h"
1996 #include <sys/types.h>
2002 if { (eval echo configure
:2003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2004 eval "ac_cv_header_dirent_$ac_safe=yes"
2006 echo "configure: failed program was:" >&5
2007 cat conftest.
$ac_ext >&5
2009 eval "ac_cv_header_dirent_$ac_safe=no"
2013 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2014 echo "$ac_t""yes" 1>&6
2015 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2016 cat >> confdefs.h
<<EOF
2017 #define $ac_tr_hdr 1
2019 ac_header_dirent
=$ac_hdr; break
2021 echo "$ac_t""no" 1>&6
2024 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2025 if test $ac_header_dirent = dirent.h
; then
2026 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2027 echo "configure:2028: checking for opendir in -ldir" >&5
2028 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2029 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2032 ac_save_LIBS
="$LIBS"
2034 cat > conftest.
$ac_ext <<EOF
2035 #line 2036 "configure"
2036 #include "confdefs.h"
2037 /* Override any gcc2 internal prototype to avoid an error. */
2038 /* We use char because int might match the return type of a gcc2
2039 builtin and then its argument prototype would still apply. */
2046 if { (eval echo configure
:2047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2048 eval "ac_cv_lib_$ac_lib_var=yes"
2050 echo "configure: failed program was:" >&5
2051 cat conftest.
$ac_ext >&5
2053 eval "ac_cv_lib_$ac_lib_var=no"
2056 LIBS
="$ac_save_LIBS"
2059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2060 echo "$ac_t""yes" 1>&6
2063 echo "$ac_t""no" 1>&6
2067 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2068 echo "configure:2069: checking for opendir in -lx" >&5
2069 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2070 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2073 ac_save_LIBS
="$LIBS"
2075 cat > conftest.
$ac_ext <<EOF
2076 #line 2077 "configure"
2077 #include "confdefs.h"
2078 /* Override any gcc2 internal prototype to avoid an error. */
2079 /* We use char because int might match the return type of a gcc2
2080 builtin and then its argument prototype would still apply. */
2087 if { (eval echo configure
:2088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2089 eval "ac_cv_lib_$ac_lib_var=yes"
2091 echo "configure: failed program was:" >&5
2092 cat conftest.
$ac_ext >&5
2094 eval "ac_cv_lib_$ac_lib_var=no"
2097 LIBS
="$ac_save_LIBS"
2100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2101 echo "$ac_t""yes" 1>&6
2104 echo "$ac_t""no" 1>&6
2109 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2110 echo "configure:2111: checking whether time.h and sys/time.h may both be included" >&5
2111 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2112 echo $ac_n "(cached) $ac_c" 1>&6
2114 cat > conftest.
$ac_ext <<EOF
2115 #line 2116 "configure"
2116 #include "confdefs.h"
2117 #include <sys/types.h>
2118 #include <sys/time.h>
2124 if { (eval echo configure
:2125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2126 ac_cv_header_time
=yes
2128 echo "configure: failed program was:" >&5
2129 cat conftest.
$ac_ext >&5
2131 ac_cv_header_time
=no
2136 echo "$ac_t""$ac_cv_header_time" 1>&6
2137 if test $ac_cv_header_time = yes; then
2138 cat >> confdefs.h
<<\EOF
2139 #define TIME_WITH_SYS_TIME 1
2144 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2145 echo "configure:2146: checking for sys/wait.h that is POSIX.1 compatible" >&5
2146 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2147 echo $ac_n "(cached) $ac_c" 1>&6
2149 cat > conftest.
$ac_ext <<EOF
2150 #line 2151 "configure"
2151 #include "confdefs.h"
2152 #include <sys/types.h>
2153 #include <sys/wait.h>
2155 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2158 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2163 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2166 if { (eval echo configure
:2167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2168 ac_cv_header_sys_wait_h
=yes
2170 echo "configure: failed program was:" >&5
2171 cat conftest.
$ac_ext >&5
2173 ac_cv_header_sys_wait_h
=no
2178 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2179 if test $ac_cv_header_sys_wait_h = yes; then
2180 cat >> confdefs.h
<<\EOF
2181 #define HAVE_SYS_WAIT_H 1
2186 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2188 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2189 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2190 echo "configure:2191: checking for $ac_hdr" >&5
2191 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2192 echo $ac_n "(cached) $ac_c" 1>&6
2194 cat > conftest.
$ac_ext <<EOF
2195 #line 2196 "configure"
2196 #include "confdefs.h"
2199 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2200 { (eval echo configure
:2201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2201 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2202 if test -z "$ac_err"; then
2204 eval "ac_cv_header_$ac_safe=yes"
2207 echo "configure: failed program was:" >&5
2208 cat conftest.
$ac_ext >&5
2210 eval "ac_cv_header_$ac_safe=no"
2214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2215 echo "$ac_t""yes" 1>&6
2216 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2217 cat >> confdefs.h
<<EOF
2218 #define $ac_tr_hdr 1
2222 echo "$ac_t""no" 1>&6
2226 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2228 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2229 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2230 echo "configure:2231: checking for $ac_hdr" >&5
2231 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2232 echo $ac_n "(cached) $ac_c" 1>&6
2234 cat > conftest.
$ac_ext <<EOF
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2239 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2240 { (eval echo configure
:2241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2241 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2242 if test -z "$ac_err"; then
2244 eval "ac_cv_header_$ac_safe=yes"
2247 echo "configure: failed program was:" >&5
2248 cat conftest.
$ac_ext >&5
2250 eval "ac_cv_header_$ac_safe=no"
2254 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2255 echo "$ac_t""yes" 1>&6
2256 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2257 cat >> confdefs.h
<<EOF
2258 #define $ac_tr_hdr 1
2262 echo "$ac_t""no" 1>&6
2266 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2268 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2269 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2270 echo "configure:2271: checking for $ac_hdr" >&5
2271 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2272 echo $ac_n "(cached) $ac_c" 1>&6
2274 cat > conftest.
$ac_ext <<EOF
2275 #line 2276 "configure"
2276 #include "confdefs.h"
2279 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2280 { (eval echo configure
:2281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2281 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2282 if test -z "$ac_err"; then
2284 eval "ac_cv_header_$ac_safe=yes"
2287 echo "configure: failed program was:" >&5
2288 cat conftest.
$ac_ext >&5
2290 eval "ac_cv_header_$ac_safe=no"
2294 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2295 echo "$ac_t""yes" 1>&6
2296 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2297 cat >> confdefs.h
<<EOF
2298 #define $ac_tr_hdr 1
2302 echo "$ac_t""no" 1>&6
2306 for ac_hdr
in stdlib.h string.h
strings.h syslog.h sys
/file.h
2308 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2309 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2310 echo "configure:2311: checking for $ac_hdr" >&5
2311 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2312 echo $ac_n "(cached) $ac_c" 1>&6
2314 cat > conftest.
$ac_ext <<EOF
2315 #line 2316 "configure"
2316 #include "confdefs.h"
2319 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2320 { (eval echo configure
:2321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2321 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2322 if test -z "$ac_err"; then
2324 eval "ac_cv_header_$ac_safe=yes"
2327 echo "configure: failed program was:" >&5
2328 cat conftest.
$ac_ext >&5
2330 eval "ac_cv_header_$ac_safe=no"
2334 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2335 echo "$ac_t""yes" 1>&6
2336 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2337 cat >> confdefs.h
<<EOF
2338 #define $ac_tr_hdr 1
2342 echo "$ac_t""no" 1>&6
2346 for ac_hdr
in sys
/param.h ctype.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/ipc.h sys
/mode.h
2348 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2349 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2350 echo "configure:2351: checking for $ac_hdr" >&5
2351 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2352 echo $ac_n "(cached) $ac_c" 1>&6
2354 cat > conftest.
$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2359 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2360 { (eval echo configure
:2361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2361 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2362 if test -z "$ac_err"; then
2364 eval "ac_cv_header_$ac_safe=yes"
2367 echo "configure: failed program was:" >&5
2368 cat conftest.
$ac_ext >&5
2370 eval "ac_cv_header_$ac_safe=no"
2374 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2375 echo "$ac_t""yes" 1>&6
2376 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2377 cat >> confdefs.h
<<EOF
2378 #define $ac_tr_hdr 1
2382 echo "$ac_t""no" 1>&6
2386 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h sys
/shm.h sys
/socket.h
2388 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2389 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2390 echo "configure:2391: checking for $ac_hdr" >&5
2391 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2392 echo $ac_n "(cached) $ac_c" 1>&6
2394 cat > conftest.
$ac_ext <<EOF
2395 #line 2396 "configure"
2396 #include "confdefs.h"
2399 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2400 { (eval echo configure
:2401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2401 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2402 if test -z "$ac_err"; then
2404 eval "ac_cv_header_$ac_safe=yes"
2407 echo "configure: failed program was:" >&5
2408 cat conftest.
$ac_ext >&5
2410 eval "ac_cv_header_$ac_safe=no"
2414 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2415 echo "$ac_t""yes" 1>&6
2416 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2417 cat >> confdefs.h
<<EOF
2418 #define $ac_tr_hdr 1
2422 echo "$ac_t""no" 1>&6
2426 for ac_hdr
in syslog.h sys
/syslog.h sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2428 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2429 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2430 echo "configure:2431: checking for $ac_hdr" >&5
2431 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2432 echo $ac_n "(cached) $ac_c" 1>&6
2434 cat > conftest.
$ac_ext <<EOF
2435 #line 2436 "configure"
2436 #include "confdefs.h"
2439 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2440 { (eval echo configure
:2441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2441 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2442 if test -z "$ac_err"; then
2444 eval "ac_cv_header_$ac_safe=yes"
2447 echo "configure: failed program was:" >&5
2448 cat conftest.
$ac_ext >&5
2450 eval "ac_cv_header_$ac_safe=no"
2454 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2455 echo "$ac_t""yes" 1>&6
2456 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2457 cat >> confdefs.h
<<EOF
2458 #define $ac_tr_hdr 1
2462 echo "$ac_t""no" 1>&6
2466 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2468 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2469 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2470 echo "configure:2471: checking for $ac_hdr" >&5
2471 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2472 echo $ac_n "(cached) $ac_c" 1>&6
2474 cat > conftest.
$ac_ext <<EOF
2475 #line 2476 "configure"
2476 #include "confdefs.h"
2479 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2480 { (eval echo configure
:2481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2481 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2482 if test -z "$ac_err"; then
2484 eval "ac_cv_header_$ac_safe=yes"
2487 echo "configure: failed program was:" >&5
2488 cat conftest.
$ac_ext >&5
2490 eval "ac_cv_header_$ac_safe=no"
2494 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2495 echo "$ac_t""yes" 1>&6
2496 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2497 cat >> confdefs.h
<<EOF
2498 #define $ac_tr_hdr 1
2502 echo "$ac_t""no" 1>&6
2506 for ac_hdr
in security
/pam_modules.h security
/_pam_macros.h dlfcn.h synch.h pthread.h nsswitch.h
2508 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2509 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2510 echo "configure:2511: checking for $ac_hdr" >&5
2511 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2514 cat > conftest.
$ac_ext <<EOF
2515 #line 2516 "configure"
2516 #include "confdefs.h"
2519 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2520 { (eval echo configure
:2521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2521 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2522 if test -z "$ac_err"; then
2524 eval "ac_cv_header_$ac_safe=yes"
2527 echo "configure: failed program was:" >&5
2528 cat conftest.
$ac_ext >&5
2530 eval "ac_cv_header_$ac_safe=no"
2534 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2535 echo "$ac_t""yes" 1>&6
2536 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2537 cat >> confdefs.h
<<EOF
2538 #define $ac_tr_hdr 1
2542 echo "$ac_t""no" 1>&6
2548 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2549 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2553 cat > conftest.
$ac_ext <<EOF
2554 #line 2555 "configure"
2555 #include "confdefs.h"
2561 if { (eval echo configure
:2562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2563 ac_cv_header_shadow_h
=yes
2565 echo "configure: failed program was:" >&5
2566 cat conftest.
$ac_ext >&5
2568 ac_cv_header_shadow_h
=no
2571 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2572 cat >> confdefs.h
<<\EOF
2573 #define HAVE_SHADOW_H 1
2579 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2581 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2582 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2583 echo "configure:2584: checking for $ac_hdr" >&5
2584 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2587 cat > conftest.
$ac_ext <<EOF
2588 #line 2589 "configure"
2589 #include "confdefs.h"
2592 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2593 { (eval echo configure
:2594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2594 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2595 if test -z "$ac_err"; then
2597 eval "ac_cv_header_$ac_safe=yes"
2600 echo "configure: failed program was:" >&5
2601 cat conftest.
$ac_ext >&5
2603 eval "ac_cv_header_$ac_safe=no"
2607 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2608 echo "$ac_t""yes" 1>&6
2609 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2610 cat >> confdefs.h
<<EOF
2611 #define $ac_tr_hdr 1
2615 echo "$ac_t""no" 1>&6
2619 for ac_hdr
in nss.h nss_common.h ns_api.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2621 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2622 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2623 echo "configure:2624: checking for $ac_hdr" >&5
2624 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2625 echo $ac_n "(cached) $ac_c" 1>&6
2627 cat > conftest.
$ac_ext <<EOF
2628 #line 2629 "configure"
2629 #include "confdefs.h"
2632 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2633 { (eval echo configure
:2634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2634 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2635 if test -z "$ac_err"; then
2637 eval "ac_cv_header_$ac_safe=yes"
2640 echo "configure: failed program was:" >&5
2641 cat conftest.
$ac_ext >&5
2643 eval "ac_cv_header_$ac_safe=no"
2647 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2648 echo "$ac_t""yes" 1>&6
2649 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2650 cat >> confdefs.h
<<EOF
2651 #define $ac_tr_hdr 1
2655 echo "$ac_t""no" 1>&6
2659 for ac_hdr
in stropts.h poll.h
2661 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2662 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2663 echo "configure:2664: checking for $ac_hdr" >&5
2664 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2665 echo $ac_n "(cached) $ac_c" 1>&6
2667 cat > conftest.
$ac_ext <<EOF
2668 #line 2669 "configure"
2669 #include "confdefs.h"
2672 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2673 { (eval echo configure
:2674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2674 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2675 if test -z "$ac_err"; then
2677 eval "ac_cv_header_$ac_safe=yes"
2680 echo "configure: failed program was:" >&5
2681 cat conftest.
$ac_ext >&5
2683 eval "ac_cv_header_$ac_safe=no"
2687 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2688 echo "$ac_t""yes" 1>&6
2689 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2690 cat >> confdefs.h
<<EOF
2691 #define $ac_tr_hdr 1
2695 echo "$ac_t""no" 1>&6
2699 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2701 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2702 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2703 echo "configure:2704: checking for $ac_hdr" >&5
2704 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2705 echo $ac_n "(cached) $ac_c" 1>&6
2707 cat > conftest.
$ac_ext <<EOF
2708 #line 2709 "configure"
2709 #include "confdefs.h"
2712 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2713 { (eval echo configure
:2714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2714 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2715 if test -z "$ac_err"; then
2717 eval "ac_cv_header_$ac_safe=yes"
2720 echo "configure: failed program was:" >&5
2721 cat conftest.
$ac_ext >&5
2723 eval "ac_cv_header_$ac_safe=no"
2727 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2728 echo "$ac_t""yes" 1>&6
2729 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2730 cat >> confdefs.h
<<EOF
2731 #define $ac_tr_hdr 1
2735 echo "$ac_t""no" 1>&6
2739 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2741 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2742 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2743 echo "configure:2744: checking for $ac_hdr" >&5
2744 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2745 echo $ac_n "(cached) $ac_c" 1>&6
2747 cat > conftest.
$ac_ext <<EOF
2748 #line 2749 "configure"
2749 #include "confdefs.h"
2752 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2753 { (eval echo configure
:2754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2754 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2755 if test -z "$ac_err"; then
2757 eval "ac_cv_header_$ac_safe=yes"
2760 echo "configure: failed program was:" >&5
2761 cat conftest.
$ac_ext >&5
2763 eval "ac_cv_header_$ac_safe=no"
2767 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2768 echo "$ac_t""yes" 1>&6
2769 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2770 cat >> confdefs.h
<<EOF
2771 #define $ac_tr_hdr 1
2775 echo "$ac_t""no" 1>&6
2780 # For experimental utmp support (lastlog on some BSD-like systems)
2781 for ac_hdr
in utmp.h utmpx.h lastlog.h
2783 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2784 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2785 echo "configure:2786: checking for $ac_hdr" >&5
2786 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2787 echo $ac_n "(cached) $ac_c" 1>&6
2789 cat > conftest.
$ac_ext <<EOF
2790 #line 2791 "configure"
2791 #include "confdefs.h"
2794 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2795 { (eval echo configure
:2796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2796 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2797 if test -z "$ac_err"; then
2799 eval "ac_cv_header_$ac_safe=yes"
2802 echo "configure: failed program was:" >&5
2803 cat conftest.
$ac_ext >&5
2805 eval "ac_cv_header_$ac_safe=no"
2809 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2810 echo "$ac_t""yes" 1>&6
2811 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2812 cat >> confdefs.h
<<EOF
2813 #define $ac_tr_hdr 1
2817 echo "$ac_t""no" 1>&6
2822 # For quotas on Veritas VxFS filesystems
2823 for ac_hdr
in sys
/fs
/vx_quota.h
2825 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2827 echo "configure:2828: checking for $ac_hdr" >&5
2828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2831 cat > conftest.
$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2836 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2837 { (eval echo configure
:2838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2838 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2839 if test -z "$ac_err"; then
2841 eval "ac_cv_header_$ac_safe=yes"
2844 echo "configure: failed program was:" >&5
2845 cat conftest.
$ac_ext >&5
2847 eval "ac_cv_header_$ac_safe=no"
2851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2852 echo "$ac_t""yes" 1>&6
2853 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2854 cat >> confdefs.h
<<EOF
2855 #define $ac_tr_hdr 1
2859 echo "$ac_t""no" 1>&6
2864 # For quotas on Linux XFS filesystems
2865 for ac_hdr
in linux
/xqm.h
2867 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2868 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2869 echo "configure:2870: checking for $ac_hdr" >&5
2870 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2871 echo $ac_n "(cached) $ac_c" 1>&6
2873 cat > conftest.
$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2878 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2879 { (eval echo configure
:2880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2880 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2881 if test -z "$ac_err"; then
2883 eval "ac_cv_header_$ac_safe=yes"
2886 echo "configure: failed program was:" >&5
2887 cat conftest.
$ac_ext >&5
2889 eval "ac_cv_header_$ac_safe=no"
2893 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2894 echo "$ac_t""yes" 1>&6
2895 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2896 cat >> confdefs.h
<<EOF
2897 #define $ac_tr_hdr 1
2901 echo "$ac_t""no" 1>&6
2906 echo $ac_n "checking size of int""... $ac_c" 1>&6
2907 echo "configure:2908: checking size of int" >&5
2908 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2909 echo $ac_n "(cached) $ac_c" 1>&6
2911 if test "$cross_compiling" = yes; then
2912 ac_cv_sizeof_int
=cross
2914 cat > conftest.
$ac_ext <<EOF
2915 #line 2916 "configure"
2916 #include "confdefs.h"
2920 FILE *f=fopen("conftestval", "w");
2922 fprintf(f, "%d\n", sizeof(int));
2926 if { (eval echo configure
:2927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2928 ac_cv_sizeof_int
=`cat conftestval`
2930 echo "configure: failed program was:" >&5
2931 cat conftest.
$ac_ext >&5
2939 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2940 cat >> confdefs.h
<<EOF
2941 #define SIZEOF_INT $ac_cv_sizeof_int
2945 echo $ac_n "checking size of long""... $ac_c" 1>&6
2946 echo "configure:2947: checking size of long" >&5
2947 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2948 echo $ac_n "(cached) $ac_c" 1>&6
2950 if test "$cross_compiling" = yes; then
2951 ac_cv_sizeof_long
=cross
2953 cat > conftest.
$ac_ext <<EOF
2954 #line 2955 "configure"
2955 #include "confdefs.h"
2959 FILE *f=fopen("conftestval", "w");
2961 fprintf(f, "%d\n", sizeof(long));
2965 if { (eval echo configure
:2966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2967 ac_cv_sizeof_long
=`cat conftestval`
2969 echo "configure: failed program was:" >&5
2970 cat conftest.
$ac_ext >&5
2978 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2979 cat >> confdefs.h
<<EOF
2980 #define SIZEOF_LONG $ac_cv_sizeof_long
2984 echo $ac_n "checking size of short""... $ac_c" 1>&6
2985 echo "configure:2986: checking size of short" >&5
2986 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2987 echo $ac_n "(cached) $ac_c" 1>&6
2989 if test "$cross_compiling" = yes; then
2990 ac_cv_sizeof_short
=cross
2992 cat > conftest.
$ac_ext <<EOF
2993 #line 2994 "configure"
2994 #include "confdefs.h"
2998 FILE *f=fopen("conftestval", "w");
3000 fprintf(f, "%d\n", sizeof(short));
3004 if { (eval echo configure
:3005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3006 ac_cv_sizeof_short
=`cat conftestval`
3008 echo "configure: failed program was:" >&5
3009 cat conftest.
$ac_ext >&5
3011 ac_cv_sizeof_short
=0
3017 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3018 cat >> confdefs.h
<<EOF
3019 #define SIZEOF_SHORT $ac_cv_sizeof_short
3024 echo $ac_n "checking for working const""... $ac_c" 1>&6
3025 echo "configure:3026: checking for working const" >&5
3026 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3027 echo $ac_n "(cached) $ac_c" 1>&6
3029 cat > conftest.
$ac_ext <<EOF
3030 #line 3031 "configure"
3031 #include "confdefs.h"
3035 /* Ultrix mips cc rejects this. */
3036 typedef int charset[2]; const charset x;
3037 /* SunOS 4.1.1 cc rejects this. */
3038 char const *const *ccp;
3040 /* NEC SVR4.0.2 mips cc rejects this. */
3041 struct point {int x, y;};
3042 static struct point const zero = {0,0};
3043 /* AIX XL C 1.02.0.0 rejects this.
3044 It does not let you subtract one const X* pointer from another in an arm
3045 of an if-expression whose if-part is not a constant expression */
3046 const char *g = "string";
3047 ccp = &g + (g ? g-g : 0);
3048 /* HPUX 7.0 cc rejects these. */
3051 ccp = (char const *const *) p;
3052 { /* SCO 3.2v4 cc rejects this. */
3054 char const *s = 0 ? (char *) 0 : (char const *) 0;
3058 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3060 const int *foo = &x[0];
3063 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3064 typedef const int *iptr;
3068 { /* AIX XL C 1.02.0.0 rejects this saying
3069 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3070 struct s { int j; const int *ap[3]; };
3071 struct s *b; b->j = 5;
3073 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3079 if { (eval echo configure
:3080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3083 echo "configure: failed program was:" >&5
3084 cat conftest.
$ac_ext >&5
3091 echo "$ac_t""$ac_cv_c_const" 1>&6
3092 if test $ac_cv_c_const = no
; then
3093 cat >> confdefs.h
<<\EOF
3099 echo $ac_n "checking for inline""... $ac_c" 1>&6
3100 echo "configure:3101: checking for inline" >&5
3101 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3102 echo $ac_n "(cached) $ac_c" 1>&6
3105 for ac_kw
in inline __inline__ __inline
; do
3106 cat > conftest.
$ac_ext <<EOF
3107 #line 3108 "configure"
3108 #include "confdefs.h"
3114 if { (eval echo configure
:3115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3116 ac_cv_c_inline
=$ac_kw; break
3118 echo "configure: failed program was:" >&5
3119 cat conftest.
$ac_ext >&5
3126 echo "$ac_t""$ac_cv_c_inline" 1>&6
3127 case "$ac_cv_c_inline" in
3129 no
) cat >> confdefs.h
<<\EOF
3133 *) cat >> confdefs.h
<<EOF
3134 #define inline $ac_cv_c_inline
3139 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3140 echo "configure:3141: checking whether byte ordering is bigendian" >&5
3141 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3142 echo $ac_n "(cached) $ac_c" 1>&6
3144 ac_cv_c_bigendian
=unknown
3145 # See if sys/param.h defines the BYTE_ORDER macro.
3146 cat > conftest.
$ac_ext <<EOF
3147 #line 3148 "configure"
3148 #include "confdefs.h"
3149 #include <sys/types.h>
3150 #include <sys/param.h>
3153 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3158 if { (eval echo configure
:3159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3160 # It does; now see whether it defined to BIG_ENDIAN or not.
3161 cat > conftest.
$ac_ext <<EOF
3162 #line 3163 "configure"
3163 #include "confdefs.h"
3164 #include <sys/types.h>
3165 #include <sys/param.h>
3168 #if BYTE_ORDER != BIG_ENDIAN
3173 if { (eval echo configure
:3174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3175 ac_cv_c_bigendian
=yes
3177 echo "configure: failed program was:" >&5
3178 cat conftest.
$ac_ext >&5
3180 ac_cv_c_bigendian
=no
3184 echo "configure: failed program was:" >&5
3185 cat conftest.
$ac_ext >&5
3188 if test $ac_cv_c_bigendian = unknown
; then
3189 if test "$cross_compiling" = yes; then
3190 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3192 cat > conftest.
$ac_ext <<EOF
3193 #line 3194 "configure"
3194 #include "confdefs.h"
3196 /* Are we little or big endian? From Harbison&Steele. */
3200 char c[sizeof (long)];
3203 exit (u.c[sizeof (long) - 1] == 1);
3206 if { (eval echo configure
:3207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3208 ac_cv_c_bigendian
=no
3210 echo "configure: failed program was:" >&5
3211 cat conftest.
$ac_ext >&5
3213 ac_cv_c_bigendian
=yes
3221 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3222 if test $ac_cv_c_bigendian = yes; then
3223 cat >> confdefs.h
<<\EOF
3224 #define WORDS_BIGENDIAN 1
3229 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3230 echo "configure:3231: checking whether char is unsigned" >&5
3231 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3232 echo $ac_n "(cached) $ac_c" 1>&6
3234 if test "$GCC" = yes; then
3235 # GCC predefines this symbol on systems where it applies.
3236 cat > conftest.
$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3239 #ifdef __CHAR_UNSIGNED__
3244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3245 egrep "yes" >/dev
/null
2>&1; then
3247 ac_cv_c_char_unsigned
=yes
3250 ac_cv_c_char_unsigned
=no
3255 if test "$cross_compiling" = yes; then
3256 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3258 cat > conftest.
$ac_ext <<EOF
3259 #line 3260 "configure"
3260 #include "confdefs.h"
3261 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3262 #if !defined(__STDC__) || __STDC__ != 1
3266 volatile char c = 255; exit(c < 0);
3269 if { (eval echo configure
:3270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3271 ac_cv_c_char_unsigned
=yes
3273 echo "configure: failed program was:" >&5
3274 cat conftest.
$ac_ext >&5
3276 ac_cv_c_char_unsigned
=no
3284 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3285 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3286 cat >> confdefs.h
<<\EOF
3287 #define __CHAR_UNSIGNED__ 1
3293 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3294 echo "configure:3295: checking return type of signal handlers" >&5
3295 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3296 echo $ac_n "(cached) $ac_c" 1>&6
3298 cat > conftest.
$ac_ext <<EOF
3299 #line 3300 "configure"
3300 #include "confdefs.h"
3301 #include <sys/types.h>
3307 extern "C" void (*signal (int, void (*)(int)))(int);
3309 void (*signal ()) ();
3316 if { (eval echo configure
:3317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3318 ac_cv_type_signal
=void
3320 echo "configure: failed program was:" >&5
3321 cat conftest.
$ac_ext >&5
3323 ac_cv_type_signal
=int
3328 echo "$ac_t""$ac_cv_type_signal" 1>&6
3329 cat >> confdefs.h
<<EOF
3330 #define RETSIGTYPE $ac_cv_type_signal
3334 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3335 echo "configure:3336: checking for uid_t in sys/types.h" >&5
3336 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3337 echo $ac_n "(cached) $ac_c" 1>&6
3339 cat > conftest.
$ac_ext <<EOF
3340 #line 3341 "configure"
3341 #include "confdefs.h"
3342 #include <sys/types.h>
3344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3345 egrep "uid_t" >/dev
/null
2>&1; then
3347 ac_cv_type_uid_t
=yes
3356 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3357 if test $ac_cv_type_uid_t = no
; then
3358 cat >> confdefs.h
<<\EOF
3362 cat >> confdefs.h
<<\EOF
3368 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3369 echo "configure:3370: checking for mode_t" >&5
3370 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3371 echo $ac_n "(cached) $ac_c" 1>&6
3373 cat > conftest.
$ac_ext <<EOF
3374 #line 3375 "configure"
3375 #include "confdefs.h"
3376 #include <sys/types.h>
3382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3383 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3385 ac_cv_type_mode_t
=yes
3388 ac_cv_type_mode_t
=no
3393 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3394 if test $ac_cv_type_mode_t = no
; then
3395 cat >> confdefs.h
<<\EOF
3401 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3402 echo "configure:3403: checking for off_t" >&5
3403 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3406 cat > conftest.
$ac_ext <<EOF
3407 #line 3408 "configure"
3408 #include "confdefs.h"
3409 #include <sys/types.h>
3415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3416 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3418 ac_cv_type_off_t
=yes
3426 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3427 if test $ac_cv_type_off_t = no
; then
3428 cat >> confdefs.h
<<\EOF
3434 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3435 echo "configure:3436: checking for size_t" >&5
3436 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3437 echo $ac_n "(cached) $ac_c" 1>&6
3439 cat > conftest.
$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3442 #include <sys/types.h>
3448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3449 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3451 ac_cv_type_size_t
=yes
3454 ac_cv_type_size_t
=no
3459 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3460 if test $ac_cv_type_size_t = no
; then
3461 cat >> confdefs.h
<<\EOF
3462 #define size_t unsigned
3467 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3468 echo "configure:3469: checking for pid_t" >&5
3469 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3470 echo $ac_n "(cached) $ac_c" 1>&6
3472 cat > conftest.
$ac_ext <<EOF
3473 #line 3474 "configure"
3474 #include "confdefs.h"
3475 #include <sys/types.h>
3481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3482 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3484 ac_cv_type_pid_t
=yes
3492 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3493 if test $ac_cv_type_pid_t = no
; then
3494 cat >> confdefs.h
<<\EOF
3500 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3501 echo "configure:3502: checking for st_rdev in struct stat" >&5
3502 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3503 echo $ac_n "(cached) $ac_c" 1>&6
3505 cat > conftest.
$ac_ext <<EOF
3506 #line 3507 "configure"
3507 #include "confdefs.h"
3508 #include <sys/types.h>
3509 #include <sys/stat.h>
3511 struct stat s; s.st_rdev;
3514 if { (eval echo configure
:3515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3516 ac_cv_struct_st_rdev
=yes
3518 echo "configure: failed program was:" >&5
3519 cat conftest.
$ac_ext >&5
3521 ac_cv_struct_st_rdev
=no
3526 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3527 if test $ac_cv_struct_st_rdev = yes; then
3528 cat >> confdefs.h
<<\EOF
3529 #define HAVE_ST_RDEV 1
3534 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3535 echo "configure:3536: checking for d_off in dirent" >&5
3536 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3537 echo $ac_n "(cached) $ac_c" 1>&6
3539 cat > conftest.
$ac_ext <<EOF
3540 #line 3541 "configure"
3541 #include "confdefs.h"
3544 #include <sys/types.h>
3547 struct dirent d; d.d_off;
3550 if { (eval echo configure
:3551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3552 ac_cv_dirent_d_off
=yes
3554 echo "configure: failed program was:" >&5
3555 cat conftest.
$ac_ext >&5
3557 ac_cv_dirent_d_off
=no
3562 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3563 if test $ac_cv_dirent_d_off = yes; then
3564 cat >> confdefs.h
<<\EOF
3565 #define HAVE_DIRENT_D_OFF 1
3570 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3571 echo "configure:3572: checking for ino_t" >&5
3572 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3575 cat > conftest.
$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3578 #include <sys/types.h>
3584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3585 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3587 ac_cv_type_ino_t
=yes
3595 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3596 if test $ac_cv_type_ino_t = no
; then
3597 cat >> confdefs.h
<<\EOF
3598 #define ino_t unsigned
3603 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3604 echo "configure:3605: checking for loff_t" >&5
3605 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3606 echo $ac_n "(cached) $ac_c" 1>&6
3608 cat > conftest.
$ac_ext <<EOF
3609 #line 3610 "configure"
3610 #include "confdefs.h"
3611 #include <sys/types.h>
3617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3618 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3620 ac_cv_type_loff_t
=yes
3623 ac_cv_type_loff_t
=no
3628 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3629 if test $ac_cv_type_loff_t = no
; then
3630 cat >> confdefs.h
<<\EOF
3631 #define loff_t off_t
3636 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3637 echo "configure:3638: checking for offset_t" >&5
3638 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3639 echo $ac_n "(cached) $ac_c" 1>&6
3641 cat > conftest.
$ac_ext <<EOF
3642 #line 3643 "configure"
3643 #include "confdefs.h"
3644 #include <sys/types.h>
3650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3651 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3653 ac_cv_type_offset_t
=yes
3656 ac_cv_type_offset_t
=no
3661 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3662 if test $ac_cv_type_offset_t = no
; then
3663 cat >> confdefs.h
<<\EOF
3664 #define offset_t loff_t
3669 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3670 echo "configure:3671: checking for ssize_t" >&5
3671 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3672 echo $ac_n "(cached) $ac_c" 1>&6
3674 cat > conftest.
$ac_ext <<EOF
3675 #line 3676 "configure"
3676 #include "confdefs.h"
3677 #include <sys/types.h>
3683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3684 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3686 ac_cv_type_ssize_t
=yes
3689 ac_cv_type_ssize_t
=no
3694 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3695 if test $ac_cv_type_ssize_t = no
; then
3696 cat >> confdefs.h
<<\EOF
3702 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3703 echo "configure:3704: checking for wchar_t" >&5
3704 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3705 echo $ac_n "(cached) $ac_c" 1>&6
3707 cat > conftest.
$ac_ext <<EOF
3708 #line 3709 "configure"
3709 #include "confdefs.h"
3710 #include <sys/types.h>
3716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3717 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3719 ac_cv_type_wchar_t
=yes
3722 ac_cv_type_wchar_t
=no
3727 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3728 if test $ac_cv_type_wchar_t = no
; then
3729 cat >> confdefs.h
<<\EOF
3730 #define wchar_t unsigned short
3736 ############################################
3737 # for cups support we need libcups, and a handful of header files
3739 # Check whether --enable-cups or --disable-cups was given.
3740 if test "${enable_cups+set}" = set; then
3741 enableval
="$enable_cups"
3746 if test x
$enable_cups != xno
; then
3747 # Extract the first word of "cups-config", so it can be a program name with args.
3748 set dummy cups-config
; ac_word
=$2
3749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3750 echo "configure:3751: checking for $ac_word" >&5
3751 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3752 echo $ac_n "(cached) $ac_c" 1>&6
3754 case "$CUPS_CONFIG" in
3756 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a path.
3759 ac_cv_path_CUPS_CONFIG
="$CUPS_CONFIG" # Let the user override the test with a dos path.
3762 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3764 for ac_dir
in $ac_dummy; do
3765 test -z "$ac_dir" && ac_dir
=.
3766 if test -f $ac_dir/$ac_word; then
3767 ac_cv_path_CUPS_CONFIG
="$ac_dir/$ac_word"
3775 CUPS_CONFIG
="$ac_cv_path_CUPS_CONFIG"
3776 if test -n "$CUPS_CONFIG"; then
3777 echo "$ac_t""$CUPS_CONFIG" 1>&6
3779 echo "$ac_t""no" 1>&6
3783 if test "x$CUPS_CONFIG" != x
; then
3784 cat >> confdefs.h
<<\EOF
3788 CFLAGS
="$CFLAGS `$CUPS_CONFIG --cflags`"
3789 LDFLAGS
="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3790 LIBS
="$LIBS `$CUPS_CONFIG --libs`"
3794 ############################################
3795 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3796 for ac_func
in dlopen
3798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3799 echo "configure:3800: checking for $ac_func" >&5
3800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3801 echo $ac_n "(cached) $ac_c" 1>&6
3803 cat > conftest.
$ac_ext <<EOF
3804 #line 3805 "configure"
3805 #include "confdefs.h"
3806 /* System header to define __stub macros and hopefully few prototypes,
3807 which can conflict with char $ac_func(); below. */
3809 /* Override any gcc2 internal prototype to avoid an error. */
3810 /* We use char because int might match the return type of a gcc2
3811 builtin and then its argument prototype would still apply. */
3816 /* The GNU C library defines this for functions which it implements
3817 to always fail with ENOSYS. Some functions are actually named
3818 something starting with __ and the normal name is an alias. */
3819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3827 if { (eval echo configure
:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3829 eval "ac_cv_func_$ac_func=yes"
3831 echo "configure: failed program was:" >&5
3832 cat conftest.
$ac_ext >&5
3834 eval "ac_cv_func_$ac_func=no"
3839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3840 echo "$ac_t""yes" 1>&6
3841 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3842 cat >> confdefs.h
<<EOF
3843 #define $ac_tr_func 1
3847 echo "$ac_t""no" 1>&6
3851 if test x
"$ac_cv_func_dlopen" = x
"no"; then
3852 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3853 echo "configure:3854: checking for dlopen in -ldl" >&5
3854 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3856 echo $ac_n "(cached) $ac_c" 1>&6
3858 ac_save_LIBS
="$LIBS"
3860 cat > conftest.
$ac_ext <<EOF
3861 #line 3862 "configure"
3862 #include "confdefs.h"
3863 /* Override any gcc2 internal prototype to avoid an error. */
3864 /* We use char because int might match the return type of a gcc2
3865 builtin and then its argument prototype would still apply. */
3872 if { (eval echo configure
:3873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3874 eval "ac_cv_lib_$ac_lib_var=yes"
3876 echo "configure: failed program was:" >&5
3877 cat conftest.
$ac_ext >&5
3879 eval "ac_cv_lib_$ac_lib_var=no"
3882 LIBS
="$ac_save_LIBS"
3885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3886 echo "$ac_t""yes" 1>&6
3888 cat >> confdefs.h
<<\EOF
3889 #define HAVE_DLOPEN 1
3893 echo "$ac_t""no" 1>&6
3897 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3899 ############################################
3900 # check if the compiler can do immediate structures
3901 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3902 echo "configure:3903: checking for immediate structures" >&5
3903 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3904 echo $ac_n "(cached) $ac_c" 1>&6
3907 cat > conftest.
$ac_ext <<EOF
3908 #line 3909 "configure"
3909 #include "confdefs.h"
3914 typedef struct {unsigned x;} FOOBAR;
3915 #define X_FOOBAR(x) ((FOOBAR) { x })
3916 #define FOO_ONE X_FOOBAR(1)
3926 if { (eval echo configure
:3927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3928 samba_cv_immediate_structures
=yes
3930 echo "configure: failed program was:" >&5
3931 cat conftest.
$ac_ext >&5
3933 samba_cv_immediate_structures
=no
3938 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3939 if test x
"$samba_cv_immediate_structures" = x
"yes"; then
3940 cat >> confdefs.h
<<\EOF
3941 #define HAVE_IMMEDIATE_STRUCTURES 1
3946 ############################################
3947 # check for unix domain sockets
3948 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3949 echo "configure:3950: checking for unix domain sockets" >&5
3950 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3951 echo $ac_n "(cached) $ac_c" 1>&6
3954 cat > conftest.
$ac_ext <<EOF
3955 #line 3956 "configure"
3956 #include "confdefs.h"
3958 #include <sys/types.h>
3961 #include <sys/socket.h>
3965 struct sockaddr_un sunaddr;
3966 sunaddr.sun_family = AF_UNIX;
3970 if { (eval echo configure
:3971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3972 samba_cv_unixsocket
=yes
3974 echo "configure: failed program was:" >&5
3975 cat conftest.
$ac_ext >&5
3977 samba_cv_unixsocket
=no
3982 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3983 if test x
"$samba_cv_unixsocket" = x
"yes"; then
3984 cat >> confdefs.h
<<\EOF
3985 #define HAVE_UNIXSOCKET 1
3990 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3991 echo "configure:3992: checking for socklen_t type" >&5
3992 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3993 echo $ac_n "(cached) $ac_c" 1>&6
3996 cat > conftest.
$ac_ext <<EOF
3997 #line 3998 "configure"
3998 #include "confdefs.h"
4000 #include <sys/types.h>
4005 #include <sys/socket.h>
4010 if { (eval echo configure
:4011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4012 samba_cv_socklen_t
=yes
4014 echo "configure: failed program was:" >&5
4015 cat conftest.
$ac_ext >&5
4017 samba_cv_socklen_t
=no
4022 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4023 if test x
"$samba_cv_socklen_t" = x
"yes"; then
4024 cat >> confdefs.h
<<\EOF
4025 #define HAVE_SOCKLEN_T_TYPE 1
4030 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4031 echo "configure:4032: checking for sig_atomic_t type" >&5
4032 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4033 echo $ac_n "(cached) $ac_c" 1>&6
4036 cat > conftest.
$ac_ext <<EOF
4037 #line 4038 "configure"
4038 #include "confdefs.h"
4040 #include <sys/types.h>
4050 if { (eval echo configure
:4051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4052 samba_cv_sig_atomic_t
=yes
4054 echo "configure: failed program was:" >&5
4055 cat conftest.
$ac_ext >&5
4057 samba_cv_sig_atomic_t
=no
4062 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4063 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
4064 cat >> confdefs.h
<<\EOF
4065 #define HAVE_SIG_ATOMIC_T_TYPE 1
4070 # stupid headers have the functions but no declaration. grrrr.
4072 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4073 echo "configure:4074: checking for errno declaration" >&5
4074 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4075 echo $ac_n "(cached) $ac_c" 1>&6
4078 cat > conftest.
$ac_ext <<EOF
4079 #line 4080 "configure"
4080 #include "confdefs.h"
4086 if { (eval echo configure
:4087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4088 ac_cv_have_errno_decl
=yes
4090 echo "configure: failed program was:" >&5
4091 cat conftest.
$ac_ext >&5
4093 ac_cv_have_errno_decl
=no
4098 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4099 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
4100 cat >> confdefs.h
<<\EOF
4101 #define HAVE_ERRNO_DECL 1
4107 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4108 echo "configure:4109: checking for setresuid declaration" >&5
4109 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4110 echo $ac_n "(cached) $ac_c" 1>&6
4113 cat > conftest.
$ac_ext <<EOF
4114 #line 4115 "configure"
4115 #include "confdefs.h"
4118 int i = (int)setresuid
4121 if { (eval echo configure
:4122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4123 ac_cv_have_setresuid_decl
=yes
4125 echo "configure: failed program was:" >&5
4126 cat conftest.
$ac_ext >&5
4128 ac_cv_have_setresuid_decl
=no
4133 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4134 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
4135 cat >> confdefs.h
<<\EOF
4136 #define HAVE_SETRESUID_DECL 1
4142 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4143 echo "configure:4144: checking for setresgid declaration" >&5
4144 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4145 echo $ac_n "(cached) $ac_c" 1>&6
4148 cat > conftest.
$ac_ext <<EOF
4149 #line 4150 "configure"
4150 #include "confdefs.h"
4153 int i = (int)setresgid
4156 if { (eval echo configure
:4157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4158 ac_cv_have_setresgid_decl
=yes
4160 echo "configure: failed program was:" >&5
4161 cat conftest.
$ac_ext >&5
4163 ac_cv_have_setresgid_decl
=no
4168 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4169 if test x
"$ac_cv_have_setresgid_decl" = x
"yes"; then
4170 cat >> confdefs.h
<<\EOF
4171 #define HAVE_SETRESGID_DECL 1
4177 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4178 echo "configure:4179: checking for asprintf declaration" >&5
4179 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4180 echo $ac_n "(cached) $ac_c" 1>&6
4183 cat > conftest.
$ac_ext <<EOF
4184 #line 4185 "configure"
4185 #include "confdefs.h"
4188 int i = (int)asprintf
4191 if { (eval echo configure
:4192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4193 ac_cv_have_asprintf_decl
=yes
4195 echo "configure: failed program was:" >&5
4196 cat conftest.
$ac_ext >&5
4198 ac_cv_have_asprintf_decl
=no
4203 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4204 if test x
"$ac_cv_have_asprintf_decl" = x
"yes"; then
4205 cat >> confdefs.h
<<\EOF
4206 #define HAVE_ASPRINTF_DECL 1
4212 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4213 echo "configure:4214: checking for vasprintf declaration" >&5
4214 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4215 echo $ac_n "(cached) $ac_c" 1>&6
4218 cat > conftest.
$ac_ext <<EOF
4219 #line 4220 "configure"
4220 #include "confdefs.h"
4223 int i = (int)vasprintf
4226 if { (eval echo configure
:4227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4228 ac_cv_have_vasprintf_decl
=yes
4230 echo "configure: failed program was:" >&5
4231 cat conftest.
$ac_ext >&5
4233 ac_cv_have_vasprintf_decl
=no
4238 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4239 if test x
"$ac_cv_have_vasprintf_decl" = x
"yes"; then
4240 cat >> confdefs.h
<<\EOF
4241 #define HAVE_VASPRINTF_DECL 1
4247 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4248 echo "configure:4249: checking for vsnprintf declaration" >&5
4249 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4250 echo $ac_n "(cached) $ac_c" 1>&6
4253 cat > conftest.
$ac_ext <<EOF
4254 #line 4255 "configure"
4255 #include "confdefs.h"
4258 int i = (int)vsnprintf
4261 if { (eval echo configure
:4262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4263 ac_cv_have_vsnprintf_decl
=yes
4265 echo "configure: failed program was:" >&5
4266 cat conftest.
$ac_ext >&5
4268 ac_cv_have_vsnprintf_decl
=no
4273 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4274 if test x
"$ac_cv_have_vsnprintf_decl" = x
"yes"; then
4275 cat >> confdefs.h
<<\EOF
4276 #define HAVE_VSNPRINTF_DECL 1
4282 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4283 echo "configure:4284: checking for snprintf declaration" >&5
4284 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4285 echo $ac_n "(cached) $ac_c" 1>&6
4288 cat > conftest.
$ac_ext <<EOF
4289 #line 4290 "configure"
4290 #include "confdefs.h"
4293 int i = (int)snprintf
4296 if { (eval echo configure
:4297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4298 ac_cv_have_snprintf_decl
=yes
4300 echo "configure: failed program was:" >&5
4301 cat conftest.
$ac_ext >&5
4303 ac_cv_have_snprintf_decl
=no
4308 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4309 if test x
"$ac_cv_have_snprintf_decl" = x
"yes"; then
4310 cat >> confdefs.h
<<\EOF
4311 #define HAVE_SNPRINTF_DECL 1
4317 # and glibc has setresuid under linux but the function does
4318 # nothing until kernel 2.1.44! very dumb.
4319 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4320 echo "configure:4321: checking for real setresuid" >&5
4321 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4322 echo $ac_n "(cached) $ac_c" 1>&6
4325 if test "$cross_compiling" = yes; then
4326 samba_cv_have_setresuid
=cross
4328 cat > conftest.
$ac_ext <<EOF
4329 #line 4330 "configure"
4330 #include "confdefs.h"
4332 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4334 if { (eval echo configure
:4335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4336 samba_cv_have_setresuid
=yes
4338 echo "configure: failed program was:" >&5
4339 cat conftest.
$ac_ext >&5
4341 samba_cv_have_setresuid
=no
4348 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4349 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4350 cat >> confdefs.h
<<\EOF
4351 #define HAVE_SETRESUID 1
4356 # Do the same check for setresguid...
4358 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4359 echo "configure:4360: checking for real setresgid" >&5
4360 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4361 echo $ac_n "(cached) $ac_c" 1>&6
4364 if test "$cross_compiling" = yes; then
4365 samba_cv_have_setresgid
=cross
4367 cat > conftest.
$ac_ext <<EOF
4368 #line 4369 "configure"
4369 #include "confdefs.h"
4372 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4374 if { (eval echo configure
:4375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4376 samba_cv_have_setresgid
=yes
4378 echo "configure: failed program was:" >&5
4379 cat conftest.
$ac_ext >&5
4381 samba_cv_have_setresgid
=no
4388 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4389 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4390 cat >> confdefs.h
<<\EOF
4391 #define HAVE_SETRESGID 1
4396 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4397 echo "configure:4398: checking for 8-bit clean memcmp" >&5
4398 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4399 echo $ac_n "(cached) $ac_c" 1>&6
4401 if test "$cross_compiling" = yes; then
4402 ac_cv_func_memcmp_clean
=no
4404 cat > conftest.
$ac_ext <<EOF
4405 #line 4406 "configure"
4406 #include "confdefs.h"
4410 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4411 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4415 if { (eval echo configure
:4416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4417 ac_cv_func_memcmp_clean
=yes
4419 echo "configure: failed program was:" >&5
4420 cat conftest.
$ac_ext >&5
4422 ac_cv_func_memcmp_clean
=no
4429 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4430 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4433 ###############################################
4434 # Readline included by default unless explicitly asked not to
4435 test "${with_readline+set}" != "set" && with_readline
=yes
4437 # test for where we get readline() from
4438 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4439 echo "configure:4440: checking whether to use readline" >&5
4440 # Check whether --with-readline or --without-readline was given.
4441 if test "${with_readline+set}" = set; then
4442 withval
="$with_readline"
4443 case "$with_readline" in
4445 echo "$ac_t""yes" 1>&6
4447 for ac_hdr
in readline.h
history.h readline
/readline.h
4449 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4450 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4451 echo "configure:4452: checking for $ac_hdr" >&5
4452 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4453 echo $ac_n "(cached) $ac_c" 1>&6
4455 cat > conftest.
$ac_ext <<EOF
4456 #line 4457 "configure"
4457 #include "confdefs.h"
4460 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4461 { (eval echo configure
:4462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4462 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4463 if test -z "$ac_err"; then
4465 eval "ac_cv_header_$ac_safe=yes"
4468 echo "configure: failed program was:" >&5
4469 cat conftest.
$ac_ext >&5
4471 eval "ac_cv_header_$ac_safe=no"
4475 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4476 echo "$ac_t""yes" 1>&6
4477 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4478 cat >> confdefs.h
<<EOF
4479 #define $ac_tr_hdr 1
4483 echo "$ac_t""no" 1>&6
4487 for ac_hdr
in readline
/history.h
4489 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4490 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4491 echo "configure:4492: checking for $ac_hdr" >&5
4492 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4493 echo $ac_n "(cached) $ac_c" 1>&6
4495 cat > conftest.
$ac_ext <<EOF
4496 #line 4497 "configure"
4497 #include "confdefs.h"
4500 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4501 { (eval echo configure
:4502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4502 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4503 if test -z "$ac_err"; then
4505 eval "ac_cv_header_$ac_safe=yes"
4508 echo "configure: failed program was:" >&5
4509 cat conftest.
$ac_ext >&5
4511 eval "ac_cv_header_$ac_safe=no"
4515 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4516 echo "$ac_t""yes" 1>&6
4517 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4518 cat >> confdefs.h
<<EOF
4519 #define $ac_tr_hdr 1
4523 echo "$ac_t""no" 1>&6
4528 for ac_hdr
in readline.h readline
/readline.h
4530 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4531 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4532 echo "configure:4533: checking for $ac_hdr" >&5
4533 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4536 cat > conftest.
$ac_ext <<EOF
4537 #line 4538 "configure"
4538 #include "confdefs.h"
4541 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4542 { (eval echo configure
:4543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4543 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4544 if test -z "$ac_err"; then
4546 eval "ac_cv_header_$ac_safe=yes"
4549 echo "configure: failed program was:" >&5
4550 cat conftest.
$ac_ext >&5
4552 eval "ac_cv_header_$ac_safe=no"
4556 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4557 echo "$ac_t""yes" 1>&6
4558 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4559 cat >> confdefs.h
<<EOF
4560 #define $ac_tr_hdr 1
4563 for termlib
in ncurses curses termcap terminfo termlib
; do
4564 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4565 echo "configure:4566: checking for tgetent in -l${termlib}" >&5
4566 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4567 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4568 echo $ac_n "(cached) $ac_c" 1>&6
4570 ac_save_LIBS
="$LIBS"
4571 LIBS
="-l${termlib} $LIBS"
4572 cat > conftest.
$ac_ext <<EOF
4573 #line 4574 "configure"
4574 #include "confdefs.h"
4575 /* Override any gcc2 internal prototype to avoid an error. */
4576 /* We use char because int might match the return type of a gcc2
4577 builtin and then its argument prototype would still apply. */
4584 if { (eval echo configure
:4585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4586 eval "ac_cv_lib_$ac_lib_var=yes"
4588 echo "configure: failed program was:" >&5
4589 cat conftest.
$ac_ext >&5
4591 eval "ac_cv_lib_$ac_lib_var=no"
4594 LIBS
="$ac_save_LIBS"
4597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4598 echo "$ac_t""yes" 1>&6
4599 TERMLIBS
="-l${termlib}"; break
4601 echo "$ac_t""no" 1>&6
4605 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4606 echo "configure:4607: checking for rl_callback_handler_install in -lreadline" >&5
4607 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4608 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4609 echo $ac_n "(cached) $ac_c" 1>&6
4611 ac_save_LIBS
="$LIBS"
4612 LIBS
="-lreadline $TERMLIBS $LIBS"
4613 cat > conftest.
$ac_ext <<EOF
4614 #line 4615 "configure"
4615 #include "confdefs.h"
4616 /* Override any gcc2 internal prototype to avoid an error. */
4617 /* We use char because int might match the return type of a gcc2
4618 builtin and then its argument prototype would still apply. */
4619 char rl_callback_handler_install();
4622 rl_callback_handler_install()
4625 if { (eval echo configure
:4626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4627 eval "ac_cv_lib_$ac_lib_var=yes"
4629 echo "configure: failed program was:" >&5
4630 cat conftest.
$ac_ext >&5
4632 eval "ac_cv_lib_$ac_lib_var=no"
4635 LIBS
="$ac_save_LIBS"
4638 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4639 echo "$ac_t""yes" 1>&6
4640 TERMLIBS
="-lreadline $TERMLIBS"
4641 cat >> confdefs.h
<<\EOF
4642 #define HAVE_LIBREADLINE 1
4647 echo "$ac_t""no" 1>&6
4652 echo "$ac_t""no" 1>&6
4658 echo "$ac_t""no" 1>&6
4661 echo "$ac_t""yes" 1>&6
4663 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4664 # alternate readline path
4666 _cppflags
=${CPPFLAGS}
4668 # Add additional search path
4669 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4670 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4672 for ac_hdr
in readline.h
history.h readline
/readline.h
4674 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4675 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4676 echo "configure:4677: checking for $ac_hdr" >&5
4677 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4678 echo $ac_n "(cached) $ac_c" 1>&6
4680 cat > conftest.
$ac_ext <<EOF
4681 #line 4682 "configure"
4682 #include "confdefs.h"
4685 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4686 { (eval echo configure
:4687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4687 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4688 if test -z "$ac_err"; then
4690 eval "ac_cv_header_$ac_safe=yes"
4693 echo "configure: failed program was:" >&5
4694 cat conftest.
$ac_ext >&5
4696 eval "ac_cv_header_$ac_safe=no"
4700 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4701 echo "$ac_t""yes" 1>&6
4702 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4703 cat >> confdefs.h
<<EOF
4704 #define $ac_tr_hdr 1
4708 echo "$ac_t""no" 1>&6
4712 for ac_hdr
in readline
/history.h
4714 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4715 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4716 echo "configure:4717: checking for $ac_hdr" >&5
4717 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4718 echo $ac_n "(cached) $ac_c" 1>&6
4720 cat > conftest.
$ac_ext <<EOF
4721 #line 4722 "configure"
4722 #include "confdefs.h"
4725 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4726 { (eval echo configure
:4727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4727 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4728 if test -z "$ac_err"; then
4730 eval "ac_cv_header_$ac_safe=yes"
4733 echo "configure: failed program was:" >&5
4734 cat conftest.
$ac_ext >&5
4736 eval "ac_cv_header_$ac_safe=no"
4740 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4741 echo "$ac_t""yes" 1>&6
4742 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4743 cat >> confdefs.h
<<EOF
4744 #define $ac_tr_hdr 1
4748 echo "$ac_t""no" 1>&6
4753 for ac_hdr
in readline.h readline
/readline.h
4755 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4756 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4757 echo "configure:4758: checking for $ac_hdr" >&5
4758 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4759 echo $ac_n "(cached) $ac_c" 1>&6
4761 cat > conftest.
$ac_ext <<EOF
4762 #line 4763 "configure"
4763 #include "confdefs.h"
4766 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4767 { (eval echo configure
:4768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4768 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4769 if test -z "$ac_err"; then
4771 eval "ac_cv_header_$ac_safe=yes"
4774 echo "configure: failed program was:" >&5
4775 cat conftest.
$ac_ext >&5
4777 eval "ac_cv_header_$ac_safe=no"
4781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4782 echo "$ac_t""yes" 1>&6
4783 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4784 cat >> confdefs.h
<<EOF
4785 #define $ac_tr_hdr 1
4788 for termlib
in ncurses curses termcap terminfo termlib
; do
4789 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4790 echo "configure:4791: checking for tgetent in -l${termlib}" >&5
4791 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4792 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4793 echo $ac_n "(cached) $ac_c" 1>&6
4795 ac_save_LIBS
="$LIBS"
4796 LIBS
="-l${termlib} $LIBS"
4797 cat > conftest.
$ac_ext <<EOF
4798 #line 4799 "configure"
4799 #include "confdefs.h"
4800 /* Override any gcc2 internal prototype to avoid an error. */
4801 /* We use char because int might match the return type of a gcc2
4802 builtin and then its argument prototype would still apply. */
4809 if { (eval echo configure
:4810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4811 eval "ac_cv_lib_$ac_lib_var=yes"
4813 echo "configure: failed program was:" >&5
4814 cat conftest.
$ac_ext >&5
4816 eval "ac_cv_lib_$ac_lib_var=no"
4819 LIBS
="$ac_save_LIBS"
4822 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4823 echo "$ac_t""yes" 1>&6
4824 TERMLIBS
="-l${termlib}"; break
4826 echo "$ac_t""no" 1>&6
4830 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4831 echo "configure:4832: checking for rl_callback_handler_install in -lreadline" >&5
4832 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4834 echo $ac_n "(cached) $ac_c" 1>&6
4836 ac_save_LIBS
="$LIBS"
4837 LIBS
="-lreadline $TERMLIBS $LIBS"
4838 cat > conftest.
$ac_ext <<EOF
4839 #line 4840 "configure"
4840 #include "confdefs.h"
4841 /* Override any gcc2 internal prototype to avoid an error. */
4842 /* We use char because int might match the return type of a gcc2
4843 builtin and then its argument prototype would still apply. */
4844 char rl_callback_handler_install();
4847 rl_callback_handler_install()
4850 if { (eval echo configure
:4851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4852 eval "ac_cv_lib_$ac_lib_var=yes"
4854 echo "configure: failed program was:" >&5
4855 cat conftest.
$ac_ext >&5
4857 eval "ac_cv_lib_$ac_lib_var=no"
4860 LIBS
="$ac_save_LIBS"
4863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4864 echo "$ac_t""yes" 1>&6
4865 TERMLDFLAGS
="-L$with_readline/lib"
4866 TERMCPPFLAGS
="-I$with_readline/include"
4867 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4868 TERMLIBS
="-lreadline $TERMLIBS"
4869 cat >> confdefs.h
<<\EOF
4870 #define HAVE_LIBREADLINE 1
4875 echo "$ac_t""no" 1>&6
4876 TERMLIBS
= CPPFLAGS
=$_cppflags
4880 echo "$ac_t""no" 1>&6
4889 echo "$ac_t""no" 1>&6
4896 # The following test taken from the cvs sources
4897 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4898 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4899 # libsocket.so which has a bad implementation of gethostbyname (it
4900 # only looks in /etc/hosts), so we only look for -lsocket if we need
4902 for ac_func
in connect
4904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4905 echo "configure:4906: checking for $ac_func" >&5
4906 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4907 echo $ac_n "(cached) $ac_c" 1>&6
4909 cat > conftest.
$ac_ext <<EOF
4910 #line 4911 "configure"
4911 #include "confdefs.h"
4912 /* System header to define __stub macros and hopefully few prototypes,
4913 which can conflict with char $ac_func(); below. */
4915 /* Override any gcc2 internal prototype to avoid an error. */
4916 /* We use char because int might match the return type of a gcc2
4917 builtin and then its argument prototype would still apply. */
4922 /* The GNU C library defines this for functions which it implements
4923 to always fail with ENOSYS. Some functions are actually named
4924 something starting with __ and the normal name is an alias. */
4925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4933 if { (eval echo configure
:4934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4935 eval "ac_cv_func_$ac_func=yes"
4937 echo "configure: failed program was:" >&5
4938 cat conftest.
$ac_ext >&5
4940 eval "ac_cv_func_$ac_func=no"
4945 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4946 echo "$ac_t""yes" 1>&6
4947 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4948 cat >> confdefs.h
<<EOF
4949 #define $ac_tr_func 1
4953 echo "$ac_t""no" 1>&6
4957 if test x
"$ac_cv_func_connect" = x
"no"; then
4960 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4961 echo "configure:4962: checking for printf in -lnsl_s" >&5
4962 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4963 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4964 echo $ac_n "(cached) $ac_c" 1>&6
4966 ac_save_LIBS
="$LIBS"
4967 LIBS
="-lnsl_s $LIBS"
4968 cat > conftest.
$ac_ext <<EOF
4969 #line 4970 "configure"
4970 #include "confdefs.h"
4971 /* Override any gcc2 internal prototype to avoid an error. */
4972 /* We use char because int might match the return type of a gcc2
4973 builtin and then its argument prototype would still apply. */
4980 if { (eval echo configure
:4981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4982 eval "ac_cv_lib_$ac_lib_var=yes"
4984 echo "configure: failed program was:" >&5
4985 cat conftest.
$ac_ext >&5
4987 eval "ac_cv_lib_$ac_lib_var=no"
4990 LIBS
="$ac_save_LIBS"
4993 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4994 echo "$ac_t""yes" 1>&6
4995 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4996 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4997 cat >> confdefs.h
<<EOF
4998 #define $ac_tr_lib 1
5001 LIBS
="-lnsl_s $LIBS"
5004 echo "$ac_t""no" 1>&6
5010 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5011 echo "configure:5012: checking for printf in -lnsl" >&5
5012 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5013 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5014 echo $ac_n "(cached) $ac_c" 1>&6
5016 ac_save_LIBS
="$LIBS"
5018 cat > conftest.
$ac_ext <<EOF
5019 #line 5020 "configure"
5020 #include "confdefs.h"
5021 /* Override any gcc2 internal prototype to avoid an error. */
5022 /* We use char because int might match the return type of a gcc2
5023 builtin and then its argument prototype would still apply. */
5030 if { (eval echo configure
:5031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5032 eval "ac_cv_lib_$ac_lib_var=yes"
5034 echo "configure: failed program was:" >&5
5035 cat conftest.
$ac_ext >&5
5037 eval "ac_cv_lib_$ac_lib_var=no"
5040 LIBS
="$ac_save_LIBS"
5043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5044 echo "$ac_t""yes" 1>&6
5045 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5046 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5047 cat >> confdefs.h
<<EOF
5048 #define $ac_tr_lib 1
5054 echo "$ac_t""no" 1>&6
5060 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5061 echo "configure:5062: checking for connect in -lsocket" >&5
5062 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5063 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5064 echo $ac_n "(cached) $ac_c" 1>&6
5066 ac_save_LIBS
="$LIBS"
5067 LIBS
="-lsocket $LIBS"
5068 cat > conftest.
$ac_ext <<EOF
5069 #line 5070 "configure"
5070 #include "confdefs.h"
5071 /* Override any gcc2 internal prototype to avoid an error. */
5072 /* We use char because int might match the return type of a gcc2
5073 builtin and then its argument prototype would still apply. */
5080 if { (eval echo configure
:5081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5082 eval "ac_cv_lib_$ac_lib_var=yes"
5084 echo "configure: failed program was:" >&5
5085 cat conftest.
$ac_ext >&5
5087 eval "ac_cv_lib_$ac_lib_var=no"
5090 LIBS
="$ac_save_LIBS"
5093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5094 echo "$ac_t""yes" 1>&6
5095 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5096 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5097 cat >> confdefs.h
<<EOF
5098 #define $ac_tr_lib 1
5101 LIBS
="-lsocket $LIBS"
5104 echo "$ac_t""no" 1>&6
5110 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5111 echo "configure:5112: checking for connect in -linet" >&5
5112 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5113 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5114 echo $ac_n "(cached) $ac_c" 1>&6
5116 ac_save_LIBS
="$LIBS"
5118 cat > conftest.
$ac_ext <<EOF
5119 #line 5120 "configure"
5120 #include "confdefs.h"
5121 /* Override any gcc2 internal prototype to avoid an error. */
5122 /* We use char because int might match the return type of a gcc2
5123 builtin and then its argument prototype would still apply. */
5130 if { (eval echo configure
:5131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5132 eval "ac_cv_lib_$ac_lib_var=yes"
5134 echo "configure: failed program was:" >&5
5135 cat conftest.
$ac_ext >&5
5137 eval "ac_cv_lib_$ac_lib_var=no"
5140 LIBS
="$ac_save_LIBS"
5143 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5144 echo "$ac_t""yes" 1>&6
5145 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5146 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5147 cat >> confdefs.h
<<EOF
5148 #define $ac_tr_lib 1
5154 echo "$ac_t""no" 1>&6
5158 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
5159 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
5160 # ac_cv_func_connect=yes
5161 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5162 cat >> confdefs.h
<<\EOF
5163 #define HAVE_CONNECT 1
5169 ###############################################
5170 # test for where we get get_yp_default_domain() from
5171 for ac_func
in yp_get_default_domain
5173 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5174 echo "configure:5175: checking for $ac_func" >&5
5175 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5176 echo $ac_n "(cached) $ac_c" 1>&6
5178 cat > conftest.
$ac_ext <<EOF
5179 #line 5180 "configure"
5180 #include "confdefs.h"
5181 /* System header to define __stub macros and hopefully few prototypes,
5182 which can conflict with char $ac_func(); below. */
5184 /* Override any gcc2 internal prototype to avoid an error. */
5185 /* We use char because int might match the return type of a gcc2
5186 builtin and then its argument prototype would still apply. */
5191 /* The GNU C library defines this for functions which it implements
5192 to always fail with ENOSYS. Some functions are actually named
5193 something starting with __ and the normal name is an alias. */
5194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5202 if { (eval echo configure
:5203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5204 eval "ac_cv_func_$ac_func=yes"
5206 echo "configure: failed program was:" >&5
5207 cat conftest.
$ac_ext >&5
5209 eval "ac_cv_func_$ac_func=no"
5214 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5215 echo "$ac_t""yes" 1>&6
5216 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5217 cat >> confdefs.h
<<EOF
5218 #define $ac_tr_func 1
5222 echo "$ac_t""no" 1>&6
5226 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
5227 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5228 echo "configure:5229: checking for yp_get_default_domain in -lnsl" >&5
5229 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5231 echo $ac_n "(cached) $ac_c" 1>&6
5233 ac_save_LIBS
="$LIBS"
5235 cat > conftest.
$ac_ext <<EOF
5236 #line 5237 "configure"
5237 #include "confdefs.h"
5238 /* Override any gcc2 internal prototype to avoid an error. */
5239 /* We use char because int might match the return type of a gcc2
5240 builtin and then its argument prototype would still apply. */
5241 char yp_get_default_domain();
5244 yp_get_default_domain()
5247 if { (eval echo configure
:5248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5249 eval "ac_cv_lib_$ac_lib_var=yes"
5251 echo "configure: failed program was:" >&5
5252 cat conftest.
$ac_ext >&5
5254 eval "ac_cv_lib_$ac_lib_var=no"
5257 LIBS
="$ac_save_LIBS"
5260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5261 echo "$ac_t""yes" 1>&6
5263 cat >> confdefs.h
<<\EOF
5264 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5268 echo "$ac_t""no" 1>&6
5273 # Check if we have execl, if not we need to compile smbrun.
5274 for ac_func
in execl
5276 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5277 echo "configure:5278: checking for $ac_func" >&5
5278 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5279 echo $ac_n "(cached) $ac_c" 1>&6
5281 cat > conftest.
$ac_ext <<EOF
5282 #line 5283 "configure"
5283 #include "confdefs.h"
5284 /* System header to define __stub macros and hopefully few prototypes,
5285 which can conflict with char $ac_func(); below. */
5287 /* Override any gcc2 internal prototype to avoid an error. */
5288 /* We use char because int might match the return type of a gcc2
5289 builtin and then its argument prototype would still apply. */
5294 /* The GNU C library defines this for functions which it implements
5295 to always fail with ENOSYS. Some functions are actually named
5296 something starting with __ and the normal name is an alias. */
5297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5305 if { (eval echo configure
:5306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5307 eval "ac_cv_func_$ac_func=yes"
5309 echo "configure: failed program was:" >&5
5310 cat conftest.
$ac_ext >&5
5312 eval "ac_cv_func_$ac_func=no"
5317 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5318 echo "$ac_t""yes" 1>&6
5319 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5320 cat >> confdefs.h
<<EOF
5321 #define $ac_tr_func 1
5325 echo "$ac_t""no" 1>&6
5329 if test x
"$ac_cv_func_execl" = x
"no"; then
5330 RUNPROG
="bin/smbrun"
5335 for ac_func
in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown
chmod fchmod chroot link
5337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5338 echo "configure:5339: checking for $ac_func" >&5
5339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5340 echo $ac_n "(cached) $ac_c" 1>&6
5342 cat > conftest.
$ac_ext <<EOF
5343 #line 5344 "configure"
5344 #include "confdefs.h"
5345 /* System header to define __stub macros and hopefully few prototypes,
5346 which can conflict with char $ac_func(); below. */
5348 /* Override any gcc2 internal prototype to avoid an error. */
5349 /* We use char because int might match the return type of a gcc2
5350 builtin and then its argument prototype would still apply. */
5355 /* The GNU C library defines this for functions which it implements
5356 to always fail with ENOSYS. Some functions are actually named
5357 something starting with __ and the normal name is an alias. */
5358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5366 if { (eval echo configure
:5367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5368 eval "ac_cv_func_$ac_func=yes"
5370 echo "configure: failed program was:" >&5
5371 cat conftest.
$ac_ext >&5
5373 eval "ac_cv_func_$ac_func=no"
5378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5379 echo "$ac_t""yes" 1>&6
5380 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5381 cat >> confdefs.h
<<EOF
5382 #define $ac_tr_func 1
5386 echo "$ac_t""no" 1>&6
5390 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid mknod mknod64
5392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5393 echo "configure:5394: checking for $ac_func" >&5
5394 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5395 echo $ac_n "(cached) $ac_c" 1>&6
5397 cat > conftest.
$ac_ext <<EOF
5398 #line 5399 "configure"
5399 #include "confdefs.h"
5400 /* System header to define __stub macros and hopefully few prototypes,
5401 which can conflict with char $ac_func(); below. */
5403 /* Override any gcc2 internal prototype to avoid an error. */
5404 /* We use char because int might match the return type of a gcc2
5405 builtin and then its argument prototype would still apply. */
5410 /* The GNU C library defines this for functions which it implements
5411 to always fail with ENOSYS. Some functions are actually named
5412 something starting with __ and the normal name is an alias. */
5413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5421 if { (eval echo configure
:5422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5423 eval "ac_cv_func_$ac_func=yes"
5425 echo "configure: failed program was:" >&5
5426 cat conftest.
$ac_ext >&5
5428 eval "ac_cv_func_$ac_func=no"
5433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5434 echo "$ac_t""yes" 1>&6
5435 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5436 cat >> confdefs.h
<<EOF
5437 #define $ac_tr_func 1
5441 echo "$ac_t""no" 1>&6
5445 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5447 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5448 echo "configure:5449: checking for $ac_func" >&5
5449 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5450 echo $ac_n "(cached) $ac_c" 1>&6
5452 cat > conftest.
$ac_ext <<EOF
5453 #line 5454 "configure"
5454 #include "confdefs.h"
5455 /* System header to define __stub macros and hopefully few prototypes,
5456 which can conflict with char $ac_func(); below. */
5458 /* Override any gcc2 internal prototype to avoid an error. */
5459 /* We use char because int might match the return type of a gcc2
5460 builtin and then its argument prototype would still apply. */
5465 /* The GNU C library defines this for functions which it implements
5466 to always fail with ENOSYS. Some functions are actually named
5467 something starting with __ and the normal name is an alias. */
5468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5476 if { (eval echo configure
:5477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5478 eval "ac_cv_func_$ac_func=yes"
5480 echo "configure: failed program was:" >&5
5481 cat conftest.
$ac_ext >&5
5483 eval "ac_cv_func_$ac_func=no"
5488 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5489 echo "$ac_t""yes" 1>&6
5490 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5491 cat >> confdefs.h
<<EOF
5492 #define $ac_tr_func 1
5496 echo "$ac_t""no" 1>&6
5500 for ac_func
in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5503 echo "configure:5504: checking for $ac_func" >&5
5504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5505 echo $ac_n "(cached) $ac_c" 1>&6
5507 cat > conftest.
$ac_ext <<EOF
5508 #line 5509 "configure"
5509 #include "confdefs.h"
5510 /* System header to define __stub macros and hopefully few prototypes,
5511 which can conflict with char $ac_func(); below. */
5513 /* Override any gcc2 internal prototype to avoid an error. */
5514 /* We use char because int might match the return type of a gcc2
5515 builtin and then its argument prototype would still apply. */
5520 /* The GNU C library defines this for functions which it implements
5521 to always fail with ENOSYS. Some functions are actually named
5522 something starting with __ and the normal name is an alias. */
5523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5531 if { (eval echo configure
:5532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5533 eval "ac_cv_func_$ac_func=yes"
5535 echo "configure: failed program was:" >&5
5536 cat conftest.
$ac_ext >&5
5538 eval "ac_cv_func_$ac_func=no"
5543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5544 echo "$ac_t""yes" 1>&6
5545 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5546 cat >> confdefs.h
<<EOF
5547 #define $ac_tr_func 1
5551 echo "$ac_t""no" 1>&6
5555 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf realpath
5557 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5558 echo "configure:5559: checking for $ac_func" >&5
5559 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5560 echo $ac_n "(cached) $ac_c" 1>&6
5562 cat > conftest.
$ac_ext <<EOF
5563 #line 5564 "configure"
5564 #include "confdefs.h"
5565 /* System header to define __stub macros and hopefully few prototypes,
5566 which can conflict with char $ac_func(); below. */
5568 /* Override any gcc2 internal prototype to avoid an error. */
5569 /* We use char because int might match the return type of a gcc2
5570 builtin and then its argument prototype would still apply. */
5575 /* The GNU C library defines this for functions which it implements
5576 to always fail with ENOSYS. Some functions are actually named
5577 something starting with __ and the normal name is an alias. */
5578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5586 if { (eval echo configure
:5587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5588 eval "ac_cv_func_$ac_func=yes"
5590 echo "configure: failed program was:" >&5
5591 cat conftest.
$ac_ext >&5
5593 eval "ac_cv_func_$ac_func=no"
5598 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5599 echo "$ac_t""yes" 1>&6
5600 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5601 cat >> confdefs.h
<<EOF
5602 #define $ac_tr_func 1
5606 echo "$ac_t""no" 1>&6
5610 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5612 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5613 echo "configure:5614: checking for $ac_func" >&5
5614 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5615 echo $ac_n "(cached) $ac_c" 1>&6
5617 cat > conftest.
$ac_ext <<EOF
5618 #line 5619 "configure"
5619 #include "confdefs.h"
5620 /* System header to define __stub macros and hopefully few prototypes,
5621 which can conflict with char $ac_func(); below. */
5623 /* Override any gcc2 internal prototype to avoid an error. */
5624 /* We use char because int might match the return type of a gcc2
5625 builtin and then its argument prototype would still apply. */
5630 /* The GNU C library defines this for functions which it implements
5631 to always fail with ENOSYS. Some functions are actually named
5632 something starting with __ and the normal name is an alias. */
5633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5641 if { (eval echo configure
:5642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5643 eval "ac_cv_func_$ac_func=yes"
5645 echo "configure: failed program was:" >&5
5646 cat conftest.
$ac_ext >&5
5648 eval "ac_cv_func_$ac_func=no"
5653 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5654 echo "$ac_t""yes" 1>&6
5655 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5656 cat >> confdefs.h
<<EOF
5657 #define $ac_tr_func 1
5661 echo "$ac_t""no" 1>&6
5665 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5667 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5668 echo "configure:5669: checking for $ac_func" >&5
5669 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5670 echo $ac_n "(cached) $ac_c" 1>&6
5672 cat > conftest.
$ac_ext <<EOF
5673 #line 5674 "configure"
5674 #include "confdefs.h"
5675 /* System header to define __stub macros and hopefully few prototypes,
5676 which can conflict with char $ac_func(); below. */
5678 /* Override any gcc2 internal prototype to avoid an error. */
5679 /* We use char because int might match the return type of a gcc2
5680 builtin and then its argument prototype would still apply. */
5685 /* The GNU C library defines this for functions which it implements
5686 to always fail with ENOSYS. Some functions are actually named
5687 something starting with __ and the normal name is an alias. */
5688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5696 if { (eval echo configure
:5697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5698 eval "ac_cv_func_$ac_func=yes"
5700 echo "configure: failed program was:" >&5
5701 cat conftest.
$ac_ext >&5
5703 eval "ac_cv_func_$ac_func=no"
5708 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5709 echo "$ac_t""yes" 1>&6
5710 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5711 cat >> confdefs.h
<<EOF
5712 #define $ac_tr_func 1
5716 echo "$ac_t""no" 1>&6
5720 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5723 echo "configure:5724: checking for $ac_func" >&5
5724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5725 echo $ac_n "(cached) $ac_c" 1>&6
5727 cat > conftest.
$ac_ext <<EOF
5728 #line 5729 "configure"
5729 #include "confdefs.h"
5730 /* System header to define __stub macros and hopefully few prototypes,
5731 which can conflict with char $ac_func(); below. */
5733 /* Override any gcc2 internal prototype to avoid an error. */
5734 /* We use char because int might match the return type of a gcc2
5735 builtin and then its argument prototype would still apply. */
5740 /* The GNU C library defines this for functions which it implements
5741 to always fail with ENOSYS. Some functions are actually named
5742 something starting with __ and the normal name is an alias. */
5743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5751 if { (eval echo configure
:5752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5753 eval "ac_cv_func_$ac_func=yes"
5755 echo "configure: failed program was:" >&5
5756 cat conftest.
$ac_ext >&5
5758 eval "ac_cv_func_$ac_func=no"
5763 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5764 echo "$ac_t""yes" 1>&6
5765 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5766 cat >> confdefs.h
<<EOF
5767 #define $ac_tr_func 1
5771 echo "$ac_t""no" 1>&6
5775 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl symlink readlink
5777 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5778 echo "configure:5779: checking for $ac_func" >&5
5779 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5780 echo $ac_n "(cached) $ac_c" 1>&6
5782 cat > conftest.
$ac_ext <<EOF
5783 #line 5784 "configure"
5784 #include "confdefs.h"
5785 /* System header to define __stub macros and hopefully few prototypes,
5786 which can conflict with char $ac_func(); below. */
5788 /* Override any gcc2 internal prototype to avoid an error. */
5789 /* We use char because int might match the return type of a gcc2
5790 builtin and then its argument prototype would still apply. */
5795 /* The GNU C library defines this for functions which it implements
5796 to always fail with ENOSYS. Some functions are actually named
5797 something starting with __ and the normal name is an alias. */
5798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5806 if { (eval echo configure
:5807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5808 eval "ac_cv_func_$ac_func=yes"
5810 echo "configure: failed program was:" >&5
5811 cat conftest.
$ac_ext >&5
5813 eval "ac_cv_func_$ac_func=no"
5818 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5819 echo "$ac_t""yes" 1>&6
5820 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5821 cat >> confdefs.h
<<EOF
5822 #define $ac_tr_func 1
5826 echo "$ac_t""no" 1>&6
5830 for ac_func
in syslog vsyslog
5832 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5833 echo "configure:5834: checking for $ac_func" >&5
5834 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5835 echo $ac_n "(cached) $ac_c" 1>&6
5837 cat > conftest.
$ac_ext <<EOF
5838 #line 5839 "configure"
5839 #include "confdefs.h"
5840 /* System header to define __stub macros and hopefully few prototypes,
5841 which can conflict with char $ac_func(); below. */
5843 /* Override any gcc2 internal prototype to avoid an error. */
5844 /* We use char because int might match the return type of a gcc2
5845 builtin and then its argument prototype would still apply. */
5850 /* The GNU C library defines this for functions which it implements
5851 to always fail with ENOSYS. Some functions are actually named
5852 something starting with __ and the normal name is an alias. */
5853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5861 if { (eval echo configure
:5862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5863 eval "ac_cv_func_$ac_func=yes"
5865 echo "configure: failed program was:" >&5
5866 cat conftest.
$ac_ext >&5
5868 eval "ac_cv_func_$ac_func=no"
5873 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5874 echo "$ac_t""yes" 1>&6
5875 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5876 cat >> confdefs.h
<<EOF
5877 #define $ac_tr_func 1
5881 echo "$ac_t""no" 1>&6
5886 # syscall() is needed for smbwrapper.
5887 for ac_func
in syscall
5889 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5890 echo "configure:5891: checking for $ac_func" >&5
5891 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5892 echo $ac_n "(cached) $ac_c" 1>&6
5894 cat > conftest.
$ac_ext <<EOF
5895 #line 5896 "configure"
5896 #include "confdefs.h"
5897 /* System header to define __stub macros and hopefully few prototypes,
5898 which can conflict with char $ac_func(); below. */
5900 /* Override any gcc2 internal prototype to avoid an error. */
5901 /* We use char because int might match the return type of a gcc2
5902 builtin and then its argument prototype would still apply. */
5907 /* The GNU C library defines this for functions which it implements
5908 to always fail with ENOSYS. Some functions are actually named
5909 something starting with __ and the normal name is an alias. */
5910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5918 if { (eval echo configure
:5919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5920 eval "ac_cv_func_$ac_func=yes"
5922 echo "configure: failed program was:" >&5
5923 cat conftest.
$ac_ext >&5
5925 eval "ac_cv_func_$ac_func=no"
5930 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5931 echo "$ac_t""yes" 1>&6
5932 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5933 cat >> confdefs.h
<<EOF
5934 #define $ac_tr_func 1
5938 echo "$ac_t""no" 1>&6
5943 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5945 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5946 echo "configure:5947: checking for $ac_func" >&5
5947 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5948 echo $ac_n "(cached) $ac_c" 1>&6
5950 cat > conftest.
$ac_ext <<EOF
5951 #line 5952 "configure"
5952 #include "confdefs.h"
5953 /* System header to define __stub macros and hopefully few prototypes,
5954 which can conflict with char $ac_func(); below. */
5956 /* Override any gcc2 internal prototype to avoid an error. */
5957 /* We use char because int might match the return type of a gcc2
5958 builtin and then its argument prototype would still apply. */
5963 /* The GNU C library defines this for functions which it implements
5964 to always fail with ENOSYS. Some functions are actually named
5965 something starting with __ and the normal name is an alias. */
5966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5974 if { (eval echo configure
:5975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5976 eval "ac_cv_func_$ac_func=yes"
5978 echo "configure: failed program was:" >&5
5979 cat conftest.
$ac_ext >&5
5981 eval "ac_cv_func_$ac_func=no"
5986 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5987 echo "$ac_t""yes" 1>&6
5988 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5989 cat >> confdefs.h
<<EOF
5990 #define $ac_tr_func 1
5994 echo "$ac_t""no" 1>&6
5998 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6001 echo "configure:6002: checking for $ac_func" >&5
6002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6003 echo $ac_n "(cached) $ac_c" 1>&6
6005 cat > conftest.
$ac_ext <<EOF
6006 #line 6007 "configure"
6007 #include "confdefs.h"
6008 /* System header to define __stub macros and hopefully few prototypes,
6009 which can conflict with char $ac_func(); below. */
6011 /* Override any gcc2 internal prototype to avoid an error. */
6012 /* We use char because int might match the return type of a gcc2
6013 builtin and then its argument prototype would still apply. */
6018 /* The GNU C library defines this for functions which it implements
6019 to always fail with ENOSYS. Some functions are actually named
6020 something starting with __ and the normal name is an alias. */
6021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6029 if { (eval echo configure
:6030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6031 eval "ac_cv_func_$ac_func=yes"
6033 echo "configure: failed program was:" >&5
6034 cat conftest.
$ac_ext >&5
6036 eval "ac_cv_func_$ac_func=no"
6041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6042 echo "$ac_t""yes" 1>&6
6043 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6044 cat >> confdefs.h
<<EOF
6045 #define $ac_tr_func 1
6049 echo "$ac_t""no" 1>&6
6053 for ac_func
in __getcwd _getcwd
6055 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6056 echo "configure:6057: checking for $ac_func" >&5
6057 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6058 echo $ac_n "(cached) $ac_c" 1>&6
6060 cat > conftest.
$ac_ext <<EOF
6061 #line 6062 "configure"
6062 #include "confdefs.h"
6063 /* System header to define __stub macros and hopefully few prototypes,
6064 which can conflict with char $ac_func(); below. */
6066 /* Override any gcc2 internal prototype to avoid an error. */
6067 /* We use char because int might match the return type of a gcc2
6068 builtin and then its argument prototype would still apply. */
6073 /* The GNU C library defines this for functions which it implements
6074 to always fail with ENOSYS. Some functions are actually named
6075 something starting with __ and the normal name is an alias. */
6076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6084 if { (eval echo configure
:6085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6086 eval "ac_cv_func_$ac_func=yes"
6088 echo "configure: failed program was:" >&5
6089 cat conftest.
$ac_ext >&5
6091 eval "ac_cv_func_$ac_func=no"
6096 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6097 echo "$ac_t""yes" 1>&6
6098 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6099 cat >> confdefs.h
<<EOF
6100 #define $ac_tr_func 1
6104 echo "$ac_t""no" 1>&6
6108 for ac_func
in __xstat __fxstat __lxstat
6110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6111 echo "configure:6112: checking for $ac_func" >&5
6112 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6113 echo $ac_n "(cached) $ac_c" 1>&6
6115 cat > conftest.
$ac_ext <<EOF
6116 #line 6117 "configure"
6117 #include "confdefs.h"
6118 /* System header to define __stub macros and hopefully few prototypes,
6119 which can conflict with char $ac_func(); below. */
6121 /* Override any gcc2 internal prototype to avoid an error. */
6122 /* We use char because int might match the return type of a gcc2
6123 builtin and then its argument prototype would still apply. */
6128 /* The GNU C library defines this for functions which it implements
6129 to always fail with ENOSYS. Some functions are actually named
6130 something starting with __ and the normal name is an alias. */
6131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6139 if { (eval echo configure
:6140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6141 eval "ac_cv_func_$ac_func=yes"
6143 echo "configure: failed program was:" >&5
6144 cat conftest.
$ac_ext >&5
6146 eval "ac_cv_func_$ac_func=no"
6151 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6152 echo "$ac_t""yes" 1>&6
6153 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6154 cat >> confdefs.h
<<EOF
6155 #define $ac_tr_func 1
6159 echo "$ac_t""no" 1>&6
6163 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
6165 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6166 echo "configure:6167: checking for $ac_func" >&5
6167 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6168 echo $ac_n "(cached) $ac_c" 1>&6
6170 cat > conftest.
$ac_ext <<EOF
6171 #line 6172 "configure"
6172 #include "confdefs.h"
6173 /* System header to define __stub macros and hopefully few prototypes,
6174 which can conflict with char $ac_func(); below. */
6176 /* Override any gcc2 internal prototype to avoid an error. */
6177 /* We use char because int might match the return type of a gcc2
6178 builtin and then its argument prototype would still apply. */
6183 /* The GNU C library defines this for functions which it implements
6184 to always fail with ENOSYS. Some functions are actually named
6185 something starting with __ and the normal name is an alias. */
6186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6194 if { (eval echo configure
:6195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6196 eval "ac_cv_func_$ac_func=yes"
6198 echo "configure: failed program was:" >&5
6199 cat conftest.
$ac_ext >&5
6201 eval "ac_cv_func_$ac_func=no"
6206 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6207 echo "$ac_t""yes" 1>&6
6208 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6209 cat >> confdefs.h
<<EOF
6210 #define $ac_tr_func 1
6214 echo "$ac_t""no" 1>&6
6218 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
6220 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6221 echo "configure:6222: checking for $ac_func" >&5
6222 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6223 echo $ac_n "(cached) $ac_c" 1>&6
6225 cat > conftest.
$ac_ext <<EOF
6226 #line 6227 "configure"
6227 #include "confdefs.h"
6228 /* System header to define __stub macros and hopefully few prototypes,
6229 which can conflict with char $ac_func(); below. */
6231 /* Override any gcc2 internal prototype to avoid an error. */
6232 /* We use char because int might match the return type of a gcc2
6233 builtin and then its argument prototype would still apply. */
6238 /* The GNU C library defines this for functions which it implements
6239 to always fail with ENOSYS. Some functions are actually named
6240 something starting with __ and the normal name is an alias. */
6241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6249 if { (eval echo configure
:6250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6251 eval "ac_cv_func_$ac_func=yes"
6253 echo "configure: failed program was:" >&5
6254 cat conftest.
$ac_ext >&5
6256 eval "ac_cv_func_$ac_func=no"
6261 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6262 echo "$ac_t""yes" 1>&6
6263 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6264 cat >> confdefs.h
<<EOF
6265 #define $ac_tr_func 1
6269 echo "$ac_t""no" 1>&6
6273 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
6275 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6276 echo "configure:6277: checking for $ac_func" >&5
6277 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6278 echo $ac_n "(cached) $ac_c" 1>&6
6280 cat > conftest.
$ac_ext <<EOF
6281 #line 6282 "configure"
6282 #include "confdefs.h"
6283 /* System header to define __stub macros and hopefully few prototypes,
6284 which can conflict with char $ac_func(); below. */
6286 /* Override any gcc2 internal prototype to avoid an error. */
6287 /* We use char because int might match the return type of a gcc2
6288 builtin and then its argument prototype would still apply. */
6293 /* The GNU C library defines this for functions which it implements
6294 to always fail with ENOSYS. Some functions are actually named
6295 something starting with __ and the normal name is an alias. */
6296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6304 if { (eval echo configure
:6305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6306 eval "ac_cv_func_$ac_func=yes"
6308 echo "configure: failed program was:" >&5
6309 cat conftest.
$ac_ext >&5
6311 eval "ac_cv_func_$ac_func=no"
6316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6317 echo "$ac_t""yes" 1>&6
6318 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6319 cat >> confdefs.h
<<EOF
6320 #define $ac_tr_func 1
6324 echo "$ac_t""no" 1>&6
6328 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
6330 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6331 echo "configure:6332: checking for $ac_func" >&5
6332 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6333 echo $ac_n "(cached) $ac_c" 1>&6
6335 cat > conftest.
$ac_ext <<EOF
6336 #line 6337 "configure"
6337 #include "confdefs.h"
6338 /* System header to define __stub macros and hopefully few prototypes,
6339 which can conflict with char $ac_func(); below. */
6341 /* Override any gcc2 internal prototype to avoid an error. */
6342 /* We use char because int might match the return type of a gcc2
6343 builtin and then its argument prototype would still apply. */
6348 /* The GNU C library defines this for functions which it implements
6349 to always fail with ENOSYS. Some functions are actually named
6350 something starting with __ and the normal name is an alias. */
6351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6359 if { (eval echo configure
:6360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6361 eval "ac_cv_func_$ac_func=yes"
6363 echo "configure: failed program was:" >&5
6364 cat conftest.
$ac_ext >&5
6366 eval "ac_cv_func_$ac_func=no"
6371 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6372 echo "$ac_t""yes" 1>&6
6373 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6374 cat >> confdefs.h
<<EOF
6375 #define $ac_tr_func 1
6379 echo "$ac_t""no" 1>&6
6383 for ac_func
in _write __write _fork __fork
6385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6386 echo "configure:6387: checking for $ac_func" >&5
6387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6388 echo $ac_n "(cached) $ac_c" 1>&6
6390 cat > conftest.
$ac_ext <<EOF
6391 #line 6392 "configure"
6392 #include "confdefs.h"
6393 /* System header to define __stub macros and hopefully few prototypes,
6394 which can conflict with char $ac_func(); below. */
6396 /* Override any gcc2 internal prototype to avoid an error. */
6397 /* We use char because int might match the return type of a gcc2
6398 builtin and then its argument prototype would still apply. */
6403 /* The GNU C library defines this for functions which it implements
6404 to always fail with ENOSYS. Some functions are actually named
6405 something starting with __ and the normal name is an alias. */
6406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6414 if { (eval echo configure
:6415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6416 eval "ac_cv_func_$ac_func=yes"
6418 echo "configure: failed program was:" >&5
6419 cat conftest.
$ac_ext >&5
6421 eval "ac_cv_func_$ac_func=no"
6426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6427 echo "$ac_t""yes" 1>&6
6428 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6429 cat >> confdefs.h
<<EOF
6430 #define $ac_tr_func 1
6434 echo "$ac_t""no" 1>&6
6438 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6440 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6441 echo "configure:6442: checking for $ac_func" >&5
6442 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6443 echo $ac_n "(cached) $ac_c" 1>&6
6445 cat > conftest.
$ac_ext <<EOF
6446 #line 6447 "configure"
6447 #include "confdefs.h"
6448 /* System header to define __stub macros and hopefully few prototypes,
6449 which can conflict with char $ac_func(); below. */
6451 /* Override any gcc2 internal prototype to avoid an error. */
6452 /* We use char because int might match the return type of a gcc2
6453 builtin and then its argument prototype would still apply. */
6458 /* The GNU C library defines this for functions which it implements
6459 to always fail with ENOSYS. Some functions are actually named
6460 something starting with __ and the normal name is an alias. */
6461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6469 if { (eval echo configure
:6470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6471 eval "ac_cv_func_$ac_func=yes"
6473 echo "configure: failed program was:" >&5
6474 cat conftest.
$ac_ext >&5
6476 eval "ac_cv_func_$ac_func=no"
6481 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6482 echo "$ac_t""yes" 1>&6
6483 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6484 cat >> confdefs.h
<<EOF
6485 #define $ac_tr_func 1
6489 echo "$ac_t""no" 1>&6
6493 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6496 echo "configure:6497: checking for $ac_func" >&5
6497 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6498 echo $ac_n "(cached) $ac_c" 1>&6
6500 cat > conftest.
$ac_ext <<EOF
6501 #line 6502 "configure"
6502 #include "confdefs.h"
6503 /* System header to define __stub macros and hopefully few prototypes,
6504 which can conflict with char $ac_func(); below. */
6506 /* Override any gcc2 internal prototype to avoid an error. */
6507 /* We use char because int might match the return type of a gcc2
6508 builtin and then its argument prototype would still apply. */
6513 /* The GNU C library defines this for functions which it implements
6514 to always fail with ENOSYS. Some functions are actually named
6515 something starting with __ and the normal name is an alias. */
6516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6524 if { (eval echo configure
:6525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6526 eval "ac_cv_func_$ac_func=yes"
6528 echo "configure: failed program was:" >&5
6529 cat conftest.
$ac_ext >&5
6531 eval "ac_cv_func_$ac_func=no"
6536 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6537 echo "$ac_t""yes" 1>&6
6538 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6539 cat >> confdefs.h
<<EOF
6540 #define $ac_tr_func 1
6544 echo "$ac_t""no" 1>&6
6548 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6550 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6551 echo "configure:6552: checking for $ac_func" >&5
6552 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6553 echo $ac_n "(cached) $ac_c" 1>&6
6555 cat > conftest.
$ac_ext <<EOF
6556 #line 6557 "configure"
6557 #include "confdefs.h"
6558 /* System header to define __stub macros and hopefully few prototypes,
6559 which can conflict with char $ac_func(); below. */
6561 /* Override any gcc2 internal prototype to avoid an error. */
6562 /* We use char because int might match the return type of a gcc2
6563 builtin and then its argument prototype would still apply. */
6568 /* The GNU C library defines this for functions which it implements
6569 to always fail with ENOSYS. Some functions are actually named
6570 something starting with __ and the normal name is an alias. */
6571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6579 if { (eval echo configure
:6580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6581 eval "ac_cv_func_$ac_func=yes"
6583 echo "configure: failed program was:" >&5
6584 cat conftest.
$ac_ext >&5
6586 eval "ac_cv_func_$ac_func=no"
6591 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6592 echo "$ac_t""yes" 1>&6
6593 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6594 cat >> confdefs.h
<<EOF
6595 #define $ac_tr_func 1
6599 echo "$ac_t""no" 1>&6
6603 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6606 echo "configure:6607: checking for $ac_func" >&5
6607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6608 echo $ac_n "(cached) $ac_c" 1>&6
6610 cat > conftest.
$ac_ext <<EOF
6611 #line 6612 "configure"
6612 #include "confdefs.h"
6613 /* System header to define __stub macros and hopefully few prototypes,
6614 which can conflict with char $ac_func(); below. */
6616 /* Override any gcc2 internal prototype to avoid an error. */
6617 /* We use char because int might match the return type of a gcc2
6618 builtin and then its argument prototype would still apply. */
6623 /* The GNU C library defines this for functions which it implements
6624 to always fail with ENOSYS. Some functions are actually named
6625 something starting with __ and the normal name is an alias. */
6626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6634 if { (eval echo configure
:6635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6636 eval "ac_cv_func_$ac_func=yes"
6638 echo "configure: failed program was:" >&5
6639 cat conftest.
$ac_ext >&5
6641 eval "ac_cv_func_$ac_func=no"
6646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6647 echo "$ac_t""yes" 1>&6
6648 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6649 cat >> confdefs.h
<<EOF
6650 #define $ac_tr_func 1
6654 echo "$ac_t""no" 1>&6
6658 for ac_func
in open64 _open64 __open64 creat64
6660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6661 echo "configure:6662: checking for $ac_func" >&5
6662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6663 echo $ac_n "(cached) $ac_c" 1>&6
6665 cat > conftest.
$ac_ext <<EOF
6666 #line 6667 "configure"
6667 #include "confdefs.h"
6668 /* System header to define __stub macros and hopefully few prototypes,
6669 which can conflict with char $ac_func(); below. */
6671 /* Override any gcc2 internal prototype to avoid an error. */
6672 /* We use char because int might match the return type of a gcc2
6673 builtin and then its argument prototype would still apply. */
6678 /* The GNU C library defines this for functions which it implements
6679 to always fail with ENOSYS. Some functions are actually named
6680 something starting with __ and the normal name is an alias. */
6681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6689 if { (eval echo configure
:6690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6691 eval "ac_cv_func_$ac_func=yes"
6693 echo "configure: failed program was:" >&5
6694 cat conftest.
$ac_ext >&5
6696 eval "ac_cv_func_$ac_func=no"
6701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6702 echo "$ac_t""yes" 1>&6
6703 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6704 cat >> confdefs.h
<<EOF
6705 #define $ac_tr_func 1
6709 echo "$ac_t""no" 1>&6
6715 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6718 if test x
$ac_cv_func_stat64 = xno
; then
6719 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6720 echo "configure:6721: checking for stat64 in <sys/stat.h>" >&5
6721 cat > conftest.
$ac_ext <<EOF
6722 #line 6723 "configure"
6723 #include "confdefs.h"
6725 #if defined(HAVE_UNISTD_H)
6728 #include <sys/stat.h>
6731 struct stat64 st64; exit(stat64(".",&st64));
6734 if { (eval echo configure
:6735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6736 ac_cv_func_stat64
=yes
6738 echo "configure: failed program was:" >&5
6739 cat conftest.
$ac_ext >&5
6742 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6743 if test x
$ac_cv_func_stat64 = xyes
; then
6744 cat >> confdefs.h
<<\EOF
6745 #define HAVE_STAT64 1
6751 if test x
$ac_cv_func_lstat64 = xno
; then
6752 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6753 echo "configure:6754: checking for lstat64 in <sys/stat.h>" >&5
6754 cat > conftest.
$ac_ext <<EOF
6755 #line 6756 "configure"
6756 #include "confdefs.h"
6758 #if defined(HAVE_UNISTD_H)
6761 #include <sys/stat.h>
6764 struct stat64 st64; exit(lstat64(".",&st64));
6767 if { (eval echo configure
:6768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6769 ac_cv_func_lstat64
=yes
6771 echo "configure: failed program was:" >&5
6772 cat conftest.
$ac_ext >&5
6775 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6776 if test x
$ac_cv_func_lstat64 = xyes
; then
6777 cat >> confdefs.h
<<\EOF
6778 #define HAVE_LSTAT64 1
6784 if test x
$ac_cv_func_fstat64 = xno
; then
6785 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6786 echo "configure:6787: checking for fstat64 in <sys/stat.h>" >&5
6787 cat > conftest.
$ac_ext <<EOF
6788 #line 6789 "configure"
6789 #include "confdefs.h"
6791 #if defined(HAVE_UNISTD_H)
6794 #include <sys/stat.h>
6797 struct stat64 st64; exit(fstat64(0,&st64));
6800 if { (eval echo configure
:6801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6802 ac_cv_func_fstat64
=yes
6804 echo "configure: failed program was:" >&5
6805 cat conftest.
$ac_ext >&5
6808 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6809 if test x
$ac_cv_func_fstat64 = xyes
; then
6810 cat >> confdefs.h
<<\EOF
6811 #define HAVE_FSTAT64 1
6818 # If no strcasecmp, check for it in some known places
6819 # It is in -lresolv on ReliantUNIX and UnixWare
6820 # -lresolve *must* follow -lnsl for name resolution to work properly
6823 if test x
$ac_cv_func_strcasecmp = xno
; then
6824 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6825 echo "configure:6826: checking for strcasecmp in -lresolv" >&5
6826 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6827 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6828 echo $ac_n "(cached) $ac_c" 1>&6
6830 ac_save_LIBS
="$LIBS"
6831 LIBS
="-lresolv $LIBS"
6832 cat > conftest.
$ac_ext <<EOF
6833 #line 6834 "configure"
6834 #include "confdefs.h"
6835 /* Override any gcc2 internal prototype to avoid an error. */
6836 /* We use char because int might match the return type of a gcc2
6837 builtin and then its argument prototype would still apply. */
6844 if { (eval echo configure
:6845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6846 eval "ac_cv_lib_$ac_lib_var=yes"
6848 echo "configure: failed program was:" >&5
6849 cat conftest.
$ac_ext >&5
6851 eval "ac_cv_lib_$ac_lib_var=no"
6854 LIBS
="$ac_save_LIBS"
6857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6858 echo "$ac_t""yes" 1>&6
6859 LIBS
="$LIBS -lresolv"
6860 cat >> confdefs.h
<<\EOF
6861 #define HAVE_STRCASECMP 1
6865 echo "$ac_t""no" 1>&6
6871 # Check for the functions putprpwnam, set_auth_parameters,
6872 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6873 # Needed for OSF1 and HPUX.
6877 *-lsecurity*) for ac_func
in putprpwnam
6879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6880 echo "configure:6881: checking for $ac_func" >&5
6881 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6882 echo $ac_n "(cached) $ac_c" 1>&6
6884 cat > conftest.
$ac_ext <<EOF
6885 #line 6886 "configure"
6886 #include "confdefs.h"
6887 /* System header to define __stub macros and hopefully few prototypes,
6888 which can conflict with char $ac_func(); below. */
6890 /* Override any gcc2 internal prototype to avoid an error. */
6891 /* We use char because int might match the return type of a gcc2
6892 builtin and then its argument prototype would still apply. */
6897 /* The GNU C library defines this for functions which it implements
6898 to always fail with ENOSYS. Some functions are actually named
6899 something starting with __ and the normal name is an alias. */
6900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6908 if { (eval echo configure
:6909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6910 eval "ac_cv_func_$ac_func=yes"
6912 echo "configure: failed program was:" >&5
6913 cat conftest.
$ac_ext >&5
6915 eval "ac_cv_func_$ac_func=no"
6920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6921 echo "$ac_t""yes" 1>&6
6922 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6923 cat >> confdefs.h
<<EOF
6924 #define $ac_tr_func 1
6928 echo "$ac_t""no" 1>&6
6932 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6933 echo "configure:6934: checking for putprpwnam in -lsecurity" >&5
6934 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6935 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6936 echo $ac_n "(cached) $ac_c" 1>&6
6938 ac_save_LIBS
="$LIBS"
6939 LIBS
="-lsecurity $LIBS"
6940 cat > conftest.
$ac_ext <<EOF
6941 #line 6942 "configure"
6942 #include "confdefs.h"
6943 /* Override any gcc2 internal prototype to avoid an error. */
6944 /* We use char because int might match the return type of a gcc2
6945 builtin and then its argument prototype would still apply. */
6952 if { (eval echo configure
:6953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6954 eval "ac_cv_lib_$ac_lib_var=yes"
6956 echo "configure: failed program was:" >&5
6957 cat conftest.
$ac_ext >&5
6959 eval "ac_cv_lib_$ac_lib_var=no"
6962 LIBS
="$ac_save_LIBS"
6965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6966 echo "$ac_t""yes" 1>&6
6967 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6968 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6969 cat >> confdefs.h
<<EOF
6970 #define $ac_tr_lib 1
6973 LIBS
="-lsecurity $LIBS"
6976 echo "$ac_t""no" 1>&6
6979 for ac_func
in putprpwnam
6981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6982 echo "configure:6983: checking for $ac_func" >&5
6983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6984 echo $ac_n "(cached) $ac_c" 1>&6
6986 cat > conftest.
$ac_ext <<EOF
6987 #line 6988 "configure"
6988 #include "confdefs.h"
6989 /* System header to define __stub macros and hopefully few prototypes,
6990 which can conflict with char $ac_func(); below. */
6992 /* Override any gcc2 internal prototype to avoid an error. */
6993 /* We use char because int might match the return type of a gcc2
6994 builtin and then its argument prototype would still apply. */
6999 /* The GNU C library defines this for functions which it implements
7000 to always fail with ENOSYS. Some functions are actually named
7001 something starting with __ and the normal name is an alias. */
7002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7010 if { (eval echo configure
:7011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7012 eval "ac_cv_func_$ac_func=yes"
7014 echo "configure: failed program was:" >&5
7015 cat conftest.
$ac_ext >&5
7017 eval "ac_cv_func_$ac_func=no"
7022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7023 echo "$ac_t""yes" 1>&6
7024 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7025 cat >> confdefs.h
<<EOF
7026 #define $ac_tr_func 1
7030 echo "$ac_t""no" 1>&6
7038 *-lsec*) for ac_func
in putprpwnam
7040 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7041 echo "configure:7042: checking for $ac_func" >&5
7042 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7043 echo $ac_n "(cached) $ac_c" 1>&6
7045 cat > conftest.
$ac_ext <<EOF
7046 #line 7047 "configure"
7047 #include "confdefs.h"
7048 /* System header to define __stub macros and hopefully few prototypes,
7049 which can conflict with char $ac_func(); below. */
7051 /* Override any gcc2 internal prototype to avoid an error. */
7052 /* We use char because int might match the return type of a gcc2
7053 builtin and then its argument prototype would still apply. */
7058 /* The GNU C library defines this for functions which it implements
7059 to always fail with ENOSYS. Some functions are actually named
7060 something starting with __ and the normal name is an alias. */
7061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7069 if { (eval echo configure
:7070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7071 eval "ac_cv_func_$ac_func=yes"
7073 echo "configure: failed program was:" >&5
7074 cat conftest.
$ac_ext >&5
7076 eval "ac_cv_func_$ac_func=no"
7081 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7082 echo "$ac_t""yes" 1>&6
7083 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7084 cat >> confdefs.h
<<EOF
7085 #define $ac_tr_func 1
7089 echo "$ac_t""no" 1>&6
7093 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7094 echo "configure:7095: checking for putprpwnam in -lsec" >&5
7095 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7096 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7097 echo $ac_n "(cached) $ac_c" 1>&6
7099 ac_save_LIBS
="$LIBS"
7101 cat > conftest.
$ac_ext <<EOF
7102 #line 7103 "configure"
7103 #include "confdefs.h"
7104 /* Override any gcc2 internal prototype to avoid an error. */
7105 /* We use char because int might match the return type of a gcc2
7106 builtin and then its argument prototype would still apply. */
7113 if { (eval echo configure
:7114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7115 eval "ac_cv_lib_$ac_lib_var=yes"
7117 echo "configure: failed program was:" >&5
7118 cat conftest.
$ac_ext >&5
7120 eval "ac_cv_lib_$ac_lib_var=no"
7123 LIBS
="$ac_save_LIBS"
7126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7127 echo "$ac_t""yes" 1>&6
7128 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7129 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7130 cat >> confdefs.h
<<EOF
7131 #define $ac_tr_lib 1
7137 echo "$ac_t""no" 1>&6
7140 for ac_func
in putprpwnam
7142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7143 echo "configure:7144: checking for $ac_func" >&5
7144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7145 echo $ac_n "(cached) $ac_c" 1>&6
7147 cat > conftest.
$ac_ext <<EOF
7148 #line 7149 "configure"
7149 #include "confdefs.h"
7150 /* System header to define __stub macros and hopefully few prototypes,
7151 which can conflict with char $ac_func(); below. */
7153 /* Override any gcc2 internal prototype to avoid an error. */
7154 /* We use char because int might match the return type of a gcc2
7155 builtin and then its argument prototype would still apply. */
7160 /* The GNU C library defines this for functions which it implements
7161 to always fail with ENOSYS. Some functions are actually named
7162 something starting with __ and the normal name is an alias. */
7163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7171 if { (eval echo configure
:7172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7173 eval "ac_cv_func_$ac_func=yes"
7175 echo "configure: failed program was:" >&5
7176 cat conftest.
$ac_ext >&5
7178 eval "ac_cv_func_$ac_func=no"
7183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7184 echo "$ac_t""yes" 1>&6
7185 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7186 cat >> confdefs.h
<<EOF
7187 #define $ac_tr_func 1
7191 echo "$ac_t""no" 1>&6
7200 *-lsecurity*) for ac_func
in set_auth_parameters
7202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7203 echo "configure:7204: checking for $ac_func" >&5
7204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7205 echo $ac_n "(cached) $ac_c" 1>&6
7207 cat > conftest.
$ac_ext <<EOF
7208 #line 7209 "configure"
7209 #include "confdefs.h"
7210 /* System header to define __stub macros and hopefully few prototypes,
7211 which can conflict with char $ac_func(); below. */
7213 /* Override any gcc2 internal prototype to avoid an error. */
7214 /* We use char because int might match the return type of a gcc2
7215 builtin and then its argument prototype would still apply. */
7220 /* The GNU C library defines this for functions which it implements
7221 to always fail with ENOSYS. Some functions are actually named
7222 something starting with __ and the normal name is an alias. */
7223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7231 if { (eval echo configure
:7232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7233 eval "ac_cv_func_$ac_func=yes"
7235 echo "configure: failed program was:" >&5
7236 cat conftest.
$ac_ext >&5
7238 eval "ac_cv_func_$ac_func=no"
7243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7244 echo "$ac_t""yes" 1>&6
7245 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7246 cat >> confdefs.h
<<EOF
7247 #define $ac_tr_func 1
7251 echo "$ac_t""no" 1>&6
7255 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7256 echo "configure:7257: checking for set_auth_parameters in -lsecurity" >&5
7257 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7258 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7259 echo $ac_n "(cached) $ac_c" 1>&6
7261 ac_save_LIBS
="$LIBS"
7262 LIBS
="-lsecurity $LIBS"
7263 cat > conftest.
$ac_ext <<EOF
7264 #line 7265 "configure"
7265 #include "confdefs.h"
7266 /* Override any gcc2 internal prototype to avoid an error. */
7267 /* We use char because int might match the return type of a gcc2
7268 builtin and then its argument prototype would still apply. */
7269 char set_auth_parameters();
7272 set_auth_parameters()
7275 if { (eval echo configure
:7276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7277 eval "ac_cv_lib_$ac_lib_var=yes"
7279 echo "configure: failed program was:" >&5
7280 cat conftest.
$ac_ext >&5
7282 eval "ac_cv_lib_$ac_lib_var=no"
7285 LIBS
="$ac_save_LIBS"
7288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7289 echo "$ac_t""yes" 1>&6
7290 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7291 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7292 cat >> confdefs.h
<<EOF
7293 #define $ac_tr_lib 1
7296 LIBS
="-lsecurity $LIBS"
7299 echo "$ac_t""no" 1>&6
7302 for ac_func
in set_auth_parameters
7304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7305 echo "configure:7306: checking for $ac_func" >&5
7306 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7307 echo $ac_n "(cached) $ac_c" 1>&6
7309 cat > conftest.
$ac_ext <<EOF
7310 #line 7311 "configure"
7311 #include "confdefs.h"
7312 /* System header to define __stub macros and hopefully few prototypes,
7313 which can conflict with char $ac_func(); below. */
7315 /* Override any gcc2 internal prototype to avoid an error. */
7316 /* We use char because int might match the return type of a gcc2
7317 builtin and then its argument prototype would still apply. */
7322 /* The GNU C library defines this for functions which it implements
7323 to always fail with ENOSYS. Some functions are actually named
7324 something starting with __ and the normal name is an alias. */
7325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7333 if { (eval echo configure
:7334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7335 eval "ac_cv_func_$ac_func=yes"
7337 echo "configure: failed program was:" >&5
7338 cat conftest.
$ac_ext >&5
7340 eval "ac_cv_func_$ac_func=no"
7345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7346 echo "$ac_t""yes" 1>&6
7347 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7348 cat >> confdefs.h
<<EOF
7349 #define $ac_tr_func 1
7353 echo "$ac_t""no" 1>&6
7361 *-lsec*) for ac_func
in set_auth_parameters
7363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7364 echo "configure:7365: checking for $ac_func" >&5
7365 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7366 echo $ac_n "(cached) $ac_c" 1>&6
7368 cat > conftest.
$ac_ext <<EOF
7369 #line 7370 "configure"
7370 #include "confdefs.h"
7371 /* System header to define __stub macros and hopefully few prototypes,
7372 which can conflict with char $ac_func(); below. */
7374 /* Override any gcc2 internal prototype to avoid an error. */
7375 /* We use char because int might match the return type of a gcc2
7376 builtin and then its argument prototype would still apply. */
7381 /* The GNU C library defines this for functions which it implements
7382 to always fail with ENOSYS. Some functions are actually named
7383 something starting with __ and the normal name is an alias. */
7384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7392 if { (eval echo configure
:7393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7394 eval "ac_cv_func_$ac_func=yes"
7396 echo "configure: failed program was:" >&5
7397 cat conftest.
$ac_ext >&5
7399 eval "ac_cv_func_$ac_func=no"
7404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7405 echo "$ac_t""yes" 1>&6
7406 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7407 cat >> confdefs.h
<<EOF
7408 #define $ac_tr_func 1
7412 echo "$ac_t""no" 1>&6
7416 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7417 echo "configure:7418: checking for set_auth_parameters in -lsec" >&5
7418 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7419 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7420 echo $ac_n "(cached) $ac_c" 1>&6
7422 ac_save_LIBS
="$LIBS"
7424 cat > conftest.
$ac_ext <<EOF
7425 #line 7426 "configure"
7426 #include "confdefs.h"
7427 /* Override any gcc2 internal prototype to avoid an error. */
7428 /* We use char because int might match the return type of a gcc2
7429 builtin and then its argument prototype would still apply. */
7430 char set_auth_parameters();
7433 set_auth_parameters()
7436 if { (eval echo configure
:7437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7438 eval "ac_cv_lib_$ac_lib_var=yes"
7440 echo "configure: failed program was:" >&5
7441 cat conftest.
$ac_ext >&5
7443 eval "ac_cv_lib_$ac_lib_var=no"
7446 LIBS
="$ac_save_LIBS"
7449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7450 echo "$ac_t""yes" 1>&6
7451 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7452 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7453 cat >> confdefs.h
<<EOF
7454 #define $ac_tr_lib 1
7460 echo "$ac_t""no" 1>&6
7463 for ac_func
in set_auth_parameters
7465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7466 echo "configure:7467: checking for $ac_func" >&5
7467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7468 echo $ac_n "(cached) $ac_c" 1>&6
7470 cat > conftest.
$ac_ext <<EOF
7471 #line 7472 "configure"
7472 #include "confdefs.h"
7473 /* System header to define __stub macros and hopefully few prototypes,
7474 which can conflict with char $ac_func(); below. */
7476 /* Override any gcc2 internal prototype to avoid an error. */
7477 /* We use char because int might match the return type of a gcc2
7478 builtin and then its argument prototype would still apply. */
7483 /* The GNU C library defines this for functions which it implements
7484 to always fail with ENOSYS. Some functions are actually named
7485 something starting with __ and the normal name is an alias. */
7486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7494 if { (eval echo configure
:7495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7496 eval "ac_cv_func_$ac_func=yes"
7498 echo "configure: failed program was:" >&5
7499 cat conftest.
$ac_ext >&5
7501 eval "ac_cv_func_$ac_func=no"
7506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7507 echo "$ac_t""yes" 1>&6
7508 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7509 cat >> confdefs.h
<<EOF
7510 #define $ac_tr_func 1
7514 echo "$ac_t""no" 1>&6
7522 # UnixWare 7.x has its getspnam in -lgen
7524 *-lgen*) for ac_func
in getspnam
7526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7527 echo "configure:7528: checking for $ac_func" >&5
7528 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7529 echo $ac_n "(cached) $ac_c" 1>&6
7531 cat > conftest.
$ac_ext <<EOF
7532 #line 7533 "configure"
7533 #include "confdefs.h"
7534 /* System header to define __stub macros and hopefully few prototypes,
7535 which can conflict with char $ac_func(); below. */
7537 /* Override any gcc2 internal prototype to avoid an error. */
7538 /* We use char because int might match the return type of a gcc2
7539 builtin and then its argument prototype would still apply. */
7544 /* The GNU C library defines this for functions which it implements
7545 to always fail with ENOSYS. Some functions are actually named
7546 something starting with __ and the normal name is an alias. */
7547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7555 if { (eval echo configure
:7556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7557 eval "ac_cv_func_$ac_func=yes"
7559 echo "configure: failed program was:" >&5
7560 cat conftest.
$ac_ext >&5
7562 eval "ac_cv_func_$ac_func=no"
7567 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7568 echo "$ac_t""yes" 1>&6
7569 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7570 cat >> confdefs.h
<<EOF
7571 #define $ac_tr_func 1
7575 echo "$ac_t""no" 1>&6
7579 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7580 echo "configure:7581: checking for getspnam in -lgen" >&5
7581 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7582 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7583 echo $ac_n "(cached) $ac_c" 1>&6
7585 ac_save_LIBS
="$LIBS"
7587 cat > conftest.
$ac_ext <<EOF
7588 #line 7589 "configure"
7589 #include "confdefs.h"
7590 /* Override any gcc2 internal prototype to avoid an error. */
7591 /* We use char because int might match the return type of a gcc2
7592 builtin and then its argument prototype would still apply. */
7599 if { (eval echo configure
:7600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7601 eval "ac_cv_lib_$ac_lib_var=yes"
7603 echo "configure: failed program was:" >&5
7604 cat conftest.
$ac_ext >&5
7606 eval "ac_cv_lib_$ac_lib_var=no"
7609 LIBS
="$ac_save_LIBS"
7612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7613 echo "$ac_t""yes" 1>&6
7614 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7615 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7616 cat >> confdefs.h
<<EOF
7617 #define $ac_tr_lib 1
7623 echo "$ac_t""no" 1>&6
7626 for ac_func
in getspnam
7628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7629 echo "configure:7630: checking for $ac_func" >&5
7630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7631 echo $ac_n "(cached) $ac_c" 1>&6
7633 cat > conftest.
$ac_ext <<EOF
7634 #line 7635 "configure"
7635 #include "confdefs.h"
7636 /* System header to define __stub macros and hopefully few prototypes,
7637 which can conflict with char $ac_func(); below. */
7639 /* Override any gcc2 internal prototype to avoid an error. */
7640 /* We use char because int might match the return type of a gcc2
7641 builtin and then its argument prototype would still apply. */
7646 /* The GNU C library defines this for functions which it implements
7647 to always fail with ENOSYS. Some functions are actually named
7648 something starting with __ and the normal name is an alias. */
7649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7657 if { (eval echo configure
:7658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7659 eval "ac_cv_func_$ac_func=yes"
7661 echo "configure: failed program was:" >&5
7662 cat conftest.
$ac_ext >&5
7664 eval "ac_cv_func_$ac_func=no"
7669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7670 echo "$ac_t""yes" 1>&6
7671 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7672 cat >> confdefs.h
<<EOF
7673 #define $ac_tr_func 1
7677 echo "$ac_t""no" 1>&6
7686 *-lsecurity*) for ac_func
in getspnam
7688 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7689 echo "configure:7690: checking for $ac_func" >&5
7690 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7691 echo $ac_n "(cached) $ac_c" 1>&6
7693 cat > conftest.
$ac_ext <<EOF
7694 #line 7695 "configure"
7695 #include "confdefs.h"
7696 /* System header to define __stub macros and hopefully few prototypes,
7697 which can conflict with char $ac_func(); below. */
7699 /* Override any gcc2 internal prototype to avoid an error. */
7700 /* We use char because int might match the return type of a gcc2
7701 builtin and then its argument prototype would still apply. */
7706 /* The GNU C library defines this for functions which it implements
7707 to always fail with ENOSYS. Some functions are actually named
7708 something starting with __ and the normal name is an alias. */
7709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7717 if { (eval echo configure
:7718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7719 eval "ac_cv_func_$ac_func=yes"
7721 echo "configure: failed program was:" >&5
7722 cat conftest.
$ac_ext >&5
7724 eval "ac_cv_func_$ac_func=no"
7729 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7730 echo "$ac_t""yes" 1>&6
7731 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7732 cat >> confdefs.h
<<EOF
7733 #define $ac_tr_func 1
7737 echo "$ac_t""no" 1>&6
7741 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7742 echo "configure:7743: checking for getspnam in -lsecurity" >&5
7743 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7745 echo $ac_n "(cached) $ac_c" 1>&6
7747 ac_save_LIBS
="$LIBS"
7748 LIBS
="-lsecurity $LIBS"
7749 cat > conftest.
$ac_ext <<EOF
7750 #line 7751 "configure"
7751 #include "confdefs.h"
7752 /* Override any gcc2 internal prototype to avoid an error. */
7753 /* We use char because int might match the return type of a gcc2
7754 builtin and then its argument prototype would still apply. */
7761 if { (eval echo configure
:7762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7763 eval "ac_cv_lib_$ac_lib_var=yes"
7765 echo "configure: failed program was:" >&5
7766 cat conftest.
$ac_ext >&5
7768 eval "ac_cv_lib_$ac_lib_var=no"
7771 LIBS
="$ac_save_LIBS"
7774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7775 echo "$ac_t""yes" 1>&6
7776 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7777 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7778 cat >> confdefs.h
<<EOF
7779 #define $ac_tr_lib 1
7782 LIBS
="-lsecurity $LIBS"
7785 echo "$ac_t""no" 1>&6
7788 for ac_func
in getspnam
7790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7791 echo "configure:7792: checking for $ac_func" >&5
7792 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7793 echo $ac_n "(cached) $ac_c" 1>&6
7795 cat > conftest.
$ac_ext <<EOF
7796 #line 7797 "configure"
7797 #include "confdefs.h"
7798 /* System header to define __stub macros and hopefully few prototypes,
7799 which can conflict with char $ac_func(); below. */
7801 /* Override any gcc2 internal prototype to avoid an error. */
7802 /* We use char because int might match the return type of a gcc2
7803 builtin and then its argument prototype would still apply. */
7808 /* The GNU C library defines this for functions which it implements
7809 to always fail with ENOSYS. Some functions are actually named
7810 something starting with __ and the normal name is an alias. */
7811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7819 if { (eval echo configure
:7820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7821 eval "ac_cv_func_$ac_func=yes"
7823 echo "configure: failed program was:" >&5
7824 cat conftest.
$ac_ext >&5
7826 eval "ac_cv_func_$ac_func=no"
7831 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7832 echo "$ac_t""yes" 1>&6
7833 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7834 cat >> confdefs.h
<<EOF
7835 #define $ac_tr_func 1
7839 echo "$ac_t""no" 1>&6
7847 *-lsec*) for ac_func
in getspnam
7849 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7850 echo "configure:7851: checking for $ac_func" >&5
7851 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7852 echo $ac_n "(cached) $ac_c" 1>&6
7854 cat > conftest.
$ac_ext <<EOF
7855 #line 7856 "configure"
7856 #include "confdefs.h"
7857 /* System header to define __stub macros and hopefully few prototypes,
7858 which can conflict with char $ac_func(); below. */
7860 /* Override any gcc2 internal prototype to avoid an error. */
7861 /* We use char because int might match the return type of a gcc2
7862 builtin and then its argument prototype would still apply. */
7867 /* The GNU C library defines this for functions which it implements
7868 to always fail with ENOSYS. Some functions are actually named
7869 something starting with __ and the normal name is an alias. */
7870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7878 if { (eval echo configure
:7879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7880 eval "ac_cv_func_$ac_func=yes"
7882 echo "configure: failed program was:" >&5
7883 cat conftest.
$ac_ext >&5
7885 eval "ac_cv_func_$ac_func=no"
7890 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7891 echo "$ac_t""yes" 1>&6
7892 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7893 cat >> confdefs.h
<<EOF
7894 #define $ac_tr_func 1
7898 echo "$ac_t""no" 1>&6
7902 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7903 echo "configure:7904: checking for getspnam in -lsec" >&5
7904 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7906 echo $ac_n "(cached) $ac_c" 1>&6
7908 ac_save_LIBS
="$LIBS"
7910 cat > conftest.
$ac_ext <<EOF
7911 #line 7912 "configure"
7912 #include "confdefs.h"
7913 /* Override any gcc2 internal prototype to avoid an error. */
7914 /* We use char because int might match the return type of a gcc2
7915 builtin and then its argument prototype would still apply. */
7922 if { (eval echo configure
:7923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7924 eval "ac_cv_lib_$ac_lib_var=yes"
7926 echo "configure: failed program was:" >&5
7927 cat conftest.
$ac_ext >&5
7929 eval "ac_cv_lib_$ac_lib_var=no"
7932 LIBS
="$ac_save_LIBS"
7935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7936 echo "$ac_t""yes" 1>&6
7937 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7938 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7939 cat >> confdefs.h
<<EOF
7940 #define $ac_tr_lib 1
7946 echo "$ac_t""no" 1>&6
7949 for ac_func
in getspnam
7951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7952 echo "configure:7953: checking for $ac_func" >&5
7953 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7954 echo $ac_n "(cached) $ac_c" 1>&6
7956 cat > conftest.
$ac_ext <<EOF
7957 #line 7958 "configure"
7958 #include "confdefs.h"
7959 /* System header to define __stub macros and hopefully few prototypes,
7960 which can conflict with char $ac_func(); below. */
7962 /* Override any gcc2 internal prototype to avoid an error. */
7963 /* We use char because int might match the return type of a gcc2
7964 builtin and then its argument prototype would still apply. */
7969 /* The GNU C library defines this for functions which it implements
7970 to always fail with ENOSYS. Some functions are actually named
7971 something starting with __ and the normal name is an alias. */
7972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7980 if { (eval echo configure
:7981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7982 eval "ac_cv_func_$ac_func=yes"
7984 echo "configure: failed program was:" >&5
7985 cat conftest.
$ac_ext >&5
7987 eval "ac_cv_func_$ac_func=no"
7992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7993 echo "$ac_t""yes" 1>&6
7994 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7995 cat >> confdefs.h
<<EOF
7996 #define $ac_tr_func 1
8000 echo "$ac_t""no" 1>&6
8009 *-lsecurity*) for ac_func
in bigcrypt
8011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8012 echo "configure:8013: checking for $ac_func" >&5
8013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8014 echo $ac_n "(cached) $ac_c" 1>&6
8016 cat > conftest.
$ac_ext <<EOF
8017 #line 8018 "configure"
8018 #include "confdefs.h"
8019 /* System header to define __stub macros and hopefully few prototypes,
8020 which can conflict with char $ac_func(); below. */
8022 /* Override any gcc2 internal prototype to avoid an error. */
8023 /* We use char because int might match the return type of a gcc2
8024 builtin and then its argument prototype would still apply. */
8029 /* The GNU C library defines this for functions which it implements
8030 to always fail with ENOSYS. Some functions are actually named
8031 something starting with __ and the normal name is an alias. */
8032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8040 if { (eval echo configure
:8041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8042 eval "ac_cv_func_$ac_func=yes"
8044 echo "configure: failed program was:" >&5
8045 cat conftest.
$ac_ext >&5
8047 eval "ac_cv_func_$ac_func=no"
8052 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8053 echo "$ac_t""yes" 1>&6
8054 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8055 cat >> confdefs.h
<<EOF
8056 #define $ac_tr_func 1
8060 echo "$ac_t""no" 1>&6
8064 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8065 echo "configure:8066: checking for bigcrypt in -lsecurity" >&5
8066 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8067 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8068 echo $ac_n "(cached) $ac_c" 1>&6
8070 ac_save_LIBS
="$LIBS"
8071 LIBS
="-lsecurity $LIBS"
8072 cat > conftest.
$ac_ext <<EOF
8073 #line 8074 "configure"
8074 #include "confdefs.h"
8075 /* Override any gcc2 internal prototype to avoid an error. */
8076 /* We use char because int might match the return type of a gcc2
8077 builtin and then its argument prototype would still apply. */
8084 if { (eval echo configure
:8085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8086 eval "ac_cv_lib_$ac_lib_var=yes"
8088 echo "configure: failed program was:" >&5
8089 cat conftest.
$ac_ext >&5
8091 eval "ac_cv_lib_$ac_lib_var=no"
8094 LIBS
="$ac_save_LIBS"
8097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8098 echo "$ac_t""yes" 1>&6
8099 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8100 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8101 cat >> confdefs.h
<<EOF
8102 #define $ac_tr_lib 1
8105 LIBS
="-lsecurity $LIBS"
8108 echo "$ac_t""no" 1>&6
8111 for ac_func
in bigcrypt
8113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8114 echo "configure:8115: checking for $ac_func" >&5
8115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8116 echo $ac_n "(cached) $ac_c" 1>&6
8118 cat > conftest.
$ac_ext <<EOF
8119 #line 8120 "configure"
8120 #include "confdefs.h"
8121 /* System header to define __stub macros and hopefully few prototypes,
8122 which can conflict with char $ac_func(); below. */
8124 /* Override any gcc2 internal prototype to avoid an error. */
8125 /* We use char because int might match the return type of a gcc2
8126 builtin and then its argument prototype would still apply. */
8131 /* The GNU C library defines this for functions which it implements
8132 to always fail with ENOSYS. Some functions are actually named
8133 something starting with __ and the normal name is an alias. */
8134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8142 if { (eval echo configure
:8143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8144 eval "ac_cv_func_$ac_func=yes"
8146 echo "configure: failed program was:" >&5
8147 cat conftest.
$ac_ext >&5
8149 eval "ac_cv_func_$ac_func=no"
8154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8155 echo "$ac_t""yes" 1>&6
8156 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8157 cat >> confdefs.h
<<EOF
8158 #define $ac_tr_func 1
8162 echo "$ac_t""no" 1>&6
8170 *-lsec*) for ac_func
in bigcrypt
8172 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8173 echo "configure:8174: checking for $ac_func" >&5
8174 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8175 echo $ac_n "(cached) $ac_c" 1>&6
8177 cat > conftest.
$ac_ext <<EOF
8178 #line 8179 "configure"
8179 #include "confdefs.h"
8180 /* System header to define __stub macros and hopefully few prototypes,
8181 which can conflict with char $ac_func(); below. */
8183 /* Override any gcc2 internal prototype to avoid an error. */
8184 /* We use char because int might match the return type of a gcc2
8185 builtin and then its argument prototype would still apply. */
8190 /* The GNU C library defines this for functions which it implements
8191 to always fail with ENOSYS. Some functions are actually named
8192 something starting with __ and the normal name is an alias. */
8193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8201 if { (eval echo configure
:8202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8203 eval "ac_cv_func_$ac_func=yes"
8205 echo "configure: failed program was:" >&5
8206 cat conftest.
$ac_ext >&5
8208 eval "ac_cv_func_$ac_func=no"
8213 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8214 echo "$ac_t""yes" 1>&6
8215 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8216 cat >> confdefs.h
<<EOF
8217 #define $ac_tr_func 1
8221 echo "$ac_t""no" 1>&6
8225 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8226 echo "configure:8227: checking for bigcrypt in -lsec" >&5
8227 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8228 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8229 echo $ac_n "(cached) $ac_c" 1>&6
8231 ac_save_LIBS
="$LIBS"
8233 cat > conftest.
$ac_ext <<EOF
8234 #line 8235 "configure"
8235 #include "confdefs.h"
8236 /* Override any gcc2 internal prototype to avoid an error. */
8237 /* We use char because int might match the return type of a gcc2
8238 builtin and then its argument prototype would still apply. */
8245 if { (eval echo configure
:8246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8247 eval "ac_cv_lib_$ac_lib_var=yes"
8249 echo "configure: failed program was:" >&5
8250 cat conftest.
$ac_ext >&5
8252 eval "ac_cv_lib_$ac_lib_var=no"
8255 LIBS
="$ac_save_LIBS"
8258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8259 echo "$ac_t""yes" 1>&6
8260 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8261 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8262 cat >> confdefs.h
<<EOF
8263 #define $ac_tr_lib 1
8269 echo "$ac_t""no" 1>&6
8272 for ac_func
in bigcrypt
8274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8275 echo "configure:8276: checking for $ac_func" >&5
8276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8277 echo $ac_n "(cached) $ac_c" 1>&6
8279 cat > conftest.
$ac_ext <<EOF
8280 #line 8281 "configure"
8281 #include "confdefs.h"
8282 /* System header to define __stub macros and hopefully few prototypes,
8283 which can conflict with char $ac_func(); below. */
8285 /* Override any gcc2 internal prototype to avoid an error. */
8286 /* We use char because int might match the return type of a gcc2
8287 builtin and then its argument prototype would still apply. */
8292 /* The GNU C library defines this for functions which it implements
8293 to always fail with ENOSYS. Some functions are actually named
8294 something starting with __ and the normal name is an alias. */
8295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8303 if { (eval echo configure
:8304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8305 eval "ac_cv_func_$ac_func=yes"
8307 echo "configure: failed program was:" >&5
8308 cat conftest.
$ac_ext >&5
8310 eval "ac_cv_func_$ac_func=no"
8315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8316 echo "$ac_t""yes" 1>&6
8317 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8318 cat >> confdefs.h
<<EOF
8319 #define $ac_tr_func 1
8323 echo "$ac_t""no" 1>&6
8332 *-lsecurity*) for ac_func
in getprpwnam
8334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8335 echo "configure:8336: checking for $ac_func" >&5
8336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8337 echo $ac_n "(cached) $ac_c" 1>&6
8339 cat > conftest.
$ac_ext <<EOF
8340 #line 8341 "configure"
8341 #include "confdefs.h"
8342 /* System header to define __stub macros and hopefully few prototypes,
8343 which can conflict with char $ac_func(); below. */
8345 /* Override any gcc2 internal prototype to avoid an error. */
8346 /* We use char because int might match the return type of a gcc2
8347 builtin and then its argument prototype would still apply. */
8352 /* The GNU C library defines this for functions which it implements
8353 to always fail with ENOSYS. Some functions are actually named
8354 something starting with __ and the normal name is an alias. */
8355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8363 if { (eval echo configure
:8364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8365 eval "ac_cv_func_$ac_func=yes"
8367 echo "configure: failed program was:" >&5
8368 cat conftest.
$ac_ext >&5
8370 eval "ac_cv_func_$ac_func=no"
8375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8376 echo "$ac_t""yes" 1>&6
8377 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8378 cat >> confdefs.h
<<EOF
8379 #define $ac_tr_func 1
8383 echo "$ac_t""no" 1>&6
8387 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8388 echo "configure:8389: checking for getprpwnam in -lsecurity" >&5
8389 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8391 echo $ac_n "(cached) $ac_c" 1>&6
8393 ac_save_LIBS
="$LIBS"
8394 LIBS
="-lsecurity $LIBS"
8395 cat > conftest.
$ac_ext <<EOF
8396 #line 8397 "configure"
8397 #include "confdefs.h"
8398 /* Override any gcc2 internal prototype to avoid an error. */
8399 /* We use char because int might match the return type of a gcc2
8400 builtin and then its argument prototype would still apply. */
8407 if { (eval echo configure
:8408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8409 eval "ac_cv_lib_$ac_lib_var=yes"
8411 echo "configure: failed program was:" >&5
8412 cat conftest.
$ac_ext >&5
8414 eval "ac_cv_lib_$ac_lib_var=no"
8417 LIBS
="$ac_save_LIBS"
8420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8421 echo "$ac_t""yes" 1>&6
8422 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8423 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8424 cat >> confdefs.h
<<EOF
8425 #define $ac_tr_lib 1
8428 LIBS
="-lsecurity $LIBS"
8431 echo "$ac_t""no" 1>&6
8434 for ac_func
in getprpwnam
8436 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8437 echo "configure:8438: checking for $ac_func" >&5
8438 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8439 echo $ac_n "(cached) $ac_c" 1>&6
8441 cat > conftest.
$ac_ext <<EOF
8442 #line 8443 "configure"
8443 #include "confdefs.h"
8444 /* System header to define __stub macros and hopefully few prototypes,
8445 which can conflict with char $ac_func(); below. */
8447 /* Override any gcc2 internal prototype to avoid an error. */
8448 /* We use char because int might match the return type of a gcc2
8449 builtin and then its argument prototype would still apply. */
8454 /* The GNU C library defines this for functions which it implements
8455 to always fail with ENOSYS. Some functions are actually named
8456 something starting with __ and the normal name is an alias. */
8457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8465 if { (eval echo configure
:8466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8467 eval "ac_cv_func_$ac_func=yes"
8469 echo "configure: failed program was:" >&5
8470 cat conftest.
$ac_ext >&5
8472 eval "ac_cv_func_$ac_func=no"
8477 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8478 echo "$ac_t""yes" 1>&6
8479 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8480 cat >> confdefs.h
<<EOF
8481 #define $ac_tr_func 1
8485 echo "$ac_t""no" 1>&6
8493 *-lsec*) for ac_func
in getprpwnam
8495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8496 echo "configure:8497: checking for $ac_func" >&5
8497 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8498 echo $ac_n "(cached) $ac_c" 1>&6
8500 cat > conftest.
$ac_ext <<EOF
8501 #line 8502 "configure"
8502 #include "confdefs.h"
8503 /* System header to define __stub macros and hopefully few prototypes,
8504 which can conflict with char $ac_func(); below. */
8506 /* Override any gcc2 internal prototype to avoid an error. */
8507 /* We use char because int might match the return type of a gcc2
8508 builtin and then its argument prototype would still apply. */
8513 /* The GNU C library defines this for functions which it implements
8514 to always fail with ENOSYS. Some functions are actually named
8515 something starting with __ and the normal name is an alias. */
8516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8524 if { (eval echo configure
:8525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8526 eval "ac_cv_func_$ac_func=yes"
8528 echo "configure: failed program was:" >&5
8529 cat conftest.
$ac_ext >&5
8531 eval "ac_cv_func_$ac_func=no"
8536 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8537 echo "$ac_t""yes" 1>&6
8538 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8539 cat >> confdefs.h
<<EOF
8540 #define $ac_tr_func 1
8544 echo "$ac_t""no" 1>&6
8548 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8549 echo "configure:8550: checking for getprpwnam in -lsec" >&5
8550 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8551 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8552 echo $ac_n "(cached) $ac_c" 1>&6
8554 ac_save_LIBS
="$LIBS"
8556 cat > conftest.
$ac_ext <<EOF
8557 #line 8558 "configure"
8558 #include "confdefs.h"
8559 /* Override any gcc2 internal prototype to avoid an error. */
8560 /* We use char because int might match the return type of a gcc2
8561 builtin and then its argument prototype would still apply. */
8568 if { (eval echo configure
:8569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8570 eval "ac_cv_lib_$ac_lib_var=yes"
8572 echo "configure: failed program was:" >&5
8573 cat conftest.
$ac_ext >&5
8575 eval "ac_cv_lib_$ac_lib_var=no"
8578 LIBS
="$ac_save_LIBS"
8581 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8582 echo "$ac_t""yes" 1>&6
8583 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8584 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8585 cat >> confdefs.h
<<EOF
8586 #define $ac_tr_lib 1
8592 echo "$ac_t""no" 1>&6
8595 for ac_func
in getprpwnam
8597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8598 echo "configure:8599: checking for $ac_func" >&5
8599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8600 echo $ac_n "(cached) $ac_c" 1>&6
8602 cat > conftest.
$ac_ext <<EOF
8603 #line 8604 "configure"
8604 #include "confdefs.h"
8605 /* System header to define __stub macros and hopefully few prototypes,
8606 which can conflict with char $ac_func(); below. */
8608 /* Override any gcc2 internal prototype to avoid an error. */
8609 /* We use char because int might match the return type of a gcc2
8610 builtin and then its argument prototype would still apply. */
8615 /* The GNU C library defines this for functions which it implements
8616 to always fail with ENOSYS. Some functions are actually named
8617 something starting with __ and the normal name is an alias. */
8618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8626 if { (eval echo configure
:8627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8628 eval "ac_cv_func_$ac_func=yes"
8630 echo "configure: failed program was:" >&5
8631 cat conftest.
$ac_ext >&5
8633 eval "ac_cv_func_$ac_func=no"
8638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8639 echo "$ac_t""yes" 1>&6
8640 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8641 cat >> confdefs.h
<<EOF
8642 #define $ac_tr_func 1
8646 echo "$ac_t""no" 1>&6
8654 # this bit needs to be modified for each OS that is suported by
8655 # smbwrapper. You need to specify how to created a shared library and
8656 # how to compile C code to produce PIC object files
8658 # these are the defaults, good for lots of systems
8666 # Assume non-shared by default and override below
8668 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8669 echo "configure:8670: checking ability to build shared libraries" >&5
8671 # and these are for particular systems
8673 *linux
*) cat >> confdefs.h
<<\EOF
8679 DYNEXP
="-Wl,--export-dynamic"
8681 SONAMEFLAG
="-Wl,-soname="
8682 cat >> confdefs.h
<<\EOF
8683 #define STAT_ST_BLOCKSIZE 512
8687 *solaris
*) cat >> confdefs.h
<<\EOF
8694 if test "${GCC}" = "yes"; then
8696 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
8701 ## ${CFLAGS} added for building 64-bit shared
8702 ## libs using Sun's Compiler
8703 LDSHFLAGS
="-G \${CFLAGS}"
8707 cat >> confdefs.h
<<\EOF
8708 #define STAT_ST_BLOCKSIZE 512
8712 *sunos
*) cat >> confdefs.h
<<\EOF
8718 SONAMEFLAG
="-Wl,-h,"
8719 PICFLAG
="-KPIC" # Is this correct for SunOS
8721 *freebsd
*) BLDSHARED
="true"
8723 DYNEXP
="-Wl,--export-dynamic"
8724 SONAMEFLAG
="-Wl,-soname,"
8725 PICFLAG
="-fPIC -DPIC"
8726 cat >> confdefs.h
<<\EOF
8727 #define STAT_ST_BLOCKSIZE 512
8731 *openbsd
*) BLDSHARED
="true"
8733 DYNEXP
="-Wl,-Bdynamic"
8734 SONAMEFLAG
="-Wl,-soname,"
8736 cat >> confdefs.h
<<\EOF
8737 #define STAT_ST_BLOCKSIZE 512
8741 *irix
*) cat >> confdefs.h
<<\EOF
8746 *irix6
*) cat >> confdefs.h
<<\EOF
8752 ATTEMPT_WRAP32_BUILD
=yes
8754 LDSHFLAGS
="-set_version sgi1.0 -shared"
8755 SONAMEFLAG
="-soname "
8757 if test "${GCC}" = "yes"; then
8762 cat >> confdefs.h
<<\EOF
8763 #define STAT_ST_BLOCKSIZE 512
8767 *aix
*) cat >> confdefs.h
<<\EOF
8772 LDSHFLAGS
="-Wl,-bexpall,-bM:SRE,-bnoentry"
8773 DYNEXP
="-Wl,-brtl,-bexpall"
8775 if test "${GCC}" = "no"; then
8776 ## for funky AIX compiler using strncpy()
8777 CFLAGS
="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
8780 cat >> confdefs.h
<<\EOF
8781 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8785 *hpux
*) cat >> confdefs.h
<<\EOF
8790 # Use special PIC flags for the native HP-UX compiler.
8791 if test $ac_cv_prog_cc_Ae = yes; then
8794 LDSHFLAGS
="-B symbolic -b -z"
8799 cat >> confdefs.h
<<\EOF
8800 #define STAT_ST_BLOCKSIZE 8192
8804 *qnx
*) cat >> confdefs.h
<<\EOF
8808 *osf
*) cat >> confdefs.h
<<\EOF
8814 SONAMEFLAG
="-Wl,-soname,"
8817 *sco
*) cat >> confdefs.h
<<\EOF
8821 *unixware
*) cat >> confdefs.h
<<\EOF
8827 SONAMEFLAG
="-Wl,-soname,"
8830 *next2
*) cat >> confdefs.h
<<\EOF
8834 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
8835 set dummy
groff; ac_word
=$2
8836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8837 echo "configure:8838: checking for $ac_word" >&5
8838 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8839 echo $ac_n "(cached) $ac_c" 1>&6
8841 if test -n "$ROFF"; then
8842 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
8844 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8846 for ac_dir
in $ac_dummy; do
8847 test -z "$ac_dir" && ac_dir
=.
8848 if test -f $ac_dir/$ac_word; then
8849 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
8856 ROFF
="$ac_cv_prog_ROFF"
8857 if test -n "$ROFF"; then
8858 echo "$ac_t""$ROFF" 1>&6
8860 echo "$ac_t""no" 1>&6
8865 *-univel-*) if test "$GCC" != yes ; then
8866 cat >> confdefs.h
<<\EOF
8867 #define HAVE_MEMSET 1
8874 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
8875 #define RELIANTUNIX 1
8881 if test "$GCC" != yes ; then
8882 cat >> confdefs.h
<<\EOF
8883 #define HAVE_MEMSET 1
8891 echo "$ac_t""$BLDSHARED" 1>&6
8892 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
8893 echo "configure:8894: checking linker flags for shared libraries" >&5
8894 echo "$ac_t""$LDSHFLAGS" 1>&6
8895 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
8896 echo "configure:8897: checking compiler flags for position-independent code" >&5
8897 echo "$ac_t""$PICFLAGS" 1>&6
8899 # try to work out how to produce pic code with this compiler
8900 if test x
$PICFLAG = x
; then
8901 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8902 echo "configure:8903: checking whether ${CC-cc} accepts -fpic" >&5
8903 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8904 echo $ac_n "(cached) $ac_c" 1>&6
8906 echo 'void f(){}' > conftest.c
8907 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8908 ac_cv_prog_cc_fpic
=yes
8910 ac_cv_prog_cc_fpic
=no
8916 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8917 if test $ac_cv_prog_cc_fpic = yes; then
8921 if test x
$PICFLAG = x
; then
8922 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8923 echo "configure:8924: checking whether ${CC-cc} accepts -KPIC" >&5
8924 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8925 echo $ac_n "(cached) $ac_c" 1>&6
8927 echo 'void f(){}' > conftest.c
8928 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8929 ac_cv_prog_cc_KPIC
=yes
8931 ac_cv_prog_cc_KPIC
=no
8937 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8938 if test $ac_cv_prog_cc_KPIC = yes; then
8942 if test x
$PICFLAG = x
; then
8943 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8944 echo "configure:8945: checking whether ${CC-cc} accepts -Kpic" >&5
8945 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8946 echo $ac_n "(cached) $ac_c" 1>&6
8948 echo 'void f(){}' > conftest.c
8949 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8950 ac_cv_prog_cc_Kpic
=yes
8952 ac_cv_prog_cc_Kpic
=no
8958 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8959 if test $ac_cv_prog_cc_Kpic = yes; then
8966 echo $ac_n "checking for long long""... $ac_c" 1>&6
8967 echo "configure:8968: checking for long long" >&5
8968 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8969 echo $ac_n "(cached) $ac_c" 1>&6
8972 if test "$cross_compiling" = yes; then
8973 samba_cv_have_longlong
=cross
8975 cat > conftest.
$ac_ext <<EOF
8976 #line 8977 "configure"
8977 #include "confdefs.h"
8979 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8981 if { (eval echo configure
:8982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8983 samba_cv_have_longlong
=yes
8985 echo "configure: failed program was:" >&5
8986 cat conftest.
$ac_ext >&5
8988 samba_cv_have_longlong
=no
8995 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8996 if test x
"$samba_cv_have_longlong" = x
"yes"; then
8997 cat >> confdefs.h
<<\EOF
8998 #define HAVE_LONGLONG 1
9004 # Check if the compiler supports the LL prefix on long long integers.
9007 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9008 echo "configure:9009: checking for LL suffix on long long integers" >&5
9009 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9010 echo $ac_n "(cached) $ac_c" 1>&6
9013 cat > conftest.
$ac_ext <<EOF
9014 #line 9015 "configure"
9015 #include "confdefs.h"
9018 long long i = 0x8000000000LL
9021 if { (eval echo configure
:9022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9023 samba_cv_compiler_supports_ll
=yes
9025 echo "configure: failed program was:" >&5
9026 cat conftest.
$ac_ext >&5
9028 samba_cv_compiler_supports_ll
=no
9033 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9034 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
9035 cat >> confdefs.h
<<\EOF
9036 #define COMPILER_SUPPORTS_LL 1
9042 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9043 echo "configure:9044: checking for 64 bit off_t" >&5
9044 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9045 echo $ac_n "(cached) $ac_c" 1>&6
9048 if test "$cross_compiling" = yes; then
9049 samba_cv_SIZEOF_OFF_T
=cross
9051 cat > conftest.
$ac_ext <<EOF
9052 #line 9053 "configure"
9053 #include "confdefs.h"
9055 #include <sys/stat.h>
9056 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9058 if { (eval echo configure
:9059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9060 samba_cv_SIZEOF_OFF_T
=yes
9062 echo "configure: failed program was:" >&5
9063 cat conftest.
$ac_ext >&5
9065 samba_cv_SIZEOF_OFF_T
=no
9072 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9073 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
9074 cat >> confdefs.h
<<\EOF
9075 #define SIZEOF_OFF_T 8
9080 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9081 echo "configure:9082: checking for off64_t" >&5
9082 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9083 echo $ac_n "(cached) $ac_c" 1>&6
9086 if test "$cross_compiling" = yes; then
9087 samba_cv_HAVE_OFF64_T
=cross
9089 cat > conftest.
$ac_ext <<EOF
9090 #line 9091 "configure"
9091 #include "confdefs.h"
9093 #if defined(HAVE_UNISTD_H)
9097 #include <sys/stat.h>
9098 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9100 if { (eval echo configure
:9101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9102 samba_cv_HAVE_OFF64_T
=yes
9104 echo "configure: failed program was:" >&5
9105 cat conftest.
$ac_ext >&5
9107 samba_cv_HAVE_OFF64_T
=no
9114 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9115 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
9116 cat >> confdefs.h
<<\EOF
9117 #define HAVE_OFF64_T 1
9122 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9123 echo "configure:9124: checking for 64 bit ino_t" >&5
9124 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9125 echo $ac_n "(cached) $ac_c" 1>&6
9128 if test "$cross_compiling" = yes; then
9129 samba_cv_SIZEOF_INO_T
=cross
9131 cat > conftest.
$ac_ext <<EOF
9132 #line 9133 "configure"
9133 #include "confdefs.h"
9135 #include <sys/stat.h>
9136 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9138 if { (eval echo configure
:9139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9140 samba_cv_SIZEOF_INO_T
=yes
9142 echo "configure: failed program was:" >&5
9143 cat conftest.
$ac_ext >&5
9145 samba_cv_SIZEOF_INO_T
=no
9152 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9153 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
9154 cat >> confdefs.h
<<\EOF
9155 #define SIZEOF_INO_T 8
9160 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9161 echo "configure:9162: checking for ino64_t" >&5
9162 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9163 echo $ac_n "(cached) $ac_c" 1>&6
9166 if test "$cross_compiling" = yes; then
9167 samba_cv_HAVE_INO64_T
=cross
9169 cat > conftest.
$ac_ext <<EOF
9170 #line 9171 "configure"
9171 #include "confdefs.h"
9173 #if defined(HAVE_UNISTD_H)
9177 #include <sys/stat.h>
9178 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9180 if { (eval echo configure
:9181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9182 samba_cv_HAVE_INO64_T
=yes
9184 echo "configure: failed program was:" >&5
9185 cat conftest.
$ac_ext >&5
9187 samba_cv_HAVE_INO64_T
=no
9194 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9195 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
9196 cat >> confdefs.h
<<\EOF
9197 #define HAVE_INO64_T 1
9202 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9203 echo "configure:9204: checking for dev64_t" >&5
9204 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9205 echo $ac_n "(cached) $ac_c" 1>&6
9208 if test "$cross_compiling" = yes; then
9209 samba_cv_HAVE_DEV64_T
=cross
9211 cat > conftest.
$ac_ext <<EOF
9212 #line 9213 "configure"
9213 #include "confdefs.h"
9215 #if defined(HAVE_UNISTD_H)
9219 #include <sys/stat.h>
9220 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9222 if { (eval echo configure
:9223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9224 samba_cv_HAVE_DEV64_T
=yes
9226 echo "configure: failed program was:" >&5
9227 cat conftest.
$ac_ext >&5
9229 samba_cv_HAVE_DEV64_T
=no
9236 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9237 if test x
"$samba_cv_HAVE_DEV64_T" = x
"yes"; then
9238 cat >> confdefs.h
<<\EOF
9239 #define HAVE_DEV64_T 1
9244 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9245 echo "configure:9246: checking for struct dirent64" >&5
9246 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9247 echo $ac_n "(cached) $ac_c" 1>&6
9250 cat > conftest.
$ac_ext <<EOF
9251 #line 9252 "configure"
9252 #include "confdefs.h"
9254 #if defined(HAVE_UNISTD_H)
9257 #include <sys/types.h>
9263 if { (eval echo configure
:9264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9265 samba_cv_HAVE_STRUCT_DIRENT64
=yes
9267 echo "configure: failed program was:" >&5
9268 cat conftest.
$ac_ext >&5
9270 samba_cv_HAVE_STRUCT_DIRENT64
=no
9275 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9276 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes" && test x
"$ac_cv_func_readdir64" = x
"yes"; then
9277 cat >> confdefs.h
<<\EOF
9278 #define HAVE_STRUCT_DIRENT64 1
9283 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9284 echo "configure:9285: checking for major macro" >&5
9285 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9286 echo $ac_n "(cached) $ac_c" 1>&6
9289 if test "$cross_compiling" = yes; then
9290 samba_cv_HAVE_DEVICE_MAJOR_FN
=cross
9292 cat > conftest.
$ac_ext <<EOF
9293 #line 9294 "configure"
9294 #include "confdefs.h"
9296 #if defined(HAVE_UNISTD_H)
9299 #include <sys/types.h>
9300 main() { dev_t dev; int i = major(dev); return 0; }
9302 if { (eval echo configure
:9303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9304 samba_cv_HAVE_DEVICE_MAJOR_FN
=yes
9306 echo "configure: failed program was:" >&5
9307 cat conftest.
$ac_ext >&5
9309 samba_cv_HAVE_DEVICE_MAJOR_FN
=no
9316 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9317 if test x
"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x
"yes"; then
9318 cat >> confdefs.h
<<\EOF
9319 #define HAVE_DEVICE_MAJOR_FN 1
9324 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9325 echo "configure:9326: checking for minor macro" >&5
9326 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9327 echo $ac_n "(cached) $ac_c" 1>&6
9330 if test "$cross_compiling" = yes; then
9331 samba_cv_HAVE_DEVICE_MINOR_FN
=cross
9333 cat > conftest.
$ac_ext <<EOF
9334 #line 9335 "configure"
9335 #include "confdefs.h"
9337 #if defined(HAVE_UNISTD_H)
9340 #include <sys/types.h>
9341 main() { dev_t dev; int i = minor(dev); return 0; }
9343 if { (eval echo configure
:9344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9345 samba_cv_HAVE_DEVICE_MINOR_FN
=yes
9347 echo "configure: failed program was:" >&5
9348 cat conftest.
$ac_ext >&5
9350 samba_cv_HAVE_DEVICE_MINOR_FN
=no
9357 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9358 if test x
"$samba_cv_HAVE_DEVICE_MINOR_FN" = x
"yes"; then
9359 cat >> confdefs.h
<<\EOF
9360 #define HAVE_DEVICE_MINOR_FN 1
9365 echo $ac_n "checking for makedev macro""... $ac_c" 1>&6
9366 echo "configure:9367: checking for makedev macro" >&5
9367 if eval "test \"`echo '$''{'samba_cv_HAVE_MAKEDEV_FN'+set}'`\" = set"; then
9368 echo $ac_n "(cached) $ac_c" 1>&6
9371 if test "$cross_compiling" = yes; then
9372 samba_cv_HAVE_MAKEDEV_FN
=cross
9374 cat > conftest.
$ac_ext <<EOF
9375 #line 9376 "configure"
9376 #include "confdefs.h"
9378 #if defined(HAVE_UNISTD_H)
9381 #include <sys/types.h>
9382 main() { dev_t dev = makedev(1,2); return 0; }
9384 if { (eval echo configure
:9385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9386 samba_cv_HAVE_MAKEDEV_FN
=yes
9388 echo "configure: failed program was:" >&5
9389 cat conftest.
$ac_ext >&5
9391 samba_cv_HAVE_MAKEDEV_FN
=no
9398 echo "$ac_t""$samba_cv_HAVE_MAKEDEV_FN" 1>&6
9399 if test x
"$samba_cv_HAVE_MAKEDEV_FN" = x
"yes"; then
9400 cat >> confdefs.h
<<\EOF
9401 #define MAKEDEV_FN 1
9406 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9407 echo "configure:9408: checking for unsigned char" >&5
9408 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9409 echo $ac_n "(cached) $ac_c" 1>&6
9412 if test "$cross_compiling" = yes; then
9413 samba_cv_HAVE_UNSIGNED_CHAR
=cross
9415 cat > conftest.
$ac_ext <<EOF
9416 #line 9417 "configure"
9417 #include "confdefs.h"
9419 main() { char c; c=250; exit((c > 0)?0:1); }
9421 if { (eval echo configure
:9422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9423 samba_cv_HAVE_UNSIGNED_CHAR
=yes
9425 echo "configure: failed program was:" >&5
9426 cat conftest.
$ac_ext >&5
9428 samba_cv_HAVE_UNSIGNED_CHAR
=no
9435 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9436 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
9437 cat >> confdefs.h
<<\EOF
9438 #define HAVE_UNSIGNED_CHAR 1
9443 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9444 echo "configure:9445: checking for sin_len in sock" >&5
9445 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9446 echo $ac_n "(cached) $ac_c" 1>&6
9449 cat > conftest.
$ac_ext <<EOF
9450 #line 9451 "configure"
9451 #include "confdefs.h"
9452 #include <sys/types.h>
9453 #include <sys/socket.h>
9454 #include <netinet/in.h>
9456 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9459 if { (eval echo configure
:9460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9461 samba_cv_HAVE_SOCK_SIN_LEN
=yes
9463 echo "configure: failed program was:" >&5
9464 cat conftest.
$ac_ext >&5
9466 samba_cv_HAVE_SOCK_SIN_LEN
=no
9471 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9472 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
9473 cat >> confdefs.h
<<\EOF
9474 #define HAVE_SOCK_SIN_LEN 1
9479 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9480 echo "configure:9481: checking whether seekdir returns void" >&5
9481 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9482 echo $ac_n "(cached) $ac_c" 1>&6
9485 cat > conftest.
$ac_ext <<EOF
9486 #line 9487 "configure"
9487 #include "confdefs.h"
9488 #include <sys/types.h>
9490 void seekdir(DIR *d, long loc) { return; }
9495 if { (eval echo configure
:9496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9497 samba_cv_SEEKDIR_RETURNS_VOID
=yes
9499 echo "configure: failed program was:" >&5
9500 cat conftest.
$ac_ext >&5
9502 samba_cv_SEEKDIR_RETURNS_VOID
=no
9507 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9508 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
9509 cat >> confdefs.h
<<\EOF
9510 #define SEEKDIR_RETURNS_VOID 1
9515 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9516 echo "configure:9517: checking for __FILE__ macro" >&5
9517 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9518 echo $ac_n "(cached) $ac_c" 1>&6
9521 cat > conftest.
$ac_ext <<EOF
9522 #line 9523 "configure"
9523 #include "confdefs.h"
9526 printf("%s\n", __FILE__);
9529 if { (eval echo configure
:9530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9531 samba_cv_HAVE_FILE_MACRO
=yes
9533 echo "configure: failed program was:" >&5
9534 cat conftest.
$ac_ext >&5
9536 samba_cv_HAVE_FILE_MACRO
=no
9541 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9542 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
9543 cat >> confdefs.h
<<\EOF
9544 #define HAVE_FILE_MACRO 1
9549 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9550 echo "configure:9551: checking for __FUNCTION__ macro" >&5
9551 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9552 echo $ac_n "(cached) $ac_c" 1>&6
9555 cat > conftest.
$ac_ext <<EOF
9556 #line 9557 "configure"
9557 #include "confdefs.h"
9560 printf("%s\n", __FUNCTION__);
9563 if { (eval echo configure
:9564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9565 samba_cv_HAVE_FUNCTION_MACRO
=yes
9567 echo "configure: failed program was:" >&5
9568 cat conftest.
$ac_ext >&5
9570 samba_cv_HAVE_FUNCTION_MACRO
=no
9575 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9576 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
9577 cat >> confdefs.h
<<\EOF
9578 #define HAVE_FUNCTION_MACRO 1
9583 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9584 echo "configure:9585: checking if gettimeofday takes tz argument" >&5
9585 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9586 echo $ac_n "(cached) $ac_c" 1>&6
9589 if test "$cross_compiling" = yes; then
9590 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
9592 cat > conftest.
$ac_ext <<EOF
9593 #line 9594 "configure"
9594 #include "confdefs.h"
9596 #include <sys/time.h>
9598 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9600 if { (eval echo configure
:9601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9602 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
9604 echo "configure: failed program was:" >&5
9605 cat conftest.
$ac_ext >&5
9607 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
9614 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9615 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
9616 cat >> confdefs.h
<<\EOF
9617 #define HAVE_GETTIMEOFDAY_TZ 1
9622 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9623 echo "configure:9624: checking for __va_copy" >&5
9624 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9625 echo $ac_n "(cached) $ac_c" 1>&6
9628 cat > conftest.
$ac_ext <<EOF
9629 #line 9630 "configure"
9630 #include "confdefs.h"
9637 if { (eval echo configure
:9638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9639 samba_cv_HAVE_VA_COPY
=yes
9641 echo "configure: failed program was:" >&5
9642 cat conftest.
$ac_ext >&5
9644 samba_cv_HAVE_VA_COPY
=no
9649 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9650 if test x
"$samba_cv_HAVE_VA_COPY" = x
"yes"; then
9651 cat >> confdefs.h
<<\EOF
9652 #define HAVE_VA_COPY 1
9657 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9658 echo "configure:9659: checking for C99 vsnprintf" >&5
9659 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9660 echo $ac_n "(cached) $ac_c" 1>&6
9663 if test "$cross_compiling" = yes; then
9664 samba_cv_HAVE_C99_VSNPRINTF
=cross
9666 cat > conftest.
$ac_ext <<EOF
9667 #line 9668 "configure"
9668 #include "confdefs.h"
9670 #include <sys/types.h>
9672 void foo(const char *format, ...) {
9677 va_start(ap, format);
9678 len = vsnprintf(buf, 0, format, ap);
9680 if (len != 5) exit(1);
9682 va_start(ap, format);
9683 len = vsnprintf(0, 0, format, ap);
9685 if (len != 5) exit(1);
9687 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9691 main() { foo("hello"); }
9694 if { (eval echo configure
:9695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9696 samba_cv_HAVE_C99_VSNPRINTF
=yes
9698 echo "configure: failed program was:" >&5
9699 cat conftest.
$ac_ext >&5
9701 samba_cv_HAVE_C99_VSNPRINTF
=no
9708 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9709 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
9710 cat >> confdefs.h
<<\EOF
9711 #define HAVE_C99_VSNPRINTF 1
9716 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9717 echo "configure:9718: checking for broken readdir" >&5
9718 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9719 echo $ac_n "(cached) $ac_c" 1>&6
9722 if test "$cross_compiling" = yes; then
9723 samba_cv_HAVE_BROKEN_READDIR
=cross
9725 cat > conftest.
$ac_ext <<EOF
9726 #line 9727 "configure"
9727 #include "confdefs.h"
9728 #include <sys/types.h>
9730 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9731 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9732 di->d_name[0] == 0) exit(0); exit(1);}
9734 if { (eval echo configure
:9735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9736 samba_cv_HAVE_BROKEN_READDIR
=yes
9738 echo "configure: failed program was:" >&5
9739 cat conftest.
$ac_ext >&5
9741 samba_cv_HAVE_BROKEN_READDIR
=no
9748 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9749 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
9750 cat >> confdefs.h
<<\EOF
9751 #define HAVE_BROKEN_READDIR 1
9756 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9757 echo "configure:9758: checking for utimbuf" >&5
9758 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9759 echo $ac_n "(cached) $ac_c" 1>&6
9762 cat > conftest.
$ac_ext <<EOF
9763 #line 9764 "configure"
9764 #include "confdefs.h"
9765 #include <sys/types.h>
9768 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9771 if { (eval echo configure
:9772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9773 samba_cv_HAVE_UTIMBUF
=yes
9775 echo "configure: failed program was:" >&5
9776 cat conftest.
$ac_ext >&5
9778 samba_cv_HAVE_UTIMBUF
=no
9783 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9784 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
9785 cat >> confdefs.h
<<\EOF
9786 #define HAVE_UTIMBUF 1
9792 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
9794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9795 echo "configure:9796: checking for $ac_func" >&5
9796 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9797 echo $ac_n "(cached) $ac_c" 1>&6
9799 cat > conftest.
$ac_ext <<EOF
9800 #line 9801 "configure"
9801 #include "confdefs.h"
9802 /* System header to define __stub macros and hopefully few prototypes,
9803 which can conflict with char $ac_func(); below. */
9805 /* Override any gcc2 internal prototype to avoid an error. */
9806 /* We use char because int might match the return type of a gcc2
9807 builtin and then its argument prototype would still apply. */
9812 /* The GNU C library defines this for functions which it implements
9813 to always fail with ENOSYS. Some functions are actually named
9814 something starting with __ and the normal name is an alias. */
9815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9823 if { (eval echo configure
:9824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9825 eval "ac_cv_func_$ac_func=yes"
9827 echo "configure: failed program was:" >&5
9828 cat conftest.
$ac_ext >&5
9830 eval "ac_cv_func_$ac_func=no"
9835 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9836 echo "$ac_t""yes" 1>&6
9837 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9838 cat >> confdefs.h
<<EOF
9839 #define $ac_tr_func 1
9843 echo "$ac_t""no" 1>&6
9848 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9849 echo "configure:9850: checking for ut_name in utmp" >&5
9850 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9851 echo $ac_n "(cached) $ac_c" 1>&6
9854 cat > conftest.
$ac_ext <<EOF
9855 #line 9856 "configure"
9856 #include "confdefs.h"
9857 #include <sys/types.h>
9860 struct utmp ut; ut.ut_name[0] = 'a';
9863 if { (eval echo configure
:9864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9865 samba_cv_HAVE_UT_UT_NAME
=yes
9867 echo "configure: failed program was:" >&5
9868 cat conftest.
$ac_ext >&5
9870 samba_cv_HAVE_UT_UT_NAME
=no
9875 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9876 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
9877 cat >> confdefs.h
<<\EOF
9878 #define HAVE_UT_UT_NAME 1
9883 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9884 echo "configure:9885: checking for ut_user in utmp" >&5
9885 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9886 echo $ac_n "(cached) $ac_c" 1>&6
9889 cat > conftest.
$ac_ext <<EOF
9890 #line 9891 "configure"
9891 #include "confdefs.h"
9892 #include <sys/types.h>
9895 struct utmp ut; ut.ut_user[0] = 'a';
9898 if { (eval echo configure
:9899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9900 samba_cv_HAVE_UT_UT_USER
=yes
9902 echo "configure: failed program was:" >&5
9903 cat conftest.
$ac_ext >&5
9905 samba_cv_HAVE_UT_UT_USER
=no
9910 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9911 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
9912 cat >> confdefs.h
<<\EOF
9913 #define HAVE_UT_UT_USER 1
9918 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9919 echo "configure:9920: checking for ut_id in utmp" >&5
9920 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9921 echo $ac_n "(cached) $ac_c" 1>&6
9924 cat > conftest.
$ac_ext <<EOF
9925 #line 9926 "configure"
9926 #include "confdefs.h"
9927 #include <sys/types.h>
9930 struct utmp ut; ut.ut_id[0] = 'a';
9933 if { (eval echo configure
:9934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9935 samba_cv_HAVE_UT_UT_ID
=yes
9937 echo "configure: failed program was:" >&5
9938 cat conftest.
$ac_ext >&5
9940 samba_cv_HAVE_UT_UT_ID
=no
9945 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9946 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
9947 cat >> confdefs.h
<<\EOF
9948 #define HAVE_UT_UT_ID 1
9953 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9954 echo "configure:9955: checking for ut_host in utmp" >&5
9955 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9956 echo $ac_n "(cached) $ac_c" 1>&6
9959 cat > conftest.
$ac_ext <<EOF
9960 #line 9961 "configure"
9961 #include "confdefs.h"
9962 #include <sys/types.h>
9965 struct utmp ut; ut.ut_host[0] = 'a';
9968 if { (eval echo configure
:9969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9970 samba_cv_HAVE_UT_UT_HOST
=yes
9972 echo "configure: failed program was:" >&5
9973 cat conftest.
$ac_ext >&5
9975 samba_cv_HAVE_UT_UT_HOST
=no
9980 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9981 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
9982 cat >> confdefs.h
<<\EOF
9983 #define HAVE_UT_UT_HOST 1
9988 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9989 echo "configure:9990: checking for ut_time in utmp" >&5
9990 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9991 echo $ac_n "(cached) $ac_c" 1>&6
9994 cat > conftest.
$ac_ext <<EOF
9995 #line 9996 "configure"
9996 #include "confdefs.h"
9997 #include <sys/types.h>
10000 struct utmp ut; time_t t; ut.ut_time = t;
10003 if { (eval echo configure
:10004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10005 samba_cv_HAVE_UT_UT_TIME
=yes
10007 echo "configure: failed program was:" >&5
10008 cat conftest.
$ac_ext >&5
10010 samba_cv_HAVE_UT_UT_TIME
=no
10015 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10016 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
10017 cat >> confdefs.h
<<\EOF
10018 #define HAVE_UT_UT_TIME 1
10023 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10024 echo "configure:10025: checking for ut_tv in utmp" >&5
10025 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10026 echo $ac_n "(cached) $ac_c" 1>&6
10029 cat > conftest.
$ac_ext <<EOF
10030 #line 10031 "configure"
10031 #include "confdefs.h"
10032 #include <sys/types.h>
10035 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10038 if { (eval echo configure
:10039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10040 samba_cv_HAVE_UT_UT_TV
=yes
10042 echo "configure: failed program was:" >&5
10043 cat conftest.
$ac_ext >&5
10045 samba_cv_HAVE_UT_UT_TV
=no
10050 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10051 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
10052 cat >> confdefs.h
<<\EOF
10053 #define HAVE_UT_UT_TV 1
10058 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10059 echo "configure:10060: checking for ut_type in utmp" >&5
10060 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10061 echo $ac_n "(cached) $ac_c" 1>&6
10064 cat > conftest.
$ac_ext <<EOF
10065 #line 10066 "configure"
10066 #include "confdefs.h"
10067 #include <sys/types.h>
10070 struct utmp ut; ut.ut_type = 0;
10073 if { (eval echo configure
:10074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10075 samba_cv_HAVE_UT_UT_TYPE
=yes
10077 echo "configure: failed program was:" >&5
10078 cat conftest.
$ac_ext >&5
10080 samba_cv_HAVE_UT_UT_TYPE
=no
10085 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10086 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
10087 cat >> confdefs.h
<<\EOF
10088 #define HAVE_UT_UT_TYPE 1
10093 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10094 echo "configure:10095: checking for ut_pid in utmp" >&5
10095 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10096 echo $ac_n "(cached) $ac_c" 1>&6
10099 cat > conftest.
$ac_ext <<EOF
10100 #line 10101 "configure"
10101 #include "confdefs.h"
10102 #include <sys/types.h>
10105 struct utmp ut; ut.ut_pid = 0;
10108 if { (eval echo configure
:10109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10110 samba_cv_HAVE_UT_UT_PID
=yes
10112 echo "configure: failed program was:" >&5
10113 cat conftest.
$ac_ext >&5
10115 samba_cv_HAVE_UT_UT_PID
=no
10120 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10121 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
10122 cat >> confdefs.h
<<\EOF
10123 #define HAVE_UT_UT_PID 1
10128 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10129 echo "configure:10130: checking for ut_exit in utmp" >&5
10130 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10131 echo $ac_n "(cached) $ac_c" 1>&6
10134 cat > conftest.
$ac_ext <<EOF
10135 #line 10136 "configure"
10136 #include "confdefs.h"
10137 #include <sys/types.h>
10140 struct utmp ut; ut.ut_exit.e_exit = 0;
10143 if { (eval echo configure
:10144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10145 samba_cv_HAVE_UT_UT_EXIT
=yes
10147 echo "configure: failed program was:" >&5
10148 cat conftest.
$ac_ext >&5
10150 samba_cv_HAVE_UT_UT_EXIT
=no
10155 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10156 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
10157 cat >> confdefs.h
<<\EOF
10158 #define HAVE_UT_UT_EXIT 1
10163 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10164 echo "configure:10165: checking for ut_addr in utmp" >&5
10165 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10166 echo $ac_n "(cached) $ac_c" 1>&6
10169 cat > conftest.
$ac_ext <<EOF
10170 #line 10171 "configure"
10171 #include "confdefs.h"
10172 #include <sys/types.h>
10175 struct utmp ut; ut.ut_addr = 0;
10178 if { (eval echo configure
:10179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10180 samba_cv_HAVE_UT_UT_ADDR
=yes
10182 echo "configure: failed program was:" >&5
10183 cat conftest.
$ac_ext >&5
10185 samba_cv_HAVE_UT_UT_ADDR
=no
10190 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10191 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
10192 cat >> confdefs.h
<<\EOF
10193 #define HAVE_UT_UT_ADDR 1
10198 if test x
$ac_cv_func_pututline = xyes
; then
10199 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10200 echo "configure:10201: checking whether pututline returns pointer" >&5
10201 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10202 echo $ac_n "(cached) $ac_c" 1>&6
10205 cat > conftest.
$ac_ext <<EOF
10206 #line 10207 "configure"
10207 #include "confdefs.h"
10208 #include <sys/types.h>
10211 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10214 if { (eval echo configure
:10215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10216 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
10218 echo "configure: failed program was:" >&5
10219 cat conftest.
$ac_ext >&5
10221 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
10226 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10227 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
10228 cat >> confdefs.h
<<\EOF
10229 #define PUTUTLINE_RETURNS_UTMP 1
10235 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10236 echo "configure:10237: checking for ut_syslen in utmpx" >&5
10237 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10238 echo $ac_n "(cached) $ac_c" 1>&6
10241 cat > conftest.
$ac_ext <<EOF
10242 #line 10243 "configure"
10243 #include "confdefs.h"
10244 #include <sys/types.h>
10247 struct utmpx ux; ux.ut_syslen = 0;
10250 if { (eval echo configure
:10251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10252 samba_cv_HAVE_UX_UT_SYSLEN
=yes
10254 echo "configure: failed program was:" >&5
10255 cat conftest.
$ac_ext >&5
10257 samba_cv_HAVE_UX_UT_SYSLEN
=no
10262 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10263 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
10264 cat >> confdefs.h
<<\EOF
10265 #define HAVE_UX_UT_SYSLEN 1
10270 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10271 echo "configure:10272: checking for Linux kernel oplocks" >&5
10272 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10273 echo $ac_n "(cached) $ac_c" 1>&6
10276 if test "$cross_compiling" = yes; then
10277 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
10279 cat > conftest.
$ac_ext <<EOF
10280 #line 10281 "configure"
10281 #include "confdefs.h"
10283 #include <sys/types.h>
10286 #define F_GETLEASE 1025
10289 int fd = open("/dev/null", O_RDONLY);
10290 return fcntl(fd, F_GETLEASE, 0) == -1;
10294 if { (eval echo configure
:10295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10296 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
10298 echo "configure: failed program was:" >&5
10299 cat conftest.
$ac_ext >&5
10301 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
10308 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10309 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
10310 cat >> confdefs.h
<<\EOF
10311 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10316 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10317 echo "configure:10318: checking for kernel change notify support" >&5
10318 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10319 echo $ac_n "(cached) $ac_c" 1>&6
10322 if test "$cross_compiling" = yes; then
10323 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
10325 cat > conftest.
$ac_ext <<EOF
10326 #line 10327 "configure"
10327 #include "confdefs.h"
10329 #include <sys/types.h>
10331 #include <signal.h>
10333 #define F_NOTIFY 1026
10336 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10340 if { (eval echo configure
:10341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10342 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
10344 echo "configure: failed program was:" >&5
10345 cat conftest.
$ac_ext >&5
10347 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
10354 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10355 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes" && test x
"$target_cpu" != x
"s390"; then
10356 cat >> confdefs.h
<<\EOF
10357 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10362 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10363 echo "configure:10364: checking for kernel share modes" >&5
10364 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10365 echo $ac_n "(cached) $ac_c" 1>&6
10368 if test "$cross_compiling" = yes; then
10369 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
10371 cat > conftest.
$ac_ext <<EOF
10372 #line 10373 "configure"
10373 #include "confdefs.h"
10375 #include <sys/types.h>
10377 #include <signal.h>
10378 #include <sys/file.h>
10380 #define LOCK_MAND 32
10381 #define LOCK_READ 64
10384 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10388 if { (eval echo configure
:10389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10390 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
10392 echo "configure: failed program was:" >&5
10393 cat conftest.
$ac_ext >&5
10395 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
10402 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10403 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
10404 cat >> confdefs.h
<<\EOF
10405 #define HAVE_KERNEL_SHARE_MODES 1
10413 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10414 echo "configure:10415: checking for IRIX kernel oplock type definitions" >&5
10415 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10416 echo $ac_n "(cached) $ac_c" 1>&6
10419 cat > conftest.
$ac_ext <<EOF
10420 #line 10421 "configure"
10421 #include "confdefs.h"
10422 #include <sys/types.h>
10425 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10428 if { (eval echo configure
:10429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10430 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
10432 echo "configure: failed program was:" >&5
10433 cat conftest.
$ac_ext >&5
10435 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
10440 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10441 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
10442 cat >> confdefs.h
<<\EOF
10443 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10448 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10449 echo "configure:10450: checking for irix specific capabilities" >&5
10450 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10451 echo $ac_n "(cached) $ac_c" 1>&6
10454 if test "$cross_compiling" = yes; then
10455 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
10457 cat > conftest.
$ac_ext <<EOF
10458 #line 10459 "configure"
10459 #include "confdefs.h"
10460 #include <sys/types.h>
10461 #include <sys/capability.h>
10464 if ((cap = cap_get_proc()) == NULL)
10466 cap->cap_effective |= CAP_NETWORK_MGT;
10467 cap->cap_inheritable |= CAP_NETWORK_MGT;
10473 if { (eval echo configure
:10474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10475 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
10477 echo "configure: failed program was:" >&5
10478 cat conftest.
$ac_ext >&5
10480 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
10487 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10488 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
10489 cat >> confdefs.h
<<\EOF
10490 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10496 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10497 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10500 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10501 echo "configure:10502: checking for int16 typedef included by rpc/rpc.h" >&5
10502 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10503 echo $ac_n "(cached) $ac_c" 1>&6
10506 cat > conftest.
$ac_ext <<EOF
10507 #line 10508 "configure"
10508 #include "confdefs.h"
10509 #include <sys/types.h>
10510 #if defined(HAVE_RPC_RPC_H)
10511 #include <rpc/rpc.h>
10517 if { (eval echo configure
:10518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10519 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
10521 echo "configure: failed program was:" >&5
10522 cat conftest.
$ac_ext >&5
10524 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
10529 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10530 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
10531 cat >> confdefs.h
<<\EOF
10532 #define HAVE_INT16_FROM_RPC_RPC_H 1
10537 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10538 echo "configure:10539: checking for uint16 typedef included by rpc/rpc.h" >&5
10539 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10540 echo $ac_n "(cached) $ac_c" 1>&6
10543 cat > conftest.
$ac_ext <<EOF
10544 #line 10545 "configure"
10545 #include "confdefs.h"
10546 #include <sys/types.h>
10547 #if defined(HAVE_RPC_RPC_H)
10548 #include <rpc/rpc.h>
10554 if { (eval echo configure
:10555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10556 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
10558 echo "configure: failed program was:" >&5
10559 cat conftest.
$ac_ext >&5
10561 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
10566 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10567 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
10568 cat >> confdefs.h
<<\EOF
10569 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10574 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10575 echo "configure:10576: checking for int32 typedef included by rpc/rpc.h" >&5
10576 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10577 echo $ac_n "(cached) $ac_c" 1>&6
10580 cat > conftest.
$ac_ext <<EOF
10581 #line 10582 "configure"
10582 #include "confdefs.h"
10583 #include <sys/types.h>
10584 #if defined(HAVE_RPC_RPC_H)
10585 #include <rpc/rpc.h>
10591 if { (eval echo configure
:10592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10593 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
10595 echo "configure: failed program was:" >&5
10596 cat conftest.
$ac_ext >&5
10598 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
10603 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10604 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
10605 cat >> confdefs.h
<<\EOF
10606 #define HAVE_INT32_FROM_RPC_RPC_H 1
10611 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10612 echo "configure:10613: checking for uint32 typedef included by rpc/rpc.h" >&5
10613 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10614 echo $ac_n "(cached) $ac_c" 1>&6
10617 cat > conftest.
$ac_ext <<EOF
10618 #line 10619 "configure"
10619 #include "confdefs.h"
10620 #include <sys/types.h>
10621 #if defined(HAVE_RPC_RPC_H)
10622 #include <rpc/rpc.h>
10628 if { (eval echo configure
:10629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10630 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
10632 echo "configure: failed program was:" >&5
10633 cat conftest.
$ac_ext >&5
10635 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
10640 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10641 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
10642 cat >> confdefs.h
<<\EOF
10643 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10649 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10650 echo "configure:10651: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10651 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10652 echo $ac_n "(cached) $ac_c" 1>&6
10655 cat > conftest.
$ac_ext <<EOF
10656 #line 10657 "configure"
10657 #include "confdefs.h"
10658 #include <sys/types.h>
10659 #ifdef HAVE_SYS_SECURITY_H
10660 #include <sys/security.h>
10662 #endif /* HAVE_SYS_SECURITY_H */
10663 #if defined(HAVE_RPC_RPC_H)
10664 #include <rpc/rpc.h>
10670 if { (eval echo configure
:10671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10672 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
10674 echo "configure: failed program was:" >&5
10675 cat conftest.
$ac_ext >&5
10677 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
10682 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10683 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
10684 cat >> confdefs.h
<<\EOF
10685 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10690 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10691 echo "configure:10692: checking for test routines" >&5
10692 if test "$cross_compiling" = yes; then
10693 echo "configure: warning: cannot run when cross-compiling" 1>&2
10695 cat > conftest.
$ac_ext <<EOF
10696 #line 10697 "configure"
10697 #include "confdefs.h"
10698 #include "${srcdir-.}/tests/trivial.c"
10700 if { (eval echo configure
:10701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10702 echo "$ac_t""yes" 1>&6
10704 echo "configure: failed program was:" >&5
10705 cat conftest.
$ac_ext >&5
10707 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10713 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10714 echo "configure:10715: checking for ftruncate extend" >&5
10715 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10716 echo $ac_n "(cached) $ac_c" 1>&6
10719 if test "$cross_compiling" = yes; then
10720 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
10722 cat > conftest.
$ac_ext <<EOF
10723 #line 10724 "configure"
10724 #include "confdefs.h"
10725 #include "${srcdir-.}/tests/ftruncate.c"
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_FTRUNCATE_EXTEND
=yes
10731 echo "configure: failed program was:" >&5
10732 cat conftest.
$ac_ext >&5
10734 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
10741 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10742 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
10743 cat >> confdefs.h
<<\EOF
10744 #define HAVE_FTRUNCATE_EXTEND 1
10749 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10750 echo "configure:10751: checking for broken getgroups" >&5
10751 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10752 echo $ac_n "(cached) $ac_c" 1>&6
10755 if test "$cross_compiling" = yes; then
10756 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
10758 cat > conftest.
$ac_ext <<EOF
10759 #line 10760 "configure"
10760 #include "confdefs.h"
10761 #include "${srcdir-.}/tests/getgroups.c"
10763 if { (eval echo configure
:10764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10765 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
10767 echo "configure: failed program was:" >&5
10768 cat conftest.
$ac_ext >&5
10770 samba_cv_HAVE_BROKEN_GETGROUPS
=no
10777 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10778 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
10779 cat >> confdefs.h
<<\EOF
10780 #define HAVE_BROKEN_GETGROUPS 1
10785 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10786 echo "configure:10787: checking whether getpass should be replaced" >&5
10787 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10788 echo $ac_n "(cached) $ac_c" 1>&6
10791 SAVE_CPPFLAGS
="$CPPFLAGS"
10792 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
10793 cat > conftest.
$ac_ext <<EOF
10794 #line 10795 "configure"
10795 #include "confdefs.h"
10797 #define REPLACE_GETPASS 1
10798 #define NO_CONFIG_H 1
10799 #define main dont_declare_main
10800 #include "${srcdir-.}/lib/getsmbpass.c"
10807 if { (eval echo configure
:10808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10809 samba_cv_REPLACE_GETPASS
=yes
10811 echo "configure: failed program was:" >&5
10812 cat conftest.
$ac_ext >&5
10814 samba_cv_REPLACE_GETPASS
=no
10817 CPPFLAGS
="$SAVE_CPPFLAGS"
10821 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10822 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
10823 cat >> confdefs.h
<<\EOF
10824 #define REPLACE_GETPASS 1
10829 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10830 echo "configure:10831: checking for broken inet_ntoa" >&5
10831 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10832 echo $ac_n "(cached) $ac_c" 1>&6
10835 if test "$cross_compiling" = yes; then
10836 samba_cv_REPLACE_INET_NTOA
=cross
10838 cat > conftest.
$ac_ext <<EOF
10839 #line 10840 "configure"
10840 #include "confdefs.h"
10843 #include <sys/types.h>
10844 #include <netinet/in.h>
10845 #ifdef HAVE_ARPA_INET_H
10846 #include <arpa/inet.h>
10848 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10849 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10850 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10853 if { (eval echo configure
:10854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10855 samba_cv_REPLACE_INET_NTOA
=yes
10857 echo "configure: failed program was:" >&5
10858 cat conftest.
$ac_ext >&5
10860 samba_cv_REPLACE_INET_NTOA
=no
10867 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10868 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
10869 cat >> confdefs.h
<<\EOF
10870 #define REPLACE_INET_NTOA 1
10875 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10876 echo "configure:10877: checking for secure mkstemp" >&5
10877 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10878 echo $ac_n "(cached) $ac_c" 1>&6
10881 if test "$cross_compiling" = yes; then
10882 samba_cv_HAVE_SECURE_MKSTEMP
=cross
10884 cat > conftest.
$ac_ext <<EOF
10885 #line 10886 "configure"
10886 #include "confdefs.h"
10887 #include <stdlib.h>
10888 #include <sys/types.h>
10889 #include <sys/stat.h>
10890 #include <unistd.h>
10893 char tpl[20]="/tmp/test.XXXXXX";
10894 int fd = mkstemp(tpl);
10895 if (fd == -1) exit(1);
10897 if (fstat(fd, &st) != 0) exit(1);
10898 if ((st.st_mode & 0777) != 0600) exit(1);
10902 if { (eval echo configure
:10903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10904 samba_cv_HAVE_SECURE_MKSTEMP
=yes
10906 echo "configure: failed program was:" >&5
10907 cat conftest.
$ac_ext >&5
10909 samba_cv_HAVE_SECURE_MKSTEMP
=no
10916 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10917 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
10918 cat >> confdefs.h
<<\EOF
10919 #define HAVE_SECURE_MKSTEMP 1
10924 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10925 echo "configure:10926: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10926 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10927 echo $ac_n "(cached) $ac_c" 1>&6
10930 if test "$cross_compiling" = yes; then
10931 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
10933 cat > conftest.
$ac_ext <<EOF
10934 #line 10935 "configure"
10935 #include "confdefs.h"
10936 #include <unistd.h>
10937 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10939 if { (eval echo configure
:10940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10941 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
10943 echo "configure: failed program was:" >&5
10944 cat conftest.
$ac_ext >&5
10946 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
10953 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10954 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
10955 cat >> confdefs.h
<<\EOF
10956 #define SYSCONF_SC_NGROUPS_MAX 1
10961 echo $ac_n "checking for root""... $ac_c" 1>&6
10962 echo "configure:10963: checking for root" >&5
10963 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10964 echo $ac_n "(cached) $ac_c" 1>&6
10967 if test "$cross_compiling" = yes; then
10968 samba_cv_HAVE_ROOT
=cross
10970 cat > conftest.
$ac_ext <<EOF
10971 #line 10972 "configure"
10972 #include "confdefs.h"
10973 main() { exit(getuid() != 0); }
10975 if { (eval echo configure
:10976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10977 samba_cv_HAVE_ROOT
=yes
10979 echo "configure: failed program was:" >&5
10980 cat conftest.
$ac_ext >&5
10982 samba_cv_HAVE_ROOT
=no
10989 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10990 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
10991 cat >> confdefs.h
<<\EOF
10992 #define HAVE_ROOT 1
10996 echo "configure: warning: running as non-root will disable some tests" 1>&2
11000 # look for a method of finding the list of network interfaces
11002 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11003 echo "configure:11004: checking for iface AIX" >&5
11004 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11005 echo $ac_n "(cached) $ac_c" 1>&6
11008 if test "$cross_compiling" = yes; then
11009 samba_cv_HAVE_IFACE_AIX
=cross
11011 cat > conftest.
$ac_ext <<EOF
11012 #line 11013 "configure"
11013 #include "confdefs.h"
11015 #define HAVE_IFACE_AIX 1
11016 #define AUTOCONF_TEST 1
11017 #include "confdefs.h"
11018 #include "${srcdir-.}/lib/interfaces.c"
11020 if { (eval echo configure
:11021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11022 samba_cv_HAVE_IFACE_AIX
=yes
11024 echo "configure: failed program was:" >&5
11025 cat conftest.
$ac_ext >&5
11027 samba_cv_HAVE_IFACE_AIX
=no
11034 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11035 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
11036 iface
=yes;cat >> confdefs.h
<<\EOF
11037 #define HAVE_IFACE_AIX 1
11042 if test $iface = no
; then
11043 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11044 echo "configure:11045: checking for iface ifconf" >&5
11045 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11046 echo $ac_n "(cached) $ac_c" 1>&6
11049 if test "$cross_compiling" = yes; then
11050 samba_cv_HAVE_IFACE_IFCONF
=cross
11052 cat > conftest.
$ac_ext <<EOF
11053 #line 11054 "configure"
11054 #include "confdefs.h"
11056 #define HAVE_IFACE_IFCONF 1
11057 #define AUTOCONF_TEST 1
11058 #include "confdefs.h"
11059 #include "${srcdir-.}/lib/interfaces.c"
11061 if { (eval echo configure
:11062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11063 samba_cv_HAVE_IFACE_IFCONF
=yes
11065 echo "configure: failed program was:" >&5
11066 cat conftest.
$ac_ext >&5
11068 samba_cv_HAVE_IFACE_IFCONF
=no
11075 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11076 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
11077 iface
=yes;cat >> confdefs.h
<<\EOF
11078 #define HAVE_IFACE_IFCONF 1
11084 if test $iface = no
; then
11085 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11086 echo "configure:11087: checking for iface ifreq" >&5
11087 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11088 echo $ac_n "(cached) $ac_c" 1>&6
11091 if test "$cross_compiling" = yes; then
11092 samba_cv_HAVE_IFACE_IFREQ
=cross
11094 cat > conftest.
$ac_ext <<EOF
11095 #line 11096 "configure"
11096 #include "confdefs.h"
11098 #define HAVE_IFACE_IFREQ 1
11099 #define AUTOCONF_TEST 1
11100 #include "confdefs.h"
11101 #include "${srcdir-.}/lib/interfaces.c"
11103 if { (eval echo configure
:11104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11105 samba_cv_HAVE_IFACE_IFREQ
=yes
11107 echo "configure: failed program was:" >&5
11108 cat conftest.
$ac_ext >&5
11110 samba_cv_HAVE_IFACE_IFREQ
=no
11117 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11118 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
11119 iface
=yes;cat >> confdefs.h
<<\EOF
11120 #define HAVE_IFACE_IFREQ 1
11127 ################################################
11128 # look for a method of setting the effective uid
11130 if test $seteuid = no
; then
11131 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11132 echo "configure:11133: checking for setresuid" >&5
11133 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11134 echo $ac_n "(cached) $ac_c" 1>&6
11137 if test "$cross_compiling" = yes; then
11138 samba_cv_USE_SETRESUID
=cross
11140 cat > conftest.
$ac_ext <<EOF
11141 #line 11142 "configure"
11142 #include "confdefs.h"
11144 #define AUTOCONF_TEST 1
11145 #define USE_SETRESUID 1
11146 #include "confdefs.h"
11147 #include "${srcdir-.}/lib/util_sec.c"
11149 if { (eval echo configure
:11150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11151 samba_cv_USE_SETRESUID
=yes
11153 echo "configure: failed program was:" >&5
11154 cat conftest.
$ac_ext >&5
11156 samba_cv_USE_SETRESUID
=no
11163 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11164 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
11165 seteuid
=yes;cat >> confdefs.h
<<\EOF
11166 #define USE_SETRESUID 1
11173 if test $seteuid = no
; then
11174 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11175 echo "configure:11176: checking for setreuid" >&5
11176 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11177 echo $ac_n "(cached) $ac_c" 1>&6
11180 if test "$cross_compiling" = yes; then
11181 samba_cv_USE_SETREUID
=cross
11183 cat > conftest.
$ac_ext <<EOF
11184 #line 11185 "configure"
11185 #include "confdefs.h"
11187 #define AUTOCONF_TEST 1
11188 #define USE_SETREUID 1
11189 #include "confdefs.h"
11190 #include "${srcdir-.}/lib/util_sec.c"
11192 if { (eval echo configure
:11193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11194 samba_cv_USE_SETREUID
=yes
11196 echo "configure: failed program was:" >&5
11197 cat conftest.
$ac_ext >&5
11199 samba_cv_USE_SETREUID
=no
11206 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11207 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
11208 seteuid
=yes;cat >> confdefs.h
<<\EOF
11209 #define USE_SETREUID 1
11215 if test $seteuid = no
; then
11216 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11217 echo "configure:11218: checking for seteuid" >&5
11218 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11219 echo $ac_n "(cached) $ac_c" 1>&6
11222 if test "$cross_compiling" = yes; then
11223 samba_cv_USE_SETEUID
=cross
11225 cat > conftest.
$ac_ext <<EOF
11226 #line 11227 "configure"
11227 #include "confdefs.h"
11229 #define AUTOCONF_TEST 1
11230 #define USE_SETEUID 1
11231 #include "confdefs.h"
11232 #include "${srcdir-.}/lib/util_sec.c"
11234 if { (eval echo configure
:11235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11236 samba_cv_USE_SETEUID
=yes
11238 echo "configure: failed program was:" >&5
11239 cat conftest.
$ac_ext >&5
11241 samba_cv_USE_SETEUID
=no
11248 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11249 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
11250 seteuid
=yes;cat >> confdefs.h
<<\EOF
11251 #define USE_SETEUID 1
11257 if test $seteuid = no
; then
11258 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11259 echo "configure:11260: checking for setuidx" >&5
11260 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11261 echo $ac_n "(cached) $ac_c" 1>&6
11264 if test "$cross_compiling" = yes; then
11265 samba_cv_USE_SETUIDX
=cross
11267 cat > conftest.
$ac_ext <<EOF
11268 #line 11269 "configure"
11269 #include "confdefs.h"
11271 #define AUTOCONF_TEST 1
11272 #define USE_SETUIDX 1
11273 #include "confdefs.h"
11274 #include "${srcdir-.}/lib/util_sec.c"
11276 if { (eval echo configure
:11277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11278 samba_cv_USE_SETUIDX
=yes
11280 echo "configure: failed program was:" >&5
11281 cat conftest.
$ac_ext >&5
11283 samba_cv_USE_SETUIDX
=no
11290 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11291 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
11292 seteuid
=yes;cat >> confdefs.h
<<\EOF
11293 #define USE_SETUIDX 1
11300 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11301 echo "configure:11302: checking for working mmap" >&5
11302 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11303 echo $ac_n "(cached) $ac_c" 1>&6
11306 if test "$cross_compiling" = yes; then
11307 samba_cv_HAVE_MMAP
=cross
11309 cat > conftest.
$ac_ext <<EOF
11310 #line 11311 "configure"
11311 #include "confdefs.h"
11312 #include "${srcdir-.}/tests/shared_mmap.c"
11314 if { (eval echo configure
:11315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11316 samba_cv_HAVE_MMAP
=yes
11318 echo "configure: failed program was:" >&5
11319 cat conftest.
$ac_ext >&5
11321 samba_cv_HAVE_MMAP
=no
11328 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11329 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
11330 cat >> confdefs.h
<<\EOF
11331 #define HAVE_MMAP 1
11336 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11337 echo "configure:11338: checking for ftruncate needs root" >&5
11338 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11339 echo $ac_n "(cached) $ac_c" 1>&6
11342 if test "$cross_compiling" = yes; then
11343 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
11345 cat > conftest.
$ac_ext <<EOF
11346 #line 11347 "configure"
11347 #include "confdefs.h"
11348 #include "${srcdir-.}/tests/ftruncroot.c"
11350 if { (eval echo configure
:11351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11352 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
11354 echo "configure: failed program was:" >&5
11355 cat conftest.
$ac_ext >&5
11357 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
11364 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11365 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
11366 cat >> confdefs.h
<<\EOF
11367 #define FTRUNCATE_NEEDS_ROOT 1
11372 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11373 echo "configure:11374: checking for fcntl locking" >&5
11374 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11375 echo $ac_n "(cached) $ac_c" 1>&6
11378 if test "$cross_compiling" = yes; then
11379 samba_cv_HAVE_FCNTL_LOCK
=cross
11381 cat > conftest.
$ac_ext <<EOF
11382 #line 11383 "configure"
11383 #include "confdefs.h"
11384 #include "${srcdir-.}/tests/fcntl_lock.c"
11386 if { (eval echo configure
:11387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11388 samba_cv_HAVE_FCNTL_LOCK
=yes
11390 echo "configure: failed program was:" >&5
11391 cat conftest.
$ac_ext >&5
11393 samba_cv_HAVE_FCNTL_LOCK
=no
11400 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11401 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
11402 cat >> confdefs.h
<<\EOF
11403 #define HAVE_FCNTL_LOCK 1
11408 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11409 echo "configure:11410: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11410 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11411 echo $ac_n "(cached) $ac_c" 1>&6
11414 if test "$cross_compiling" = yes; then
11415 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
11417 cat > conftest.
$ac_ext <<EOF
11418 #line 11419 "configure"
11419 #include "confdefs.h"
11420 #include "${srcdir-.}/tests/fcntl_lock64.c"
11422 if { (eval echo configure
:11423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11424 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
11426 echo "configure: failed program was:" >&5
11427 cat conftest.
$ac_ext >&5
11429 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
11436 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11437 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
11438 cat >> confdefs.h
<<\EOF
11439 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11446 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11447 echo "configure:11448: checking for 64 bit fcntl locking" >&5
11448 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11449 echo $ac_n "(cached) $ac_c" 1>&6
11452 if test "$cross_compiling" = yes; then
11453 samba_cv_HAVE_STRUCT_FLOCK64
=cross
11455 cat > conftest.
$ac_ext <<EOF
11456 #line 11457 "configure"
11457 #include "confdefs.h"
11459 #if defined(HAVE_UNISTD_H)
11460 #include <unistd.h>
11463 #include <stdlib.h>
11465 #ifdef HAVE_FCNTL_H
11469 #ifdef HAVE_SYS_FCNTL_H
11470 #include <sys/fcntl.h>
11472 main() { struct flock64 fl64;
11473 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11480 if { (eval echo configure
:11481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11482 samba_cv_HAVE_STRUCT_FLOCK64
=yes
11484 echo "configure: failed program was:" >&5
11485 cat conftest.
$ac_ext >&5
11487 samba_cv_HAVE_STRUCT_FLOCK64
=no
11494 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11496 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
11497 cat >> confdefs.h
<<\EOF
11498 #define HAVE_STRUCT_FLOCK64 1
11504 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11505 echo "configure:11506: checking for st_blocks in struct stat" >&5
11506 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11507 echo $ac_n "(cached) $ac_c" 1>&6
11510 cat > conftest.
$ac_ext <<EOF
11511 #line 11512 "configure"
11512 #include "confdefs.h"
11513 #include <sys/types.h>
11514 #include <sys/stat.h>
11515 #include <unistd.h>
11517 struct stat st; st.st_blocks = 0;
11520 if { (eval echo configure
:11521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11522 samba_cv_HAVE_STAT_ST_BLOCKS
=yes
11524 echo "configure: failed program was:" >&5
11525 cat conftest.
$ac_ext >&5
11527 samba_cv_HAVE_STAT_ST_BLOCKS
=no
11532 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11533 if test x
"$samba_cv_HAVE_STAT_ST_BLOCKS" = x
"yes"; then
11534 cat >> confdefs.h
<<\EOF
11535 #define HAVE_STAT_ST_BLOCKS 1
11540 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
11541 echo "configure:11542: checking for st_blksize in struct stat" >&5
11542 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLKSIZE'+set}'`\" = set"; then
11543 echo $ac_n "(cached) $ac_c" 1>&6
11546 cat > conftest.
$ac_ext <<EOF
11547 #line 11548 "configure"
11548 #include "confdefs.h"
11549 #include <sys/types.h>
11550 #include <sys/stat.h>
11551 #include <unistd.h>
11553 struct stat st; st.st_blksize = 0;
11556 if { (eval echo configure
:11557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11558 samba_cv_HAVE_STAT_ST_BLKSIZE
=yes
11560 echo "configure: failed program was:" >&5
11561 cat conftest.
$ac_ext >&5
11563 samba_cv_HAVE_STAT_ST_BLKSIZE
=no
11568 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLKSIZE" 1>&6
11569 if test x
"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x
"yes"; then
11570 cat >> confdefs.h
<<\EOF
11571 #define HAVE_STAT_ST_BLKSIZE 1
11578 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11579 echo "configure:11580: checking for broken RedHat 7.2 system header files" >&5
11580 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11581 echo $ac_n "(cached) $ac_c" 1>&6
11584 cat > conftest.
$ac_ext <<EOF
11585 #line 11586 "configure"
11586 #include "confdefs.h"
11588 #ifdef HAVE_SYS_VFS_H
11589 #include <sys/vfs.h>
11591 #ifdef HAVE_SYS_CAPABILITY_H
11592 #include <sys/capability.h>
11599 if { (eval echo configure
:11600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11601 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=no
11603 echo "configure: failed program was:" >&5
11604 cat conftest.
$ac_ext >&5
11606 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS
=yes
11611 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11612 if test x
"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x
"yes"; then
11613 cat >> confdefs.h
<<\EOF
11614 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11621 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11622 echo "configure:11623: checking for broken nisplus include files" >&5
11623 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11624 echo $ac_n "(cached) $ac_c" 1>&6
11627 cat > conftest.
$ac_ext <<EOF
11628 #line 11629 "configure"
11629 #include "confdefs.h"
11630 #include <sys/acl.h>
11631 #if defined(HAVE_RPCSVC_NIS_H)
11632 #include <rpcsvc/nis.h>
11638 if { (eval echo configure
:11639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11640 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
11642 echo "configure: failed program was:" >&5
11643 cat conftest.
$ac_ext >&5
11645 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
11650 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11651 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
11652 cat >> confdefs.h
<<\EOF
11653 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11659 #################################################
11660 # check for smbwrapper support
11661 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11662 echo "configure:11663: checking whether to use smbwrapper" >&5
11663 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11664 if test "${with_smbwrapper+set}" = set; then
11665 withval
="$with_smbwrapper"
11668 echo "$ac_t""yes" 1>&6
11669 cat >> confdefs.h
<<\EOF
11670 #define WITH_SMBWRAPPER 1
11673 WRAPPROG
="bin/smbsh"
11674 WRAP
="bin/smbwrapper.$SHLIBEXT"
11676 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
11679 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
11682 # Conditions under which smbwrapper should not be built.
11684 if test x
$PICFLAG = x
; then
11685 echo No support
for PIC code
- disabling smbwrapper and smbsh
11689 elif test x
$ac_cv_func_syscall = xno
; then
11690 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11697 echo "$ac_t""no" 1>&6
11701 echo "$ac_t""no" 1>&6
11706 #################################################
11707 # check for the AFS filesystem
11708 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11709 echo "configure:11710: checking whether to use AFS" >&5
11710 # Check whether --with-afs or --without-afs was given.
11711 if test "${with_afs+set}" = set; then
11712 withval
="$with_afs"
11715 echo "$ac_t""yes" 1>&6
11716 cat >> confdefs.h
<<\EOF
11722 echo "$ac_t""no" 1>&6
11726 echo "$ac_t""no" 1>&6
11732 #################################################
11733 # check for the DFS auth system
11734 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
11735 echo "configure:11736: checking whether to use DCE/DFS auth" >&5
11736 # Check whether --with-dfs or --without-dfs was given.
11737 if test "${with_dfs+set}" = set; then
11738 withval
="$with_dfs"
11741 echo "$ac_t""yes" 1>&6
11742 cat >> confdefs.h
<<\EOF
11748 echo "$ac_t""no" 1>&6
11752 echo "$ac_t""no" 1>&6
11757 #################################################
11758 # check for Kerberos IV auth system
11759 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11760 echo "configure:11761: checking whether to use Kerberos IV" >&5
11761 # Check whether --with-krb4 or --without-krb4 was given.
11762 if test "${with_krb4+set}" = set; then
11763 withval
="$with_krb4"
11766 echo "$ac_t""yes" 1>&6
11767 cat >> confdefs.h
<<\EOF
11768 #define KRB4_AUTH 1
11771 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11772 echo "configure:11773: checking for dn_expand in -lresolv" >&5
11773 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11775 echo $ac_n "(cached) $ac_c" 1>&6
11777 ac_save_LIBS
="$LIBS"
11778 LIBS
="-lresolv $LIBS"
11779 cat > conftest.
$ac_ext <<EOF
11780 #line 11781 "configure"
11781 #include "confdefs.h"
11782 /* Override any gcc2 internal prototype to avoid an error. */
11783 /* We use char because int might match the return type of a gcc2
11784 builtin and then its argument prototype would still apply. */
11791 if { (eval echo configure
:11792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11793 eval "ac_cv_lib_$ac_lib_var=yes"
11795 echo "configure: failed program was:" >&5
11796 cat conftest.
$ac_ext >&5
11798 eval "ac_cv_lib_$ac_lib_var=no"
11801 LIBS
="$ac_save_LIBS"
11804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11805 echo "$ac_t""yes" 1>&6
11806 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11807 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11808 cat >> confdefs.h
<<EOF
11809 #define $ac_tr_lib 1
11812 LIBS
="-lresolv $LIBS"
11815 echo "$ac_t""no" 1>&6
11818 LIBS
="$LIBS -lkrb -ldes"
11819 CFLAGS
="$CFLAGS -I$withval/include"
11820 LDFLAGS
="$LDFLAGS -L$withval/lib"
11823 echo "$ac_t""no" 1>&6
11827 echo "$ac_t""no" 1>&6
11832 #################################################
11833 # check for Kerberos 5 auth system
11834 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11835 echo "configure:11836: checking whether to use Kerberos 5" >&5
11836 # Check whether --with-krb5 or --without-krb5 was given.
11837 if test "${with_krb5+set}" = set; then
11838 withval
="$with_krb5"
11841 echo "$ac_t""yes" 1>&6
11842 cat >> confdefs.h
<<\EOF
11843 #define KRB5_AUTH 1
11846 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11847 CFLAGS
="$CFLAGS -I$withval/include"
11848 LDFLAGS
="$LDFLAGS -L$withval/lib"
11851 echo "$ac_t""no" 1>&6
11855 echo "$ac_t""no" 1>&6
11860 #################################################
11861 # check for automount support
11862 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11863 echo "configure:11864: checking whether to use AUTOMOUNT" >&5
11864 # Check whether --with-automount or --without-automount was given.
11865 if test "${with_automount+set}" = set; then
11866 withval
="$with_automount"
11869 echo "$ac_t""yes" 1>&6
11870 cat >> confdefs.h
<<\EOF
11871 #define WITH_AUTOMOUNT 1
11876 echo "$ac_t""no" 1>&6
11880 echo "$ac_t""no" 1>&6
11885 #################################################
11886 # check for smbmount support
11887 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11888 echo "configure:11889: checking whether to use SMBMOUNT" >&5
11889 # Check whether --with-smbmount or --without-smbmount was given.
11890 if test "${with_smbmount+set}" = set; then
11891 withval
="$with_smbmount"
11896 echo "$ac_t""yes" 1>&6
11897 cat >> confdefs.h
<<\EOF
11898 #define WITH_SMBMOUNT 1
11901 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
11904 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11909 echo "$ac_t""no" 1>&6
11914 echo "$ac_t""no" 1>&6
11921 #################################################
11922 # check for a PAM password database
11923 with_pam_for_crypt
=no
11924 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11925 echo "configure:11926: checking whether to use PAM password database" >&5
11926 # Check whether --with-pam or --without-pam was given.
11927 if test "${with_pam+set}" = set; then
11928 withval
="$with_pam"
11931 echo "$ac_t""yes" 1>&6
11932 cat >> confdefs.h
<<\EOF
11937 with_pam_for_crypt
=yes
11940 echo "$ac_t""no" 1>&6
11944 echo "$ac_t""no" 1>&6
11949 # we can't build a pam module if we don't have pam.
11950 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11951 echo "configure:11952: checking for pam_get_data in -lpam" >&5
11952 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11953 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11954 echo $ac_n "(cached) $ac_c" 1>&6
11956 ac_save_LIBS
="$LIBS"
11958 cat > conftest.
$ac_ext <<EOF
11959 #line 11960 "configure"
11960 #include "confdefs.h"
11961 /* Override any gcc2 internal prototype to avoid an error. */
11962 /* We use char because int might match the return type of a gcc2
11963 builtin and then its argument prototype would still apply. */
11964 char pam_get_data();
11970 if { (eval echo configure
:11971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11972 eval "ac_cv_lib_$ac_lib_var=yes"
11974 echo "configure: failed program was:" >&5
11975 cat conftest.
$ac_ext >&5
11977 eval "ac_cv_lib_$ac_lib_var=no"
11980 LIBS
="$ac_save_LIBS"
11983 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11984 echo "$ac_t""yes" 1>&6
11985 cat >> confdefs.h
<<\EOF
11986 #define HAVE_LIBPAM 1
11990 echo "$ac_t""no" 1>&6
11994 #################################################
11995 # check for pam_smbpass support
11996 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11997 echo "configure:11998: checking whether to use pam_smbpass" >&5
11998 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11999 if test "${with_pam_smbpass+set}" = set; then
12000 withval
="$with_pam_smbpass"
12003 echo "$ac_t""yes" 1>&6
12005 # Conditions under which pam_smbpass should not be built.
12007 if test x
$PICFLAG = x
; then
12008 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
12010 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
12011 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
12014 cat >> confdefs.h
<<\EOF
12015 #define WITH_PAM_SMBPASS 1
12018 PAM_MOD
="bin/pam_smbpass.so"
12022 echo "$ac_t""no" 1>&6
12026 echo "$ac_t""no" 1>&6
12032 ###############################################
12033 # test for where we get crypt() from, but only
12035 if test $with_pam_for_crypt = no
; then
12036 for ac_func
in crypt
12038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12039 echo "configure:12040: checking for $ac_func" >&5
12040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12041 echo $ac_n "(cached) $ac_c" 1>&6
12043 cat > conftest.
$ac_ext <<EOF
12044 #line 12045 "configure"
12045 #include "confdefs.h"
12046 /* System header to define __stub macros and hopefully few prototypes,
12047 which can conflict with char $ac_func(); below. */
12048 #include <assert.h>
12049 /* Override any gcc2 internal prototype to avoid an error. */
12050 /* We use char because int might match the return type of a gcc2
12051 builtin and then its argument prototype would still apply. */
12056 /* The GNU C library defines this for functions which it implements
12057 to always fail with ENOSYS. Some functions are actually named
12058 something starting with __ and the normal name is an alias. */
12059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12067 if { (eval echo configure
:12068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12069 eval "ac_cv_func_$ac_func=yes"
12071 echo "configure: failed program was:" >&5
12072 cat conftest.
$ac_ext >&5
12074 eval "ac_cv_func_$ac_func=no"
12079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12080 echo "$ac_t""yes" 1>&6
12081 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12082 cat >> confdefs.h
<<EOF
12083 #define $ac_tr_func 1
12087 echo "$ac_t""no" 1>&6
12091 if test x
"$ac_cv_func_crypt" = x
"no"; then
12092 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12093 echo "configure:12094: checking for crypt in -lcrypt" >&5
12094 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12095 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12096 echo $ac_n "(cached) $ac_c" 1>&6
12098 ac_save_LIBS
="$LIBS"
12099 LIBS
="-lcrypt $LIBS"
12100 cat > conftest.
$ac_ext <<EOF
12101 #line 12102 "configure"
12102 #include "confdefs.h"
12103 /* Override any gcc2 internal prototype to avoid an error. */
12104 /* We use char because int might match the return type of a gcc2
12105 builtin and then its argument prototype would still apply. */
12112 if { (eval echo configure
:12113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12114 eval "ac_cv_lib_$ac_lib_var=yes"
12116 echo "configure: failed program was:" >&5
12117 cat conftest.
$ac_ext >&5
12119 eval "ac_cv_lib_$ac_lib_var=no"
12122 LIBS
="$ac_save_LIBS"
12125 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12126 echo "$ac_t""yes" 1>&6
12127 LIBS
="$LIBS -lcrypt";
12128 cat >> confdefs.h
<<\EOF
12129 #define HAVE_CRYPT 1
12133 echo "$ac_t""no" 1>&6
12140 ## moved after the check for -lcrypt in order to
12141 ## ensure that the necessary libraries are included
12142 ## check checking for truncated salt. Wrapped by the
12143 ## $with_pam_for_crypt variable as above --jerry
12145 if test $with_pam_for_crypt = no
; then
12146 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12147 echo "configure:12148: checking for a crypt that needs truncated salt" >&5
12148 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12149 echo $ac_n "(cached) $ac_c" 1>&6
12152 if test "$cross_compiling" = yes; then
12153 samba_cv_HAVE_TRUNCATED_SALT
=cross
12155 cat > conftest.
$ac_ext <<EOF
12156 #line 12157 "configure"
12157 #include "confdefs.h"
12158 #include "${srcdir-.}/tests/crypttest.c"
12160 if { (eval echo configure
:12161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12162 samba_cv_HAVE_TRUNCATED_SALT
=no
12164 echo "configure: failed program was:" >&5
12165 cat conftest.
$ac_ext >&5
12167 samba_cv_HAVE_TRUNCATED_SALT
=yes
12174 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12175 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
12176 cat >> confdefs.h
<<\EOF
12177 #define HAVE_TRUNCATED_SALT 1
12184 ########################################################################################
12186 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12188 ########################################################################################
12190 ## set the with_smbpasswd_sam as the default
12191 with_smbpasswd_sam
=yes
12195 #################################################
12196 # check for a TDB password database
12197 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12198 echo "configure:12199: checking whether to use TDB SAM database" >&5
12199 # Check whether --with-tdbsam or --without-tdbsam was given.
12200 if test "${with_tdbsam+set}" = set; then
12201 withval
="$with_tdbsam"
12204 echo "$ac_t""yes" 1>&6
12205 cat >> confdefs.h
<<\EOF
12206 #define WITH_TDB_SAM 1
12209 with_smbpasswd_sam
=no
12212 echo "$ac_t""no" 1>&6
12216 echo "$ac_t""no" 1>&6
12221 #################################################
12222 # check for a LDAP password database
12223 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12224 echo "configure:12225: checking whether to use LDAP SAM database" >&5
12225 # Check whether --with-ldapsam or --without-ldapsam was given.
12226 if test "${with_ldapsam+set}" = set; then
12227 withval
="$with_ldapsam"
12230 echo "$ac_t""yes" 1>&6
12231 cat >> confdefs.h
<<\EOF
12232 #define WITH_LDAP_SAM 1
12236 echo $ac_n "checking for ber_bvfree in -llber""... $ac_c" 1>&6
12237 echo "configure:12238: checking for ber_bvfree in -llber" >&5
12238 ac_lib_var
=`echo lber'_'ber_bvfree | sed 'y%./+-%__p_%'`
12239 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12240 echo $ac_n "(cached) $ac_c" 1>&6
12242 ac_save_LIBS
="$LIBS"
12243 LIBS
="-llber $LIBS"
12244 cat > conftest.
$ac_ext <<EOF
12245 #line 12246 "configure"
12246 #include "confdefs.h"
12247 /* Override any gcc2 internal prototype to avoid an error. */
12248 /* We use char because int might match the return type of a gcc2
12249 builtin and then its argument prototype would still apply. */
12256 if { (eval echo configure
:12257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12258 eval "ac_cv_lib_$ac_lib_var=yes"
12260 echo "configure: failed program was:" >&5
12261 cat conftest.
$ac_ext >&5
12263 eval "ac_cv_lib_$ac_lib_var=no"
12266 LIBS
="$ac_save_LIBS"
12269 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12270 echo "$ac_t""yes" 1>&6
12271 LDAPLIBS
="$LDAPLIBS -llber"
12273 echo "$ac_t""no" 1>&6
12276 ## remove -lresolv as this should be included by the -lsasl dependency
12277 ## in the OpenLDAP clients. By not requiring it specifically, we avoid
12278 ## issues on platforms that don't have it
12279 LDAPLIBS
="$LDAPLIBS"
12280 old_LDFLAGS
="$LDFLAGS"
12281 LDFLAGS
="$LDFLAGS $LDAPLIBS"
12282 for ac_func
in ldap_start_tls_s
12284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12285 echo "configure:12286: checking for $ac_func" >&5
12286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12287 echo $ac_n "(cached) $ac_c" 1>&6
12289 cat > conftest.
$ac_ext <<EOF
12290 #line 12291 "configure"
12291 #include "confdefs.h"
12292 /* System header to define __stub macros and hopefully few prototypes,
12293 which can conflict with char $ac_func(); below. */
12294 #include <assert.h>
12295 /* Override any gcc2 internal prototype to avoid an error. */
12296 /* We use char because int might match the return type of a gcc2
12297 builtin and then its argument prototype would still apply. */
12302 /* The GNU C library defines this for functions which it implements
12303 to always fail with ENOSYS. Some functions are actually named
12304 something starting with __ and the normal name is an alias. */
12305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12313 if { (eval echo configure
:12314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12315 eval "ac_cv_func_$ac_func=yes"
12317 echo "configure: failed program was:" >&5
12318 cat conftest.
$ac_ext >&5
12320 eval "ac_cv_func_$ac_func=no"
12325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12326 echo "$ac_t""yes" 1>&6
12327 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12328 cat >> confdefs.h
<<EOF
12329 #define $ac_tr_func 1
12333 echo "$ac_t""no" 1>&6
12337 LDFLAGS
="$old_LDFLAGS"
12338 with_smbpasswd_sam
=no
12342 echo "$ac_t""no" 1>&6
12346 echo "$ac_t""no" 1>&6
12351 #################################################
12352 # check for a NISPLUS password database
12353 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12354 echo "configure:12355: checking whether to use NISPLUS SAM database" >&5
12355 # Check whether --with-nisplussam or --without-nisplussam was given.
12356 if test "${with_nisplussam+set}" = set; then
12357 withval
="$with_nisplussam"
12360 echo "$ac_t""yes" 1>&6
12361 cat >> confdefs.h
<<\EOF
12362 #define WITH_NISPLUS_SAM 1
12365 with_smbpasswd_sam
=no
12368 echo "$ac_t""no" 1>&6
12372 echo "$ac_t""no" 1>&6
12377 ################################################
12378 # This test should come last because the
12379 # smbpasswd SAM is only used if another format
12380 # has not been defined
12381 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
12382 echo "configure:12383: checking whether to use traditional smbpasswd file" >&5
12383 if test $with_smbpasswd_sam = yes; then
12384 echo "$ac_t""yes" 1>&6
12385 cat >> confdefs.h
<<\EOF
12386 #define WITH_SMBPASSWD_SAM 1
12391 echo "$ac_t""no" 1>&6
12392 PDBEDIT
=bin
/pdbedit
12395 ########################################################################################
12397 ## END OF TESTS FOR SAM BACKENDS.
12399 ########################################################################################
12401 #################################################
12402 # check for a NISPLUS_HOME support
12403 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12404 echo "configure:12405: checking whether to use NISPLUS_HOME" >&5
12405 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12406 if test "${with_nisplus_home+set}" = set; then
12407 withval
="$with_nisplus_home"
12410 echo "$ac_t""yes" 1>&6
12411 cat >> confdefs.h
<<\EOF
12412 #define WITH_NISPLUS_HOME 1
12417 echo "$ac_t""no" 1>&6
12421 echo "$ac_t""no" 1>&6
12426 #################################################
12427 # check for the secure socket layer
12428 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12429 echo "configure:12430: checking whether to use SSL" >&5
12430 # Check whether --with-ssl or --without-ssl was given.
12431 if test "${with_ssl+set}" = set; then
12432 withval
="$with_ssl"
12435 echo "$ac_t""yes" 1>&6
12436 cat >> confdefs.h
<<\EOF
12440 withval
="/usr/local/ssl" # default
12442 if test "${with_sslinc+set}" = set; then
12444 withval
="$with_sslinc"
12447 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12448 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
12451 CFLAGS
="-I${withval} $CFLAGS"
12457 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
12461 if test "${with_ssllib+set}" = set; then
12463 withval
="$with_ssllib"
12466 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12467 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
12470 LDFLAGS
="-L${withval}/lib $LDFLAGS"
12476 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
12480 LIBS
="-lssl -lcrypto $LIBS"
12482 # if test ! -d ${withval}; then
12483 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12487 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12491 echo "$ac_t""no" 1>&6
12495 echo "$ac_t""no" 1>&6
12500 #################################################
12501 # check for syslog logging
12502 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12503 echo "configure:12504: checking whether to use syslog logging" >&5
12504 # Check whether --with-syslog or --without-syslog was given.
12505 if test "${with_syslog+set}" = set; then
12506 withval
="$with_syslog"
12509 echo "$ac_t""yes" 1>&6
12510 cat >> confdefs.h
<<\EOF
12511 #define WITH_SYSLOG 1
12516 echo "$ac_t""no" 1>&6
12520 echo "$ac_t""no" 1>&6
12525 #################################################
12526 # check for a shared memory profiling support
12527 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12528 echo "configure:12529: checking whether to use profiling" >&5
12529 # Check whether --with-profiling-data or --without-profiling-data was given.
12530 if test "${with_profiling_data+set}" = set; then
12531 withval
="$with_profiling_data"
12534 echo "$ac_t""yes" 1>&6
12535 cat >> confdefs.h
<<\EOF
12536 #define WITH_PROFILE 1
12541 echo "$ac_t""no" 1>&6
12545 echo "$ac_t""no" 1>&6
12551 #################################################
12552 # check for experimental disk-quotas support
12553 QUOTAOBJS
=smbd
/noquotas.o
12555 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12556 echo "configure:12557: checking whether to support disk-quotas" >&5
12557 # Check whether --with-quotas or --without-quotas was given.
12558 if test "${with_quotas+set}" = set; then
12559 withval
="$with_quotas"
12562 echo "$ac_t""yes" 1>&6
12563 QUOTAOBJS
=smbd
/quotas.o
12566 echo "$ac_t""no" 1>&6
12570 echo "$ac_t""no" 1>&6
12576 #################################################
12577 # check for experimental utmp accounting
12579 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12580 echo "configure:12581: checking whether to support utmp accounting" >&5
12581 # Check whether --with-utmp or --without-utmp was given.
12582 if test "${with_utmp+set}" = set; then
12583 withval
="$with_utmp"
12586 echo "$ac_t""yes" 1>&6
12587 cat >> confdefs.h
<<\EOF
12588 #define WITH_UTMP 1
12593 echo "$ac_t""no" 1>&6
12597 echo "$ac_t""no" 1>&6
12602 #################################################
12603 # check for MS Dfs support
12605 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
12606 echo "configure:12607: checking whether to support Microsoft Dfs" >&5
12607 # Check whether --with-msdfs or --without-msdfs was given.
12608 if test "${with_msdfs+set}" = set; then
12609 withval
="$with_msdfs"
12612 echo "$ac_t""yes" 1>&6
12613 cat >> confdefs.h
<<\EOF
12614 #define WITH_MSDFS 1
12619 echo "$ac_t""no" 1>&6
12623 echo "$ac_t""no" 1>&6
12628 #################################################
12629 # should we build libsmbclient?
12631 LIBSMBCLIENT_SHARED
=
12633 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
12634 echo "configure:12635: checking whether to build the libsmbclient shared library" >&5
12635 # Check whether --with-libsmbclient or --without-libsmbclient was given.
12636 if test "${with_libsmbclient+set}" = set; then
12637 withval
="$with_libsmbclient"
12640 if test $BLDSHARED = true
; then
12641 LIBSMBCLIENT_SHARED
=bin
/libsmbclient.
$SHLIBEXT
12642 LIBSMBCLIENT
=libsmbclient
12643 echo "$ac_t""yes" 1>&6
12645 echo "$ac_t""no shared library support" 1>&6
12649 echo "$ac_t""no" 1>&6
12653 echo "$ac_t""no" 1>&6
12658 #################################################
12659 # these tests are taken from the GNU fileutils package
12660 echo "checking how to get filesystem space usage" 1>&6
12661 echo "configure:12662: checking how to get filesystem space usage" >&5
12664 # Test for statvfs64.
12665 if test $space = no
; then
12667 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12668 echo "configure:12669: checking statvfs64 function (SVR4)" >&5
12669 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12670 echo $ac_n "(cached) $ac_c" 1>&6
12672 if test "$cross_compiling" = yes; then
12673 fu_cv_sys_stat_statvfs64
=cross
12675 cat > conftest.
$ac_ext <<EOF
12676 #line 12677 "configure"
12677 #include "confdefs.h"
12679 #if defined(HAVE_UNISTD_H)
12680 #include <unistd.h>
12682 #include <sys/types.h>
12683 #include <sys/statvfs.h>
12686 struct statvfs64 fsd;
12687 exit (statvfs64 (".", &fsd));
12690 if { (eval echo configure
:12691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12692 fu_cv_sys_stat_statvfs64
=yes
12694 echo "configure: failed program was:" >&5
12695 cat conftest.
$ac_ext >&5
12697 fu_cv_sys_stat_statvfs64
=no
12704 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12705 if test $fu_cv_sys_stat_statvfs64 = yes; then
12707 cat >> confdefs.h
<<\EOF
12708 #define STAT_STATVFS64 1
12714 # Perform only the link test since it seems there are no variants of the
12715 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12716 # because that got a false positive on SCO OSR5. Adding the declaration
12717 # of a `struct statvfs' causes this test to fail (as it should) on such
12718 # systems. That system is reported to work fine with STAT_STATFS4 which
12719 # is what it gets when this test fails.
12720 if test $space = no
; then
12722 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12723 echo "configure:12724: checking statvfs function (SVR4)" >&5
12724 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12725 echo $ac_n "(cached) $ac_c" 1>&6
12727 cat > conftest.
$ac_ext <<EOF
12728 #line 12729 "configure"
12729 #include "confdefs.h"
12730 #include <sys/types.h>
12731 #include <sys/statvfs.h>
12733 struct statvfs fsd; statvfs (0, &fsd);
12736 if { (eval echo configure
:12737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12738 fu_cv_sys_stat_statvfs
=yes
12740 echo "configure: failed program was:" >&5
12741 cat conftest.
$ac_ext >&5
12743 fu_cv_sys_stat_statvfs
=no
12748 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12749 if test $fu_cv_sys_stat_statvfs = yes; then
12751 cat >> confdefs.h
<<\EOF
12752 #define STAT_STATVFS 1
12758 if test $space = no
; then
12759 # DEC Alpha running OSF/1
12760 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12761 echo "configure:12762: checking for 3-argument statfs function (DEC OSF/1)" >&5
12762 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12763 echo $ac_n "(cached) $ac_c" 1>&6
12765 if test "$cross_compiling" = yes; then
12766 fu_cv_sys_stat_statfs3_osf1
=no
12768 cat > conftest.
$ac_ext <<EOF
12769 #line 12770 "configure"
12770 #include "confdefs.h"
12772 #include <sys/param.h>
12773 #include <sys/types.h>
12774 #include <sys/mount.h>
12779 exit (statfs (".", &fsd, sizeof (struct statfs)));
12782 if { (eval echo configure
:12783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12784 fu_cv_sys_stat_statfs3_osf1
=yes
12786 echo "configure: failed program was:" >&5
12787 cat conftest.
$ac_ext >&5
12789 fu_cv_sys_stat_statfs3_osf1
=no
12796 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12797 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12799 cat >> confdefs.h
<<\EOF
12800 #define STAT_STATFS3_OSF1 1
12806 if test $space = no
; then
12808 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12809 echo "configure:12810: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12810 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12811 echo $ac_n "(cached) $ac_c" 1>&6
12813 if test "$cross_compiling" = yes; then
12814 fu_cv_sys_stat_statfs2_bsize
=no
12816 cat > conftest.
$ac_ext <<EOF
12817 #line 12818 "configure"
12818 #include "confdefs.h"
12820 #ifdef HAVE_SYS_PARAM_H
12821 #include <sys/param.h>
12823 #ifdef HAVE_SYS_MOUNT_H
12824 #include <sys/mount.h>
12826 #ifdef HAVE_SYS_VFS_H
12827 #include <sys/vfs.h>
12833 exit (statfs (".", &fsd));
12836 if { (eval echo configure
:12837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12838 fu_cv_sys_stat_statfs2_bsize
=yes
12840 echo "configure: failed program was:" >&5
12841 cat conftest.
$ac_ext >&5
12843 fu_cv_sys_stat_statfs2_bsize
=no
12850 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12851 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12853 cat >> confdefs.h
<<\EOF
12854 #define STAT_STATFS2_BSIZE 1
12860 if test $space = no
; then
12862 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12863 echo "configure:12864: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12864 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12865 echo $ac_n "(cached) $ac_c" 1>&6
12867 if test "$cross_compiling" = yes; then
12868 fu_cv_sys_stat_statfs4
=no
12870 cat > conftest.
$ac_ext <<EOF
12871 #line 12872 "configure"
12872 #include "confdefs.h"
12873 #include <sys/types.h>
12874 #include <sys/statfs.h>
12878 exit (statfs (".", &fsd, sizeof fsd, 0));
12881 if { (eval echo configure
:12882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12883 fu_cv_sys_stat_statfs4
=yes
12885 echo "configure: failed program was:" >&5
12886 cat conftest.
$ac_ext >&5
12888 fu_cv_sys_stat_statfs4
=no
12895 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12896 if test $fu_cv_sys_stat_statfs4 = yes; then
12898 cat >> confdefs.h
<<\EOF
12899 #define STAT_STATFS4 1
12905 if test $space = no
; then
12906 # 4.4BSD and NetBSD
12907 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12908 echo "configure:12909: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12909 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12910 echo $ac_n "(cached) $ac_c" 1>&6
12912 if test "$cross_compiling" = yes; then
12913 fu_cv_sys_stat_statfs2_fsize
=no
12915 cat > conftest.
$ac_ext <<EOF
12916 #line 12917 "configure"
12917 #include "confdefs.h"
12918 #include <sys/types.h>
12919 #ifdef HAVE_SYS_PARAM_H
12920 #include <sys/param.h>
12922 #ifdef HAVE_SYS_MOUNT_H
12923 #include <sys/mount.h>
12929 exit (statfs (".", &fsd));
12932 if { (eval echo configure
:12933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12934 fu_cv_sys_stat_statfs2_fsize
=yes
12936 echo "configure: failed program was:" >&5
12937 cat conftest.
$ac_ext >&5
12939 fu_cv_sys_stat_statfs2_fsize
=no
12946 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12947 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12949 cat >> confdefs.h
<<\EOF
12950 #define STAT_STATFS2_FSIZE 1
12956 if test $space = no
; then
12958 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12959 echo "configure:12960: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12960 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12961 echo $ac_n "(cached) $ac_c" 1>&6
12963 if test "$cross_compiling" = yes; then
12964 fu_cv_sys_stat_fs_data
=no
12966 cat > conftest.
$ac_ext <<EOF
12967 #line 12968 "configure"
12968 #include "confdefs.h"
12969 #include <sys/types.h>
12970 #ifdef HAVE_SYS_PARAM_H
12971 #include <sys/param.h>
12973 #ifdef HAVE_SYS_MOUNT_H
12974 #include <sys/mount.h>
12976 #ifdef HAVE_SYS_FS_TYPES_H
12977 #include <sys/fs_types.h>
12981 struct fs_data fsd;
12982 /* Ultrix's statfs returns 1 for success,
12983 0 for not mounted, -1 for failure. */
12984 exit (statfs (".", &fsd) != 1);
12987 if { (eval echo configure
:12988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12989 fu_cv_sys_stat_fs_data
=yes
12991 echo "configure: failed program was:" >&5
12992 cat conftest.
$ac_ext >&5
12994 fu_cv_sys_stat_fs_data
=no
13001 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
13002 if test $fu_cv_sys_stat_fs_data = yes; then
13004 cat >> confdefs.h
<<\EOF
13005 #define STAT_STATFS2_FS_DATA 1
13012 # As a gating factor for large file support, in order to
13013 # use <4GB files we must have the following minimal support
13015 # long long, and a 64 bit off_t or off64_t.
13016 # If we don't have all of these then disable large
13019 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
13020 echo "configure:13021: checking if large file support can be enabled" >&5
13021 cat > conftest.
$ac_ext <<EOF
13022 #line 13023 "configure"
13023 #include "confdefs.h"
13025 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13026 #include <sys/types.h>
13035 if { (eval echo configure
:13036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13037 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
13039 echo "configure: failed program was:" >&5
13040 cat conftest.
$ac_ext >&5
13042 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
13045 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
13046 echo "$ac_t""yes" 1>&6
13047 cat >> confdefs.h
<<\EOF
13048 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13052 echo "$ac_t""no" 1>&6
13055 # Check whether --with-spinlocks or --without-spinlocks was given.
13056 if test "${with_spinlocks+set}" = set; then
13057 withval
="$with_spinlocks"
13061 if test "x$with_spinlocks" = "xyes"; then
13062 cat >> confdefs.h
<<\EOF
13063 #define USE_SPINLOCKS 1
13067 case "$host_cpu" in
13069 cat >> confdefs.h
<<\EOF
13070 #define SPARC_SPINLOCKS 1
13075 i386|i486|i586|i686
)
13076 cat >> confdefs.h
<<\EOF
13077 #define INTEL_SPINLOCKS 1
13083 cat >> confdefs.h
<<\EOF
13084 #define MIPS_SPINLOCKS 1
13090 cat >> confdefs.h
<<\EOF
13091 #define POWERPC_SPINLOCKS 1
13098 #################################################
13099 # check for ACL support
13101 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13102 echo "configure:13103: checking whether to support ACLs" >&5
13103 # Check whether --with-acl-support or --without-acl-support was given.
13104 if test "${with_acl_support+set}" = set; then
13105 withval
="$with_acl_support"
13111 echo "$ac_t""Using UnixWare ACLs" 1>&6
13112 cat >> confdefs.h
<<\EOF
13113 #define HAVE_UNIXWARE_ACLS 1
13118 echo "$ac_t""Using solaris ACLs" 1>&6
13119 cat >> confdefs.h
<<\EOF
13120 #define HAVE_SOLARIS_ACLS 1
13125 echo "$ac_t""Using HPUX ACLs" 1>&6
13126 cat >> confdefs.h
<<\EOF
13127 #define HAVE_HPUX_ACLS 1
13132 echo "$ac_t""Using IRIX ACLs" 1>&6
13133 cat >> confdefs.h
<<\EOF
13134 #define HAVE_IRIX_ACLS 1
13139 echo "$ac_t""Using AIX ACLs" 1>&6
13140 cat >> confdefs.h
<<\EOF
13141 #define HAVE_AIX_ACLS 1
13146 echo "$ac_t""Using Tru64 ACLs" 1>&6
13147 cat >> confdefs.h
<<\EOF
13148 #define HAVE_TRU64_ACLS 1
13151 LIBS
="$LIBS -lpacl"
13154 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13155 echo "configure:13156: checking for acl_get_file in -lacl" >&5
13156 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13157 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13158 echo $ac_n "(cached) $ac_c" 1>&6
13160 ac_save_LIBS
="$LIBS"
13162 cat > conftest.
$ac_ext <<EOF
13163 #line 13164 "configure"
13164 #include "confdefs.h"
13165 /* Override any gcc2 internal prototype to avoid an error. */
13166 /* We use char because int might match the return type of a gcc2
13167 builtin and then its argument prototype would still apply. */
13168 char acl_get_file();
13174 if { (eval echo configure
:13175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13176 eval "ac_cv_lib_$ac_lib_var=yes"
13178 echo "configure: failed program was:" >&5
13179 cat conftest.
$ac_ext >&5
13181 eval "ac_cv_lib_$ac_lib_var=no"
13184 LIBS
="$ac_save_LIBS"
13187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13188 echo "$ac_t""yes" 1>&6
13189 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13190 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13191 cat >> confdefs.h
<<EOF
13192 #define $ac_tr_lib 1
13198 echo "$ac_t""no" 1>&6
13201 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13202 echo "configure:13203: checking for ACL support" >&5
13203 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13204 echo $ac_n "(cached) $ac_c" 1>&6
13207 cat > conftest.
$ac_ext <<EOF
13208 #line 13209 "configure"
13209 #include "confdefs.h"
13210 #include <sys/types.h>
13211 #include <sys/acl.h>
13213 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13216 if { (eval echo configure
:13217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13218 samba_cv_HAVE_POSIX_ACLS
=yes
13220 echo "configure: failed program was:" >&5
13221 cat conftest.
$ac_ext >&5
13223 samba_cv_HAVE_POSIX_ACLS
=no
13228 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13229 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
13230 echo "$ac_t""Using posix ACLs" 1>&6
13231 cat >> confdefs.h
<<\EOF
13232 #define HAVE_POSIX_ACLS 1
13235 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13236 echo "configure:13237: checking for acl_get_perm_np" >&5
13237 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13238 echo $ac_n "(cached) $ac_c" 1>&6
13241 cat > conftest.
$ac_ext <<EOF
13242 #line 13243 "configure"
13243 #include "confdefs.h"
13244 #include <sys/types.h>
13245 #include <sys/acl.h>
13247 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13250 if { (eval echo configure
:13251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13252 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
13254 echo "configure: failed program was:" >&5
13255 cat conftest.
$ac_ext >&5
13257 samba_cv_HAVE_ACL_GET_PERM_NP
=no
13262 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13263 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
13264 cat >> confdefs.h
<<\EOF
13265 #define HAVE_ACL_GET_PERM_NP 1
13274 echo "$ac_t""no" 1>&6
13275 cat >> confdefs.h
<<\EOF
13276 #define HAVE_NO_ACLS 1
13282 cat >> confdefs.h
<<\EOF
13283 #define HAVE_NO_ACLS 1
13286 echo "$ac_t""no" 1>&6
13291 #################################################
13292 # check for the historical SAMBA installation
13294 if test "x$prefix" = xNONE
-a "$sbindir" = "\${exec_prefix}/sbin"; then
13295 # Put all binaries under the /usr/local/samba/bin directory.
13299 #################################################
13300 # Check whether winbind is supported on this platform. If so we need to
13301 # build and install client programs (WINBIND_TARGETS), sbin programs
13302 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13304 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13305 echo "configure:13306: checking whether to build winbind" >&5
13307 # Initially, the value of $host_os decides whether winbind is supported
13315 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
13316 WINBIND_NSS_EXTRA_LIBS
="-lsocket"
13320 WINBIND_NSS_EXTRA_OBJS
="nsswitch/winbind_nss_solaris.o"
13327 winbind_no_reason
=", unsupported on $host_os"
13331 # Check the setting of --with-winbindd
13333 # Check whether --with-winbind or --without-winbind was given.
13334 if test "${with_winbind+set}" = set; then
13335 withval
="$with_winbind"
13349 # We need unix domain sockets for winbind
13351 if test x
"$HAVE_WINBIND" = x
"yes"; then
13352 if test x
"$samba_cv_unixsocket" = x
"no"; then
13353 winbind_no_reason
=", no unix domain socket support on $host_os"
13358 # Display test results
13360 if test x
"$HAVE_WINBIND" = x
"yes"; then
13362 echo "$ac_t""yes" 1>&6
13364 echo $ac_n "checking whether to enable winbind auth challenge/response code""... $ac_c" 1>&6
13365 echo "configure:13366: checking whether to enable winbind auth challenge/response code" >&5
13366 # Check whether --with-winbind-auth-challenge or --without-winbind-auth-challenge was given.
13367 if test "${with_winbind_auth_challenge+set}" = set; then
13368 withval
="$with_winbind_auth_challenge"
13372 cat >> confdefs.h
<<\EOF
13373 #define WITH_WINBIND_AUTH_CRAP 1
13376 echo "$ac_t""yes" 1>&6
13379 echo "$ac_t""no" 1>&6
13383 echo "$ac_t""no" 1>&6
13388 # Check for FreeBSD problem with getgroups
13390 WINBIND_TARGETS
="bin/wbinfo"
13391 WINBIND_STARGETS
="bin/winbindd"
13394 WINBIND_LTARGETS
="nsswitch/libns_winbind.so"
13397 WINBIND_LTARGETS
="nsswitch/libnss_winbind.so"
13402 case "$with_pam" in
13404 WINBIND_PAM_TARGETS
="nsswitch/pam_winbind.so"
13408 # Check for Horrible winbindd ldap hack.
13410 echo $ac_n "checking whether to enable winbind ldap hack""... $ac_c" 1>&6
13411 echo "configure:13412: checking whether to enable winbind ldap hack" >&5
13412 # Check whether --with-winbind-ldap-hack or --without-winbind-ldap-hack was given.
13413 if test "${with_winbind_ldap_hack+set}" = set; then
13414 withval
="$with_winbind_ldap_hack"
13418 cat >> confdefs.h
<<\EOF
13419 #define WITH_HORRIBLE_LDAP_NATIVE_MODE_HACK 1
13422 LIBS
="$LIBS -lldap";
13423 echo "$ac_t""yes" 1>&6
13426 echo "$ac_t""no" 1>&6
13430 echo "$ac_t""no" 1>&6
13436 echo "$ac_t""no$winbind_no_reason" 1>&6
13439 WINBIND_STARGETS
=""
13440 WINBIND_LTARGETS
=""
13441 WINBIND_PAM_TARGETS
=""
13445 # Check for FreeBSD problem with getgroups
13446 # It returns EGID too many times in the list of groups
13447 # and causes a security problem
13448 echo $ac_n "checking whether or not getgroups returns EGID too many times""... $ac_c" 1>&6
13449 echo "configure:13450: checking whether or not getgroups returns EGID too many times" >&5
13450 if eval "test \"`echo '$''{'samba_cv_have_getgroups_too_many_egids'+set}'`\" = set"; then
13451 echo $ac_n "(cached) $ac_c" 1>&6
13453 if test "$cross_compiling" = yes; then
13454 samba_cv_have_getgroups_too_many_egids
=cross
13456 cat > conftest.
$ac_ext <<EOF
13457 #line 13458 "configure"
13458 #include "confdefs.h"
13460 #include <sys/types.h>
13463 int main(int argc, char *argv[])
13468 n = getgroups(n, &groups);
13469 /* Could actually pass back the number of EGIDs there ... */
13470 exit((n > 1 && groups[0] == getegid() && groups[1] == getegid()) ? 1 : 0);
13473 if { (eval echo configure
:13474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13475 samba_cv_have_getgroups_too_many_egids
=no
13477 echo "configure: failed program was:" >&5
13478 cat conftest.
$ac_ext >&5
13480 samba_cv_have_getgroups_too_many_egids
=yes
13487 echo "$ac_t""$samba_cv_have_getgroups_too_many_egids" 1>&6
13488 if test x
"$samba_cv_have_getgroups_too_many_egids" = x
"yes"; then
13489 cat >> confdefs.h
<<\EOF
13490 #define HAVE_GETGROUPS_TOO_MANY_EGIDS 1
13495 # Substitution time!
13504 # Solaris has some extra fields in struct passwd that need to be
13505 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
13506 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
13509 #AC_CHECK_MEMBER(struct passwd.pw_comment,
13510 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
13511 # [#include <pwd.h>])
13513 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
13514 echo "configure:13515: checking whether struct passwd has pw_comment" >&5
13515 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
13516 echo $ac_n "(cached) $ac_c" 1>&6
13519 cat > conftest.
$ac_ext <<EOF
13520 #line 13521 "configure"
13521 #include "confdefs.h"
13524 struct passwd p; p.pw_comment;
13527 if { (eval echo configure
:13528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13529 samba_cv_passwd_pw_comment
=yes
13531 echo "configure: failed program was:" >&5
13532 cat conftest.
$ac_ext >&5
13534 samba_cv_passwd_pw_comment
=no
13539 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
13540 if test x
"$samba_cv_passwd_pw_comment" = x
"yes"; then
13541 cat >> confdefs.h
<<\EOF
13542 #define HAVE_PASSWD_PW_COMMENT 1
13547 #AC_CHECK_MEMBER(struct passwd.pw_age,
13548 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
13549 # [#include <pwd.h>])
13551 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
13552 echo "configure:13553: checking whether struct passwd has pw_age" >&5
13553 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
13554 echo $ac_n "(cached) $ac_c" 1>&6
13557 cat > conftest.
$ac_ext <<EOF
13558 #line 13559 "configure"
13559 #include "confdefs.h"
13562 struct passwd p; p.pw_age;
13565 if { (eval echo configure
:13566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13567 samba_cv_passwd_pw_age
=yes
13569 echo "configure: failed program was:" >&5
13570 cat conftest.
$ac_ext >&5
13572 samba_cv_passwd_pw_age
=no
13577 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
13578 if test x
"$samba_cv_passwd_pw_age" = x
"yes"; then
13579 cat >> confdefs.h
<<\EOF
13580 #define HAVE_PASSWD_PW_AGE 1
13585 #################################################
13586 # Check to see if we should use the included popt
13588 # Check whether --with-included-popt or --without-included-popt was given.
13589 if test "${with_included_popt+set}" = set; then
13590 withval
="$with_included_popt"
13602 if test x
"$INCLUDED_POPT" != x
"yes"; then
13603 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13604 echo "configure:13605: checking for poptGetContext in -lpopt" >&5
13605 ac_lib_var
=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13606 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13607 echo $ac_n "(cached) $ac_c" 1>&6
13609 ac_save_LIBS
="$LIBS"
13610 LIBS
="-lpopt $LIBS"
13611 cat > conftest.
$ac_ext <<EOF
13612 #line 13613 "configure"
13613 #include "confdefs.h"
13614 /* Override any gcc2 internal prototype to avoid an error. */
13615 /* We use char because int might match the return type of a gcc2
13616 builtin and then its argument prototype would still apply. */
13617 char poptGetContext();
13623 if { (eval echo configure
:13624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13625 eval "ac_cv_lib_$ac_lib_var=yes"
13627 echo "configure: failed program was:" >&5
13628 cat conftest.
$ac_ext >&5
13630 eval "ac_cv_lib_$ac_lib_var=no"
13633 LIBS
="$ac_save_LIBS"
13636 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13637 echo "$ac_t""yes" 1>&6
13640 echo "$ac_t""no" 1>&6
13646 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
13647 echo "configure:13648: checking whether to use included popt" >&5
13648 if test x
"$INCLUDED_POPT" = x
"yes"; then
13649 echo "$ac_t""$srcdir/popt" 1>&6
13650 BUILD_POPT
='$(POPT_OBJS)'
13651 FLAGS1
="-I$srcdir/popt"
13653 echo "$ac_t""no" 1>&6
13654 LIBS
="$LIBS -lpopt"
13659 #################################################
13660 # final configure stuff
13661 echo $ac_n "checking configure summary""... $ac_c" 1>&6
13662 echo "configure:13663: checking configure summary" >&5
13663 if test "$cross_compiling" = yes; then
13664 echo "configure: warning: cannot run when cross-compiling" 1>&2
13666 cat > conftest.
$ac_ext <<EOF
13667 #line 13668 "configure"
13668 #include "confdefs.h"
13669 #include "${srcdir-.}/tests/summary.c"
13671 if { (eval echo configure
:13672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13673 echo "$ac_t""yes" 1>&6
13675 echo "configure: failed program was:" >&5
13676 cat conftest.
$ac_ext >&5
13678 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
13688 cat > confcache
<<\EOF
13689 # This file is a shell script that caches the results of configure
13690 # tests run on this system so they can be shared between configure
13691 # scripts and configure runs. It is not useful on other systems.
13692 # If it contains results you don't want to keep, you may remove or edit it.
13694 # By default, configure uses ./config.cache as the cache file,
13695 # creating it if it does not exist already. You can give configure
13696 # the --cache-file=FILE option to use a different cache file; that is
13697 # what configure does when it calls configure scripts in
13698 # subdirectories, so they share the cache.
13699 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13700 # config.status only pays attention to the cache file if you give it the
13701 # --recheck option to rerun configure.
13704 # The following way of writing the cache mishandles newlines in values,
13705 # but we know of no workaround that is simple, portable, and efficient.
13706 # So, don't put newlines in cache variables' values.
13707 # Ultrix sh set writes to stderr and can't be redirected directly,
13708 # and sets the high bit in the cache file unless we assign to the vars.
13710 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13712 # `set' does not quote correctly, so add quotes (double-quote substitution
13713 # turns \\\\ into \\, and sed turns \\ into \).
13715 -e "s/'/'\\\\''/g" \
13716 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13719 # `set' quotes correctly as required by POSIX, so do not add quotes.
13720 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13723 if cmp -s $cache_file confcache
; then
13726 if test -w $cache_file; then
13727 echo "updating cache $cache_file"
13728 cat confcache
> $cache_file
13730 echo "not updating unwritable cache $cache_file"
13735 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13737 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13738 # Let make expand exec_prefix.
13739 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13741 # Any assignment to VPATH causes Sun make to only execute
13742 # the first set of double-colon rules, so remove it if not needed.
13743 # If there is a colon in the path, we need to keep it.
13744 if test "x$srcdir" = x.
; then
13745 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
13748 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13750 DEFS
=-DHAVE_CONFIG_H
13752 # Without the "./", some shells look in PATH for config.status.
13753 : ${CONFIG_STATUS=./config.status}
13755 echo creating
$CONFIG_STATUS
13756 rm -f $CONFIG_STATUS
13757 cat > $CONFIG_STATUS <<EOF
13759 # Generated automatically by configure.
13760 # Run this file to recreate the current configuration.
13761 # This directory was configured as follows,
13762 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13764 # $0 $ac_configure_args
13766 # Compiler output produced by configure, useful for debugging
13767 # configure, is in ./config.log if it exists.
13769 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13772 case "\$ac_option" in
13773 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13774 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13775 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13776 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13777 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13779 -help | --help | --hel | --he | --h)
13780 echo "\$ac_cs_usage"; exit 0 ;;
13781 *) echo "\$ac_cs_usage"; exit 1 ;;
13785 ac_given_srcdir=$srcdir
13786 ac_given_INSTALL="$INSTALL"
13788 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13790 cat >> $CONFIG_STATUS <<EOF
13792 # Protect against being on the right side of a sed subst in config.status.
13793 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13794 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13798 s%@CFLAGS@%$CFLAGS%g
13799 s%@CPPFLAGS@%$CPPFLAGS%g
13800 s%@CXXFLAGS@%$CXXFLAGS%g
13801 s%@FFLAGS@%$FFLAGS%g
13803 s%@LDFLAGS@%$LDFLAGS%g
13805 s%@exec_prefix@%$exec_prefix%g
13806 s%@prefix@%$prefix%g
13807 s%@program_transform_name@%$program_transform_name%g
13808 s%@bindir@%$bindir%g
13809 s%@sbindir@%$sbindir%g
13810 s%@libexecdir@%$libexecdir%g
13811 s%@datadir@%$datadir%g
13812 s%@sysconfdir@%$sysconfdir%g
13813 s%@sharedstatedir@%$sharedstatedir%g
13814 s%@localstatedir@%$localstatedir%g
13815 s%@libdir@%$libdir%g
13816 s%@includedir@%$includedir%g
13817 s%@oldincludedir@%$oldincludedir%g
13818 s%@infodir@%$infodir%g
13819 s%@mandir@%$mandir%g
13820 s%@codepagedir@%$codepagedir%g
13821 s%@configdir@%$configdir%g
13822 s%@lockdir@%$lockdir%g
13823 s%@piddir@%$piddir%g
13824 s%@logfilebase@%$logfilebase%g
13825 s%@privatedir@%$privatedir%g
13826 s%@swatdir@%$swatdir%g
13827 s%@RUNPROG@%$RUNPROG%g
13828 s%@MPROGS@%$MPROGS%g
13829 s%@LDSHFLAGS@%$LDSHFLAGS%g
13830 s%@SONAMEFLAG@%$SONAMEFLAG%g
13832 s%@HOST_OS@%$HOST_OS%g
13833 s%@PAM_MOD@%$PAM_MOD%g
13834 s%@PDBEDIT@%$PDBEDIT%g
13836 s%@WRAP32@%$WRAP32%g
13837 s%@WRAPPROG@%$WRAPPROG%g
13838 s%@PICFLAG@%$PICFLAG%g
13839 s%@PICSUFFIX@%$PICSUFFIX%g
13840 s%@SHLIBEXT@%$SHLIBEXT%g
13841 s%@BLDSHARED@%$BLDSHARED%g
13842 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
13843 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
13845 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13846 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13847 s%@INSTALL_DATA@%$INSTALL_DATA%g
13849 s%@passwd_program@%$passwd_program%g
13850 s%@BROKEN_CC@%$BROKEN_CC%g
13852 s%@host_alias@%$host_alias%g
13853 s%@host_cpu@%$host_cpu%g
13854 s%@host_vendor@%$host_vendor%g
13855 s%@host_os@%$host_os%g
13856 s%@target@%$target%g
13857 s%@target_alias@%$target_alias%g
13858 s%@target_cpu@%$target_cpu%g
13859 s%@target_vendor@%$target_vendor%g
13860 s%@target_os@%$target_os%g
13862 s%@build_alias@%$build_alias%g
13863 s%@build_cpu@%$build_cpu%g
13864 s%@build_vendor@%$build_vendor%g
13865 s%@build_os@%$build_os%g
13867 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
13868 s%@LIBOBJS@%$LIBOBJS%g
13869 s%@TERMLIBS@%$TERMLIBS%g
13870 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13872 s%@DYNEXP@%$DYNEXP%g
13873 s%@LDAPLIBS@%$LDAPLIBS%g
13874 s%@QUOTAOBJS@%$QUOTAOBJS%g
13875 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13876 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
13877 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
13878 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
13879 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
13880 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
13881 s%@BUILD_POPT@%$BUILD_POPT%g
13882 s%@FLAGS1@%$FLAGS1%g
13883 s%@builddir@%$builddir%g
13888 cat >> $CONFIG_STATUS <<\EOF
13890 # Split the substitutions into bite-sized pieces for seds with
13891 # small command number limits, like on Digital OSF/1 and HP-UX.
13892 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
13893 ac_file
=1 # Number of current file.
13894 ac_beg
=1 # First line for current file.
13895 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
13898 while $ac_more_lines; do
13899 if test $ac_beg -gt 1; then
13900 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
13902 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
13904 if test ! -s conftest.s
$ac_file; then
13905 ac_more_lines
=false
13906 rm -f conftest.s
$ac_file
13908 if test -z "$ac_sed_cmds"; then
13909 ac_sed_cmds
="sed -f conftest.s$ac_file"
13911 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
13913 ac_file
=`expr $ac_file + 1`
13915 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
13918 if test -z "$ac_sed_cmds"; then
13923 cat >> $CONFIG_STATUS <<EOF
13925 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
13927 cat >> $CONFIG_STATUS <<\EOF
13928 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
13929 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13931 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
13932 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
13933 *) ac_file_in
="${ac_file}.in" ;;
13936 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13938 # Remove last slash and all that follows it. Not all systems have dirname.
13939 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13940 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
13941 # The file is in a subdirectory.
13942 test ! -d "$ac_dir" && mkdir
"$ac_dir"
13943 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
13944 # A "../" for each directory in $ac_dir_suffix.
13945 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13947 ac_dir_suffix
= ac_dots
=
13950 case "$ac_given_srcdir" in
13952 if test -z "$ac_dots"; then top_srcdir
=.
13953 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13954 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
13955 *) # Relative path.
13956 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13957 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
13960 case "$ac_given_INSTALL" in
13961 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
13962 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
13965 echo creating
"$ac_file"
13967 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13969 *Makefile
*) ac_comsub
="1i\\
13970 # $configure_input" ;;
13974 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13976 s%@configure_input@%$configure_input%g
13977 s%@srcdir@%$srcdir%g
13978 s%@top_srcdir@%$top_srcdir%g
13979 s%@INSTALL@%$INSTALL%g
13980 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
13984 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13985 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13987 # ac_d sets the value in "#define NAME VALUE" lines.
13988 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13989 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
13992 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13993 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13994 ac_uB
='\([ ]\)%\1#\2define\3'
13997 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13998 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13999 ac_eB
='$%\1#\2define\3'
14003 if test "${CONFIG_HEADERS+set}" != set; then
14005 cat >> $CONFIG_STATUS <<EOF
14006 CONFIG_HEADERS="include/config.h"
14008 cat >> $CONFIG_STATUS <<\EOF
14010 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
14011 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14013 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
14014 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
14015 *) ac_file_in
="${ac_file}.in" ;;
14018 echo creating
$ac_file
14020 rm -f conftest.frag conftest.
in conftest.out
14021 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14022 cat $ac_file_inputs > conftest.
in
14026 # Transform confdefs.h into a sed script conftest.vals that substitutes
14027 # the proper values into config.h.in to produce config.h. And first:
14028 # Protect against being on the right side of a sed subst in config.status.
14029 # Protect against being in an unquoted here document in config.status.
14030 rm -f conftest.vals
14031 cat > conftest.hdr
<<\EOF
14034 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14038 sed -n -f conftest.hdr confdefs.h > conftest.vals
14041 # This sed command replaces #undef with comments. This is necessary, for
14042 # example, in the case of _POSIX_SOURCE, which is predefined and required
14043 # on some systems where configure will not decide to define it.
14044 cat >> conftest.vals <<\EOF
14045 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14048 # Break up conftest.vals because some shells have a limit on
14049 # the size of here documents, and old seds have small limits too.
14051 rm -f conftest.tail
14054 ac_lines=`grep -c . conftest.vals
`
14055 # grep -c gives empty output for an empty file on some AIX systems.
14056 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14057 # Write a limited-size here document to conftest.frag.
14058 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14059 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14061 sed -f conftest.frag conftest.in > conftest.out
14063 mv conftest.out conftest.in
14064 ' >> $CONFIG_STATUS
14065 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14066 rm -f conftest.vals
14067 mv conftest.tail conftest.vals
14069 rm -f conftest.vals
14071 cat >> $CONFIG_STATUS <<\EOF
14072 rm -f conftest.frag conftest.h
14073 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14074 cat conftest.in >> conftest.h
14076 if cmp -s $ac_file conftest.h 2>/dev/null; then
14077 echo "$ac_file is unchanged"
14080 # Remove last slash and all that follows it. Not all systems have dirname.
14081 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
14082 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14083 # The file is in a subdirectory.
14084 test ! -d "$ac_dir" && mkdir "$ac_dir"
14087 mv conftest.h $ac_file
14092 cat >> $CONFIG_STATUS <<EOF
14095 cat >> $CONFIG_STATUS <<\EOF
14099 chmod +x $CONFIG_STATUS
14100 rm -fr confdefs* $ac_clean_files
14101 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1