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 --enable-debug turn on debugging [default=no]"
18 --enable-shared[=PKGS] build shared libraries [default=yes]"
20 --enable-static[=PKGS] build static libraries [default=yes]"
22 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
24 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
26 --disable-libtool-lock avoid locking (might break parallel builds)"
28 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
30 --with-readline[=DIR] Look for readline include/libs in DIR
31 --without-readline Don't include readline support"
33 --with-smbwrapper Include SMB wrapper support
34 --without-smbwrapper Don't include SMB wrapper support (default)"
36 --with-afs Include AFS support
37 --without-afs Don't include AFS support (default)"
39 --with-dfs Include DFS support
40 --without-dfs Don't include DFS support (default)"
42 --with-krb4=base-dir Include Kerberos IV support
43 --without-krb4 Don't include Kerberos IV support (default)"
45 --with-krb5=base-dir Include Kerberos 5 support
46 --without-krb5 Don't include Kerberos 5 support (default)"
48 --with-automount Include AUTOMOUNT support
49 --without-automount Don't include AUTOMOUNT support (default)"
51 --with-smbmount Include SMBMOUNT (Linux only) support
52 --without-smbmount Don't include SMBMOUNT support (default)"
54 --with-pam Include PAM password database support
55 --without-pam Don't include PAM password database support (default)"
57 --with-pam_smbpass Include the smbpass PAM module
58 --without-pam_smbpass Don't include the smbpass PAM module (default)"
60 --with-tdbsam Include experimental TDB password database
61 --without-tdbsam Don't include experimental TDB password database (default)"
63 --with-ldap Include LDAP support
64 --without-ldap Don't include LDAP support (default)"
66 --with-nisplus Include NISPLUS password database support
67 --without-nisplus Don't include NISPLUS password database support (default)"
69 --with-nisplus-home Include NISPLUS_HOME support
70 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
72 --with-ssl Include SSL support
73 --without-ssl Don't include SSL support (default)
74 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
76 --with-syslog Include experimental SYSLOG support
77 --without-syslog Don't include SYSLOG support (default)"
79 --with-profile Include profile support
80 --without-profile Don't include profile support (default)"
82 --with-netatalk Include experimental Netatalk support
83 --without-netatalk Don't include experimental Netatalk support (default)"
85 --with-quotas Include experimental disk-quota support
86 --without-quotas Don't include experimental disk-quota support (default)"
88 --with-utmp Include experimental utmp accounting
89 --without-utmp Don't include experimental utmp accounting (default)"
91 --with-msdfs Include MS Dfs support
92 --without-msdfs Don't include MS Dfs support (default)"
94 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
96 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
98 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
100 --with-spinlocks use spin locks instead of fcntl locks "
102 --with-acl-support Include ACL support
103 --without-acl-support Don't include ACL support (default)"
105 # Initialize some variables set by options.
106 # The variables have the same names as the options, with
107 # dashes changed to underlines.
109 cache_file
=.
/config.cache
118 program_transform_name
=s
,x
,x
,
126 bindir
='${exec_prefix}/bin'
127 sbindir
='${exec_prefix}/sbin'
128 libexecdir
='${exec_prefix}/libexec'
129 datadir
='${prefix}/share'
130 sysconfdir
='${prefix}/etc'
131 sharedstatedir
='${prefix}/com'
132 localstatedir
='${prefix}/var'
133 libdir
='${exec_prefix}/lib'
134 includedir
='${prefix}/include'
135 oldincludedir
='/usr/include'
136 infodir
='${prefix}/info'
137 mandir
='${prefix}/man'
139 # Initialize some other variables.
142 SHELL
=${CONFIG_SHELL-/bin/sh}
143 # Maximum number of lines to put in a shell here document.
150 # If the previous option needs an argument, assign it.
151 if test -n "$ac_prev"; then
152 eval "$ac_prev=\$ac_option"
158 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
162 # Accept the important Cygnus configure options, so we can diagnose typos.
166 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
168 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
169 bindir
="$ac_optarg" ;;
171 -build |
--build |
--buil |
--bui |
--bu)
173 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
174 build
="$ac_optarg" ;;
176 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
177 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
178 ac_prev
=cache_file
;;
179 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
180 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
181 cache_file
="$ac_optarg" ;;
183 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
185 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
187 datadir
="$ac_optarg" ;;
189 -disable-* |
--disable-*)
190 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
191 # Reject names that are not valid shell variable names.
192 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
193 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
195 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
196 eval "enable_${ac_feature}=no" ;;
198 -enable-* |
--enable-*)
199 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
200 # Reject names that are not valid shell variable names.
201 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
202 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
204 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
209 eval "enable_${ac_feature}='$ac_optarg'" ;;
211 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
212 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
213 |
--exec |
--exe |
--ex)
214 ac_prev
=exec_prefix
;;
215 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
216 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
217 |
--exec=* |
--exe=* |
--ex=*)
218 exec_prefix
="$ac_optarg" ;;
220 -gas |
--gas |
--ga |
--g)
221 # Obsolete; use --with-gas.
224 -help |
--help |
--hel |
--he)
225 # Omit some internal or obsolete options to make the list less imposing.
226 # This message is too long to be a string in the A/UX 3.1 sh.
228 Usage: configure [options] [host]
229 Options: [defaults in brackets after descriptions]
231 --cache-file=FILE cache test results in FILE
232 --help print this message
233 --no-create do not create output files
234 --quiet, --silent do not print \`checking...' messages
235 --version print the version of autoconf that created configure
236 Directory and file names:
237 --prefix=PREFIX install architecture-independent files in PREFIX
239 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
241 --bindir=DIR user executables in DIR [EPREFIX/bin]
242 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
243 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
244 --datadir=DIR read-only architecture-independent data in DIR
246 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
247 --sharedstatedir=DIR modifiable architecture-independent data in DIR
249 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
250 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
251 --includedir=DIR C header files in DIR [PREFIX/include]
252 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
253 --infodir=DIR info documentation in DIR [PREFIX/info]
254 --mandir=DIR man documentation in DIR [PREFIX/man]
255 --srcdir=DIR find the sources in DIR [configure dir or ..]
256 --program-prefix=PREFIX prepend PREFIX to installed program names
257 --program-suffix=SUFFIX append SUFFIX to installed program names
258 --program-transform-name=PROGRAM
259 run sed PROGRAM on installed program names
263 --build=BUILD configure for building on BUILD [BUILD=HOST]
264 --host=HOST configure for HOST [guessed]
265 --target=TARGET configure for TARGET [TARGET=HOST]
266 Features and packages:
267 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
268 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
269 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
270 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
271 --x-includes=DIR X include files are in DIR
272 --x-libraries=DIR X library files are in DIR
274 if test -n "$ac_help"; then
275 echo "--enable and --with options recognized:$ac_help"
279 -host |
--host |
--hos |
--ho)
281 -host=* |
--host=* |
--hos=* |
--ho=*)
284 -includedir |
--includedir |
--includedi |
--included |
--include \
285 |
--includ |
--inclu |
--incl |
--inc)
286 ac_prev
=includedir
;;
287 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
288 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
289 includedir
="$ac_optarg" ;;
291 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
293 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
294 infodir
="$ac_optarg" ;;
296 -libdir |
--libdir |
--libdi |
--libd)
298 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
299 libdir
="$ac_optarg" ;;
301 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
302 |
--libexe |
--libex |
--libe)
303 ac_prev
=libexecdir
;;
304 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
305 |
--libexe=* |
--libex=* |
--libe=*)
306 libexecdir
="$ac_optarg" ;;
308 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
309 |
--localstate |
--localstat |
--localsta |
--localst \
310 |
--locals |
--local |
--loca |
--loc |
--lo)
311 ac_prev
=localstatedir
;;
312 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
313 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
314 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
315 localstatedir
="$ac_optarg" ;;
317 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
319 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
320 mandir
="$ac_optarg" ;;
323 # Obsolete; use --without-fp.
326 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
330 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
331 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
334 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
335 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
336 |
--oldin |
--oldi |
--old |
--ol |
--o)
337 ac_prev
=oldincludedir
;;
338 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
339 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
340 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
341 oldincludedir
="$ac_optarg" ;;
343 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
345 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
346 prefix
="$ac_optarg" ;;
348 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
349 |
--program-pre |
--program-pr |
--program-p)
350 ac_prev
=program_prefix
;;
351 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
352 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
353 program_prefix
="$ac_optarg" ;;
355 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
356 |
--program-suf |
--program-su |
--program-s)
357 ac_prev
=program_suffix
;;
358 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
359 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
360 program_suffix
="$ac_optarg" ;;
362 -program-transform-name |
--program-transform-name \
363 |
--program-transform-nam |
--program-transform-na \
364 |
--program-transform-n |
--program-transform- \
365 |
--program-transform |
--program-transfor \
366 |
--program-transfo |
--program-transf \
367 |
--program-trans |
--program-tran \
368 |
--progr-tra |
--program-tr |
--program-t)
369 ac_prev
=program_transform_name
;;
370 -program-transform-name=* |
--program-transform-name=* \
371 |
--program-transform-nam=* |
--program-transform-na=* \
372 |
--program-transform-n=* |
--program-transform-=* \
373 |
--program-transform=* |
--program-transfor=* \
374 |
--program-transfo=* |
--program-transf=* \
375 |
--program-trans=* |
--program-tran=* \
376 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
377 program_transform_name
="$ac_optarg" ;;
379 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
380 |
-silent |
--silent |
--silen |
--sile |
--sil)
383 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
385 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
387 sbindir
="$ac_optarg" ;;
389 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
390 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
391 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
393 ac_prev
=sharedstatedir
;;
394 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
395 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
396 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
398 sharedstatedir
="$ac_optarg" ;;
400 -site |
--site |
--sit)
402 -site=* |
--site=* |
--sit=*)
405 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
407 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
408 srcdir
="$ac_optarg" ;;
410 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
411 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
412 ac_prev
=sysconfdir
;;
413 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
414 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
415 sysconfdir
="$ac_optarg" ;;
417 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
419 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
420 target
="$ac_optarg" ;;
422 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
425 -version |
--version |
--versio |
--versi |
--vers)
426 echo "configure generated by autoconf version 2.13"
430 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
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'`
440 eval "with_${ac_package}='$ac_optarg'" ;;
442 -without-* |
--without-*)
443 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
444 # Reject names that are not valid shell variable names.
445 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
446 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
448 ac_package
=`echo $ac_package| sed 's/-/_/g'`
449 eval "with_${ac_package}=no" ;;
452 # Obsolete; use --with-x.
455 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
456 |
--x-incl |
--x-inc |
--x-in |
--x-i)
457 ac_prev
=x_includes
;;
458 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
459 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
460 x_includes
="$ac_optarg" ;;
462 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
463 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
464 ac_prev
=x_libraries
;;
465 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
466 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
467 x_libraries
="$ac_optarg" ;;
469 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
473 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
474 echo "configure: warning: $ac_option: invalid host type" 1>&2
476 if test "x$nonopt" != xNONE
; then
477 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
485 if test -n "$ac_prev"; then
486 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
489 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
491 # File descriptor usage:
494 # 2 errors and warnings
495 # 3 some systems may open it to /dev/tty
496 # 4 used on the Kubota Titan
497 # 6 checking for... messages and results
498 # 5 compiler messages saved in config.log
499 if test "$silent" = yes; then
507 This file contains any messages produced by compilers while
508 running configure, to aid debugging if configure makes a mistake.
511 # Strip out --no-create and --no-recursion so they do not pile up.
512 # Also quote any args containing shell metacharacters.
517 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
518 |
--no-cr |
--no-c) ;;
519 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
520 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
521 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
522 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
523 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
528 # Only set these to C if already set. These must not be set unconditionally
529 # because not all systems understand e.g. LANG=C (notably SCO).
530 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
531 # Non-C LC_CTYPE values break the ctype check.
532 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
533 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
534 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
535 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
537 # confdefs.h avoids OS command line length limits that DEFS can exceed.
538 rm -rf conftest
* confdefs.h
539 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
542 # A filename unique to this package, relative to the directory that
543 # configure is in, which we can look for to find out if srcdir is correct.
544 ac_unique_file
=include
/includes.h
546 # Find the source files, if location was not specified.
547 if test -z "$srcdir"; then
548 ac_srcdir_defaulted
=yes
549 # Try the directory containing this script, then its parent.
551 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
552 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
554 if test ! -r $srcdir/$ac_unique_file; then
558 ac_srcdir_defaulted
=no
560 if test ! -r $srcdir/$ac_unique_file; then
561 if test "$ac_srcdir_defaulted" = yes; then
562 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
564 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
567 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
569 # Prefer explicitly selected file to automatically selected ones.
570 if test -z "$CONFIG_SITE"; then
571 if test "x$prefix" != xNONE
; then
572 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
574 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
577 for ac_site_file
in $CONFIG_SITE; do
578 if test -r "$ac_site_file"; then
579 echo "loading site script $ac_site_file"
584 if test -r "$cache_file"; then
585 echo "loading cache $cache_file"
588 echo "creating cache $cache_file"
593 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
594 ac_cpp
='$CPP $CPPFLAGS'
595 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
596 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
597 cross_compiling
=$ac_cv_prog_cc_cross
601 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
602 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
603 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
610 ac_n
= ac_c
='\c' ac_t
=
615 # we want to be compatibe with older versions of Samba
629 # compile with optimisation and without debugging by default
630 CFLAGS
="-O ${CFLAGS}"
632 # Check whether --enable-debug or --disable-debug was given.
633 if test "${enable_debug+set}" = set; then
634 enableval
="$enable_debug"
635 if eval "test x$enable_debug = xyes"; then
636 CFLAGS
="${CFLAGS} -g"
642 # Extract the first word of "gcc", so it can be a program name with args.
643 set dummy gcc
; ac_word
=$2
644 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
645 echo "configure:646: checking for $ac_word" >&5
646 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
647 echo $ac_n "(cached) $ac_c" 1>&6
649 if test -n "$CC"; then
650 ac_cv_prog_CC
="$CC" # Let the user override the test.
652 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
654 for ac_dir
in $ac_dummy; do
655 test -z "$ac_dir" && ac_dir
=.
656 if test -f $ac_dir/$ac_word; then
665 if test -n "$CC"; then
666 echo "$ac_t""$CC" 1>&6
668 echo "$ac_t""no" 1>&6
671 if test -z "$CC"; then
672 # Extract the first word of "cc", so it can be a program name with args.
673 set dummy cc
; ac_word
=$2
674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
675 echo "configure:676: checking for $ac_word" >&5
676 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
677 echo $ac_n "(cached) $ac_c" 1>&6
679 if test -n "$CC"; then
680 ac_cv_prog_CC
="$CC" # Let the user override the test.
682 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
685 for ac_dir
in $ac_dummy; do
686 test -z "$ac_dir" && ac_dir
=.
687 if test -f $ac_dir/$ac_word; then
688 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
697 if test $ac_prog_rejected = yes; then
698 # We found a bogon in the path, so make sure we never use it.
699 set dummy
$ac_cv_prog_CC
701 if test $# -gt 0; then
702 # We chose a different compiler from the bogus one.
703 # However, it has the same basename, so the bogon will be chosen
704 # first if we set CC to just the basename; use the full file name.
706 set dummy
"$ac_dir/$ac_word" "$@"
714 if test -n "$CC"; then
715 echo "$ac_t""$CC" 1>&6
717 echo "$ac_t""no" 1>&6
720 if test -z "$CC"; then
723 # Extract the first word of "cl", so it can be a program name with args.
724 set dummy cl
; ac_word
=$2
725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
726 echo "configure:727: checking for $ac_word" >&5
727 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
728 echo $ac_n "(cached) $ac_c" 1>&6
730 if test -n "$CC"; then
731 ac_cv_prog_CC
="$CC" # Let the user override the test.
733 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
735 for ac_dir
in $ac_dummy; do
736 test -z "$ac_dir" && ac_dir
=.
737 if test -f $ac_dir/$ac_word; then
746 if test -n "$CC"; then
747 echo "$ac_t""$CC" 1>&6
749 echo "$ac_t""no" 1>&6
754 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
757 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
758 echo "configure:759: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
761 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
762 ac_cpp
='$CPP $CPPFLAGS'
763 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
764 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
765 cross_compiling
=$ac_cv_prog_cc_cross
767 cat > conftest.
$ac_ext << EOF
769 #line 770 "configure"
770 #include "confdefs.h"
774 if { (eval echo configure
:775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
775 ac_cv_prog_cc_works
=yes
776 # If we can't run a trivial program, we are probably using a cross compiler.
777 if (.
/conftest
; exit) 2>/dev
/null
; then
778 ac_cv_prog_cc_cross
=no
780 ac_cv_prog_cc_cross
=yes
783 echo "configure: failed program was:" >&5
784 cat conftest.
$ac_ext >&5
785 ac_cv_prog_cc_works
=no
789 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
790 ac_cpp
='$CPP $CPPFLAGS'
791 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
792 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
793 cross_compiling
=$ac_cv_prog_cc_cross
795 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
796 if test $ac_cv_prog_cc_works = no
; then
797 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
799 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
800 echo "configure:801: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
801 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
802 cross_compiling
=$ac_cv_prog_cc_cross
804 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
805 echo "configure:806: checking whether we are using GNU C" >&5
806 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
809 cat > conftest.c
<<EOF
814 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
821 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
823 if test $ac_cv_prog_gcc = yes; then
829 ac_test_CFLAGS
="${CFLAGS+set}"
830 ac_save_CFLAGS
="$CFLAGS"
832 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
833 echo "configure:834: checking whether ${CC-cc} accepts -g" >&5
834 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
835 echo $ac_n "(cached) $ac_c" 1>&6
837 echo 'void f(){}' > conftest.c
838 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
847 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
848 if test "$ac_test_CFLAGS" = set; then
849 CFLAGS
="$ac_save_CFLAGS"
850 elif test $ac_cv_prog_cc_g = yes; then
851 if test "$GCC" = yes; then
857 if test "$GCC" = yes; then
865 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
866 if test -f $ac_dir/install-sh
; then
868 ac_install_sh
="$ac_aux_dir/install-sh -c"
870 elif test -f $ac_dir/install.sh
; then
872 ac_install_sh
="$ac_aux_dir/install.sh -c"
876 if test -z "$ac_aux_dir"; then
877 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
879 ac_config_guess
=$ac_aux_dir/config.guess
880 ac_config_sub
=$ac_aux_dir/config.sub
881 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
883 # Find a good install program. We prefer a C program (faster),
884 # so one script is as good as another. But avoid the broken or
885 # incompatible versions:
886 # SysV /etc/install, /usr/sbin/install
887 # SunOS /usr/etc/install
890 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
891 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
892 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
893 # ./install, which can be erroneously created by make from ./install.sh.
894 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
895 echo "configure:896: checking for a BSD compatible install" >&5
896 if test -z "$INSTALL"; then
897 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
898 echo $ac_n "(cached) $ac_c" 1>&6
900 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
901 for ac_dir
in $PATH; do
902 # Account for people who put trailing slashes in PATH elements.
904 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
906 # OSF1 and SCO ODT 3.0 have their own names for install.
907 # Don't use installbsd from OSF since it installs stuff as root
909 for ac_prog
in ginstall scoinst
install; do
910 if test -f $ac_dir/$ac_prog; then
911 if test $ac_prog = install &&
912 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
913 # AIX install. It has an incompatible calling convention.
916 ac_cv_path_install
="$ac_dir/$ac_prog -c"
927 if test "${ac_cv_path_install+set}" = set; then
928 INSTALL
="$ac_cv_path_install"
930 # As a last resort, use the slow shell script. We don't cache a
931 # path for INSTALL within a source directory, because that will
932 # break other packages using the cache if that directory is
933 # removed, or if the path is relative.
934 INSTALL
="$ac_install_sh"
937 echo "$ac_t""$INSTALL" 1>&6
939 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
940 # It thinks the first close brace ends the variable substitution.
941 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
943 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
945 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
947 for ac_prog
in mawk gawk nawk
awk
949 # Extract the first word of "$ac_prog", so it can be a program name with args.
950 set dummy
$ac_prog; ac_word
=$2
951 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
952 echo "configure:953: checking for $ac_word" >&5
953 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
954 echo $ac_n "(cached) $ac_c" 1>&6
956 if test -n "$AWK"; then
957 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
959 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
961 for ac_dir
in $ac_dummy; do
962 test -z "$ac_dir" && ac_dir
=.
963 if test -f $ac_dir/$ac_word; then
964 ac_cv_prog_AWK
="$ac_prog"
971 AWK
="$ac_cv_prog_AWK"
972 if test -n "$AWK"; then
973 echo "$ac_t""$AWK" 1>&6
975 echo "$ac_t""no" 1>&6
978 test -n "$AWK" && break
981 # Check whether --enable-shared or --disable-shared was given.
982 if test "${enable_shared+set}" = set; then
983 enableval
="$enable_shared"
986 yes) enable_shared
=yes ;;
987 no
) enable_shared
=no
;;
990 # Look at the argument we got. We use all the common list separators.
991 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
992 for pkg
in $enableval; do
993 if test "X$pkg" = "X$p"; then
1004 # Check whether --enable-static or --disable-static was given.
1005 if test "${enable_static+set}" = set; then
1006 enableval
="$enable_static"
1007 p
=${PACKAGE-default}
1008 case "$enableval" in
1009 yes) enable_static
=yes ;;
1010 no
) enable_static
=no
;;
1013 # Look at the argument we got. We use all the common list separators.
1014 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1015 for pkg
in $enableval; do
1016 if test "X$pkg" = "X$p"; then
1027 # Check whether --enable-fast-install or --disable-fast-install was given.
1028 if test "${enable_fast_install+set}" = set; then
1029 enableval
="$enable_fast_install"
1030 p
=${PACKAGE-default}
1031 case "$enableval" in
1032 yes) enable_fast_install
=yes ;;
1033 no
) enable_fast_install
=no
;;
1035 enable_fast_install
=no
1036 # Look at the argument we got. We use all the common list separators.
1037 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1038 for pkg
in $enableval; do
1039 if test "X$pkg" = "X$p"; then
1040 enable_fast_install
=yes
1047 enable_fast_install
=yes
1051 # Make sure we can run config.sub.
1052 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1053 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1056 echo $ac_n "checking host system type""... $ac_c" 1>&6
1057 echo "configure:1058: checking host system type" >&5
1060 case "$host_alias" in
1064 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1065 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1067 *) host_alias
=$nonopt ;;
1071 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1072 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1073 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1074 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1075 echo "$ac_t""$host" 1>&6
1077 echo $ac_n "checking build system type""... $ac_c" 1>&6
1078 echo "configure:1079: checking build system type" >&5
1081 case "$build_alias" in
1084 NONE
) build_alias
=$host_alias ;;
1085 *) build_alias
=$nonopt ;;
1089 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1090 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1091 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1092 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1093 echo "$ac_t""$build" 1>&6
1095 # Extract the first word of "ranlib", so it can be a program name with args.
1096 set dummy ranlib
; ac_word
=$2
1097 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1098 echo "configure:1099: checking for $ac_word" >&5
1099 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&6
1102 if test -n "$RANLIB"; then
1103 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1105 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1107 for ac_dir
in $ac_dummy; do
1108 test -z "$ac_dir" && ac_dir
=.
1109 if test -f $ac_dir/$ac_word; then
1110 ac_cv_prog_RANLIB
="ranlib"
1115 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1118 RANLIB
="$ac_cv_prog_RANLIB"
1119 if test -n "$RANLIB"; then
1120 echo "$ac_t""$RANLIB" 1>&6
1122 echo "$ac_t""no" 1>&6
1125 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1126 if test "${with_gnu_ld+set}" = set; then
1127 withval
="$with_gnu_ld"
1128 test "$withval" = no || with_gnu_ld
=yes
1134 if test "$ac_cv_prog_gcc" = yes; then
1135 # Check if gcc -print-prog-name=ld gives a path.
1136 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1137 echo "configure:1138: checking for ld used by GCC" >&5
1138 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1140 # Accept absolute paths.
1141 [\\/]* |
[A-Za-z
]:[\\/]*)
1142 re_direlt
='/[^/][^/]*/\.\./'
1143 # Canonicalize the path of ld
1144 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1145 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1146 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1148 test -z "$LD" && LD
="$ac_prog"
1151 # If it fails, then pretend we aren't using GCC.
1155 # If it is relative, then search for the first ld in PATH.
1159 elif test "$with_gnu_ld" = yes; then
1160 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1161 echo "configure:1162: checking for GNU ld" >&5
1163 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1164 echo "configure:1165: checking for non-GNU ld" >&5
1166 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1167 echo $ac_n "(cached) $ac_c" 1>&6
1169 if test -z "$LD"; then
1170 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1171 for ac_dir
in $PATH; do
1172 test -z "$ac_dir" && ac_dir
=.
1173 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1174 ac_cv_path_LD
="$ac_dir/$ac_prog"
1175 # Check to see if the program is GNU ld. I'd rather use --version,
1176 # but apparently some GNU ld's only accept -v.
1177 # Break only if it was the GNU/non-GNU ld that we prefer.
1178 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1179 test "$with_gnu_ld" != no
&& break
1181 test "$with_gnu_ld" != yes && break
1187 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1192 if test -n "$LD"; then
1193 echo "$ac_t""$LD" 1>&6
1195 echo "$ac_t""no" 1>&6
1197 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1198 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1199 echo "configure:1200: checking if the linker ($LD) is GNU ld" >&5
1200 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1203 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1204 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1205 ac_cv_prog_gnu_ld
=yes
1207 ac_cv_prog_gnu_ld
=no
1211 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1214 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1215 echo "configure:1216: checking for BSD-compatible nm" >&5
1216 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1219 if test -n "$NM"; then
1220 # Let the user override the test.
1223 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1224 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1225 test -z "$ac_dir" && ac_dir
=.
1226 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1227 # Check to see if the nm accepts a BSD-compat flag.
1228 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1229 # nm: unknown option "B" ignored
1230 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1231 ac_cv_path_NM
="$ac_dir/nm -B"
1233 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1234 ac_cv_path_NM
="$ac_dir/nm -p"
1237 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1238 continue # so that we can try to find one that supports BSD flags
1243 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1248 echo "$ac_t""$NM" 1>&6
1250 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1251 echo "configure:1252: checking whether ln -s works" >&5
1252 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1253 echo $ac_n "(cached) $ac_c" 1>&6
1256 if ln -s X conftestdata
2>/dev
/null
1259 ac_cv_prog_LN_S
="ln -s"
1264 LN_S
="$ac_cv_prog_LN_S"
1265 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1266 echo "$ac_t""yes" 1>&6
1268 echo "$ac_t""no" 1>&6
1273 NONE
) lt_target
="$host" ;;
1274 *) lt_target
="$target" ;;
1277 # Check for any special flags to pass to ltconfig.
1278 libtool_flags
="--cache-file=$cache_file"
1279 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1280 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1281 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1282 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1283 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1286 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1287 if test "${enable_libtool_lock+set}" = set; then
1288 enableval
="$enable_libtool_lock"
1292 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1293 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1295 # Some flags need to be propagated to the compiler or linker for good
1297 case "$lt_target" in
1299 # Find out which ABI we are using.
1300 echo '#line 1301 "configure"' > conftest.
$ac_ext
1301 if { (eval echo configure
:1302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1302 case "`/usr/bin/file conftest.o`" in
1318 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1319 SAVE_CFLAGS
="$CFLAGS"
1320 CFLAGS
="$CFLAGS -belf"
1321 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1322 echo "configure:1323: checking whether the C compiler needs -belf" >&5
1323 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1326 cat > conftest.
$ac_ext <<EOF
1327 #line 1328 "configure"
1328 #include "confdefs.h"
1334 if { (eval echo configure
:1335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1336 lt_cv_cc_needs_belf
=yes
1338 echo "configure: failed program was:" >&5
1339 cat conftest.
$ac_ext >&5
1341 lt_cv_cc_needs_belf
=no
1346 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1347 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1348 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1349 CFLAGS
="$SAVE_CFLAGS"
1357 # Save cache, so that ltconfig can load it
1358 cat > confcache
<<\EOF
1359 # This file is a shell script that caches the results of configure
1360 # tests run on this system so they can be shared between configure
1361 # scripts and configure runs. It is not useful on other systems.
1362 # If it contains results you don't want to keep, you may remove or edit it.
1364 # By default, configure uses ./config.cache as the cache file,
1365 # creating it if it does not exist already. You can give configure
1366 # the --cache-file=FILE option to use a different cache file; that is
1367 # what configure does when it calls configure scripts in
1368 # subdirectories, so they share the cache.
1369 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1370 # config.status only pays attention to the cache file if you give it the
1371 # --recheck option to rerun configure.
1374 # The following way of writing the cache mishandles newlines in values,
1375 # but we know of no workaround that is simple, portable, and efficient.
1376 # So, don't put newlines in cache variables' values.
1377 # Ultrix sh set writes to stderr and can't be redirected directly,
1378 # and sets the high bit in the cache file unless we assign to the vars.
1380 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1382 # `set' does not quote correctly, so add quotes (double-quote substitution
1383 # turns \\\\ into \\, and sed turns \\ into \).
1385 -e "s/'/'\\\\''/g" \
1386 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1389 # `set' quotes correctly as required by POSIX, so do not add quotes.
1390 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1393 if cmp -s $cache_file confcache
; then
1396 if test -w $cache_file; then
1397 echo "updating cache $cache_file"
1398 cat confcache
> $cache_file
1400 echo "not updating unwritable cache $cache_file"
1406 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1407 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1408 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1409 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1410 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1411 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1412 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$lt_target \
1413 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1415 # Reload cache, that may have been modified by ltconfig
1416 if test -r "$cache_file"; then
1417 echo "loading cache $cache_file"
1420 echo "creating cache $cache_file"
1425 # This can be used to rebuild libtool when needed
1426 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1428 # Always use our own libtool.
1429 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1431 # Redirect the config.log output again, so that the ltconfig log is not
1432 # clobbered by the next message.
1433 exec 5>>.
/config.log
1437 if test "x$CC" != xcc
; then
1438 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1439 echo "configure:1440: checking whether $CC and cc understand -c and -o together" >&5
1441 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1442 echo "configure:1443: checking whether cc understands -c and -o together" >&5
1444 set dummy
$CC; ac_cc
="`echo $2 |
1445 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1446 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1449 echo 'foo(){}' > conftest.c
1450 # Make sure it works both with $CC and with simple cc.
1451 # We do the test twice because some compilers refuse to overwrite an
1452 # existing .o file with -o, though they will create one.
1453 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1454 if { (eval echo configure
:1455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1455 test -f conftest.o
&& { (eval echo configure
:1456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1457 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1458 if test "x$CC" != xcc
; then
1459 # Test first that cc exists at all.
1460 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1461 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1462 if { (eval echo configure
:1463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1463 test -f conftest.o
&& { (eval echo configure
:1464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1468 # cc exists but doesn't like -o.
1469 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1474 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1479 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1480 echo "$ac_t""yes" 1>&6
1482 echo "$ac_t""no" 1>&6
1483 cat >> confdefs.h
<<\EOF
1484 #define NO_MINUS_C_MINUS_O 1
1489 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1496 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1497 echo "configure:1498: checking that the C compiler understands volatile" >&5
1498 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1502 cat > conftest.
$ac_ext <<EOF
1503 #line 1504 "configure"
1504 #include "confdefs.h"
1505 #include <sys/types.h>
1510 if { (eval echo configure
:1511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1512 samba_cv_volatile
=yes
1514 echo "configure: failed program was:" >&5
1515 cat conftest.
$ac_ext >&5
1517 samba_cv_volatile
=no
1522 echo "$ac_t""$samba_cv_volatile" 1>&6
1523 if test x
"$samba_cv_volatile" = x
"yes"; then
1524 cat >> confdefs.h
<<\EOF
1525 #define HAVE_VOLATILE 1
1531 #################################################
1532 # set codepage directory location
1533 # Check whether --with-codepagedir or --without-codepagedir was given.
1534 if test "${with_codepagedir+set}" = set; then
1535 withval
="$with_codepagedir"
1539 # Just in case anybody does it
1541 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
1544 codepagedir
="$withval"
1552 # Do some error checking and defaulting for the host and target type.
1554 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1557 # 1. You are not allowed to specify --host, --target, and nonopt at the
1559 # 2. Host defaults to nonopt.
1560 # 3. If nonopt is not specified, then host defaults to the current host,
1561 # as determined by config.guess.
1562 # 4. Target and build default to nonopt.
1563 # 5. If nonopt is not specified, then target and build default to host.
1565 # The aliases save the names the user supplied, while $host etc.
1566 # will get canonicalized.
1567 case $host---$target---$nonopt in
1568 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1569 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1573 # Make sure we can run config.sub.
1574 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1575 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1578 echo $ac_n "checking host system type""... $ac_c" 1>&6
1579 echo "configure:1580: checking host system type" >&5
1582 case "$host_alias" in
1586 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1587 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1589 *) host_alias
=$nonopt ;;
1593 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1594 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1595 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1596 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1597 echo "$ac_t""$host" 1>&6
1599 echo $ac_n "checking target system type""... $ac_c" 1>&6
1600 echo "configure:1601: checking target system type" >&5
1602 target_alias
=$target
1603 case "$target_alias" in
1606 NONE
) target_alias
=$host_alias ;;
1607 *) target_alias
=$nonopt ;;
1611 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1612 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1613 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1614 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1615 echo "$ac_t""$target" 1>&6
1617 echo $ac_n "checking build system type""... $ac_c" 1>&6
1618 echo "configure:1619: checking build system type" >&5
1621 case "$build_alias" in
1624 NONE
) build_alias
=$host_alias ;;
1625 *) build_alias
=$nonopt ;;
1629 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1630 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1631 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1632 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1633 echo "$ac_t""$build" 1>&6
1635 test "$host_alias" != "$target_alias" &&
1636 test "$program_prefix$program_suffix$program_transform_name" = \
1638 program_prefix
=${target_alias}-
1642 *irix6
*) cat >> confdefs.h
<<\EOF
1643 #include <standards.h>
1651 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1652 echo "configure:1653: checking config.cache system type" >&5
1653 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1654 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1655 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1656 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1657 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1658 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1659 echo "$ac_t""different" 1>&6
1660 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1662 echo "$ac_t""same" 1>&6
1664 ac_cv_host_system_type
="$host"
1665 ac_cv_build_system_type
="$build"
1666 ac_cv_target_system_type
="$target"
1670 # Config CPPFLAG settings for strange OS's that must be set
1671 # before other tests.
1674 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1676 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1677 echo "configure:1678: checking whether ${CC-cc} accepts -Ae" >&5
1678 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1679 echo $ac_n "(cached) $ac_c" 1>&6
1681 echo 'void f(){}' > conftest.c
1682 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1683 ac_cv_prog_cc_Ae
=yes
1691 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1692 if test $ac_cv_prog_cc_Ae = yes; then
1693 CPPFLAGS
="$CPPFLAGS -Ae"
1696 # Defines needed for HPUX support.
1697 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1698 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1702 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1703 cat >> confdefs.h
<<\EOF
1704 #define USE_BOTH_CRYPT_CALLS 1
1709 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1710 cat >> confdefs.h
<<\EOF
1711 #define USE_BOTH_CRYPT_CALLS 1
1718 # AIX4.x doesn't even admit to having large
1719 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1722 echo "$ac_t""enabling large file support" 1>&6
1723 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1726 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1727 # to the existance of large files..
1728 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1729 # recommendations on large file support, however it makes the
1730 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1731 # recommendation makes the compile fail on gcc2.7. JRA.
1736 echo "$ac_t""enabling large file support" 1>&6
1737 if test "$ac_cv_prog_gcc" = yes; then
1738 ${CC-cc} -v >conftest.c
2>&1
1739 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1741 case "$ac_cv_gcc_compiler_version_number" in
1742 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1743 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1746 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1750 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1756 # Tests needed for SINIX large file support.
1759 if test $host = mips-sni-sysv4
; then
1760 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1761 echo "configure:1762: checking for LFS support" >&5
1762 old_CPPFLAGS
="$CPPFLAGS"
1763 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1764 if test "$cross_compiling" = yes; then
1765 SINIX_LFS_SUPPORT
=cross
1767 cat > conftest.
$ac_ext <<EOF
1768 #line 1769 "configure"
1769 #include "confdefs.h"
1773 #if _LFS64_LARGEFILE == 1
1780 if { (eval echo configure
:1781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1782 SINIX_LFS_SUPPORT
=yes
1784 echo "configure: failed program was:" >&5
1785 cat conftest.
$ac_ext >&5
1787 SINIX_LFS_SUPPORT
=no
1792 CPPFLAGS
="$old_CPPFLAGS"
1793 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1794 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1795 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1796 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1797 LIBS
="`getconf LFS64_LIBS` $LIBS"
1799 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1803 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1806 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1807 echo "configure:1808: checking for LFS support" >&5
1808 old_CPPFLAGS
="$CPPFLAGS"
1809 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1810 if test "$cross_compiling" = yes; then
1811 LINUX_LFS_SUPPORT
=cross
1813 cat > conftest.
$ac_ext <<EOF
1814 #line 1815 "configure"
1815 #include "confdefs.h"
1818 #include <sys/utsname.h>
1820 #if _LFS64_LARGEFILE == 1
1825 /* Ensure this is glibc 2.2 or higher */
1826 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1827 int libc_major = __GLIBC__;
1828 int libc_minor = __GLIBC_MINOR__;
1836 /* Ensure this is kernel 2.4 or higher */
1839 release = uts.release;
1840 major = atoi(strsep(&release, "."));
1841 minor = atoi(strsep(&release, "."));
1843 if (major > 2 || (major == 2 && minor > 3))
1852 if { (eval echo configure
:1853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1854 LINUX_LFS_SUPPORT
=yes
1856 echo "configure: failed program was:" >&5
1857 cat conftest.
$ac_ext >&5
1859 LINUX_LFS_SUPPORT
=no
1864 CPPFLAGS
="$old_CPPFLAGS"
1865 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1866 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1868 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1872 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1873 echo "configure:1874: checking for LFS support" >&5
1874 old_CPPFLAGS
="$CPPFLAGS"
1875 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1876 if test "$cross_compiling" = yes; then
1877 GLIBC_LFS_SUPPORT
=cross
1879 cat > conftest.
$ac_ext <<EOF
1880 #line 1881 "configure"
1881 #include "confdefs.h"
1885 #if _LFS64_LARGEFILE == 1
1892 if { (eval echo configure
:1893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1894 GLIBC_LFS_SUPPORT
=yes
1896 echo "configure: failed program was:" >&5
1897 cat conftest.
$ac_ext >&5
1899 GLIBC_LFS_SUPPORT
=no
1904 CPPFLAGS
="$old_CPPFLAGS"
1905 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1906 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1908 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1913 echo $ac_n "checking for inline""... $ac_c" 1>&6
1914 echo "configure:1915: checking for inline" >&5
1915 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1916 echo $ac_n "(cached) $ac_c" 1>&6
1919 for ac_kw
in inline __inline__ __inline
; do
1920 cat > conftest.
$ac_ext <<EOF
1921 #line 1922 "configure"
1922 #include "confdefs.h"
1928 if { (eval echo configure
:1929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1930 ac_cv_c_inline
=$ac_kw; break
1932 echo "configure: failed program was:" >&5
1933 cat conftest.
$ac_ext >&5
1940 echo "$ac_t""$ac_cv_c_inline" 1>&6
1941 case "$ac_cv_c_inline" in
1943 no
) cat >> confdefs.h
<<\EOF
1947 *) cat >> confdefs.h
<<EOF
1948 #define inline $ac_cv_c_inline
1953 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1954 echo "configure:1955: checking how to run the C preprocessor" >&5
1955 # On Suns, sometimes $CPP names a directory.
1956 if test -n "$CPP" && test -d "$CPP"; then
1959 if test -z "$CPP"; then
1960 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1961 echo $ac_n "(cached) $ac_c" 1>&6
1963 # This must be in double quotes, not single quotes, because CPP may get
1964 # substituted into the Makefile and "${CC-cc}" will confuse make.
1966 # On the NeXT, cc -E runs the code through the compiler's parser,
1967 # not just through cpp.
1968 cat > conftest.
$ac_ext <<EOF
1969 #line 1970 "configure"
1970 #include "confdefs.h"
1974 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1975 { (eval echo configure
:1976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1976 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1977 if test -z "$ac_err"; then
1981 echo "configure: failed program was:" >&5
1982 cat conftest.
$ac_ext >&5
1984 CPP
="${CC-cc} -E -traditional-cpp"
1985 cat > conftest.
$ac_ext <<EOF
1986 #line 1987 "configure"
1987 #include "confdefs.h"
1991 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1992 { (eval echo configure
:1993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1993 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1994 if test -z "$ac_err"; then
1998 echo "configure: failed program was:" >&5
1999 cat conftest.
$ac_ext >&5
2001 CPP
="${CC-cc} -nologo -E"
2002 cat > conftest.
$ac_ext <<EOF
2003 #line 2004 "configure"
2004 #include "confdefs.h"
2008 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2009 { (eval echo configure
:2010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2010 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2011 if test -z "$ac_err"; then
2015 echo "configure: failed program was:" >&5
2016 cat conftest.
$ac_ext >&5
2025 ac_cv_prog_CPP
="$CPP"
2027 CPP
="$ac_cv_prog_CPP"
2029 ac_cv_prog_CPP
="$CPP"
2031 echo "$ac_t""$CPP" 1>&6
2033 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2034 echo "configure:2035: checking for ANSI C header files" >&5
2035 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2036 echo $ac_n "(cached) $ac_c" 1>&6
2038 cat > conftest.
$ac_ext <<EOF
2039 #line 2040 "configure"
2040 #include "confdefs.h"
2046 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2047 { (eval echo configure
:2048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2048 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2049 if test -z "$ac_err"; then
2051 ac_cv_header_stdc
=yes
2054 echo "configure: failed program was:" >&5
2055 cat conftest.
$ac_ext >&5
2057 ac_cv_header_stdc
=no
2061 if test $ac_cv_header_stdc = yes; then
2062 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2063 cat > conftest.
$ac_ext <<EOF
2064 #line 2065 "configure"
2065 #include "confdefs.h"
2068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2069 egrep "memchr" >/dev
/null
2>&1; then
2073 ac_cv_header_stdc
=no
2079 if test $ac_cv_header_stdc = yes; then
2080 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2081 cat > conftest.
$ac_ext <<EOF
2082 #line 2083 "configure"
2083 #include "confdefs.h"
2086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2087 egrep "free" >/dev
/null
2>&1; then
2091 ac_cv_header_stdc
=no
2097 if test $ac_cv_header_stdc = yes; then
2098 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2099 if test "$cross_compiling" = yes; then
2102 cat > conftest.
$ac_ext <<EOF
2103 #line 2104 "configure"
2104 #include "confdefs.h"
2106 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2107 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2108 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2109 int main () { int i; for (i = 0; i < 256; i++)
2110 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2114 if { (eval echo configure
:2115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2118 echo "configure: failed program was:" >&5
2119 cat conftest.
$ac_ext >&5
2121 ac_cv_header_stdc
=no
2129 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2130 if test $ac_cv_header_stdc = yes; then
2131 cat >> confdefs.h
<<\EOF
2132 #define STDC_HEADERS 1
2138 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2140 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2141 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2142 echo "configure:2143: checking for $ac_hdr that defines DIR" >&5
2143 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2144 echo $ac_n "(cached) $ac_c" 1>&6
2146 cat > conftest.
$ac_ext <<EOF
2147 #line 2148 "configure"
2148 #include "confdefs.h"
2149 #include <sys/types.h>
2155 if { (eval echo configure
:2156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2157 eval "ac_cv_header_dirent_$ac_safe=yes"
2159 echo "configure: failed program was:" >&5
2160 cat conftest.
$ac_ext >&5
2162 eval "ac_cv_header_dirent_$ac_safe=no"
2166 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2167 echo "$ac_t""yes" 1>&6
2168 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2169 cat >> confdefs.h
<<EOF
2170 #define $ac_tr_hdr 1
2172 ac_header_dirent
=$ac_hdr; break
2174 echo "$ac_t""no" 1>&6
2177 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2178 if test $ac_header_dirent = dirent.h
; then
2179 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2180 echo "configure:2181: checking for opendir in -ldir" >&5
2181 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2185 ac_save_LIBS
="$LIBS"
2187 cat > conftest.
$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2190 /* Override any gcc2 internal prototype to avoid an error. */
2191 /* We use char because int might match the return type of a gcc2
2192 builtin and then its argument prototype would still apply. */
2199 if { (eval echo configure
:2200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2201 eval "ac_cv_lib_$ac_lib_var=yes"
2203 echo "configure: failed program was:" >&5
2204 cat conftest.
$ac_ext >&5
2206 eval "ac_cv_lib_$ac_lib_var=no"
2209 LIBS
="$ac_save_LIBS"
2212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2213 echo "$ac_t""yes" 1>&6
2216 echo "$ac_t""no" 1>&6
2220 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2221 echo "configure:2222: checking for opendir in -lx" >&5
2222 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2223 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2226 ac_save_LIBS
="$LIBS"
2228 cat > conftest.
$ac_ext <<EOF
2229 #line 2230 "configure"
2230 #include "confdefs.h"
2231 /* Override any gcc2 internal prototype to avoid an error. */
2232 /* We use char because int might match the return type of a gcc2
2233 builtin and then its argument prototype would still apply. */
2240 if { (eval echo configure
:2241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2242 eval "ac_cv_lib_$ac_lib_var=yes"
2244 echo "configure: failed program was:" >&5
2245 cat conftest.
$ac_ext >&5
2247 eval "ac_cv_lib_$ac_lib_var=no"
2250 LIBS
="$ac_save_LIBS"
2253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2254 echo "$ac_t""yes" 1>&6
2257 echo "$ac_t""no" 1>&6
2262 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2263 echo "configure:2264: checking whether time.h and sys/time.h may both be included" >&5
2264 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2267 cat > conftest.
$ac_ext <<EOF
2268 #line 2269 "configure"
2269 #include "confdefs.h"
2270 #include <sys/types.h>
2271 #include <sys/time.h>
2277 if { (eval echo configure
:2278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2279 ac_cv_header_time
=yes
2281 echo "configure: failed program was:" >&5
2282 cat conftest.
$ac_ext >&5
2284 ac_cv_header_time
=no
2289 echo "$ac_t""$ac_cv_header_time" 1>&6
2290 if test $ac_cv_header_time = yes; then
2291 cat >> confdefs.h
<<\EOF
2292 #define TIME_WITH_SYS_TIME 1
2297 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2298 echo "configure:2299: checking for sys/wait.h that is POSIX.1 compatible" >&5
2299 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2302 cat > conftest.
$ac_ext <<EOF
2303 #line 2304 "configure"
2304 #include "confdefs.h"
2305 #include <sys/types.h>
2306 #include <sys/wait.h>
2308 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2311 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2316 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2319 if { (eval echo configure
:2320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2321 ac_cv_header_sys_wait_h
=yes
2323 echo "configure: failed program was:" >&5
2324 cat conftest.
$ac_ext >&5
2326 ac_cv_header_sys_wait_h
=no
2331 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2332 if test $ac_cv_header_sys_wait_h = yes; then
2333 cat >> confdefs.h
<<\EOF
2334 #define HAVE_SYS_WAIT_H 1
2339 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2341 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2342 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2343 echo "configure:2344: checking for $ac_hdr" >&5
2344 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2345 echo $ac_n "(cached) $ac_c" 1>&6
2347 cat > conftest.
$ac_ext <<EOF
2348 #line 2349 "configure"
2349 #include "confdefs.h"
2352 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2353 { (eval echo configure
:2354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2354 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2355 if test -z "$ac_err"; then
2357 eval "ac_cv_header_$ac_safe=yes"
2360 echo "configure: failed program was:" >&5
2361 cat conftest.
$ac_ext >&5
2363 eval "ac_cv_header_$ac_safe=no"
2367 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2368 echo "$ac_t""yes" 1>&6
2369 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2370 cat >> confdefs.h
<<EOF
2371 #define $ac_tr_hdr 1
2375 echo "$ac_t""no" 1>&6
2379 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2381 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2382 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2383 echo "configure:2384: checking for $ac_hdr" >&5
2384 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2385 echo $ac_n "(cached) $ac_c" 1>&6
2387 cat > conftest.
$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2392 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2393 { (eval echo configure
:2394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2394 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2395 if test -z "$ac_err"; then
2397 eval "ac_cv_header_$ac_safe=yes"
2400 echo "configure: failed program was:" >&5
2401 cat conftest.
$ac_ext >&5
2403 eval "ac_cv_header_$ac_safe=no"
2407 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2408 echo "$ac_t""yes" 1>&6
2409 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2410 cat >> confdefs.h
<<EOF
2411 #define $ac_tr_hdr 1
2415 echo "$ac_t""no" 1>&6
2419 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2421 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2422 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2423 echo "configure:2424: checking for $ac_hdr" >&5
2424 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2425 echo $ac_n "(cached) $ac_c" 1>&6
2427 cat > conftest.
$ac_ext <<EOF
2428 #line 2429 "configure"
2429 #include "confdefs.h"
2432 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2433 { (eval echo configure
:2434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2434 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2435 if test -z "$ac_err"; then
2437 eval "ac_cv_header_$ac_safe=yes"
2440 echo "configure: failed program was:" >&5
2441 cat conftest.
$ac_ext >&5
2443 eval "ac_cv_header_$ac_safe=no"
2447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2448 echo "$ac_t""yes" 1>&6
2449 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2450 cat >> confdefs.h
<<EOF
2451 #define $ac_tr_hdr 1
2455 echo "$ac_t""no" 1>&6
2459 for ac_hdr
in sys
/param.h ctype.h sys
/un.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/ipc.h sys
/mode.h
2461 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2462 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2463 echo "configure:2464: checking for $ac_hdr" >&5
2464 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2465 echo $ac_n "(cached) $ac_c" 1>&6
2467 cat > conftest.
$ac_ext <<EOF
2468 #line 2469 "configure"
2469 #include "confdefs.h"
2472 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2473 { (eval echo configure
:2474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2474 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2475 if test -z "$ac_err"; then
2477 eval "ac_cv_header_$ac_safe=yes"
2480 echo "configure: failed program was:" >&5
2481 cat conftest.
$ac_ext >&5
2483 eval "ac_cv_header_$ac_safe=no"
2487 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2488 echo "$ac_t""yes" 1>&6
2489 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2490 cat >> confdefs.h
<<EOF
2491 #define $ac_tr_hdr 1
2495 echo "$ac_t""no" 1>&6
2499 for ac_hdr
in sys
/mman.h sys
/filio.h sys
/priv.h sys
/shm.h string.h
strings.h stdlib.h sys
/socket.h
2501 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2502 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2503 echo "configure:2504: checking for $ac_hdr" >&5
2504 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2505 echo $ac_n "(cached) $ac_c" 1>&6
2507 cat > conftest.
$ac_ext <<EOF
2508 #line 2509 "configure"
2509 #include "confdefs.h"
2512 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2513 { (eval echo configure
:2514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2514 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2515 if test -z "$ac_err"; then
2517 eval "ac_cv_header_$ac_safe=yes"
2520 echo "configure: failed program was:" >&5
2521 cat conftest.
$ac_ext >&5
2523 eval "ac_cv_header_$ac_safe=no"
2527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2528 echo "$ac_t""yes" 1>&6
2529 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2530 cat >> confdefs.h
<<EOF
2531 #define $ac_tr_hdr 1
2535 echo "$ac_t""no" 1>&6
2539 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2541 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2542 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2543 echo "configure:2544: checking for $ac_hdr" >&5
2544 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2547 cat > conftest.
$ac_ext <<EOF
2548 #line 2549 "configure"
2549 #include "confdefs.h"
2552 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2553 { (eval echo configure
:2554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2554 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2555 if test -z "$ac_err"; then
2557 eval "ac_cv_header_$ac_safe=yes"
2560 echo "configure: failed program was:" >&5
2561 cat conftest.
$ac_ext >&5
2563 eval "ac_cv_header_$ac_safe=no"
2567 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2568 echo "$ac_t""yes" 1>&6
2569 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2570 cat >> confdefs.h
<<EOF
2571 #define $ac_tr_hdr 1
2575 echo "$ac_t""no" 1>&6
2579 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.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 security
/pam_modules.h security
/_pam_macros.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
2661 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2662 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2666 cat > conftest.
$ac_ext <<EOF
2667 #line 2668 "configure"
2668 #include "confdefs.h"
2674 if { (eval echo configure
:2675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2676 ac_cv_header_shadow_h
=yes
2678 echo "configure: failed program was:" >&5
2679 cat conftest.
$ac_ext >&5
2681 ac_cv_header_shadow_h
=no
2684 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2685 cat >> confdefs.h
<<\EOF
2686 #define HAVE_SHADOW_H 1
2692 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2694 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2695 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2696 echo "configure:2697: checking for $ac_hdr" >&5
2697 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2700 cat > conftest.
$ac_ext <<EOF
2701 #line 2702 "configure"
2702 #include "confdefs.h"
2705 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2706 { (eval echo configure
:2707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2707 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2708 if test -z "$ac_err"; then
2710 eval "ac_cv_header_$ac_safe=yes"
2713 echo "configure: failed program was:" >&5
2714 cat conftest.
$ac_ext >&5
2716 eval "ac_cv_header_$ac_safe=no"
2720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2721 echo "$ac_t""yes" 1>&6
2722 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2723 cat >> confdefs.h
<<EOF
2724 #define $ac_tr_hdr 1
2728 echo "$ac_t""no" 1>&6
2732 for ac_hdr
in nss.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2734 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2735 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2736 echo "configure:2737: checking for $ac_hdr" >&5
2737 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2738 echo $ac_n "(cached) $ac_c" 1>&6
2740 cat > conftest.
$ac_ext <<EOF
2741 #line 2742 "configure"
2742 #include "confdefs.h"
2745 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2746 { (eval echo configure
:2747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2747 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2748 if test -z "$ac_err"; then
2750 eval "ac_cv_header_$ac_safe=yes"
2753 echo "configure: failed program was:" >&5
2754 cat conftest.
$ac_ext >&5
2756 eval "ac_cv_header_$ac_safe=no"
2760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2761 echo "$ac_t""yes" 1>&6
2762 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2763 cat >> confdefs.h
<<EOF
2764 #define $ac_tr_hdr 1
2768 echo "$ac_t""no" 1>&6
2772 for ac_hdr
in stropts.h poll.h
2774 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2775 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2776 echo "configure:2777: checking for $ac_hdr" >&5
2777 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2778 echo $ac_n "(cached) $ac_c" 1>&6
2780 cat > conftest.
$ac_ext <<EOF
2781 #line 2782 "configure"
2782 #include "confdefs.h"
2785 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2786 { (eval echo configure
:2787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2787 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2788 if test -z "$ac_err"; then
2790 eval "ac_cv_header_$ac_safe=yes"
2793 echo "configure: failed program was:" >&5
2794 cat conftest.
$ac_ext >&5
2796 eval "ac_cv_header_$ac_safe=no"
2800 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2801 echo "$ac_t""yes" 1>&6
2802 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2803 cat >> confdefs.h
<<EOF
2804 #define $ac_tr_hdr 1
2808 echo "$ac_t""no" 1>&6
2812 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2814 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2815 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2816 echo "configure:2817: checking for $ac_hdr" >&5
2817 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2818 echo $ac_n "(cached) $ac_c" 1>&6
2820 cat > conftest.
$ac_ext <<EOF
2821 #line 2822 "configure"
2822 #include "confdefs.h"
2825 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2826 { (eval echo configure
:2827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2827 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2828 if test -z "$ac_err"; then
2830 eval "ac_cv_header_$ac_safe=yes"
2833 echo "configure: failed program was:" >&5
2834 cat conftest.
$ac_ext >&5
2836 eval "ac_cv_header_$ac_safe=no"
2840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2841 echo "$ac_t""yes" 1>&6
2842 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2843 cat >> confdefs.h
<<EOF
2844 #define $ac_tr_hdr 1
2848 echo "$ac_t""no" 1>&6
2852 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h acl
/acl.h
2854 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2855 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2856 echo "configure:2857: checking for $ac_hdr" >&5
2857 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2858 echo $ac_n "(cached) $ac_c" 1>&6
2860 cat > conftest.
$ac_ext <<EOF
2861 #line 2862 "configure"
2862 #include "confdefs.h"
2865 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2866 { (eval echo configure
:2867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2867 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2868 if test -z "$ac_err"; then
2870 eval "ac_cv_header_$ac_safe=yes"
2873 echo "configure: failed program was:" >&5
2874 cat conftest.
$ac_ext >&5
2876 eval "ac_cv_header_$ac_safe=no"
2880 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2881 echo "$ac_t""yes" 1>&6
2882 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2883 cat >> confdefs.h
<<EOF
2884 #define $ac_tr_hdr 1
2888 echo "$ac_t""no" 1>&6
2893 # For experimental utmp support (lastlog on some BSD-like systems)
2894 for ac_hdr
in utmp.h utmpx.h lastlog.h
2896 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2897 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2898 echo "configure:2899: checking for $ac_hdr" >&5
2899 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2900 echo $ac_n "(cached) $ac_c" 1>&6
2902 cat > conftest.
$ac_ext <<EOF
2903 #line 2904 "configure"
2904 #include "confdefs.h"
2907 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2908 { (eval echo configure
:2909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2909 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2910 if test -z "$ac_err"; then
2912 eval "ac_cv_header_$ac_safe=yes"
2915 echo "configure: failed program was:" >&5
2916 cat conftest.
$ac_ext >&5
2918 eval "ac_cv_header_$ac_safe=no"
2922 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2923 echo "$ac_t""yes" 1>&6
2924 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2925 cat >> confdefs.h
<<EOF
2926 #define $ac_tr_hdr 1
2930 echo "$ac_t""no" 1>&6
2935 # For quotas on Veritas VxFS filesystems
2936 for ac_hdr
in sys
/fs
/vx_quota.h
2938 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2939 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2940 echo "configure:2941: checking for $ac_hdr" >&5
2941 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2942 echo $ac_n "(cached) $ac_c" 1>&6
2944 cat > conftest.
$ac_ext <<EOF
2945 #line 2946 "configure"
2946 #include "confdefs.h"
2949 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2950 { (eval echo configure
:2951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2951 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2952 if test -z "$ac_err"; then
2954 eval "ac_cv_header_$ac_safe=yes"
2957 echo "configure: failed program was:" >&5
2958 cat conftest.
$ac_ext >&5
2960 eval "ac_cv_header_$ac_safe=no"
2964 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2965 echo "$ac_t""yes" 1>&6
2966 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2967 cat >> confdefs.h
<<EOF
2968 #define $ac_tr_hdr 1
2972 echo "$ac_t""no" 1>&6
2977 echo $ac_n "checking size of int""... $ac_c" 1>&6
2978 echo "configure:2979: checking size of int" >&5
2979 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2980 echo $ac_n "(cached) $ac_c" 1>&6
2982 if test "$cross_compiling" = yes; then
2983 ac_cv_sizeof_int
=cross
2985 cat > conftest.
$ac_ext <<EOF
2986 #line 2987 "configure"
2987 #include "confdefs.h"
2991 FILE *f=fopen("conftestval", "w");
2993 fprintf(f, "%d\n", sizeof(int));
2997 if { (eval echo configure
:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2999 ac_cv_sizeof_int
=`cat conftestval`
3001 echo "configure: failed program was:" >&5
3002 cat conftest.
$ac_ext >&5
3010 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3011 cat >> confdefs.h
<<EOF
3012 #define SIZEOF_INT $ac_cv_sizeof_int
3016 echo $ac_n "checking size of long""... $ac_c" 1>&6
3017 echo "configure:3018: checking size of long" >&5
3018 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3019 echo $ac_n "(cached) $ac_c" 1>&6
3021 if test "$cross_compiling" = yes; then
3022 ac_cv_sizeof_long
=cross
3024 cat > conftest.
$ac_ext <<EOF
3025 #line 3026 "configure"
3026 #include "confdefs.h"
3030 FILE *f=fopen("conftestval", "w");
3032 fprintf(f, "%d\n", sizeof(long));
3036 if { (eval echo configure
:3037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3038 ac_cv_sizeof_long
=`cat conftestval`
3040 echo "configure: failed program was:" >&5
3041 cat conftest.
$ac_ext >&5
3049 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3050 cat >> confdefs.h
<<EOF
3051 #define SIZEOF_LONG $ac_cv_sizeof_long
3055 echo $ac_n "checking size of short""... $ac_c" 1>&6
3056 echo "configure:3057: checking size of short" >&5
3057 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3058 echo $ac_n "(cached) $ac_c" 1>&6
3060 if test "$cross_compiling" = yes; then
3061 ac_cv_sizeof_short
=cross
3063 cat > conftest.
$ac_ext <<EOF
3064 #line 3065 "configure"
3065 #include "confdefs.h"
3069 FILE *f=fopen("conftestval", "w");
3071 fprintf(f, "%d\n", sizeof(short));
3075 if { (eval echo configure
:3076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3077 ac_cv_sizeof_short
=`cat conftestval`
3079 echo "configure: failed program was:" >&5
3080 cat conftest.
$ac_ext >&5
3082 ac_cv_sizeof_short
=0
3088 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3089 cat >> confdefs.h
<<EOF
3090 #define SIZEOF_SHORT $ac_cv_sizeof_short
3095 echo $ac_n "checking for working const""... $ac_c" 1>&6
3096 echo "configure:3097: checking for working const" >&5
3097 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3098 echo $ac_n "(cached) $ac_c" 1>&6
3100 cat > conftest.
$ac_ext <<EOF
3101 #line 3102 "configure"
3102 #include "confdefs.h"
3106 /* Ultrix mips cc rejects this. */
3107 typedef int charset[2]; const charset x;
3108 /* SunOS 4.1.1 cc rejects this. */
3109 char const *const *ccp;
3111 /* NEC SVR4.0.2 mips cc rejects this. */
3112 struct point {int x, y;};
3113 static struct point const zero = {0,0};
3114 /* AIX XL C 1.02.0.0 rejects this.
3115 It does not let you subtract one const X* pointer from another in an arm
3116 of an if-expression whose if-part is not a constant expression */
3117 const char *g = "string";
3118 ccp = &g + (g ? g-g : 0);
3119 /* HPUX 7.0 cc rejects these. */
3122 ccp = (char const *const *) p;
3123 { /* SCO 3.2v4 cc rejects this. */
3125 char const *s = 0 ? (char *) 0 : (char const *) 0;
3129 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3131 const int *foo = &x[0];
3134 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3135 typedef const int *iptr;
3139 { /* AIX XL C 1.02.0.0 rejects this saying
3140 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3141 struct s { int j; const int *ap[3]; };
3142 struct s *b; b->j = 5;
3144 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3150 if { (eval echo configure
:3151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3154 echo "configure: failed program was:" >&5
3155 cat conftest.
$ac_ext >&5
3162 echo "$ac_t""$ac_cv_c_const" 1>&6
3163 if test $ac_cv_c_const = no
; then
3164 cat >> confdefs.h
<<\EOF
3170 echo $ac_n "checking for inline""... $ac_c" 1>&6
3171 echo "configure:3172: checking for inline" >&5
3172 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3173 echo $ac_n "(cached) $ac_c" 1>&6
3176 for ac_kw
in inline __inline__ __inline
; do
3177 cat > conftest.
$ac_ext <<EOF
3178 #line 3179 "configure"
3179 #include "confdefs.h"
3185 if { (eval echo configure
:3186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3187 ac_cv_c_inline
=$ac_kw; break
3189 echo "configure: failed program was:" >&5
3190 cat conftest.
$ac_ext >&5
3197 echo "$ac_t""$ac_cv_c_inline" 1>&6
3198 case "$ac_cv_c_inline" in
3200 no
) cat >> confdefs.h
<<\EOF
3204 *) cat >> confdefs.h
<<EOF
3205 #define inline $ac_cv_c_inline
3210 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3211 echo "configure:3212: checking whether byte ordering is bigendian" >&5
3212 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3213 echo $ac_n "(cached) $ac_c" 1>&6
3215 ac_cv_c_bigendian
=unknown
3216 # See if sys/param.h defines the BYTE_ORDER macro.
3217 cat > conftest.
$ac_ext <<EOF
3218 #line 3219 "configure"
3219 #include "confdefs.h"
3220 #include <sys/types.h>
3221 #include <sys/param.h>
3224 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3229 if { (eval echo configure
:3230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3231 # It does; now see whether it defined to BIG_ENDIAN or not.
3232 cat > conftest.
$ac_ext <<EOF
3233 #line 3234 "configure"
3234 #include "confdefs.h"
3235 #include <sys/types.h>
3236 #include <sys/param.h>
3239 #if BYTE_ORDER != BIG_ENDIAN
3244 if { (eval echo configure
:3245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3246 ac_cv_c_bigendian
=yes
3248 echo "configure: failed program was:" >&5
3249 cat conftest.
$ac_ext >&5
3251 ac_cv_c_bigendian
=no
3255 echo "configure: failed program was:" >&5
3256 cat conftest.
$ac_ext >&5
3259 if test $ac_cv_c_bigendian = unknown
; then
3260 if test "$cross_compiling" = yes; then
3261 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3263 cat > conftest.
$ac_ext <<EOF
3264 #line 3265 "configure"
3265 #include "confdefs.h"
3267 /* Are we little or big endian? From Harbison&Steele. */
3271 char c[sizeof (long)];
3274 exit (u.c[sizeof (long) - 1] == 1);
3277 if { (eval echo configure
:3278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3279 ac_cv_c_bigendian
=no
3281 echo "configure: failed program was:" >&5
3282 cat conftest.
$ac_ext >&5
3284 ac_cv_c_bigendian
=yes
3292 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3293 if test $ac_cv_c_bigendian = yes; then
3294 cat >> confdefs.h
<<\EOF
3295 #define WORDS_BIGENDIAN 1
3300 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3301 echo "configure:3302: checking whether char is unsigned" >&5
3302 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3303 echo $ac_n "(cached) $ac_c" 1>&6
3305 if test "$GCC" = yes; then
3306 # GCC predefines this symbol on systems where it applies.
3307 cat > conftest.
$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3310 #ifdef __CHAR_UNSIGNED__
3315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3316 egrep "yes" >/dev
/null
2>&1; then
3318 ac_cv_c_char_unsigned
=yes
3321 ac_cv_c_char_unsigned
=no
3326 if test "$cross_compiling" = yes; then
3327 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3329 cat > conftest.
$ac_ext <<EOF
3330 #line 3331 "configure"
3331 #include "confdefs.h"
3332 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3333 #if !defined(__STDC__) || __STDC__ != 1
3337 volatile char c = 255; exit(c < 0);
3340 if { (eval echo configure
:3341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3342 ac_cv_c_char_unsigned
=yes
3344 echo "configure: failed program was:" >&5
3345 cat conftest.
$ac_ext >&5
3347 ac_cv_c_char_unsigned
=no
3355 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3356 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3357 cat >> confdefs.h
<<\EOF
3358 #define __CHAR_UNSIGNED__ 1
3364 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3365 echo "configure:3366: checking return type of signal handlers" >&5
3366 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3367 echo $ac_n "(cached) $ac_c" 1>&6
3369 cat > conftest.
$ac_ext <<EOF
3370 #line 3371 "configure"
3371 #include "confdefs.h"
3372 #include <sys/types.h>
3378 extern "C" void (*signal (int, void (*)(int)))(int);
3380 void (*signal ()) ();
3387 if { (eval echo configure
:3388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3389 ac_cv_type_signal
=void
3391 echo "configure: failed program was:" >&5
3392 cat conftest.
$ac_ext >&5
3394 ac_cv_type_signal
=int
3399 echo "$ac_t""$ac_cv_type_signal" 1>&6
3400 cat >> confdefs.h
<<EOF
3401 #define RETSIGTYPE $ac_cv_type_signal
3405 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3406 echo "configure:3407: checking for uid_t in sys/types.h" >&5
3407 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3410 cat > conftest.
$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3413 #include <sys/types.h>
3415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3416 egrep "uid_t" >/dev
/null
2>&1; then
3418 ac_cv_type_uid_t
=yes
3427 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3428 if test $ac_cv_type_uid_t = no
; then
3429 cat >> confdefs.h
<<\EOF
3433 cat >> confdefs.h
<<\EOF
3439 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3440 echo "configure:3441: checking for mode_t" >&5
3441 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3442 echo $ac_n "(cached) $ac_c" 1>&6
3444 cat > conftest.
$ac_ext <<EOF
3445 #line 3446 "configure"
3446 #include "confdefs.h"
3447 #include <sys/types.h>
3453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3454 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3456 ac_cv_type_mode_t
=yes
3459 ac_cv_type_mode_t
=no
3464 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3465 if test $ac_cv_type_mode_t = no
; then
3466 cat >> confdefs.h
<<\EOF
3472 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3473 echo "configure:3474: checking for off_t" >&5
3474 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3475 echo $ac_n "(cached) $ac_c" 1>&6
3477 cat > conftest.
$ac_ext <<EOF
3478 #line 3479 "configure"
3479 #include "confdefs.h"
3480 #include <sys/types.h>
3486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3487 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3489 ac_cv_type_off_t
=yes
3497 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3498 if test $ac_cv_type_off_t = no
; then
3499 cat >> confdefs.h
<<\EOF
3505 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3506 echo "configure:3507: checking for size_t" >&5
3507 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3508 echo $ac_n "(cached) $ac_c" 1>&6
3510 cat > conftest.
$ac_ext <<EOF
3511 #line 3512 "configure"
3512 #include "confdefs.h"
3513 #include <sys/types.h>
3519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3520 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3522 ac_cv_type_size_t
=yes
3525 ac_cv_type_size_t
=no
3530 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3531 if test $ac_cv_type_size_t = no
; then
3532 cat >> confdefs.h
<<\EOF
3533 #define size_t unsigned
3538 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3539 echo "configure:3540: checking for pid_t" >&5
3540 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3541 echo $ac_n "(cached) $ac_c" 1>&6
3543 cat > conftest.
$ac_ext <<EOF
3544 #line 3545 "configure"
3545 #include "confdefs.h"
3546 #include <sys/types.h>
3552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3553 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3555 ac_cv_type_pid_t
=yes
3563 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3564 if test $ac_cv_type_pid_t = no
; then
3565 cat >> confdefs.h
<<\EOF
3571 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3572 echo "configure:3573: checking for st_rdev in struct stat" >&5
3573 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3574 echo $ac_n "(cached) $ac_c" 1>&6
3576 cat > conftest.
$ac_ext <<EOF
3577 #line 3578 "configure"
3578 #include "confdefs.h"
3579 #include <sys/types.h>
3580 #include <sys/stat.h>
3582 struct stat s; s.st_rdev;
3585 if { (eval echo configure
:3586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3587 ac_cv_struct_st_rdev
=yes
3589 echo "configure: failed program was:" >&5
3590 cat conftest.
$ac_ext >&5
3592 ac_cv_struct_st_rdev
=no
3597 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3598 if test $ac_cv_struct_st_rdev = yes; then
3599 cat >> confdefs.h
<<\EOF
3600 #define HAVE_ST_RDEV 1
3605 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3606 echo "configure:3607: checking for d_off in dirent" >&5
3607 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3608 echo $ac_n "(cached) $ac_c" 1>&6
3610 cat > conftest.
$ac_ext <<EOF
3611 #line 3612 "configure"
3612 #include "confdefs.h"
3615 #include <sys/types.h>
3618 struct dirent d; d.d_off;
3621 if { (eval echo configure
:3622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3623 ac_cv_dirent_d_off
=yes
3625 echo "configure: failed program was:" >&5
3626 cat conftest.
$ac_ext >&5
3628 ac_cv_dirent_d_off
=no
3633 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3634 if test $ac_cv_dirent_d_off = yes; then
3635 cat >> confdefs.h
<<\EOF
3636 #define HAVE_DIRENT_D_OFF 1
3641 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3642 echo "configure:3643: checking for ino_t" >&5
3643 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3644 echo $ac_n "(cached) $ac_c" 1>&6
3646 cat > conftest.
$ac_ext <<EOF
3647 #line 3648 "configure"
3648 #include "confdefs.h"
3649 #include <sys/types.h>
3655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3656 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3658 ac_cv_type_ino_t
=yes
3666 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3667 if test $ac_cv_type_ino_t = no
; then
3668 cat >> confdefs.h
<<\EOF
3669 #define ino_t unsigned
3674 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3675 echo "configure:3676: checking for loff_t" >&5
3676 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3679 cat > conftest.
$ac_ext <<EOF
3680 #line 3681 "configure"
3681 #include "confdefs.h"
3682 #include <sys/types.h>
3688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3689 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3691 ac_cv_type_loff_t
=yes
3694 ac_cv_type_loff_t
=no
3699 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3700 if test $ac_cv_type_loff_t = no
; then
3701 cat >> confdefs.h
<<\EOF
3702 #define loff_t off_t
3707 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3708 echo "configure:3709: checking for offset_t" >&5
3709 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3710 echo $ac_n "(cached) $ac_c" 1>&6
3712 cat > conftest.
$ac_ext <<EOF
3713 #line 3714 "configure"
3714 #include "confdefs.h"
3715 #include <sys/types.h>
3721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3722 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3724 ac_cv_type_offset_t
=yes
3727 ac_cv_type_offset_t
=no
3732 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3733 if test $ac_cv_type_offset_t = no
; then
3734 cat >> confdefs.h
<<\EOF
3735 #define offset_t loff_t
3740 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3741 echo "configure:3742: checking for ssize_t" >&5
3742 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3743 echo $ac_n "(cached) $ac_c" 1>&6
3745 cat > conftest.
$ac_ext <<EOF
3746 #line 3747 "configure"
3747 #include "confdefs.h"
3748 #include <sys/types.h>
3754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3755 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3757 ac_cv_type_ssize_t
=yes
3760 ac_cv_type_ssize_t
=no
3765 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3766 if test $ac_cv_type_ssize_t = no
; then
3767 cat >> confdefs.h
<<\EOF
3773 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3774 echo "configure:3775: checking for wchar_t" >&5
3775 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3776 echo $ac_n "(cached) $ac_c" 1>&6
3778 cat > conftest.
$ac_ext <<EOF
3779 #line 3780 "configure"
3780 #include "confdefs.h"
3781 #include <sys/types.h>
3787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3788 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3790 ac_cv_type_wchar_t
=yes
3793 ac_cv_type_wchar_t
=no
3798 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3799 if test $ac_cv_type_wchar_t = no
; then
3800 cat >> confdefs.h
<<\EOF
3801 #define wchar_t unsigned short
3807 # we need libcups for CUPS support...
3808 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3809 echo "configure:3810: checking for httpConnect in -lcups" >&5
3810 ac_lib_var
=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3811 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3812 echo $ac_n "(cached) $ac_c" 1>&6
3814 ac_save_LIBS
="$LIBS"
3816 cat > conftest.
$ac_ext <<EOF
3817 #line 3818 "configure"
3818 #include "confdefs.h"
3819 /* Override any gcc2 internal prototype to avoid an error. */
3820 /* We use char because int might match the return type of a gcc2
3821 builtin and then its argument prototype would still apply. */
3828 if { (eval echo configure
:3829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3830 eval "ac_cv_lib_$ac_lib_var=yes"
3832 echo "configure: failed program was:" >&5
3833 cat conftest.
$ac_ext >&5
3835 eval "ac_cv_lib_$ac_lib_var=no"
3838 LIBS
="$ac_save_LIBS"
3841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3842 echo "$ac_t""yes" 1>&6
3843 ac_tr_lib
=HAVE_LIB
`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3844 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3845 cat >> confdefs.h
<<EOF
3846 #define $ac_tr_lib 1
3852 echo "$ac_t""no" 1>&6
3856 # we need libdl for PAM and the new VFS code
3857 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3858 echo "configure:3859: checking for dlopen in -ldl" >&5
3859 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3860 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3861 echo $ac_n "(cached) $ac_c" 1>&6
3863 ac_save_LIBS
="$LIBS"
3865 cat > conftest.
$ac_ext <<EOF
3866 #line 3867 "configure"
3867 #include "confdefs.h"
3868 /* Override any gcc2 internal prototype to avoid an error. */
3869 /* We use char because int might match the return type of a gcc2
3870 builtin and then its argument prototype would still apply. */
3877 if { (eval echo configure
:3878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3879 eval "ac_cv_lib_$ac_lib_var=yes"
3881 echo "configure: failed program was:" >&5
3882 cat conftest.
$ac_ext >&5
3884 eval "ac_cv_lib_$ac_lib_var=no"
3887 LIBS
="$ac_save_LIBS"
3890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3891 echo "$ac_t""yes" 1>&6
3893 cat >> confdefs.h
<<\EOF
3894 #define HAVE_LIBDL 1
3898 echo "$ac_t""no" 1>&6
3902 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3903 echo "configure:3904: checking for sig_atomic_t type" >&5
3904 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3908 cat > conftest.
$ac_ext <<EOF
3909 #line 3910 "configure"
3910 #include "confdefs.h"
3912 #include <sys/types.h>
3922 if { (eval echo configure
:3923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3924 samba_cv_sig_atomic_t
=yes
3926 echo "configure: failed program was:" >&5
3927 cat conftest.
$ac_ext >&5
3929 samba_cv_sig_atomic_t
=no
3934 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3935 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
3936 cat >> confdefs.h
<<\EOF
3937 #define HAVE_SIG_ATOMIC_T_TYPE 1
3942 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
3943 echo "configure:3944: checking for errno in errno.h" >&5
3944 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
3945 echo $ac_n "(cached) $ac_c" 1>&6
3948 cat > conftest.
$ac_ext <<EOF
3949 #line 3950 "configure"
3950 #include "confdefs.h"
3956 if { (eval echo configure
:3957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3960 echo "configure: failed program was:" >&5
3961 cat conftest.
$ac_ext >&5
3963 samba_cv_have_errno
=no
3968 echo "$ac_t""$samba_cv_errno" 1>&6
3969 if test x
"$samba_cv_errno" = x
"yes"; then
3970 cat >> confdefs.h
<<\EOF
3971 #define HAVE_ERRNO_DECL 1
3976 # stupid glibc has the functions but no declaration. grrrr.
3977 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3978 echo "configure:3979: checking for setresuid declaration" >&5
3979 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
3980 echo $ac_n "(cached) $ac_c" 1>&6
3983 cat > conftest.
$ac_ext <<EOF
3984 #line 3985 "configure"
3985 #include "confdefs.h"
3988 int i = (int)setresuid
3991 if { (eval echo configure
:3992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3993 samba_cv_have_setresuid_decl
=yes
3995 echo "configure: failed program was:" >&5
3996 cat conftest.
$ac_ext >&5
3998 samba_cv_have_setresuid_decl
=no
4003 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
4004 if test x
"$samba_cv_have_setresuid_decl" = x
"yes"; then
4005 cat >> confdefs.h
<<\EOF
4006 #define HAVE_SETRESUID_DECL 1
4011 # stupid glibc has the functions but no declaration. grrrr.
4012 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4013 echo "configure:4014: checking for setresgid declaration" >&5
4014 if eval "test \"`echo '$''{'samba_cv_have_setresgid_decl'+set}'`\" = set"; then
4015 echo $ac_n "(cached) $ac_c" 1>&6
4018 cat > conftest.
$ac_ext <<EOF
4019 #line 4020 "configure"
4020 #include "confdefs.h"
4023 int i = (int)setresgid
4026 if { (eval echo configure
:4027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4028 samba_cv_have_setresgid_decl
=yes
4030 echo "configure: failed program was:" >&5
4031 cat conftest.
$ac_ext >&5
4033 samba_cv_have_setresgid_decl
=no
4038 echo "$ac_t""$samba_cv_have_setresgid_decl" 1>&6
4039 if test x
"$samba_cv_have_setresgid_decl" = x
"yes"; then
4040 cat >> confdefs.h
<<\EOF
4041 #define HAVE_SETRESGID_DECL 1
4046 # and glibc has setresuid under linux but the function does
4047 # nothing until kernel 2.1.44! very dumb.
4048 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4049 echo "configure:4050: checking for real setresuid" >&5
4050 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4051 echo $ac_n "(cached) $ac_c" 1>&6
4054 if test "$cross_compiling" = yes; then
4055 samba_cv_have_setresuid
=cross
4057 cat > conftest.
$ac_ext <<EOF
4058 #line 4059 "configure"
4059 #include "confdefs.h"
4061 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4063 if { (eval echo configure
:4064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4065 samba_cv_have_setresuid
=yes
4067 echo "configure: failed program was:" >&5
4068 cat conftest.
$ac_ext >&5
4070 samba_cv_have_setresuid
=no
4077 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4078 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4079 cat >> confdefs.h
<<\EOF
4080 #define HAVE_SETRESUID 1
4085 # Do the same check for setresguid...
4087 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4088 echo "configure:4089: checking for real setresgid" >&5
4089 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4090 echo $ac_n "(cached) $ac_c" 1>&6
4093 if test "$cross_compiling" = yes; then
4094 samba_cv_have_setresgid
=cross
4096 cat > conftest.
$ac_ext <<EOF
4097 #line 4098 "configure"
4098 #include "confdefs.h"
4101 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4103 if { (eval echo configure
:4104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4105 samba_cv_have_setresgid
=yes
4107 echo "configure: failed program was:" >&5
4108 cat conftest.
$ac_ext >&5
4110 samba_cv_have_setresgid
=no
4117 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4118 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4119 cat >> confdefs.h
<<\EOF
4120 #define HAVE_SETRESGID 1
4125 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4126 echo "configure:4127: checking for 8-bit clean memcmp" >&5
4127 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4128 echo $ac_n "(cached) $ac_c" 1>&6
4130 if test "$cross_compiling" = yes; then
4131 ac_cv_func_memcmp_clean
=no
4133 cat > conftest.
$ac_ext <<EOF
4134 #line 4135 "configure"
4135 #include "confdefs.h"
4139 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4140 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4144 if { (eval echo configure
:4145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4146 ac_cv_func_memcmp_clean
=yes
4148 echo "configure: failed program was:" >&5
4149 cat conftest.
$ac_ext >&5
4151 ac_cv_func_memcmp_clean
=no
4158 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4159 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4162 ###############################################
4163 # test for where we get crypt() from
4164 for ac_func
in crypt
4166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4167 echo "configure:4168: checking for $ac_func" >&5
4168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4169 echo $ac_n "(cached) $ac_c" 1>&6
4171 cat > conftest.
$ac_ext <<EOF
4172 #line 4173 "configure"
4173 #include "confdefs.h"
4174 /* System header to define __stub macros and hopefully few prototypes,
4175 which can conflict with char $ac_func(); below. */
4177 /* Override any gcc2 internal prototype to avoid an error. */
4178 /* We use char because int might match the return type of a gcc2
4179 builtin and then its argument prototype would still apply. */
4184 /* The GNU C library defines this for functions which it implements
4185 to always fail with ENOSYS. Some functions are actually named
4186 something starting with __ and the normal name is an alias. */
4187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4195 if { (eval echo configure
:4196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4197 eval "ac_cv_func_$ac_func=yes"
4199 echo "configure: failed program was:" >&5
4200 cat conftest.
$ac_ext >&5
4202 eval "ac_cv_func_$ac_func=no"
4207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4208 echo "$ac_t""yes" 1>&6
4209 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4210 cat >> confdefs.h
<<EOF
4211 #define $ac_tr_func 1
4215 echo "$ac_t""no" 1>&6
4219 if test x
"$ac_cv_func_crypt" = x
"no"; then
4220 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4221 echo "configure:4222: checking for crypt in -lcrypt" >&5
4222 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4223 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4224 echo $ac_n "(cached) $ac_c" 1>&6
4226 ac_save_LIBS
="$LIBS"
4227 LIBS
="-lcrypt $LIBS"
4228 cat > conftest.
$ac_ext <<EOF
4229 #line 4230 "configure"
4230 #include "confdefs.h"
4231 /* Override any gcc2 internal prototype to avoid an error. */
4232 /* We use char because int might match the return type of a gcc2
4233 builtin and then its argument prototype would still apply. */
4240 if { (eval echo configure
:4241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4242 eval "ac_cv_lib_$ac_lib_var=yes"
4244 echo "configure: failed program was:" >&5
4245 cat conftest.
$ac_ext >&5
4247 eval "ac_cv_lib_$ac_lib_var=no"
4250 LIBS
="$ac_save_LIBS"
4253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4254 echo "$ac_t""yes" 1>&6
4255 LIBS
="$LIBS -lcrypt";
4256 cat >> confdefs.h
<<\EOF
4257 #define HAVE_CRYPT 1
4261 echo "$ac_t""no" 1>&6
4267 ###############################################
4268 # Readline included by default unless explicitly asked not to
4269 test "${with_readline+set}" != "set" && with_readline
=yes
4271 # test for where we get readline() from
4272 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4273 echo "configure:4274: checking whether to use readline" >&5
4274 # Check whether --with-readline or --without-readline was given.
4275 if test "${with_readline+set}" = set; then
4276 withval
="$with_readline"
4277 case "$with_readline" in
4279 echo "$ac_t""yes" 1>&6
4281 for ac_hdr
in readline.h
history.h readline
/readline.h
4283 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4284 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4285 echo "configure:4286: checking for $ac_hdr" >&5
4286 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4287 echo $ac_n "(cached) $ac_c" 1>&6
4289 cat > conftest.
$ac_ext <<EOF
4290 #line 4291 "configure"
4291 #include "confdefs.h"
4294 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4295 { (eval echo configure
:4296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4296 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4297 if test -z "$ac_err"; then
4299 eval "ac_cv_header_$ac_safe=yes"
4302 echo "configure: failed program was:" >&5
4303 cat conftest.
$ac_ext >&5
4305 eval "ac_cv_header_$ac_safe=no"
4309 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4310 echo "$ac_t""yes" 1>&6
4311 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4312 cat >> confdefs.h
<<EOF
4313 #define $ac_tr_hdr 1
4317 echo "$ac_t""no" 1>&6
4321 for ac_hdr
in readline
/history.h
4323 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4324 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4325 echo "configure:4326: checking for $ac_hdr" >&5
4326 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4327 echo $ac_n "(cached) $ac_c" 1>&6
4329 cat > conftest.
$ac_ext <<EOF
4330 #line 4331 "configure"
4331 #include "confdefs.h"
4334 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4335 { (eval echo configure
:4336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4336 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4337 if test -z "$ac_err"; then
4339 eval "ac_cv_header_$ac_safe=yes"
4342 echo "configure: failed program was:" >&5
4343 cat conftest.
$ac_ext >&5
4345 eval "ac_cv_header_$ac_safe=no"
4349 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4350 echo "$ac_t""yes" 1>&6
4351 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4352 cat >> confdefs.h
<<EOF
4353 #define $ac_tr_hdr 1
4357 echo "$ac_t""no" 1>&6
4362 for ac_hdr
in readline.h readline
/readline.h
4364 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4365 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4366 echo "configure:4367: checking for $ac_hdr" >&5
4367 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4368 echo $ac_n "(cached) $ac_c" 1>&6
4370 cat > conftest.
$ac_ext <<EOF
4371 #line 4372 "configure"
4372 #include "confdefs.h"
4375 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4376 { (eval echo configure
:4377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4377 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4378 if test -z "$ac_err"; then
4380 eval "ac_cv_header_$ac_safe=yes"
4383 echo "configure: failed program was:" >&5
4384 cat conftest.
$ac_ext >&5
4386 eval "ac_cv_header_$ac_safe=no"
4390 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4391 echo "$ac_t""yes" 1>&6
4392 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4393 cat >> confdefs.h
<<EOF
4394 #define $ac_tr_hdr 1
4397 for termlib
in ncurses curses termcap terminfo termlib
; do
4398 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4399 echo "configure:4400: checking for tgetent in -l${termlib}" >&5
4400 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4401 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4402 echo $ac_n "(cached) $ac_c" 1>&6
4404 ac_save_LIBS
="$LIBS"
4405 LIBS
="-l${termlib} $LIBS"
4406 cat > conftest.
$ac_ext <<EOF
4407 #line 4408 "configure"
4408 #include "confdefs.h"
4409 /* Override any gcc2 internal prototype to avoid an error. */
4410 /* We use char because int might match the return type of a gcc2
4411 builtin and then its argument prototype would still apply. */
4418 if { (eval echo configure
:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4420 eval "ac_cv_lib_$ac_lib_var=yes"
4422 echo "configure: failed program was:" >&5
4423 cat conftest.
$ac_ext >&5
4425 eval "ac_cv_lib_$ac_lib_var=no"
4428 LIBS
="$ac_save_LIBS"
4431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4432 echo "$ac_t""yes" 1>&6
4433 TERMLIBS
="-l${termlib}"; break
4435 echo "$ac_t""no" 1>&6
4439 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4440 echo "configure:4441: checking for rl_callback_handler_install in -lreadline" >&5
4441 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4442 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4443 echo $ac_n "(cached) $ac_c" 1>&6
4445 ac_save_LIBS
="$LIBS"
4446 LIBS
="-lreadline $TERMLIBS $LIBS"
4447 cat > conftest.
$ac_ext <<EOF
4448 #line 4449 "configure"
4449 #include "confdefs.h"
4450 /* Override any gcc2 internal prototype to avoid an error. */
4451 /* We use char because int might match the return type of a gcc2
4452 builtin and then its argument prototype would still apply. */
4453 char rl_callback_handler_install();
4456 rl_callback_handler_install()
4459 if { (eval echo configure
:4460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4461 eval "ac_cv_lib_$ac_lib_var=yes"
4463 echo "configure: failed program was:" >&5
4464 cat conftest.
$ac_ext >&5
4466 eval "ac_cv_lib_$ac_lib_var=no"
4469 LIBS
="$ac_save_LIBS"
4472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4473 echo "$ac_t""yes" 1>&6
4474 TERMLIBS
="-lreadline $TERMLIBS"
4475 cat >> confdefs.h
<<\EOF
4476 #define HAVE_LIBREADLINE 1
4481 echo "$ac_t""no" 1>&6
4486 echo "$ac_t""no" 1>&6
4492 echo "$ac_t""no" 1>&6
4495 echo "$ac_t""yes" 1>&6
4497 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4498 # alternate readline path
4500 _cppflags
=${CPPFLAGS}
4502 # Add additional search path
4503 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4504 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4506 for ac_hdr
in readline.h
history.h readline
/readline.h
4508 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4509 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4510 echo "configure:4511: checking for $ac_hdr" >&5
4511 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4512 echo $ac_n "(cached) $ac_c" 1>&6
4514 cat > conftest.
$ac_ext <<EOF
4515 #line 4516 "configure"
4516 #include "confdefs.h"
4519 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4520 { (eval echo configure
:4521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4521 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4522 if test -z "$ac_err"; then
4524 eval "ac_cv_header_$ac_safe=yes"
4527 echo "configure: failed program was:" >&5
4528 cat conftest.
$ac_ext >&5
4530 eval "ac_cv_header_$ac_safe=no"
4534 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4535 echo "$ac_t""yes" 1>&6
4536 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4537 cat >> confdefs.h
<<EOF
4538 #define $ac_tr_hdr 1
4542 echo "$ac_t""no" 1>&6
4546 for ac_hdr
in readline
/history.h
4548 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4550 echo "configure:4551: checking for $ac_hdr" >&5
4551 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4552 echo $ac_n "(cached) $ac_c" 1>&6
4554 cat > conftest.
$ac_ext <<EOF
4555 #line 4556 "configure"
4556 #include "confdefs.h"
4559 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4560 { (eval echo configure
:4561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4561 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4562 if test -z "$ac_err"; then
4564 eval "ac_cv_header_$ac_safe=yes"
4567 echo "configure: failed program was:" >&5
4568 cat conftest.
$ac_ext >&5
4570 eval "ac_cv_header_$ac_safe=no"
4574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4575 echo "$ac_t""yes" 1>&6
4576 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4577 cat >> confdefs.h
<<EOF
4578 #define $ac_tr_hdr 1
4582 echo "$ac_t""no" 1>&6
4587 for ac_hdr
in readline.h readline
/readline.h
4589 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4591 echo "configure:4592: checking for $ac_hdr" >&5
4592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4593 echo $ac_n "(cached) $ac_c" 1>&6
4595 cat > conftest.
$ac_ext <<EOF
4596 #line 4597 "configure"
4597 #include "confdefs.h"
4600 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4601 { (eval echo configure
:4602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4602 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4603 if test -z "$ac_err"; then
4605 eval "ac_cv_header_$ac_safe=yes"
4608 echo "configure: failed program was:" >&5
4609 cat conftest.
$ac_ext >&5
4611 eval "ac_cv_header_$ac_safe=no"
4615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4616 echo "$ac_t""yes" 1>&6
4617 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4618 cat >> confdefs.h
<<EOF
4619 #define $ac_tr_hdr 1
4622 for termlib
in ncurses curses termcap terminfo termlib
; do
4623 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4624 echo "configure:4625: checking for tgetent in -l${termlib}" >&5
4625 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4626 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4627 echo $ac_n "(cached) $ac_c" 1>&6
4629 ac_save_LIBS
="$LIBS"
4630 LIBS
="-l${termlib} $LIBS"
4631 cat > conftest.
$ac_ext <<EOF
4632 #line 4633 "configure"
4633 #include "confdefs.h"
4634 /* Override any gcc2 internal prototype to avoid an error. */
4635 /* We use char because int might match the return type of a gcc2
4636 builtin and then its argument prototype would still apply. */
4643 if { (eval echo configure
:4644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4645 eval "ac_cv_lib_$ac_lib_var=yes"
4647 echo "configure: failed program was:" >&5
4648 cat conftest.
$ac_ext >&5
4650 eval "ac_cv_lib_$ac_lib_var=no"
4653 LIBS
="$ac_save_LIBS"
4656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4657 echo "$ac_t""yes" 1>&6
4658 TERMLIBS
="-l${termlib}"; break
4660 echo "$ac_t""no" 1>&6
4664 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4665 echo "configure:4666: checking for rl_callback_handler_install in -lreadline" >&5
4666 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4667 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4668 echo $ac_n "(cached) $ac_c" 1>&6
4670 ac_save_LIBS
="$LIBS"
4671 LIBS
="-lreadline $TERMLIBS $LIBS"
4672 cat > conftest.
$ac_ext <<EOF
4673 #line 4674 "configure"
4674 #include "confdefs.h"
4675 /* Override any gcc2 internal prototype to avoid an error. */
4676 /* We use char because int might match the return type of a gcc2
4677 builtin and then its argument prototype would still apply. */
4678 char rl_callback_handler_install();
4681 rl_callback_handler_install()
4684 if { (eval echo configure
:4685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4686 eval "ac_cv_lib_$ac_lib_var=yes"
4688 echo "configure: failed program was:" >&5
4689 cat conftest.
$ac_ext >&5
4691 eval "ac_cv_lib_$ac_lib_var=no"
4694 LIBS
="$ac_save_LIBS"
4697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4698 echo "$ac_t""yes" 1>&6
4699 TERMLDFLAGS
="-L$with_readline/lib"
4700 TERMCPPFLAGS
="-I$with_readline/include"
4701 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4702 TERMLIBS
="-lreadline $TERMLIBS"
4703 cat >> confdefs.h
<<\EOF
4704 #define HAVE_LIBREADLINE 1
4709 echo "$ac_t""no" 1>&6
4710 TERMLIBS
= CPPFLAGS
=$_cppflags
4714 echo "$ac_t""no" 1>&6
4723 echo "$ac_t""no" 1>&6
4730 # The following test taken from the cvs sources
4731 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4732 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4733 # libsocket.so which has a bad implementation of gethostbyname (it
4734 # only looks in /etc/hosts), so we only look for -lsocket if we need
4736 for ac_func
in connect
4738 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4739 echo "configure:4740: checking for $ac_func" >&5
4740 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4741 echo $ac_n "(cached) $ac_c" 1>&6
4743 cat > conftest.
$ac_ext <<EOF
4744 #line 4745 "configure"
4745 #include "confdefs.h"
4746 /* System header to define __stub macros and hopefully few prototypes,
4747 which can conflict with char $ac_func(); below. */
4749 /* Override any gcc2 internal prototype to avoid an error. */
4750 /* We use char because int might match the return type of a gcc2
4751 builtin and then its argument prototype would still apply. */
4756 /* The GNU C library defines this for functions which it implements
4757 to always fail with ENOSYS. Some functions are actually named
4758 something starting with __ and the normal name is an alias. */
4759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4767 if { (eval echo configure
:4768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4769 eval "ac_cv_func_$ac_func=yes"
4771 echo "configure: failed program was:" >&5
4772 cat conftest.
$ac_ext >&5
4774 eval "ac_cv_func_$ac_func=no"
4779 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4780 echo "$ac_t""yes" 1>&6
4781 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4782 cat >> confdefs.h
<<EOF
4783 #define $ac_tr_func 1
4787 echo "$ac_t""no" 1>&6
4791 if test x
"$ac_cv_func_connect" = x
"no"; then
4794 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4795 echo "configure:4796: checking for printf in -lnsl_s" >&5
4796 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4797 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4798 echo $ac_n "(cached) $ac_c" 1>&6
4800 ac_save_LIBS
="$LIBS"
4801 LIBS
="-lnsl_s $LIBS"
4802 cat > conftest.
$ac_ext <<EOF
4803 #line 4804 "configure"
4804 #include "confdefs.h"
4805 /* Override any gcc2 internal prototype to avoid an error. */
4806 /* We use char because int might match the return type of a gcc2
4807 builtin and then its argument prototype would still apply. */
4814 if { (eval echo configure
:4815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4816 eval "ac_cv_lib_$ac_lib_var=yes"
4818 echo "configure: failed program was:" >&5
4819 cat conftest.
$ac_ext >&5
4821 eval "ac_cv_lib_$ac_lib_var=no"
4824 LIBS
="$ac_save_LIBS"
4827 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4828 echo "$ac_t""yes" 1>&6
4829 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4830 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4831 cat >> confdefs.h
<<EOF
4832 #define $ac_tr_lib 1
4835 LIBS
="-lnsl_s $LIBS"
4838 echo "$ac_t""no" 1>&6
4844 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4845 echo "configure:4846: checking for printf in -lnsl" >&5
4846 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4847 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4848 echo $ac_n "(cached) $ac_c" 1>&6
4850 ac_save_LIBS
="$LIBS"
4852 cat > conftest.
$ac_ext <<EOF
4853 #line 4854 "configure"
4854 #include "confdefs.h"
4855 /* Override any gcc2 internal prototype to avoid an error. */
4856 /* We use char because int might match the return type of a gcc2
4857 builtin and then its argument prototype would still apply. */
4864 if { (eval echo configure
:4865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4866 eval "ac_cv_lib_$ac_lib_var=yes"
4868 echo "configure: failed program was:" >&5
4869 cat conftest.
$ac_ext >&5
4871 eval "ac_cv_lib_$ac_lib_var=no"
4874 LIBS
="$ac_save_LIBS"
4877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4878 echo "$ac_t""yes" 1>&6
4879 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4880 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4881 cat >> confdefs.h
<<EOF
4882 #define $ac_tr_lib 1
4888 echo "$ac_t""no" 1>&6
4894 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4895 echo "configure:4896: checking for connect in -lsocket" >&5
4896 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4897 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4898 echo $ac_n "(cached) $ac_c" 1>&6
4900 ac_save_LIBS
="$LIBS"
4901 LIBS
="-lsocket $LIBS"
4902 cat > conftest.
$ac_ext <<EOF
4903 #line 4904 "configure"
4904 #include "confdefs.h"
4905 /* Override any gcc2 internal prototype to avoid an error. */
4906 /* We use char because int might match the return type of a gcc2
4907 builtin and then its argument prototype would still apply. */
4914 if { (eval echo configure
:4915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4916 eval "ac_cv_lib_$ac_lib_var=yes"
4918 echo "configure: failed program was:" >&5
4919 cat conftest.
$ac_ext >&5
4921 eval "ac_cv_lib_$ac_lib_var=no"
4924 LIBS
="$ac_save_LIBS"
4927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4928 echo "$ac_t""yes" 1>&6
4929 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4930 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4931 cat >> confdefs.h
<<EOF
4932 #define $ac_tr_lib 1
4935 LIBS
="-lsocket $LIBS"
4938 echo "$ac_t""no" 1>&6
4944 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4945 echo "configure:4946: checking for connect in -linet" >&5
4946 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4947 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4948 echo $ac_n "(cached) $ac_c" 1>&6
4950 ac_save_LIBS
="$LIBS"
4952 cat > conftest.
$ac_ext <<EOF
4953 #line 4954 "configure"
4954 #include "confdefs.h"
4955 /* Override any gcc2 internal prototype to avoid an error. */
4956 /* We use char because int might match the return type of a gcc2
4957 builtin and then its argument prototype would still apply. */
4964 if { (eval echo configure
:4965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4966 eval "ac_cv_lib_$ac_lib_var=yes"
4968 echo "configure: failed program was:" >&5
4969 cat conftest.
$ac_ext >&5
4971 eval "ac_cv_lib_$ac_lib_var=no"
4974 LIBS
="$ac_save_LIBS"
4977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4978 echo "$ac_t""yes" 1>&6
4979 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4980 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4981 cat >> confdefs.h
<<EOF
4982 #define $ac_tr_lib 1
4988 echo "$ac_t""no" 1>&6
4992 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
4993 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
4994 # ac_cv_func_connect=yes
4995 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4996 cat >> confdefs.h
<<\EOF
4997 #define HAVE_CONNECT 1
5003 ###############################################
5004 # test for where we get get_yp_default_domain() from
5005 for ac_func
in yp_get_default_domain
5007 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5008 echo "configure:5009: checking for $ac_func" >&5
5009 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5010 echo $ac_n "(cached) $ac_c" 1>&6
5012 cat > conftest.
$ac_ext <<EOF
5013 #line 5014 "configure"
5014 #include "confdefs.h"
5015 /* System header to define __stub macros and hopefully few prototypes,
5016 which can conflict with char $ac_func(); below. */
5018 /* Override any gcc2 internal prototype to avoid an error. */
5019 /* We use char because int might match the return type of a gcc2
5020 builtin and then its argument prototype would still apply. */
5025 /* The GNU C library defines this for functions which it implements
5026 to always fail with ENOSYS. Some functions are actually named
5027 something starting with __ and the normal name is an alias. */
5028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5036 if { (eval echo configure
:5037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5038 eval "ac_cv_func_$ac_func=yes"
5040 echo "configure: failed program was:" >&5
5041 cat conftest.
$ac_ext >&5
5043 eval "ac_cv_func_$ac_func=no"
5048 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5049 echo "$ac_t""yes" 1>&6
5050 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5051 cat >> confdefs.h
<<EOF
5052 #define $ac_tr_func 1
5056 echo "$ac_t""no" 1>&6
5060 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
5061 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5062 echo "configure:5063: checking for yp_get_default_domain in -lnsl" >&5
5063 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5064 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5065 echo $ac_n "(cached) $ac_c" 1>&6
5067 ac_save_LIBS
="$LIBS"
5069 cat > conftest.
$ac_ext <<EOF
5070 #line 5071 "configure"
5071 #include "confdefs.h"
5072 /* Override any gcc2 internal prototype to avoid an error. */
5073 /* We use char because int might match the return type of a gcc2
5074 builtin and then its argument prototype would still apply. */
5075 char yp_get_default_domain();
5078 yp_get_default_domain()
5081 if { (eval echo configure
:5082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5083 eval "ac_cv_lib_$ac_lib_var=yes"
5085 echo "configure: failed program was:" >&5
5086 cat conftest.
$ac_ext >&5
5088 eval "ac_cv_lib_$ac_lib_var=no"
5091 LIBS
="$ac_save_LIBS"
5094 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5095 echo "$ac_t""yes" 1>&6
5097 cat >> confdefs.h
<<\EOF
5098 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5102 echo "$ac_t""no" 1>&6
5107 # Check if we have execl, if not we need to compile smbrun.
5108 for ac_func
in execl
5110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5111 echo "configure:5112: checking for $ac_func" >&5
5112 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5113 echo $ac_n "(cached) $ac_c" 1>&6
5115 cat > conftest.
$ac_ext <<EOF
5116 #line 5117 "configure"
5117 #include "confdefs.h"
5118 /* System header to define __stub macros and hopefully few prototypes,
5119 which can conflict with char $ac_func(); below. */
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. */
5128 /* The GNU C library defines this for functions which it implements
5129 to always fail with ENOSYS. Some functions are actually named
5130 something starting with __ and the normal name is an alias. */
5131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5139 if { (eval echo configure
:5140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5141 eval "ac_cv_func_$ac_func=yes"
5143 echo "configure: failed program was:" >&5
5144 cat conftest.
$ac_ext >&5
5146 eval "ac_cv_func_$ac_func=no"
5151 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5152 echo "$ac_t""yes" 1>&6
5153 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5154 cat >> confdefs.h
<<EOF
5155 #define $ac_tr_func 1
5159 echo "$ac_t""no" 1>&6
5163 if test x
"$ac_cv_func_execl" = x
"no"; then
5164 RUNPROG
="bin/smbrun"
5169 for ac_func
in waitpid getcwd strdup strtoul strerror chown fchown
chmod fchmod chroot
5171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5172 echo "configure:5173: checking for $ac_func" >&5
5173 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5174 echo $ac_n "(cached) $ac_c" 1>&6
5176 cat > conftest.
$ac_ext <<EOF
5177 #line 5178 "configure"
5178 #include "confdefs.h"
5179 /* System header to define __stub macros and hopefully few prototypes,
5180 which can conflict with char $ac_func(); below. */
5182 /* Override any gcc2 internal prototype to avoid an error. */
5183 /* We use char because int might match the return type of a gcc2
5184 builtin and then its argument prototype would still apply. */
5189 /* The GNU C library defines this for functions which it implements
5190 to always fail with ENOSYS. Some functions are actually named
5191 something starting with __ and the normal name is an alias. */
5192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5200 if { (eval echo configure
:5201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5202 eval "ac_cv_func_$ac_func=yes"
5204 echo "configure: failed program was:" >&5
5205 cat conftest.
$ac_ext >&5
5207 eval "ac_cv_func_$ac_func=no"
5212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5213 echo "$ac_t""yes" 1>&6
5214 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5215 cat >> confdefs.h
<<EOF
5216 #define $ac_tr_func 1
5220 echo "$ac_t""no" 1>&6
5224 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset
5226 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5227 echo "configure:5228: checking for $ac_func" >&5
5228 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5229 echo $ac_n "(cached) $ac_c" 1>&6
5231 cat > conftest.
$ac_ext <<EOF
5232 #line 5233 "configure"
5233 #include "confdefs.h"
5234 /* System header to define __stub macros and hopefully few prototypes,
5235 which can conflict with char $ac_func(); below. */
5237 /* Override any gcc2 internal prototype to avoid an error. */
5238 /* We use char because int might match the return type of a gcc2
5239 builtin and then its argument prototype would still apply. */
5244 /* The GNU C library defines this for functions which it implements
5245 to always fail with ENOSYS. Some functions are actually named
5246 something starting with __ and the normal name is an alias. */
5247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5255 if { (eval echo configure
:5256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5257 eval "ac_cv_func_$ac_func=yes"
5259 echo "configure: failed program was:" >&5
5260 cat conftest.
$ac_ext >&5
5262 eval "ac_cv_func_$ac_func=no"
5267 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5268 echo "$ac_t""yes" 1>&6
5269 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5270 cat >> confdefs.h
<<EOF
5271 #define $ac_tr_func 1
5275 echo "$ac_t""no" 1>&6
5279 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5281 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5282 echo "configure:5283: checking for $ac_func" >&5
5283 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5284 echo $ac_n "(cached) $ac_c" 1>&6
5286 cat > conftest.
$ac_ext <<EOF
5287 #line 5288 "configure"
5288 #include "confdefs.h"
5289 /* System header to define __stub macros and hopefully few prototypes,
5290 which can conflict with char $ac_func(); below. */
5292 /* Override any gcc2 internal prototype to avoid an error. */
5293 /* We use char because int might match the return type of a gcc2
5294 builtin and then its argument prototype would still apply. */
5299 /* The GNU C library defines this for functions which it implements
5300 to always fail with ENOSYS. Some functions are actually named
5301 something starting with __ and the normal name is an alias. */
5302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5310 if { (eval echo configure
:5311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5312 eval "ac_cv_func_$ac_func=yes"
5314 echo "configure: failed program was:" >&5
5315 cat conftest.
$ac_ext >&5
5317 eval "ac_cv_func_$ac_func=no"
5322 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5323 echo "$ac_t""yes" 1>&6
5324 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5325 cat >> confdefs.h
<<EOF
5326 #define $ac_tr_func 1
5330 echo "$ac_t""no" 1>&6
5334 for ac_func
in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
5336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5337 echo "configure:5338: checking for $ac_func" >&5
5338 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5339 echo $ac_n "(cached) $ac_c" 1>&6
5341 cat > conftest.
$ac_ext <<EOF
5342 #line 5343 "configure"
5343 #include "confdefs.h"
5344 /* System header to define __stub macros and hopefully few prototypes,
5345 which can conflict with char $ac_func(); below. */
5347 /* Override any gcc2 internal prototype to avoid an error. */
5348 /* We use char because int might match the return type of a gcc2
5349 builtin and then its argument prototype would still apply. */
5354 /* The GNU C library defines this for functions which it implements
5355 to always fail with ENOSYS. Some functions are actually named
5356 something starting with __ and the normal name is an alias. */
5357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5365 if { (eval echo configure
:5366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5367 eval "ac_cv_func_$ac_func=yes"
5369 echo "configure: failed program was:" >&5
5370 cat conftest.
$ac_ext >&5
5372 eval "ac_cv_func_$ac_func=no"
5377 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5378 echo "$ac_t""yes" 1>&6
5379 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5380 cat >> confdefs.h
<<EOF
5381 #define $ac_tr_func 1
5385 echo "$ac_t""no" 1>&6
5389 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf
5391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5392 echo "configure:5393: checking for $ac_func" >&5
5393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5394 echo $ac_n "(cached) $ac_c" 1>&6
5396 cat > conftest.
$ac_ext <<EOF
5397 #line 5398 "configure"
5398 #include "confdefs.h"
5399 /* System header to define __stub macros and hopefully few prototypes,
5400 which can conflict with char $ac_func(); below. */
5402 /* Override any gcc2 internal prototype to avoid an error. */
5403 /* We use char because int might match the return type of a gcc2
5404 builtin and then its argument prototype would still apply. */
5409 /* The GNU C library defines this for functions which it implements
5410 to always fail with ENOSYS. Some functions are actually named
5411 something starting with __ and the normal name is an alias. */
5412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5420 if { (eval echo configure
:5421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5422 eval "ac_cv_func_$ac_func=yes"
5424 echo "configure: failed program was:" >&5
5425 cat conftest.
$ac_ext >&5
5427 eval "ac_cv_func_$ac_func=no"
5432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5433 echo "$ac_t""yes" 1>&6
5434 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5435 cat >> confdefs.h
<<EOF
5436 #define $ac_tr_func 1
5440 echo "$ac_t""no" 1>&6
5444 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5446 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5447 echo "configure:5448: checking for $ac_func" >&5
5448 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5449 echo $ac_n "(cached) $ac_c" 1>&6
5451 cat > conftest.
$ac_ext <<EOF
5452 #line 5453 "configure"
5453 #include "confdefs.h"
5454 /* System header to define __stub macros and hopefully few prototypes,
5455 which can conflict with char $ac_func(); below. */
5457 /* Override any gcc2 internal prototype to avoid an error. */
5458 /* We use char because int might match the return type of a gcc2
5459 builtin and then its argument prototype would still apply. */
5464 /* The GNU C library defines this for functions which it implements
5465 to always fail with ENOSYS. Some functions are actually named
5466 something starting with __ and the normal name is an alias. */
5467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5475 if { (eval echo configure
:5476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5477 eval "ac_cv_func_$ac_func=yes"
5479 echo "configure: failed program was:" >&5
5480 cat conftest.
$ac_ext >&5
5482 eval "ac_cv_func_$ac_func=no"
5487 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5488 echo "$ac_t""yes" 1>&6
5489 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5490 cat >> confdefs.h
<<EOF
5491 #define $ac_tr_func 1
5495 echo "$ac_t""no" 1>&6
5499 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5501 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5502 echo "configure:5503: checking for $ac_func" >&5
5503 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5504 echo $ac_n "(cached) $ac_c" 1>&6
5506 cat > conftest.
$ac_ext <<EOF
5507 #line 5508 "configure"
5508 #include "confdefs.h"
5509 /* System header to define __stub macros and hopefully few prototypes,
5510 which can conflict with char $ac_func(); below. */
5512 /* Override any gcc2 internal prototype to avoid an error. */
5513 /* We use char because int might match the return type of a gcc2
5514 builtin and then its argument prototype would still apply. */
5519 /* The GNU C library defines this for functions which it implements
5520 to always fail with ENOSYS. Some functions are actually named
5521 something starting with __ and the normal name is an alias. */
5522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5530 if { (eval echo configure
:5531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5532 eval "ac_cv_func_$ac_func=yes"
5534 echo "configure: failed program was:" >&5
5535 cat conftest.
$ac_ext >&5
5537 eval "ac_cv_func_$ac_func=no"
5542 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5543 echo "$ac_t""yes" 1>&6
5544 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5545 cat >> confdefs.h
<<EOF
5546 #define $ac_tr_func 1
5550 echo "$ac_t""no" 1>&6
5554 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5557 echo "configure:5558: checking for $ac_func" >&5
5558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5559 echo $ac_n "(cached) $ac_c" 1>&6
5561 cat > conftest.
$ac_ext <<EOF
5562 #line 5563 "configure"
5563 #include "confdefs.h"
5564 /* System header to define __stub macros and hopefully few prototypes,
5565 which can conflict with char $ac_func(); below. */
5567 /* Override any gcc2 internal prototype to avoid an error. */
5568 /* We use char because int might match the return type of a gcc2
5569 builtin and then its argument prototype would still apply. */
5574 /* The GNU C library defines this for functions which it implements
5575 to always fail with ENOSYS. Some functions are actually named
5576 something starting with __ and the normal name is an alias. */
5577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5585 if { (eval echo configure
:5586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5587 eval "ac_cv_func_$ac_func=yes"
5589 echo "configure: failed program was:" >&5
5590 cat conftest.
$ac_ext >&5
5592 eval "ac_cv_func_$ac_func=no"
5597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5598 echo "$ac_t""yes" 1>&6
5599 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5600 cat >> confdefs.h
<<EOF
5601 #define $ac_tr_func 1
5605 echo "$ac_t""no" 1>&6
5609 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl
5611 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5612 echo "configure:5613: checking for $ac_func" >&5
5613 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5614 echo $ac_n "(cached) $ac_c" 1>&6
5616 cat > conftest.
$ac_ext <<EOF
5617 #line 5618 "configure"
5618 #include "confdefs.h"
5619 /* System header to define __stub macros and hopefully few prototypes,
5620 which can conflict with char $ac_func(); below. */
5622 /* Override any gcc2 internal prototype to avoid an error. */
5623 /* We use char because int might match the return type of a gcc2
5624 builtin and then its argument prototype would still apply. */
5629 /* The GNU C library defines this for functions which it implements
5630 to always fail with ENOSYS. Some functions are actually named
5631 something starting with __ and the normal name is an alias. */
5632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5640 if { (eval echo configure
:5641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5642 eval "ac_cv_func_$ac_func=yes"
5644 echo "configure: failed program was:" >&5
5645 cat conftest.
$ac_ext >&5
5647 eval "ac_cv_func_$ac_func=no"
5652 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5653 echo "$ac_t""yes" 1>&6
5654 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5655 cat >> confdefs.h
<<EOF
5656 #define $ac_tr_func 1
5660 echo "$ac_t""no" 1>&6
5665 # syscall() is needed for smbwrapper.
5666 for ac_func
in syscall
5668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5669 echo "configure:5670: checking for $ac_func" >&5
5670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5671 echo $ac_n "(cached) $ac_c" 1>&6
5673 cat > conftest.
$ac_ext <<EOF
5674 #line 5675 "configure"
5675 #include "confdefs.h"
5676 /* System header to define __stub macros and hopefully few prototypes,
5677 which can conflict with char $ac_func(); below. */
5679 /* Override any gcc2 internal prototype to avoid an error. */
5680 /* We use char because int might match the return type of a gcc2
5681 builtin and then its argument prototype would still apply. */
5686 /* The GNU C library defines this for functions which it implements
5687 to always fail with ENOSYS. Some functions are actually named
5688 something starting with __ and the normal name is an alias. */
5689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5697 if { (eval echo configure
:5698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5699 eval "ac_cv_func_$ac_func=yes"
5701 echo "configure: failed program was:" >&5
5702 cat conftest.
$ac_ext >&5
5704 eval "ac_cv_func_$ac_func=no"
5709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5710 echo "$ac_t""yes" 1>&6
5711 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5712 cat >> confdefs.h
<<EOF
5713 #define $ac_tr_func 1
5717 echo "$ac_t""no" 1>&6
5722 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5724 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5725 echo "configure:5726: checking for $ac_func" >&5
5726 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5727 echo $ac_n "(cached) $ac_c" 1>&6
5729 cat > conftest.
$ac_ext <<EOF
5730 #line 5731 "configure"
5731 #include "confdefs.h"
5732 /* System header to define __stub macros and hopefully few prototypes,
5733 which can conflict with char $ac_func(); below. */
5735 /* Override any gcc2 internal prototype to avoid an error. */
5736 /* We use char because int might match the return type of a gcc2
5737 builtin and then its argument prototype would still apply. */
5742 /* The GNU C library defines this for functions which it implements
5743 to always fail with ENOSYS. Some functions are actually named
5744 something starting with __ and the normal name is an alias. */
5745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5753 if { (eval echo configure
:5754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5755 eval "ac_cv_func_$ac_func=yes"
5757 echo "configure: failed program was:" >&5
5758 cat conftest.
$ac_ext >&5
5760 eval "ac_cv_func_$ac_func=no"
5765 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5766 echo "$ac_t""yes" 1>&6
5767 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5768 cat >> confdefs.h
<<EOF
5769 #define $ac_tr_func 1
5773 echo "$ac_t""no" 1>&6
5777 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5779 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5780 echo "configure:5781: checking for $ac_func" >&5
5781 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5782 echo $ac_n "(cached) $ac_c" 1>&6
5784 cat > conftest.
$ac_ext <<EOF
5785 #line 5786 "configure"
5786 #include "confdefs.h"
5787 /* System header to define __stub macros and hopefully few prototypes,
5788 which can conflict with char $ac_func(); below. */
5790 /* Override any gcc2 internal prototype to avoid an error. */
5791 /* We use char because int might match the return type of a gcc2
5792 builtin and then its argument prototype would still apply. */
5797 /* The GNU C library defines this for functions which it implements
5798 to always fail with ENOSYS. Some functions are actually named
5799 something starting with __ and the normal name is an alias. */
5800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5808 if { (eval echo configure
:5809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5810 eval "ac_cv_func_$ac_func=yes"
5812 echo "configure: failed program was:" >&5
5813 cat conftest.
$ac_ext >&5
5815 eval "ac_cv_func_$ac_func=no"
5820 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5821 echo "$ac_t""yes" 1>&6
5822 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5823 cat >> confdefs.h
<<EOF
5824 #define $ac_tr_func 1
5828 echo "$ac_t""no" 1>&6
5832 for ac_func
in __getcwd _getcwd
5834 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5835 echo "configure:5836: checking for $ac_func" >&5
5836 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5837 echo $ac_n "(cached) $ac_c" 1>&6
5839 cat > conftest.
$ac_ext <<EOF
5840 #line 5841 "configure"
5841 #include "confdefs.h"
5842 /* System header to define __stub macros and hopefully few prototypes,
5843 which can conflict with char $ac_func(); below. */
5845 /* Override any gcc2 internal prototype to avoid an error. */
5846 /* We use char because int might match the return type of a gcc2
5847 builtin and then its argument prototype would still apply. */
5852 /* The GNU C library defines this for functions which it implements
5853 to always fail with ENOSYS. Some functions are actually named
5854 something starting with __ and the normal name is an alias. */
5855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5863 if { (eval echo configure
:5864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5865 eval "ac_cv_func_$ac_func=yes"
5867 echo "configure: failed program was:" >&5
5868 cat conftest.
$ac_ext >&5
5870 eval "ac_cv_func_$ac_func=no"
5875 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5876 echo "$ac_t""yes" 1>&6
5877 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5878 cat >> confdefs.h
<<EOF
5879 #define $ac_tr_func 1
5883 echo "$ac_t""no" 1>&6
5887 for ac_func
in __xstat __fxstat __lxstat
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
5942 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
5944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5945 echo "configure:5946: checking for $ac_func" >&5
5946 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5947 echo $ac_n "(cached) $ac_c" 1>&6
5949 cat > conftest.
$ac_ext <<EOF
5950 #line 5951 "configure"
5951 #include "confdefs.h"
5952 /* System header to define __stub macros and hopefully few prototypes,
5953 which can conflict with char $ac_func(); below. */
5955 /* Override any gcc2 internal prototype to avoid an error. */
5956 /* We use char because int might match the return type of a gcc2
5957 builtin and then its argument prototype would still apply. */
5962 /* The GNU C library defines this for functions which it implements
5963 to always fail with ENOSYS. Some functions are actually named
5964 something starting with __ and the normal name is an alias. */
5965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5973 if { (eval echo configure
:5974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5975 eval "ac_cv_func_$ac_func=yes"
5977 echo "configure: failed program was:" >&5
5978 cat conftest.
$ac_ext >&5
5980 eval "ac_cv_func_$ac_func=no"
5985 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5986 echo "$ac_t""yes" 1>&6
5987 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5988 cat >> confdefs.h
<<EOF
5989 #define $ac_tr_func 1
5993 echo "$ac_t""no" 1>&6
5997 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
5999 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6000 echo "configure:6001: checking for $ac_func" >&5
6001 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6002 echo $ac_n "(cached) $ac_c" 1>&6
6004 cat > conftest.
$ac_ext <<EOF
6005 #line 6006 "configure"
6006 #include "confdefs.h"
6007 /* System header to define __stub macros and hopefully few prototypes,
6008 which can conflict with char $ac_func(); below. */
6010 /* Override any gcc2 internal prototype to avoid an error. */
6011 /* We use char because int might match the return type of a gcc2
6012 builtin and then its argument prototype would still apply. */
6017 /* The GNU C library defines this for functions which it implements
6018 to always fail with ENOSYS. Some functions are actually named
6019 something starting with __ and the normal name is an alias. */
6020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6028 if { (eval echo configure
:6029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6030 eval "ac_cv_func_$ac_func=yes"
6032 echo "configure: failed program was:" >&5
6033 cat conftest.
$ac_ext >&5
6035 eval "ac_cv_func_$ac_func=no"
6040 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6041 echo "$ac_t""yes" 1>&6
6042 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6043 cat >> confdefs.h
<<EOF
6044 #define $ac_tr_func 1
6048 echo "$ac_t""no" 1>&6
6052 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
6054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6055 echo "configure:6056: checking for $ac_func" >&5
6056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6057 echo $ac_n "(cached) $ac_c" 1>&6
6059 cat > conftest.
$ac_ext <<EOF
6060 #line 6061 "configure"
6061 #include "confdefs.h"
6062 /* System header to define __stub macros and hopefully few prototypes,
6063 which can conflict with char $ac_func(); below. */
6065 /* Override any gcc2 internal prototype to avoid an error. */
6066 /* We use char because int might match the return type of a gcc2
6067 builtin and then its argument prototype would still apply. */
6072 /* The GNU C library defines this for functions which it implements
6073 to always fail with ENOSYS. Some functions are actually named
6074 something starting with __ and the normal name is an alias. */
6075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6083 if { (eval echo configure
:6084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6085 eval "ac_cv_func_$ac_func=yes"
6087 echo "configure: failed program was:" >&5
6088 cat conftest.
$ac_ext >&5
6090 eval "ac_cv_func_$ac_func=no"
6095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6096 echo "$ac_t""yes" 1>&6
6097 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6098 cat >> confdefs.h
<<EOF
6099 #define $ac_tr_func 1
6103 echo "$ac_t""no" 1>&6
6107 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
6109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6110 echo "configure:6111: checking for $ac_func" >&5
6111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6112 echo $ac_n "(cached) $ac_c" 1>&6
6114 cat > conftest.
$ac_ext <<EOF
6115 #line 6116 "configure"
6116 #include "confdefs.h"
6117 /* System header to define __stub macros and hopefully few prototypes,
6118 which can conflict with char $ac_func(); below. */
6120 /* Override any gcc2 internal prototype to avoid an error. */
6121 /* We use char because int might match the return type of a gcc2
6122 builtin and then its argument prototype would still apply. */
6127 /* The GNU C library defines this for functions which it implements
6128 to always fail with ENOSYS. Some functions are actually named
6129 something starting with __ and the normal name is an alias. */
6130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6138 if { (eval echo configure
:6139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6140 eval "ac_cv_func_$ac_func=yes"
6142 echo "configure: failed program was:" >&5
6143 cat conftest.
$ac_ext >&5
6145 eval "ac_cv_func_$ac_func=no"
6150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6151 echo "$ac_t""yes" 1>&6
6152 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6153 cat >> confdefs.h
<<EOF
6154 #define $ac_tr_func 1
6158 echo "$ac_t""no" 1>&6
6162 for ac_func
in _write __write _fork __fork
6164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6165 echo "configure:6166: checking for $ac_func" >&5
6166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6167 echo $ac_n "(cached) $ac_c" 1>&6
6169 cat > conftest.
$ac_ext <<EOF
6170 #line 6171 "configure"
6171 #include "confdefs.h"
6172 /* System header to define __stub macros and hopefully few prototypes,
6173 which can conflict with char $ac_func(); below. */
6175 /* Override any gcc2 internal prototype to avoid an error. */
6176 /* We use char because int might match the return type of a gcc2
6177 builtin and then its argument prototype would still apply. */
6182 /* The GNU C library defines this for functions which it implements
6183 to always fail with ENOSYS. Some functions are actually named
6184 something starting with __ and the normal name is an alias. */
6185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6193 if { (eval echo configure
:6194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6195 eval "ac_cv_func_$ac_func=yes"
6197 echo "configure: failed program was:" >&5
6198 cat conftest.
$ac_ext >&5
6200 eval "ac_cv_func_$ac_func=no"
6205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6206 echo "$ac_t""yes" 1>&6
6207 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6208 cat >> confdefs.h
<<EOF
6209 #define $ac_tr_func 1
6213 echo "$ac_t""no" 1>&6
6217 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6220 echo "configure:6221: checking for $ac_func" >&5
6221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6222 echo $ac_n "(cached) $ac_c" 1>&6
6224 cat > conftest.
$ac_ext <<EOF
6225 #line 6226 "configure"
6226 #include "confdefs.h"
6227 /* System header to define __stub macros and hopefully few prototypes,
6228 which can conflict with char $ac_func(); below. */
6230 /* Override any gcc2 internal prototype to avoid an error. */
6231 /* We use char because int might match the return type of a gcc2
6232 builtin and then its argument prototype would still apply. */
6237 /* The GNU C library defines this for functions which it implements
6238 to always fail with ENOSYS. Some functions are actually named
6239 something starting with __ and the normal name is an alias. */
6240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6248 if { (eval echo configure
:6249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6250 eval "ac_cv_func_$ac_func=yes"
6252 echo "configure: failed program was:" >&5
6253 cat conftest.
$ac_ext >&5
6255 eval "ac_cv_func_$ac_func=no"
6260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6261 echo "$ac_t""yes" 1>&6
6262 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6263 cat >> confdefs.h
<<EOF
6264 #define $ac_tr_func 1
6268 echo "$ac_t""no" 1>&6
6272 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6275 echo "configure:6276: checking for $ac_func" >&5
6276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6277 echo $ac_n "(cached) $ac_c" 1>&6
6279 cat > conftest.
$ac_ext <<EOF
6280 #line 6281 "configure"
6281 #include "confdefs.h"
6282 /* System header to define __stub macros and hopefully few prototypes,
6283 which can conflict with char $ac_func(); below. */
6285 /* Override any gcc2 internal prototype to avoid an error. */
6286 /* We use char because int might match the return type of a gcc2
6287 builtin and then its argument prototype would still apply. */
6292 /* The GNU C library defines this for functions which it implements
6293 to always fail with ENOSYS. Some functions are actually named
6294 something starting with __ and the normal name is an alias. */
6295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6303 if { (eval echo configure
:6304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6305 eval "ac_cv_func_$ac_func=yes"
6307 echo "configure: failed program was:" >&5
6308 cat conftest.
$ac_ext >&5
6310 eval "ac_cv_func_$ac_func=no"
6315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6316 echo "$ac_t""yes" 1>&6
6317 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6318 cat >> confdefs.h
<<EOF
6319 #define $ac_tr_func 1
6323 echo "$ac_t""no" 1>&6
6327 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6330 echo "configure:6331: checking for $ac_func" >&5
6331 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6332 echo $ac_n "(cached) $ac_c" 1>&6
6334 cat > conftest.
$ac_ext <<EOF
6335 #line 6336 "configure"
6336 #include "confdefs.h"
6337 /* System header to define __stub macros and hopefully few prototypes,
6338 which can conflict with char $ac_func(); below. */
6340 /* Override any gcc2 internal prototype to avoid an error. */
6341 /* We use char because int might match the return type of a gcc2
6342 builtin and then its argument prototype would still apply. */
6347 /* The GNU C library defines this for functions which it implements
6348 to always fail with ENOSYS. Some functions are actually named
6349 something starting with __ and the normal name is an alias. */
6350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6358 if { (eval echo configure
:6359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6360 eval "ac_cv_func_$ac_func=yes"
6362 echo "configure: failed program was:" >&5
6363 cat conftest.
$ac_ext >&5
6365 eval "ac_cv_func_$ac_func=no"
6370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6371 echo "$ac_t""yes" 1>&6
6372 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6373 cat >> confdefs.h
<<EOF
6374 #define $ac_tr_func 1
6378 echo "$ac_t""no" 1>&6
6382 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6385 echo "configure:6386: checking for $ac_func" >&5
6386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6387 echo $ac_n "(cached) $ac_c" 1>&6
6389 cat > conftest.
$ac_ext <<EOF
6390 #line 6391 "configure"
6391 #include "confdefs.h"
6392 /* System header to define __stub macros and hopefully few prototypes,
6393 which can conflict with char $ac_func(); below. */
6395 /* Override any gcc2 internal prototype to avoid an error. */
6396 /* We use char because int might match the return type of a gcc2
6397 builtin and then its argument prototype would still apply. */
6402 /* The GNU C library defines this for functions which it implements
6403 to always fail with ENOSYS. Some functions are actually named
6404 something starting with __ and the normal name is an alias. */
6405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6413 if { (eval echo configure
:6414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6415 eval "ac_cv_func_$ac_func=yes"
6417 echo "configure: failed program was:" >&5
6418 cat conftest.
$ac_ext >&5
6420 eval "ac_cv_func_$ac_func=no"
6425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6426 echo "$ac_t""yes" 1>&6
6427 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6428 cat >> confdefs.h
<<EOF
6429 #define $ac_tr_func 1
6433 echo "$ac_t""no" 1>&6
6437 for ac_func
in open64 _open64 __open64 creat64
6439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6440 echo "configure:6441: checking for $ac_func" >&5
6441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6442 echo $ac_n "(cached) $ac_c" 1>&6
6444 cat > conftest.
$ac_ext <<EOF
6445 #line 6446 "configure"
6446 #include "confdefs.h"
6447 /* System header to define __stub macros and hopefully few prototypes,
6448 which can conflict with char $ac_func(); below. */
6450 /* Override any gcc2 internal prototype to avoid an error. */
6451 /* We use char because int might match the return type of a gcc2
6452 builtin and then its argument prototype would still apply. */
6457 /* The GNU C library defines this for functions which it implements
6458 to always fail with ENOSYS. Some functions are actually named
6459 something starting with __ and the normal name is an alias. */
6460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6468 if { (eval echo configure
:6469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6470 eval "ac_cv_func_$ac_func=yes"
6472 echo "configure: failed program was:" >&5
6473 cat conftest.
$ac_ext >&5
6475 eval "ac_cv_func_$ac_func=no"
6480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6481 echo "$ac_t""yes" 1>&6
6482 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6483 cat >> confdefs.h
<<EOF
6484 #define $ac_tr_func 1
6488 echo "$ac_t""no" 1>&6
6494 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6497 if test x
$ac_cv_func_stat64 = xno
; then
6498 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6499 echo "configure:6500: checking for stat64 in <sys/stat.h>" >&5
6500 cat > conftest.
$ac_ext <<EOF
6501 #line 6502 "configure"
6502 #include "confdefs.h"
6504 #if defined(HAVE_UNISTD_H)
6507 #include <sys/stat.h>
6510 struct stat64 st64; exit(stat64(".",&st64));
6513 if { (eval echo configure
:6514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6515 ac_cv_func_stat64
=yes
6517 echo "configure: failed program was:" >&5
6518 cat conftest.
$ac_ext >&5
6521 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6522 if test x
$ac_cv_func_stat64 = xyes
; then
6523 cat >> confdefs.h
<<\EOF
6524 #define HAVE_STAT64 1
6530 if test x
$ac_cv_func_lstat64 = xno
; then
6531 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6532 echo "configure:6533: checking for lstat64 in <sys/stat.h>" >&5
6533 cat > conftest.
$ac_ext <<EOF
6534 #line 6535 "configure"
6535 #include "confdefs.h"
6537 #if defined(HAVE_UNISTD_H)
6540 #include <sys/stat.h>
6543 struct stat64 st64; exit(lstat64(".",&st64));
6546 if { (eval echo configure
:6547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6548 ac_cv_func_lstat64
=yes
6550 echo "configure: failed program was:" >&5
6551 cat conftest.
$ac_ext >&5
6554 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6555 if test x
$ac_cv_func_lstat64 = xyes
; then
6556 cat >> confdefs.h
<<\EOF
6557 #define HAVE_LSTAT64 1
6563 if test x
$ac_cv_func_fstat64 = xno
; then
6564 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6565 echo "configure:6566: checking for fstat64 in <sys/stat.h>" >&5
6566 cat > conftest.
$ac_ext <<EOF
6567 #line 6568 "configure"
6568 #include "confdefs.h"
6570 #if defined(HAVE_UNISTD_H)
6573 #include <sys/stat.h>
6576 struct stat64 st64; exit(fstat64(0,&st64));
6579 if { (eval echo configure
:6580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6581 ac_cv_func_fstat64
=yes
6583 echo "configure: failed program was:" >&5
6584 cat conftest.
$ac_ext >&5
6587 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6588 if test x
$ac_cv_func_fstat64 = xyes
; then
6589 cat >> confdefs.h
<<\EOF
6590 #define HAVE_FSTAT64 1
6597 # If no strcasecmp, check for it in some known places
6598 # It is in -lresolv on ReliantUNIX and UnixWare
6599 # -lresolve *must* follow -lnsl for name resolution to work properly
6602 if test x
$ac_cv_func_strcasecmp = xno
; then
6603 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6604 echo "configure:6605: checking for strcasecmp in -lresolv" >&5
6605 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6606 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6607 echo $ac_n "(cached) $ac_c" 1>&6
6609 ac_save_LIBS
="$LIBS"
6610 LIBS
="-lresolv $LIBS"
6611 cat > conftest.
$ac_ext <<EOF
6612 #line 6613 "configure"
6613 #include "confdefs.h"
6614 /* Override any gcc2 internal prototype to avoid an error. */
6615 /* We use char because int might match the return type of a gcc2
6616 builtin and then its argument prototype would still apply. */
6623 if { (eval echo configure
:6624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6625 eval "ac_cv_lib_$ac_lib_var=yes"
6627 echo "configure: failed program was:" >&5
6628 cat conftest.
$ac_ext >&5
6630 eval "ac_cv_lib_$ac_lib_var=no"
6633 LIBS
="$ac_save_LIBS"
6636 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6637 echo "$ac_t""yes" 1>&6
6638 LIBS
="$LIBS -lresolv"
6639 cat >> confdefs.h
<<\EOF
6640 #define HAVE_STRCASECMP 1
6644 echo "$ac_t""no" 1>&6
6650 # Check for the functions putprpwnam, set_auth_parameters,
6651 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6652 # Needed for OSF1 and HPUX.
6656 *-lsecurity*) for ac_func
in putprpwnam
6658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6659 echo "configure:6660: checking for $ac_func" >&5
6660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6661 echo $ac_n "(cached) $ac_c" 1>&6
6663 cat > conftest.
$ac_ext <<EOF
6664 #line 6665 "configure"
6665 #include "confdefs.h"
6666 /* System header to define __stub macros and hopefully few prototypes,
6667 which can conflict with char $ac_func(); below. */
6669 /* Override any gcc2 internal prototype to avoid an error. */
6670 /* We use char because int might match the return type of a gcc2
6671 builtin and then its argument prototype would still apply. */
6676 /* The GNU C library defines this for functions which it implements
6677 to always fail with ENOSYS. Some functions are actually named
6678 something starting with __ and the normal name is an alias. */
6679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6687 if { (eval echo configure
:6688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6689 eval "ac_cv_func_$ac_func=yes"
6691 echo "configure: failed program was:" >&5
6692 cat conftest.
$ac_ext >&5
6694 eval "ac_cv_func_$ac_func=no"
6699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6700 echo "$ac_t""yes" 1>&6
6701 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6702 cat >> confdefs.h
<<EOF
6703 #define $ac_tr_func 1
6707 echo "$ac_t""no" 1>&6
6711 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6712 echo "configure:6713: checking for putprpwnam in -lsecurity" >&5
6713 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6714 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6715 echo $ac_n "(cached) $ac_c" 1>&6
6717 ac_save_LIBS
="$LIBS"
6718 LIBS
="-lsecurity $LIBS"
6719 cat > conftest.
$ac_ext <<EOF
6720 #line 6721 "configure"
6721 #include "confdefs.h"
6722 /* Override any gcc2 internal prototype to avoid an error. */
6723 /* We use char because int might match the return type of a gcc2
6724 builtin and then its argument prototype would still apply. */
6731 if { (eval echo configure
:6732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6733 eval "ac_cv_lib_$ac_lib_var=yes"
6735 echo "configure: failed program was:" >&5
6736 cat conftest.
$ac_ext >&5
6738 eval "ac_cv_lib_$ac_lib_var=no"
6741 LIBS
="$ac_save_LIBS"
6744 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6745 echo "$ac_t""yes" 1>&6
6746 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6747 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6748 cat >> confdefs.h
<<EOF
6749 #define $ac_tr_lib 1
6752 LIBS
="-lsecurity $LIBS"
6755 echo "$ac_t""no" 1>&6
6758 for ac_func
in putprpwnam
6760 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6761 echo "configure:6762: checking for $ac_func" >&5
6762 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6763 echo $ac_n "(cached) $ac_c" 1>&6
6765 cat > conftest.
$ac_ext <<EOF
6766 #line 6767 "configure"
6767 #include "confdefs.h"
6768 /* System header to define __stub macros and hopefully few prototypes,
6769 which can conflict with char $ac_func(); below. */
6771 /* Override any gcc2 internal prototype to avoid an error. */
6772 /* We use char because int might match the return type of a gcc2
6773 builtin and then its argument prototype would still apply. */
6778 /* The GNU C library defines this for functions which it implements
6779 to always fail with ENOSYS. Some functions are actually named
6780 something starting with __ and the normal name is an alias. */
6781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6789 if { (eval echo configure
:6790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6791 eval "ac_cv_func_$ac_func=yes"
6793 echo "configure: failed program was:" >&5
6794 cat conftest.
$ac_ext >&5
6796 eval "ac_cv_func_$ac_func=no"
6801 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6802 echo "$ac_t""yes" 1>&6
6803 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6804 cat >> confdefs.h
<<EOF
6805 #define $ac_tr_func 1
6809 echo "$ac_t""no" 1>&6
6817 *-lsec*) for ac_func
in putprpwnam
6819 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6820 echo "configure:6821: checking for $ac_func" >&5
6821 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6822 echo $ac_n "(cached) $ac_c" 1>&6
6824 cat > conftest.
$ac_ext <<EOF
6825 #line 6826 "configure"
6826 #include "confdefs.h"
6827 /* System header to define __stub macros and hopefully few prototypes,
6828 which can conflict with char $ac_func(); below. */
6830 /* Override any gcc2 internal prototype to avoid an error. */
6831 /* We use char because int might match the return type of a gcc2
6832 builtin and then its argument prototype would still apply. */
6837 /* The GNU C library defines this for functions which it implements
6838 to always fail with ENOSYS. Some functions are actually named
6839 something starting with __ and the normal name is an alias. */
6840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6848 if { (eval echo configure
:6849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6850 eval "ac_cv_func_$ac_func=yes"
6852 echo "configure: failed program was:" >&5
6853 cat conftest.
$ac_ext >&5
6855 eval "ac_cv_func_$ac_func=no"
6860 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6861 echo "$ac_t""yes" 1>&6
6862 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6863 cat >> confdefs.h
<<EOF
6864 #define $ac_tr_func 1
6868 echo "$ac_t""no" 1>&6
6872 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6873 echo "configure:6874: checking for putprpwnam in -lsec" >&5
6874 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6875 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6876 echo $ac_n "(cached) $ac_c" 1>&6
6878 ac_save_LIBS
="$LIBS"
6880 cat > conftest.
$ac_ext <<EOF
6881 #line 6882 "configure"
6882 #include "confdefs.h"
6883 /* Override any gcc2 internal prototype to avoid an error. */
6884 /* We use char because int might match the return type of a gcc2
6885 builtin and then its argument prototype would still apply. */
6892 if { (eval echo configure
:6893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6894 eval "ac_cv_lib_$ac_lib_var=yes"
6896 echo "configure: failed program was:" >&5
6897 cat conftest.
$ac_ext >&5
6899 eval "ac_cv_lib_$ac_lib_var=no"
6902 LIBS
="$ac_save_LIBS"
6905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6906 echo "$ac_t""yes" 1>&6
6907 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6908 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6909 cat >> confdefs.h
<<EOF
6910 #define $ac_tr_lib 1
6916 echo "$ac_t""no" 1>&6
6919 for ac_func
in putprpwnam
6921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6922 echo "configure:6923: checking for $ac_func" >&5
6923 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6924 echo $ac_n "(cached) $ac_c" 1>&6
6926 cat > conftest.
$ac_ext <<EOF
6927 #line 6928 "configure"
6928 #include "confdefs.h"
6929 /* System header to define __stub macros and hopefully few prototypes,
6930 which can conflict with char $ac_func(); below. */
6932 /* Override any gcc2 internal prototype to avoid an error. */
6933 /* We use char because int might match the return type of a gcc2
6934 builtin and then its argument prototype would still apply. */
6939 /* The GNU C library defines this for functions which it implements
6940 to always fail with ENOSYS. Some functions are actually named
6941 something starting with __ and the normal name is an alias. */
6942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6950 if { (eval echo configure
:6951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6952 eval "ac_cv_func_$ac_func=yes"
6954 echo "configure: failed program was:" >&5
6955 cat conftest.
$ac_ext >&5
6957 eval "ac_cv_func_$ac_func=no"
6962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6963 echo "$ac_t""yes" 1>&6
6964 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6965 cat >> confdefs.h
<<EOF
6966 #define $ac_tr_func 1
6970 echo "$ac_t""no" 1>&6
6979 *-lsecurity*) for ac_func
in set_auth_parameters
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
7034 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7035 echo "configure:7036: checking for set_auth_parameters in -lsecurity" >&5
7036 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7038 echo $ac_n "(cached) $ac_c" 1>&6
7040 ac_save_LIBS
="$LIBS"
7041 LIBS
="-lsecurity $LIBS"
7042 cat > conftest.
$ac_ext <<EOF
7043 #line 7044 "configure"
7044 #include "confdefs.h"
7045 /* Override any gcc2 internal prototype to avoid an error. */
7046 /* We use char because int might match the return type of a gcc2
7047 builtin and then its argument prototype would still apply. */
7048 char set_auth_parameters();
7051 set_auth_parameters()
7054 if { (eval echo configure
:7055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7056 eval "ac_cv_lib_$ac_lib_var=yes"
7058 echo "configure: failed program was:" >&5
7059 cat conftest.
$ac_ext >&5
7061 eval "ac_cv_lib_$ac_lib_var=no"
7064 LIBS
="$ac_save_LIBS"
7067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7068 echo "$ac_t""yes" 1>&6
7069 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7070 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7071 cat >> confdefs.h
<<EOF
7072 #define $ac_tr_lib 1
7075 LIBS
="-lsecurity $LIBS"
7078 echo "$ac_t""no" 1>&6
7081 for ac_func
in set_auth_parameters
7083 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7084 echo "configure:7085: checking for $ac_func" >&5
7085 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7086 echo $ac_n "(cached) $ac_c" 1>&6
7088 cat > conftest.
$ac_ext <<EOF
7089 #line 7090 "configure"
7090 #include "confdefs.h"
7091 /* System header to define __stub macros and hopefully few prototypes,
7092 which can conflict with char $ac_func(); below. */
7094 /* Override any gcc2 internal prototype to avoid an error. */
7095 /* We use char because int might match the return type of a gcc2
7096 builtin and then its argument prototype would still apply. */
7101 /* The GNU C library defines this for functions which it implements
7102 to always fail with ENOSYS. Some functions are actually named
7103 something starting with __ and the normal name is an alias. */
7104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7112 if { (eval echo configure
:7113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7114 eval "ac_cv_func_$ac_func=yes"
7116 echo "configure: failed program was:" >&5
7117 cat conftest.
$ac_ext >&5
7119 eval "ac_cv_func_$ac_func=no"
7124 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7125 echo "$ac_t""yes" 1>&6
7126 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7127 cat >> confdefs.h
<<EOF
7128 #define $ac_tr_func 1
7132 echo "$ac_t""no" 1>&6
7140 *-lsec*) for ac_func
in set_auth_parameters
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
7195 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7196 echo "configure:7197: checking for set_auth_parameters in -lsec" >&5
7197 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7198 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7199 echo $ac_n "(cached) $ac_c" 1>&6
7201 ac_save_LIBS
="$LIBS"
7203 cat > conftest.
$ac_ext <<EOF
7204 #line 7205 "configure"
7205 #include "confdefs.h"
7206 /* Override any gcc2 internal prototype to avoid an error. */
7207 /* We use char because int might match the return type of a gcc2
7208 builtin and then its argument prototype would still apply. */
7209 char set_auth_parameters();
7212 set_auth_parameters()
7215 if { (eval echo configure
:7216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7217 eval "ac_cv_lib_$ac_lib_var=yes"
7219 echo "configure: failed program was:" >&5
7220 cat conftest.
$ac_ext >&5
7222 eval "ac_cv_lib_$ac_lib_var=no"
7225 LIBS
="$ac_save_LIBS"
7228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7229 echo "$ac_t""yes" 1>&6
7230 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7231 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7232 cat >> confdefs.h
<<EOF
7233 #define $ac_tr_lib 1
7239 echo "$ac_t""no" 1>&6
7242 for ac_func
in set_auth_parameters
7244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7245 echo "configure:7246: checking for $ac_func" >&5
7246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7247 echo $ac_n "(cached) $ac_c" 1>&6
7249 cat > conftest.
$ac_ext <<EOF
7250 #line 7251 "configure"
7251 #include "confdefs.h"
7252 /* System header to define __stub macros and hopefully few prototypes,
7253 which can conflict with char $ac_func(); below. */
7255 /* Override any gcc2 internal prototype to avoid an error. */
7256 /* We use char because int might match the return type of a gcc2
7257 builtin and then its argument prototype would still apply. */
7262 /* The GNU C library defines this for functions which it implements
7263 to always fail with ENOSYS. Some functions are actually named
7264 something starting with __ and the normal name is an alias. */
7265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7273 if { (eval echo configure
:7274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7275 eval "ac_cv_func_$ac_func=yes"
7277 echo "configure: failed program was:" >&5
7278 cat conftest.
$ac_ext >&5
7280 eval "ac_cv_func_$ac_func=no"
7285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7286 echo "$ac_t""yes" 1>&6
7287 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7288 cat >> confdefs.h
<<EOF
7289 #define $ac_tr_func 1
7293 echo "$ac_t""no" 1>&6
7301 # UnixWare 7.x has its getspnam in -lgen
7303 *-lgen*) for ac_func
in getspnam
7305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7306 echo "configure:7307: checking for $ac_func" >&5
7307 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7308 echo $ac_n "(cached) $ac_c" 1>&6
7310 cat > conftest.
$ac_ext <<EOF
7311 #line 7312 "configure"
7312 #include "confdefs.h"
7313 /* System header to define __stub macros and hopefully few prototypes,
7314 which can conflict with char $ac_func(); below. */
7316 /* Override any gcc2 internal prototype to avoid an error. */
7317 /* We use char because int might match the return type of a gcc2
7318 builtin and then its argument prototype would still apply. */
7323 /* The GNU C library defines this for functions which it implements
7324 to always fail with ENOSYS. Some functions are actually named
7325 something starting with __ and the normal name is an alias. */
7326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7334 if { (eval echo configure
:7335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7336 eval "ac_cv_func_$ac_func=yes"
7338 echo "configure: failed program was:" >&5
7339 cat conftest.
$ac_ext >&5
7341 eval "ac_cv_func_$ac_func=no"
7346 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7347 echo "$ac_t""yes" 1>&6
7348 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7349 cat >> confdefs.h
<<EOF
7350 #define $ac_tr_func 1
7354 echo "$ac_t""no" 1>&6
7358 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7359 echo "configure:7360: checking for getspnam in -lgen" >&5
7360 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7361 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7362 echo $ac_n "(cached) $ac_c" 1>&6
7364 ac_save_LIBS
="$LIBS"
7366 cat > conftest.
$ac_ext <<EOF
7367 #line 7368 "configure"
7368 #include "confdefs.h"
7369 /* Override any gcc2 internal prototype to avoid an error. */
7370 /* We use char because int might match the return type of a gcc2
7371 builtin and then its argument prototype would still apply. */
7378 if { (eval echo configure
:7379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7380 eval "ac_cv_lib_$ac_lib_var=yes"
7382 echo "configure: failed program was:" >&5
7383 cat conftest.
$ac_ext >&5
7385 eval "ac_cv_lib_$ac_lib_var=no"
7388 LIBS
="$ac_save_LIBS"
7391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7392 echo "$ac_t""yes" 1>&6
7393 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7394 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7395 cat >> confdefs.h
<<EOF
7396 #define $ac_tr_lib 1
7402 echo "$ac_t""no" 1>&6
7405 for ac_func
in getspnam
7407 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7408 echo "configure:7409: checking for $ac_func" >&5
7409 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7410 echo $ac_n "(cached) $ac_c" 1>&6
7412 cat > conftest.
$ac_ext <<EOF
7413 #line 7414 "configure"
7414 #include "confdefs.h"
7415 /* System header to define __stub macros and hopefully few prototypes,
7416 which can conflict with char $ac_func(); below. */
7418 /* Override any gcc2 internal prototype to avoid an error. */
7419 /* We use char because int might match the return type of a gcc2
7420 builtin and then its argument prototype would still apply. */
7425 /* The GNU C library defines this for functions which it implements
7426 to always fail with ENOSYS. Some functions are actually named
7427 something starting with __ and the normal name is an alias. */
7428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
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_func_$ac_func=yes"
7440 echo "configure: failed program was:" >&5
7441 cat conftest.
$ac_ext >&5
7443 eval "ac_cv_func_$ac_func=no"
7448 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7449 echo "$ac_t""yes" 1>&6
7450 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7451 cat >> confdefs.h
<<EOF
7452 #define $ac_tr_func 1
7456 echo "$ac_t""no" 1>&6
7465 *-lsecurity*) for ac_func
in getspnam
7467 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7468 echo "configure:7469: checking for $ac_func" >&5
7469 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7470 echo $ac_n "(cached) $ac_c" 1>&6
7472 cat > conftest.
$ac_ext <<EOF
7473 #line 7474 "configure"
7474 #include "confdefs.h"
7475 /* System header to define __stub macros and hopefully few prototypes,
7476 which can conflict with char $ac_func(); below. */
7478 /* Override any gcc2 internal prototype to avoid an error. */
7479 /* We use char because int might match the return type of a gcc2
7480 builtin and then its argument prototype would still apply. */
7485 /* The GNU C library defines this for functions which it implements
7486 to always fail with ENOSYS. Some functions are actually named
7487 something starting with __ and the normal name is an alias. */
7488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7496 if { (eval echo configure
:7497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7498 eval "ac_cv_func_$ac_func=yes"
7500 echo "configure: failed program was:" >&5
7501 cat conftest.
$ac_ext >&5
7503 eval "ac_cv_func_$ac_func=no"
7508 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7509 echo "$ac_t""yes" 1>&6
7510 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7511 cat >> confdefs.h
<<EOF
7512 #define $ac_tr_func 1
7516 echo "$ac_t""no" 1>&6
7520 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7521 echo "configure:7522: checking for getspnam in -lsecurity" >&5
7522 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7523 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7524 echo $ac_n "(cached) $ac_c" 1>&6
7526 ac_save_LIBS
="$LIBS"
7527 LIBS
="-lsecurity $LIBS"
7528 cat > conftest.
$ac_ext <<EOF
7529 #line 7530 "configure"
7530 #include "confdefs.h"
7531 /* Override any gcc2 internal prototype to avoid an error. */
7532 /* We use char because int might match the return type of a gcc2
7533 builtin and then its argument prototype would still apply. */
7540 if { (eval echo configure
:7541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7542 eval "ac_cv_lib_$ac_lib_var=yes"
7544 echo "configure: failed program was:" >&5
7545 cat conftest.
$ac_ext >&5
7547 eval "ac_cv_lib_$ac_lib_var=no"
7550 LIBS
="$ac_save_LIBS"
7553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7554 echo "$ac_t""yes" 1>&6
7555 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7556 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7557 cat >> confdefs.h
<<EOF
7558 #define $ac_tr_lib 1
7561 LIBS
="-lsecurity $LIBS"
7564 echo "$ac_t""no" 1>&6
7567 for ac_func
in getspnam
7569 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7570 echo "configure:7571: checking for $ac_func" >&5
7571 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7572 echo $ac_n "(cached) $ac_c" 1>&6
7574 cat > conftest.
$ac_ext <<EOF
7575 #line 7576 "configure"
7576 #include "confdefs.h"
7577 /* System header to define __stub macros and hopefully few prototypes,
7578 which can conflict with char $ac_func(); below. */
7580 /* Override any gcc2 internal prototype to avoid an error. */
7581 /* We use char because int might match the return type of a gcc2
7582 builtin and then its argument prototype would still apply. */
7587 /* The GNU C library defines this for functions which it implements
7588 to always fail with ENOSYS. Some functions are actually named
7589 something starting with __ and the normal name is an alias. */
7590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7598 if { (eval echo configure
:7599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7600 eval "ac_cv_func_$ac_func=yes"
7602 echo "configure: failed program was:" >&5
7603 cat conftest.
$ac_ext >&5
7605 eval "ac_cv_func_$ac_func=no"
7610 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7611 echo "$ac_t""yes" 1>&6
7612 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7613 cat >> confdefs.h
<<EOF
7614 #define $ac_tr_func 1
7618 echo "$ac_t""no" 1>&6
7626 *-lsec*) 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
7681 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7682 echo "configure:7683: checking for getspnam in -lsec" >&5
7683 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7684 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7685 echo $ac_n "(cached) $ac_c" 1>&6
7687 ac_save_LIBS
="$LIBS"
7689 cat > conftest.
$ac_ext <<EOF
7690 #line 7691 "configure"
7691 #include "confdefs.h"
7692 /* Override any gcc2 internal prototype to avoid an error. */
7693 /* We use char because int might match the return type of a gcc2
7694 builtin and then its argument prototype would still apply. */
7701 if { (eval echo configure
:7702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7703 eval "ac_cv_lib_$ac_lib_var=yes"
7705 echo "configure: failed program was:" >&5
7706 cat conftest.
$ac_ext >&5
7708 eval "ac_cv_lib_$ac_lib_var=no"
7711 LIBS
="$ac_save_LIBS"
7714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7715 echo "$ac_t""yes" 1>&6
7716 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7717 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7718 cat >> confdefs.h
<<EOF
7719 #define $ac_tr_lib 1
7725 echo "$ac_t""no" 1>&6
7728 for ac_func
in getspnam
7730 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7731 echo "configure:7732: checking for $ac_func" >&5
7732 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7733 echo $ac_n "(cached) $ac_c" 1>&6
7735 cat > conftest.
$ac_ext <<EOF
7736 #line 7737 "configure"
7737 #include "confdefs.h"
7738 /* System header to define __stub macros and hopefully few prototypes,
7739 which can conflict with char $ac_func(); below. */
7741 /* Override any gcc2 internal prototype to avoid an error. */
7742 /* We use char because int might match the return type of a gcc2
7743 builtin and then its argument prototype would still apply. */
7748 /* The GNU C library defines this for functions which it implements
7749 to always fail with ENOSYS. Some functions are actually named
7750 something starting with __ and the normal name is an alias. */
7751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7759 if { (eval echo configure
:7760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7761 eval "ac_cv_func_$ac_func=yes"
7763 echo "configure: failed program was:" >&5
7764 cat conftest.
$ac_ext >&5
7766 eval "ac_cv_func_$ac_func=no"
7771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7772 echo "$ac_t""yes" 1>&6
7773 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7774 cat >> confdefs.h
<<EOF
7775 #define $ac_tr_func 1
7779 echo "$ac_t""no" 1>&6
7788 *-lsecurity*) for ac_func
in bigcrypt
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
7843 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7844 echo "configure:7845: checking for bigcrypt in -lsecurity" >&5
7845 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7846 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7847 echo $ac_n "(cached) $ac_c" 1>&6
7849 ac_save_LIBS
="$LIBS"
7850 LIBS
="-lsecurity $LIBS"
7851 cat > conftest.
$ac_ext <<EOF
7852 #line 7853 "configure"
7853 #include "confdefs.h"
7854 /* Override any gcc2 internal prototype to avoid an error. */
7855 /* We use char because int might match the return type of a gcc2
7856 builtin and then its argument prototype would still apply. */
7863 if { (eval echo configure
:7864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7865 eval "ac_cv_lib_$ac_lib_var=yes"
7867 echo "configure: failed program was:" >&5
7868 cat conftest.
$ac_ext >&5
7870 eval "ac_cv_lib_$ac_lib_var=no"
7873 LIBS
="$ac_save_LIBS"
7876 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7877 echo "$ac_t""yes" 1>&6
7878 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7879 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7880 cat >> confdefs.h
<<EOF
7881 #define $ac_tr_lib 1
7884 LIBS
="-lsecurity $LIBS"
7887 echo "$ac_t""no" 1>&6
7890 for ac_func
in bigcrypt
7892 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7893 echo "configure:7894: checking for $ac_func" >&5
7894 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7895 echo $ac_n "(cached) $ac_c" 1>&6
7897 cat > conftest.
$ac_ext <<EOF
7898 #line 7899 "configure"
7899 #include "confdefs.h"
7900 /* System header to define __stub macros and hopefully few prototypes,
7901 which can conflict with char $ac_func(); below. */
7903 /* Override any gcc2 internal prototype to avoid an error. */
7904 /* We use char because int might match the return type of a gcc2
7905 builtin and then its argument prototype would still apply. */
7910 /* The GNU C library defines this for functions which it implements
7911 to always fail with ENOSYS. Some functions are actually named
7912 something starting with __ and the normal name is an alias. */
7913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7921 if { (eval echo configure
:7922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7923 eval "ac_cv_func_$ac_func=yes"
7925 echo "configure: failed program was:" >&5
7926 cat conftest.
$ac_ext >&5
7928 eval "ac_cv_func_$ac_func=no"
7933 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7934 echo "$ac_t""yes" 1>&6
7935 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7936 cat >> confdefs.h
<<EOF
7937 #define $ac_tr_func 1
7941 echo "$ac_t""no" 1>&6
7949 *-lsec*) for ac_func
in bigcrypt
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
8004 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8005 echo "configure:8006: checking for bigcrypt in -lsec" >&5
8006 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8007 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8008 echo $ac_n "(cached) $ac_c" 1>&6
8010 ac_save_LIBS
="$LIBS"
8012 cat > conftest.
$ac_ext <<EOF
8013 #line 8014 "configure"
8014 #include "confdefs.h"
8015 /* Override any gcc2 internal prototype to avoid an error. */
8016 /* We use char because int might match the return type of a gcc2
8017 builtin and then its argument prototype would still apply. */
8024 if { (eval echo configure
:8025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8026 eval "ac_cv_lib_$ac_lib_var=yes"
8028 echo "configure: failed program was:" >&5
8029 cat conftest.
$ac_ext >&5
8031 eval "ac_cv_lib_$ac_lib_var=no"
8034 LIBS
="$ac_save_LIBS"
8037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8038 echo "$ac_t""yes" 1>&6
8039 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8040 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8041 cat >> confdefs.h
<<EOF
8042 #define $ac_tr_lib 1
8048 echo "$ac_t""no" 1>&6
8051 for ac_func
in bigcrypt
8053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8054 echo "configure:8055: checking for $ac_func" >&5
8055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8056 echo $ac_n "(cached) $ac_c" 1>&6
8058 cat > conftest.
$ac_ext <<EOF
8059 #line 8060 "configure"
8060 #include "confdefs.h"
8061 /* System header to define __stub macros and hopefully few prototypes,
8062 which can conflict with char $ac_func(); below. */
8064 /* Override any gcc2 internal prototype to avoid an error. */
8065 /* We use char because int might match the return type of a gcc2
8066 builtin and then its argument prototype would still apply. */
8071 /* The GNU C library defines this for functions which it implements
8072 to always fail with ENOSYS. Some functions are actually named
8073 something starting with __ and the normal name is an alias. */
8074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8082 if { (eval echo configure
:8083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8084 eval "ac_cv_func_$ac_func=yes"
8086 echo "configure: failed program was:" >&5
8087 cat conftest.
$ac_ext >&5
8089 eval "ac_cv_func_$ac_func=no"
8094 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8095 echo "$ac_t""yes" 1>&6
8096 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8097 cat >> confdefs.h
<<EOF
8098 #define $ac_tr_func 1
8102 echo "$ac_t""no" 1>&6
8111 *-lsecurity*) for ac_func
in getprpwnam
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
8166 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8167 echo "configure:8168: checking for getprpwnam in -lsecurity" >&5
8168 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8169 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8170 echo $ac_n "(cached) $ac_c" 1>&6
8172 ac_save_LIBS
="$LIBS"
8173 LIBS
="-lsecurity $LIBS"
8174 cat > conftest.
$ac_ext <<EOF
8175 #line 8176 "configure"
8176 #include "confdefs.h"
8177 /* Override any gcc2 internal prototype to avoid an error. */
8178 /* We use char because int might match the return type of a gcc2
8179 builtin and then its argument prototype would still apply. */
8186 if { (eval echo configure
:8187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8188 eval "ac_cv_lib_$ac_lib_var=yes"
8190 echo "configure: failed program was:" >&5
8191 cat conftest.
$ac_ext >&5
8193 eval "ac_cv_lib_$ac_lib_var=no"
8196 LIBS
="$ac_save_LIBS"
8199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8200 echo "$ac_t""yes" 1>&6
8201 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8202 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8203 cat >> confdefs.h
<<EOF
8204 #define $ac_tr_lib 1
8207 LIBS
="-lsecurity $LIBS"
8210 echo "$ac_t""no" 1>&6
8213 for ac_func
in getprpwnam
8215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8216 echo "configure:8217: checking for $ac_func" >&5
8217 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8218 echo $ac_n "(cached) $ac_c" 1>&6
8220 cat > conftest.
$ac_ext <<EOF
8221 #line 8222 "configure"
8222 #include "confdefs.h"
8223 /* System header to define __stub macros and hopefully few prototypes,
8224 which can conflict with char $ac_func(); below. */
8226 /* Override any gcc2 internal prototype to avoid an error. */
8227 /* We use char because int might match the return type of a gcc2
8228 builtin and then its argument prototype would still apply. */
8233 /* The GNU C library defines this for functions which it implements
8234 to always fail with ENOSYS. Some functions are actually named
8235 something starting with __ and the normal name is an alias. */
8236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8244 if { (eval echo configure
:8245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8246 eval "ac_cv_func_$ac_func=yes"
8248 echo "configure: failed program was:" >&5
8249 cat conftest.
$ac_ext >&5
8251 eval "ac_cv_func_$ac_func=no"
8256 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8257 echo "$ac_t""yes" 1>&6
8258 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8259 cat >> confdefs.h
<<EOF
8260 #define $ac_tr_func 1
8264 echo "$ac_t""no" 1>&6
8272 *-lsec*) for ac_func
in getprpwnam
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
8327 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8328 echo "configure:8329: checking for getprpwnam in -lsec" >&5
8329 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8330 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8331 echo $ac_n "(cached) $ac_c" 1>&6
8333 ac_save_LIBS
="$LIBS"
8335 cat > conftest.
$ac_ext <<EOF
8336 #line 8337 "configure"
8337 #include "confdefs.h"
8338 /* Override any gcc2 internal prototype to avoid an error. */
8339 /* We use char because int might match the return type of a gcc2
8340 builtin and then its argument prototype would still apply. */
8347 if { (eval echo configure
:8348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8349 eval "ac_cv_lib_$ac_lib_var=yes"
8351 echo "configure: failed program was:" >&5
8352 cat conftest.
$ac_ext >&5
8354 eval "ac_cv_lib_$ac_lib_var=no"
8357 LIBS
="$ac_save_LIBS"
8360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8361 echo "$ac_t""yes" 1>&6
8362 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8363 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8364 cat >> confdefs.h
<<EOF
8365 #define $ac_tr_lib 1
8371 echo "$ac_t""no" 1>&6
8374 for ac_func
in getprpwnam
8376 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8377 echo "configure:8378: checking for $ac_func" >&5
8378 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8379 echo $ac_n "(cached) $ac_c" 1>&6
8381 cat > conftest.
$ac_ext <<EOF
8382 #line 8383 "configure"
8383 #include "confdefs.h"
8384 /* System header to define __stub macros and hopefully few prototypes,
8385 which can conflict with char $ac_func(); below. */
8387 /* Override any gcc2 internal prototype to avoid an error. */
8388 /* We use char because int might match the return type of a gcc2
8389 builtin and then its argument prototype would still apply. */
8394 /* The GNU C library defines this for functions which it implements
8395 to always fail with ENOSYS. Some functions are actually named
8396 something starting with __ and the normal name is an alias. */
8397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8405 if { (eval echo configure
:8406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8407 eval "ac_cv_func_$ac_func=yes"
8409 echo "configure: failed program was:" >&5
8410 cat conftest.
$ac_ext >&5
8412 eval "ac_cv_func_$ac_func=no"
8417 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8418 echo "$ac_t""yes" 1>&6
8419 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8420 cat >> confdefs.h
<<EOF
8421 #define $ac_tr_func 1
8425 echo "$ac_t""no" 1>&6
8433 # this bit needs to be modified for each OS that is suported by
8434 # smbwrapper. You need to specify how to created a shared library and
8435 # how to compile C code to produce PIC object files
8437 # these are the defaults, good for lots of systems
8443 # and these are for particular systems
8445 *linux
*) cat >> confdefs.h
<<\EOF
8449 *solaris
*) cat >> confdefs.h
<<\EOF
8455 *sunos
*) cat >> confdefs.h
<<\EOF
8461 *bsd
*) LDSHFLAGS
="-shared -Bshareable"
8463 *irix
*) cat >> confdefs.h
<<\EOF
8468 *irix6
*) cat >> confdefs.h
<<\EOF
8474 ATTEMPT_WRAP32_BUILD
=yes
8476 *aix
*) cat >> confdefs.h
<<\EOF
8480 *hpux
*) cat >> confdefs.h
<<\EOF
8485 # Use special PIC flags for the native HP-UX compiler.
8486 if test $ac_cv_prog_cc_Ae = yes; then
8491 *qnx
*) cat >> confdefs.h
<<\EOF
8495 *osf
*) cat >> confdefs.h
<<\EOF
8499 *sco
*) cat >> confdefs.h
<<\EOF
8503 *next2
*) cat >> confdefs.h
<<\EOF
8507 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
8508 set dummy
groff; ac_word
=$2
8509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8510 echo "configure:8511: checking for $ac_word" >&5
8511 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8512 echo $ac_n "(cached) $ac_c" 1>&6
8514 if test -n "$ROFF"; then
8515 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
8517 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8519 for ac_dir
in $ac_dummy; do
8520 test -z "$ac_dir" && ac_dir
=.
8521 if test -f $ac_dir/$ac_word; then
8522 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
8529 ROFF
="$ac_cv_prog_ROFF"
8530 if test -n "$ROFF"; then
8531 echo "$ac_t""$ROFF" 1>&6
8533 echo "$ac_t""no" 1>&6
8538 *-univel-*) if test "$GCC" != yes ; then
8539 cat >> confdefs.h
<<\EOF
8540 #define HAVE_MEMSET 1
8546 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
8547 #define RELIANTUNIX 1
8553 if test "$GCC" != yes ; then
8554 cat >> confdefs.h
<<\EOF
8555 #define HAVE_MEMSET 1
8563 # try to work out how to produce PIC code with this compiler
8564 echo $ac_n "checking whether ${CC-cc} accepts -fPIC""... $ac_c" 1>&6
8565 echo "configure:8566: checking whether ${CC-cc} accepts -fPIC" >&5
8566 if eval "test \"`echo '$''{'ac_cv_prog_cc_fPIC'+set}'`\" = set"; then
8567 echo $ac_n "(cached) $ac_c" 1>&6
8569 echo 'void f(){}' > conftest.c
8570 if test -z "`${CC-cc} -fPIC -c conftest.c 2>&1`"; then
8571 ac_cv_prog_cc_fPIC
=yes
8573 ac_cv_prog_cc_fPIC
=no
8579 echo "$ac_t""$ac_cv_prog_cc_fPIC" 1>&6
8580 if test $ac_cv_prog_cc_fPIC = yes; then
8583 if test x
$PICFLAG = x
; then
8584 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8585 echo "configure:8586: checking whether ${CC-cc} accepts -KPIC" >&5
8586 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8587 echo $ac_n "(cached) $ac_c" 1>&6
8589 echo 'void f(){}' > conftest.c
8590 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8591 ac_cv_prog_cc_KPIC
=yes
8593 ac_cv_prog_cc_KPIC
=no
8599 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8600 if test $ac_cv_prog_cc_KPIC = yes; then
8604 if test x
$PICFLAG = x
; then
8605 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8606 echo "configure:8607: checking whether ${CC-cc} accepts -Kpic" >&5
8607 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8608 echo $ac_n "(cached) $ac_c" 1>&6
8610 echo 'void f(){}' > conftest.c
8611 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8612 ac_cv_prog_cc_Kpic
=yes
8614 ac_cv_prog_cc_Kpic
=no
8620 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8621 if test $ac_cv_prog_cc_Kpic = yes; then
8628 echo $ac_n "checking for long long""... $ac_c" 1>&6
8629 echo "configure:8630: checking for long long" >&5
8630 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8631 echo $ac_n "(cached) $ac_c" 1>&6
8634 if test "$cross_compiling" = yes; then
8635 samba_cv_have_longlong
=cross
8637 cat > conftest.
$ac_ext <<EOF
8638 #line 8639 "configure"
8639 #include "confdefs.h"
8641 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8643 if { (eval echo configure
:8644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8645 samba_cv_have_longlong
=yes
8647 echo "configure: failed program was:" >&5
8648 cat conftest.
$ac_ext >&5
8650 samba_cv_have_longlong
=no
8657 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8658 if test x
"$samba_cv_have_longlong" = x
"yes"; then
8659 cat >> confdefs.h
<<\EOF
8660 #define HAVE_LONGLONG 1
8666 # Check if the compiler supports the LL prefix on long long integers.
8669 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8670 echo "configure:8671: checking for LL suffix on long long integers" >&5
8671 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8672 echo $ac_n "(cached) $ac_c" 1>&6
8675 cat > conftest.
$ac_ext <<EOF
8676 #line 8677 "configure"
8677 #include "confdefs.h"
8680 long long i = 0x8000000000LL
8683 if { (eval echo configure
:8684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8685 samba_cv_compiler_supports_ll
=yes
8687 echo "configure: failed program was:" >&5
8688 cat conftest.
$ac_ext >&5
8690 samba_cv_compiler_supports_ll
=no
8695 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8696 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
8697 cat >> confdefs.h
<<\EOF
8698 #define COMPILER_SUPPORTS_LL 1
8704 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8705 echo "configure:8706: checking for 64 bit off_t" >&5
8706 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8707 echo $ac_n "(cached) $ac_c" 1>&6
8710 if test "$cross_compiling" = yes; then
8711 samba_cv_SIZEOF_OFF_T
=cross
8713 cat > conftest.
$ac_ext <<EOF
8714 #line 8715 "configure"
8715 #include "confdefs.h"
8717 #include <sys/stat.h>
8718 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8720 if { (eval echo configure
:8721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8722 samba_cv_SIZEOF_OFF_T
=yes
8724 echo "configure: failed program was:" >&5
8725 cat conftest.
$ac_ext >&5
8727 samba_cv_SIZEOF_OFF_T
=no
8734 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8735 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
8736 cat >> confdefs.h
<<\EOF
8737 #define SIZEOF_OFF_T 8
8742 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8743 echo "configure:8744: checking for off64_t" >&5
8744 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8745 echo $ac_n "(cached) $ac_c" 1>&6
8748 if test "$cross_compiling" = yes; then
8749 samba_cv_HAVE_OFF64_T
=cross
8751 cat > conftest.
$ac_ext <<EOF
8752 #line 8753 "configure"
8753 #include "confdefs.h"
8755 #if defined(HAVE_UNISTD_H)
8759 #include <sys/stat.h>
8760 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8762 if { (eval echo configure
:8763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8764 samba_cv_HAVE_OFF64_T
=yes
8766 echo "configure: failed program was:" >&5
8767 cat conftest.
$ac_ext >&5
8769 samba_cv_HAVE_OFF64_T
=no
8776 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8777 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
8778 cat >> confdefs.h
<<\EOF
8779 #define HAVE_OFF64_T 1
8784 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8785 echo "configure:8786: checking for 64 bit ino_t" >&5
8786 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8787 echo $ac_n "(cached) $ac_c" 1>&6
8790 if test "$cross_compiling" = yes; then
8791 samba_cv_SIZEOF_INO_T
=cross
8793 cat > conftest.
$ac_ext <<EOF
8794 #line 8795 "configure"
8795 #include "confdefs.h"
8797 #include <sys/stat.h>
8798 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8800 if { (eval echo configure
:8801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8802 samba_cv_SIZEOF_INO_T
=yes
8804 echo "configure: failed program was:" >&5
8805 cat conftest.
$ac_ext >&5
8807 samba_cv_SIZEOF_INO_T
=no
8814 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8815 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
8816 cat >> confdefs.h
<<\EOF
8817 #define SIZEOF_INO_T 8
8822 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8823 echo "configure:8824: checking for ino64_t" >&5
8824 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8825 echo $ac_n "(cached) $ac_c" 1>&6
8828 if test "$cross_compiling" = yes; then
8829 samba_cv_HAVE_INO64_T
=cross
8831 cat > conftest.
$ac_ext <<EOF
8832 #line 8833 "configure"
8833 #include "confdefs.h"
8835 #if defined(HAVE_UNISTD_H)
8839 #include <sys/stat.h>
8840 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8842 if { (eval echo configure
:8843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8844 samba_cv_HAVE_INO64_T
=yes
8846 echo "configure: failed program was:" >&5
8847 cat conftest.
$ac_ext >&5
8849 samba_cv_HAVE_INO64_T
=no
8856 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8857 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
8858 cat >> confdefs.h
<<\EOF
8859 #define HAVE_INO64_T 1
8864 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8865 echo "configure:8866: checking for struct dirent64" >&5
8866 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8867 echo $ac_n "(cached) $ac_c" 1>&6
8870 cat > conftest.
$ac_ext <<EOF
8871 #line 8872 "configure"
8872 #include "confdefs.h"
8874 #if defined(HAVE_UNISTD_H)
8877 #include <sys/types.h>
8883 if { (eval echo configure
:8884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8885 samba_cv_HAVE_STRUCT_DIRENT64
=yes
8887 echo "configure: failed program was:" >&5
8888 cat conftest.
$ac_ext >&5
8890 samba_cv_HAVE_STRUCT_DIRENT64
=no
8895 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8896 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes"; then
8897 cat >> confdefs.h
<<\EOF
8898 #define HAVE_STRUCT_DIRENT64 1
8903 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8904 echo "configure:8905: checking for unsigned char" >&5
8905 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8906 echo $ac_n "(cached) $ac_c" 1>&6
8909 if test "$cross_compiling" = yes; then
8910 samba_cv_HAVE_UNSIGNED_CHAR
=cross
8912 cat > conftest.
$ac_ext <<EOF
8913 #line 8914 "configure"
8914 #include "confdefs.h"
8916 main() { char c; c=250; exit((c > 0)?0:1); }
8918 if { (eval echo configure
:8919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8920 samba_cv_HAVE_UNSIGNED_CHAR
=yes
8922 echo "configure: failed program was:" >&5
8923 cat conftest.
$ac_ext >&5
8925 samba_cv_HAVE_UNSIGNED_CHAR
=no
8932 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8933 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
8934 cat >> confdefs.h
<<\EOF
8935 #define HAVE_UNSIGNED_CHAR 1
8940 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8941 echo "configure:8942: checking for sin_len in sock" >&5
8942 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8943 echo $ac_n "(cached) $ac_c" 1>&6
8946 cat > conftest.
$ac_ext <<EOF
8947 #line 8948 "configure"
8948 #include "confdefs.h"
8949 #include <sys/types.h>
8950 #include <sys/socket.h>
8951 #include <netinet/in.h>
8953 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8956 if { (eval echo configure
:8957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8958 samba_cv_HAVE_SOCK_SIN_LEN
=yes
8960 echo "configure: failed program was:" >&5
8961 cat conftest.
$ac_ext >&5
8963 samba_cv_HAVE_SOCK_SIN_LEN
=no
8968 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8969 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
8970 cat >> confdefs.h
<<\EOF
8971 #define HAVE_SOCK_SIN_LEN 1
8976 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8977 echo "configure:8978: checking whether seekdir returns void" >&5
8978 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8979 echo $ac_n "(cached) $ac_c" 1>&6
8982 cat > conftest.
$ac_ext <<EOF
8983 #line 8984 "configure"
8984 #include "confdefs.h"
8985 #include <sys/types.h>
8987 void seekdir(DIR *d, long loc) { return; }
8992 if { (eval echo configure
:8993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8994 samba_cv_SEEKDIR_RETURNS_VOID
=yes
8996 echo "configure: failed program was:" >&5
8997 cat conftest.
$ac_ext >&5
8999 samba_cv_SEEKDIR_RETURNS_VOID
=no
9004 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9005 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
9006 cat >> confdefs.h
<<\EOF
9007 #define SEEKDIR_RETURNS_VOID 1
9012 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9013 echo "configure:9014: checking for __FILE__ macro" >&5
9014 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9015 echo $ac_n "(cached) $ac_c" 1>&6
9018 cat > conftest.
$ac_ext <<EOF
9019 #line 9020 "configure"
9020 #include "confdefs.h"
9023 printf("%s\n", __FILE__);
9026 if { (eval echo configure
:9027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9028 samba_cv_HAVE_FILE_MACRO
=yes
9030 echo "configure: failed program was:" >&5
9031 cat conftest.
$ac_ext >&5
9033 samba_cv_HAVE_FILE_MACRO
=no
9038 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9039 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
9040 cat >> confdefs.h
<<\EOF
9041 #define HAVE_FILE_MACRO 1
9046 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9047 echo "configure:9048: checking for __FUNCTION__ macro" >&5
9048 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9049 echo $ac_n "(cached) $ac_c" 1>&6
9052 cat > conftest.
$ac_ext <<EOF
9053 #line 9054 "configure"
9054 #include "confdefs.h"
9057 printf("%s\n", __FUNCTION__);
9060 if { (eval echo configure
:9061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9062 samba_cv_HAVE_FUNCTION_MACRO
=yes
9064 echo "configure: failed program was:" >&5
9065 cat conftest.
$ac_ext >&5
9067 samba_cv_HAVE_FUNCTION_MACRO
=no
9072 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9073 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
9074 cat >> confdefs.h
<<\EOF
9075 #define HAVE_FUNCTION_MACRO 1
9080 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9081 echo "configure:9082: checking if gettimeofday takes tz argument" >&5
9082 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9083 echo $ac_n "(cached) $ac_c" 1>&6
9086 if test "$cross_compiling" = yes; then
9087 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
9089 cat > conftest.
$ac_ext <<EOF
9090 #line 9091 "configure"
9091 #include "confdefs.h"
9093 #include <sys/time.h>
9095 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9097 if { (eval echo configure
:9098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9099 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
9101 echo "configure: failed program was:" >&5
9102 cat conftest.
$ac_ext >&5
9104 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
9111 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9112 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
9113 cat >> confdefs.h
<<\EOF
9114 #define HAVE_GETTIMEOFDAY_TZ 1
9119 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9120 echo "configure:9121: checking for C99 vsnprintf" >&5
9121 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9122 echo $ac_n "(cached) $ac_c" 1>&6
9125 if test "$cross_compiling" = yes; then
9126 samba_cv_HAVE_C99_VSNPRINTF
=cross
9128 cat > conftest.
$ac_ext <<EOF
9129 #line 9130 "configure"
9130 #include "confdefs.h"
9132 #include <sys/types.h>
9134 void foo(const char *format, ...) {
9139 va_start(ap, format);
9140 len = vsnprintf(0, 0, format, ap);
9142 if (len != 5) exit(1);
9144 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9148 main() { foo("hello"); }
9151 if { (eval echo configure
:9152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9153 samba_cv_HAVE_C99_VSNPRINTF
=yes
9155 echo "configure: failed program was:" >&5
9156 cat conftest.
$ac_ext >&5
9158 samba_cv_HAVE_C99_VSNPRINTF
=no
9165 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9166 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
9167 cat >> confdefs.h
<<\EOF
9168 #define HAVE_C99_VSNPRINTF 1
9173 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9174 echo "configure:9175: checking for broken readdir" >&5
9175 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9176 echo $ac_n "(cached) $ac_c" 1>&6
9179 if test "$cross_compiling" = yes; then
9180 samba_cv_HAVE_BROKEN_READDIR
=cross
9182 cat > conftest.
$ac_ext <<EOF
9183 #line 9184 "configure"
9184 #include "confdefs.h"
9185 #include <sys/types.h>
9187 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9188 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9189 di->d_name[0] == 0) exit(0); exit(1);}
9191 if { (eval echo configure
:9192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9193 samba_cv_HAVE_BROKEN_READDIR
=yes
9195 echo "configure: failed program was:" >&5
9196 cat conftest.
$ac_ext >&5
9198 samba_cv_HAVE_BROKEN_READDIR
=no
9205 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9206 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
9207 cat >> confdefs.h
<<\EOF
9208 #define HAVE_BROKEN_READDIR 1
9213 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9214 echo "configure:9215: checking for utimbuf" >&5
9215 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9216 echo $ac_n "(cached) $ac_c" 1>&6
9219 cat > conftest.
$ac_ext <<EOF
9220 #line 9221 "configure"
9221 #include "confdefs.h"
9222 #include <sys/types.h>
9225 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9228 if { (eval echo configure
:9229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9230 samba_cv_HAVE_UTIMBUF
=yes
9232 echo "configure: failed program was:" >&5
9233 cat conftest.
$ac_ext >&5
9235 samba_cv_HAVE_UTIMBUF
=no
9240 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9241 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
9242 cat >> confdefs.h
<<\EOF
9243 #define HAVE_UTIMBUF 1
9249 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
9251 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9252 echo "configure:9253: checking for $ac_func" >&5
9253 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9254 echo $ac_n "(cached) $ac_c" 1>&6
9256 cat > conftest.
$ac_ext <<EOF
9257 #line 9258 "configure"
9258 #include "confdefs.h"
9259 /* System header to define __stub macros and hopefully few prototypes,
9260 which can conflict with char $ac_func(); below. */
9262 /* Override any gcc2 internal prototype to avoid an error. */
9263 /* We use char because int might match the return type of a gcc2
9264 builtin and then its argument prototype would still apply. */
9269 /* The GNU C library defines this for functions which it implements
9270 to always fail with ENOSYS. Some functions are actually named
9271 something starting with __ and the normal name is an alias. */
9272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9280 if { (eval echo configure
:9281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9282 eval "ac_cv_func_$ac_func=yes"
9284 echo "configure: failed program was:" >&5
9285 cat conftest.
$ac_ext >&5
9287 eval "ac_cv_func_$ac_func=no"
9292 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9293 echo "$ac_t""yes" 1>&6
9294 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9295 cat >> confdefs.h
<<EOF
9296 #define $ac_tr_func 1
9300 echo "$ac_t""no" 1>&6
9305 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9306 echo "configure:9307: checking for ut_name in utmp" >&5
9307 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9308 echo $ac_n "(cached) $ac_c" 1>&6
9311 cat > conftest.
$ac_ext <<EOF
9312 #line 9313 "configure"
9313 #include "confdefs.h"
9314 #include <sys/types.h>
9317 struct utmp ut; ut.ut_name[0] = 'a';
9320 if { (eval echo configure
:9321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9322 samba_cv_HAVE_UT_UT_NAME
=yes
9324 echo "configure: failed program was:" >&5
9325 cat conftest.
$ac_ext >&5
9327 samba_cv_HAVE_UT_UT_NAME
=no
9332 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9333 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
9334 cat >> confdefs.h
<<\EOF
9335 #define HAVE_UT_UT_NAME 1
9340 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9341 echo "configure:9342: checking for ut_user in utmp" >&5
9342 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9343 echo $ac_n "(cached) $ac_c" 1>&6
9346 cat > conftest.
$ac_ext <<EOF
9347 #line 9348 "configure"
9348 #include "confdefs.h"
9349 #include <sys/types.h>
9352 struct utmp ut; ut.ut_user[0] = 'a';
9355 if { (eval echo configure
:9356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9357 samba_cv_HAVE_UT_UT_USER
=yes
9359 echo "configure: failed program was:" >&5
9360 cat conftest.
$ac_ext >&5
9362 samba_cv_HAVE_UT_UT_USER
=no
9367 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9368 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
9369 cat >> confdefs.h
<<\EOF
9370 #define HAVE_UT_UT_USER 1
9375 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9376 echo "configure:9377: checking for ut_id in utmp" >&5
9377 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9378 echo $ac_n "(cached) $ac_c" 1>&6
9381 cat > conftest.
$ac_ext <<EOF
9382 #line 9383 "configure"
9383 #include "confdefs.h"
9384 #include <sys/types.h>
9387 struct utmp ut; ut.ut_id[0] = 'a';
9390 if { (eval echo configure
:9391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9392 samba_cv_HAVE_UT_UT_ID
=yes
9394 echo "configure: failed program was:" >&5
9395 cat conftest.
$ac_ext >&5
9397 samba_cv_HAVE_UT_UT_ID
=no
9402 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9403 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
9404 cat >> confdefs.h
<<\EOF
9405 #define HAVE_UT_UT_ID 1
9410 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9411 echo "configure:9412: checking for ut_host in utmp" >&5
9412 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9413 echo $ac_n "(cached) $ac_c" 1>&6
9416 cat > conftest.
$ac_ext <<EOF
9417 #line 9418 "configure"
9418 #include "confdefs.h"
9419 #include <sys/types.h>
9422 struct utmp ut; ut.ut_host[0] = 'a';
9425 if { (eval echo configure
:9426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9427 samba_cv_HAVE_UT_UT_HOST
=yes
9429 echo "configure: failed program was:" >&5
9430 cat conftest.
$ac_ext >&5
9432 samba_cv_HAVE_UT_UT_HOST
=no
9437 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9438 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
9439 cat >> confdefs.h
<<\EOF
9440 #define HAVE_UT_UT_HOST 1
9445 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9446 echo "configure:9447: checking for ut_time in utmp" >&5
9447 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9448 echo $ac_n "(cached) $ac_c" 1>&6
9451 cat > conftest.
$ac_ext <<EOF
9452 #line 9453 "configure"
9453 #include "confdefs.h"
9454 #include <sys/types.h>
9457 struct utmp ut; time_t t; ut.ut_time = t;
9460 if { (eval echo configure
:9461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9462 samba_cv_HAVE_UT_UT_TIME
=yes
9464 echo "configure: failed program was:" >&5
9465 cat conftest.
$ac_ext >&5
9467 samba_cv_HAVE_UT_UT_TIME
=no
9472 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9473 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
9474 cat >> confdefs.h
<<\EOF
9475 #define HAVE_UT_UT_TIME 1
9480 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9481 echo "configure:9482: checking for ut_tv in utmp" >&5
9482 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9483 echo $ac_n "(cached) $ac_c" 1>&6
9486 cat > conftest.
$ac_ext <<EOF
9487 #line 9488 "configure"
9488 #include "confdefs.h"
9489 #include <sys/types.h>
9492 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9495 if { (eval echo configure
:9496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9497 samba_cv_HAVE_UT_UT_TV
=yes
9499 echo "configure: failed program was:" >&5
9500 cat conftest.
$ac_ext >&5
9502 samba_cv_HAVE_UT_UT_TV
=no
9507 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9508 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
9509 cat >> confdefs.h
<<\EOF
9510 #define HAVE_UT_UT_TV 1
9515 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9516 echo "configure:9517: checking for ut_type in utmp" >&5
9517 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+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"
9524 #include <sys/types.h>
9527 struct utmp ut; ut.ut_type = 0;
9530 if { (eval echo configure
:9531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9532 samba_cv_HAVE_UT_UT_TYPE
=yes
9534 echo "configure: failed program was:" >&5
9535 cat conftest.
$ac_ext >&5
9537 samba_cv_HAVE_UT_UT_TYPE
=no
9542 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9543 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
9544 cat >> confdefs.h
<<\EOF
9545 #define HAVE_UT_UT_TYPE 1
9550 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9551 echo "configure:9552: checking for ut_pid in utmp" >&5
9552 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9553 echo $ac_n "(cached) $ac_c" 1>&6
9556 cat > conftest.
$ac_ext <<EOF
9557 #line 9558 "configure"
9558 #include "confdefs.h"
9559 #include <sys/types.h>
9562 struct utmp ut; ut.ut_pid = 0;
9565 if { (eval echo configure
:9566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9567 samba_cv_HAVE_UT_UT_PID
=yes
9569 echo "configure: failed program was:" >&5
9570 cat conftest.
$ac_ext >&5
9572 samba_cv_HAVE_UT_UT_PID
=no
9577 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9578 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
9579 cat >> confdefs.h
<<\EOF
9580 #define HAVE_UT_UT_PID 1
9585 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9586 echo "configure:9587: checking for ut_exit in utmp" >&5
9587 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9588 echo $ac_n "(cached) $ac_c" 1>&6
9591 cat > conftest.
$ac_ext <<EOF
9592 #line 9593 "configure"
9593 #include "confdefs.h"
9594 #include <sys/types.h>
9597 struct utmp ut; ut.ut_exit.e_exit = 0;
9600 if { (eval echo configure
:9601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9602 samba_cv_HAVE_UT_UT_EXIT
=yes
9604 echo "configure: failed program was:" >&5
9605 cat conftest.
$ac_ext >&5
9607 samba_cv_HAVE_UT_UT_EXIT
=no
9612 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9613 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
9614 cat >> confdefs.h
<<\EOF
9615 #define HAVE_UT_UT_EXIT 1
9620 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9621 echo "configure:9622: checking for ut_addr in utmp" >&5
9622 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9623 echo $ac_n "(cached) $ac_c" 1>&6
9626 cat > conftest.
$ac_ext <<EOF
9627 #line 9628 "configure"
9628 #include "confdefs.h"
9629 #include <sys/types.h>
9632 struct utmp ut; ut.ut_addr = 0;
9635 if { (eval echo configure
:9636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9637 samba_cv_HAVE_UT_UT_ADDR
=yes
9639 echo "configure: failed program was:" >&5
9640 cat conftest.
$ac_ext >&5
9642 samba_cv_HAVE_UT_UT_ADDR
=no
9647 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9648 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
9649 cat >> confdefs.h
<<\EOF
9650 #define HAVE_UT_UT_ADDR 1
9655 if test x
$ac_cv_func_pututline = xyes
; then
9656 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9657 echo "configure:9658: checking whether pututline returns pointer" >&5
9658 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9659 echo $ac_n "(cached) $ac_c" 1>&6
9662 cat > conftest.
$ac_ext <<EOF
9663 #line 9664 "configure"
9664 #include "confdefs.h"
9665 #include <sys/types.h>
9668 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9671 if { (eval echo configure
:9672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9673 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
9675 echo "configure: failed program was:" >&5
9676 cat conftest.
$ac_ext >&5
9678 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
9683 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9684 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
9685 cat >> confdefs.h
<<\EOF
9686 #define PUTUTLINE_RETURNS_UTMP 1
9692 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9693 echo "configure:9694: checking for ut_syslen in utmpx" >&5
9694 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9695 echo $ac_n "(cached) $ac_c" 1>&6
9698 cat > conftest.
$ac_ext <<EOF
9699 #line 9700 "configure"
9700 #include "confdefs.h"
9701 #include <sys/types.h>
9704 struct utmpx ux; ux.ut_syslen = 0;
9707 if { (eval echo configure
:9708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9709 samba_cv_HAVE_UX_UT_SYSLEN
=yes
9711 echo "configure: failed program was:" >&5
9712 cat conftest.
$ac_ext >&5
9714 samba_cv_HAVE_UX_UT_SYSLEN
=no
9719 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9720 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
9721 cat >> confdefs.h
<<\EOF
9722 #define HAVE_UX_UT_SYSLEN 1
9727 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9728 echo "configure:9729: checking for Linux kernel oplocks" >&5
9729 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9730 echo $ac_n "(cached) $ac_c" 1>&6
9733 if test "$cross_compiling" = yes; then
9734 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
9736 cat > conftest.
$ac_ext <<EOF
9737 #line 9738 "configure"
9738 #include "confdefs.h"
9740 #include <sys/types.h>
9743 #define F_GETLEASE 1025
9746 int fd = open("/dev/null", O_RDONLY);
9747 return fcntl(fd, F_GETLEASE, 0) == -1;
9751 if { (eval echo configure
:9752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9753 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
9755 echo "configure: failed program was:" >&5
9756 cat conftest.
$ac_ext >&5
9758 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
9765 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9766 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
9767 cat >> confdefs.h
<<\EOF
9768 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9773 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9774 echo "configure:9775: checking for kernel change notify support" >&5
9775 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9776 echo $ac_n "(cached) $ac_c" 1>&6
9779 if test "$cross_compiling" = yes; then
9780 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
9782 cat > conftest.
$ac_ext <<EOF
9783 #line 9784 "configure"
9784 #include "confdefs.h"
9786 #include <sys/types.h>
9790 #define F_NOTIFY 1026
9793 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9797 if { (eval echo configure
:9798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9799 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
9801 echo "configure: failed program was:" >&5
9802 cat conftest.
$ac_ext >&5
9804 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
9811 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9812 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
9813 cat >> confdefs.h
<<\EOF
9814 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9819 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9820 echo "configure:9821: checking for kernel share modes" >&5
9821 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9822 echo $ac_n "(cached) $ac_c" 1>&6
9825 if test "$cross_compiling" = yes; then
9826 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
9828 cat > conftest.
$ac_ext <<EOF
9829 #line 9830 "configure"
9830 #include "confdefs.h"
9832 #include <sys/types.h>
9835 #include <sys/file.h>
9837 #define LOCK_MAND 32
9838 #define LOCK_READ 64
9841 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9845 if { (eval echo configure
:9846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9847 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
9849 echo "configure: failed program was:" >&5
9850 cat conftest.
$ac_ext >&5
9852 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
9859 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9860 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
9861 cat >> confdefs.h
<<\EOF
9862 #define HAVE_KERNEL_SHARE_MODES 1
9870 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9871 echo "configure:9872: checking for IRIX kernel oplock type definitions" >&5
9872 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9873 echo $ac_n "(cached) $ac_c" 1>&6
9876 cat > conftest.
$ac_ext <<EOF
9877 #line 9878 "configure"
9878 #include "confdefs.h"
9879 #include <sys/types.h>
9882 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9885 if { (eval echo configure
:9886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9887 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
9889 echo "configure: failed program was:" >&5
9890 cat conftest.
$ac_ext >&5
9892 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
9897 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9898 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
9899 cat >> confdefs.h
<<\EOF
9900 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9905 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9906 echo "configure:9907: checking for irix specific capabilities" >&5
9907 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9908 echo $ac_n "(cached) $ac_c" 1>&6
9911 if test "$cross_compiling" = yes; then
9912 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
9914 cat > conftest.
$ac_ext <<EOF
9915 #line 9916 "configure"
9916 #include "confdefs.h"
9917 #include <sys/types.h>
9918 #include <sys/capability.h>
9921 if ((cap = cap_get_proc()) == NULL)
9923 cap->cap_effective |= CAP_NETWORK_MGT;
9924 cap->cap_inheritable |= CAP_NETWORK_MGT;
9930 if { (eval echo configure
:9931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9932 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
9934 echo "configure: failed program was:" >&5
9935 cat conftest.
$ac_ext >&5
9937 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
9944 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9945 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
9946 cat >> confdefs.h
<<\EOF
9947 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9953 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9954 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9957 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9958 echo "configure:9959: checking for int16 typedef included by rpc/rpc.h" >&5
9959 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9960 echo $ac_n "(cached) $ac_c" 1>&6
9963 cat > conftest.
$ac_ext <<EOF
9964 #line 9965 "configure"
9965 #include "confdefs.h"
9966 #include <sys/types.h>
9967 #if defined(HAVE_RPC_RPC_H)
9968 #include <rpc/rpc.h>
9974 if { (eval echo configure
:9975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9976 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
9978 echo "configure: failed program was:" >&5
9979 cat conftest.
$ac_ext >&5
9981 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
9986 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9987 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
9988 cat >> confdefs.h
<<\EOF
9989 #define HAVE_INT16_FROM_RPC_RPC_H 1
9994 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9995 echo "configure:9996: checking for uint16 typedef included by rpc/rpc.h" >&5
9996 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9997 echo $ac_n "(cached) $ac_c" 1>&6
10000 cat > conftest.
$ac_ext <<EOF
10001 #line 10002 "configure"
10002 #include "confdefs.h"
10003 #include <sys/types.h>
10004 #if defined(HAVE_RPC_RPC_H)
10005 #include <rpc/rpc.h>
10011 if { (eval echo configure
:10012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10013 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
10015 echo "configure: failed program was:" >&5
10016 cat conftest.
$ac_ext >&5
10018 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
10023 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10024 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
10025 cat >> confdefs.h
<<\EOF
10026 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10031 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10032 echo "configure:10033: checking for int32 typedef included by rpc/rpc.h" >&5
10033 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10034 echo $ac_n "(cached) $ac_c" 1>&6
10037 cat > conftest.
$ac_ext <<EOF
10038 #line 10039 "configure"
10039 #include "confdefs.h"
10040 #include <sys/types.h>
10041 #if defined(HAVE_RPC_RPC_H)
10042 #include <rpc/rpc.h>
10048 if { (eval echo configure
:10049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10050 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
10052 echo "configure: failed program was:" >&5
10053 cat conftest.
$ac_ext >&5
10055 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
10060 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10061 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
10062 cat >> confdefs.h
<<\EOF
10063 #define HAVE_INT32_FROM_RPC_RPC_H 1
10068 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10069 echo "configure:10070: checking for uint32 typedef included by rpc/rpc.h" >&5
10070 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10071 echo $ac_n "(cached) $ac_c" 1>&6
10074 cat > conftest.
$ac_ext <<EOF
10075 #line 10076 "configure"
10076 #include "confdefs.h"
10077 #include <sys/types.h>
10078 #if defined(HAVE_RPC_RPC_H)
10079 #include <rpc/rpc.h>
10085 if { (eval echo configure
:10086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10087 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
10089 echo "configure: failed program was:" >&5
10090 cat conftest.
$ac_ext >&5
10092 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
10097 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10098 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
10099 cat >> confdefs.h
<<\EOF
10100 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10106 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10107 echo "configure:10108: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10108 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10109 echo $ac_n "(cached) $ac_c" 1>&6
10112 cat > conftest.
$ac_ext <<EOF
10113 #line 10114 "configure"
10114 #include "confdefs.h"
10115 #include <sys/types.h>
10116 #ifdef HAVE_SYS_SECURITY_H
10117 #include <sys/security.h>
10119 #endif /* HAVE_SYS_SECURITY_H */
10120 #if defined(HAVE_RPC_RPC_H)
10121 #include <rpc/rpc.h>
10127 if { (eval echo configure
:10128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10129 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
10131 echo "configure: failed program was:" >&5
10132 cat conftest.
$ac_ext >&5
10134 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
10139 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10140 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
10141 cat >> confdefs.h
<<\EOF
10142 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10147 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10148 echo "configure:10149: checking for test routines" >&5
10149 if test "$cross_compiling" = yes; then
10150 echo "configure: warning: cannot run when cross-compiling" 1>&2
10152 cat > conftest.
$ac_ext <<EOF
10153 #line 10154 "configure"
10154 #include "confdefs.h"
10155 #include "${srcdir-.}/tests/trivial.c"
10157 if { (eval echo configure
:10158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10159 echo "$ac_t""yes" 1>&6
10161 echo "configure: failed program was:" >&5
10162 cat conftest.
$ac_ext >&5
10164 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10170 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10171 echo "configure:10172: checking for ftruncate extend" >&5
10172 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10173 echo $ac_n "(cached) $ac_c" 1>&6
10176 if test "$cross_compiling" = yes; then
10177 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
10179 cat > conftest.
$ac_ext <<EOF
10180 #line 10181 "configure"
10181 #include "confdefs.h"
10182 #include "${srcdir-.}/tests/ftruncate.c"
10184 if { (eval echo configure
:10185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10186 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
10188 echo "configure: failed program was:" >&5
10189 cat conftest.
$ac_ext >&5
10191 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
10198 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10199 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
10200 cat >> confdefs.h
<<\EOF
10201 #define HAVE_FTRUNCATE_EXTEND 1
10206 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10207 echo "configure:10208: checking for broken getgroups" >&5
10208 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10209 echo $ac_n "(cached) $ac_c" 1>&6
10212 if test "$cross_compiling" = yes; then
10213 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
10215 cat > conftest.
$ac_ext <<EOF
10216 #line 10217 "configure"
10217 #include "confdefs.h"
10218 #include "${srcdir-.}/tests/getgroups.c"
10220 if { (eval echo configure
:10221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10222 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
10224 echo "configure: failed program was:" >&5
10225 cat conftest.
$ac_ext >&5
10227 samba_cv_HAVE_BROKEN_GETGROUPS
=no
10234 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10235 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
10236 cat >> confdefs.h
<<\EOF
10237 #define HAVE_BROKEN_GETGROUPS 1
10242 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10243 echo "configure:10244: checking whether getpass should be replaced" >&5
10244 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10245 echo $ac_n "(cached) $ac_c" 1>&6
10248 SAVE_CPPFLAGS
="$CPPFLAGS"
10249 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10250 cat > conftest.
$ac_ext <<EOF
10251 #line 10252 "configure"
10252 #include "confdefs.h"
10254 #define REPLACE_GETPASS 1
10255 #define NO_CONFIG_H 1
10256 #define main dont_declare_main
10257 #include "${srcdir-.}/lib/getsmbpass.c"
10264 if { (eval echo configure
:10265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10266 samba_cv_REPLACE_GETPASS
=yes
10268 echo "configure: failed program was:" >&5
10269 cat conftest.
$ac_ext >&5
10271 samba_cv_REPLACE_GETPASS
=no
10274 CPPFLAGS
="$SAVE_CPPFLAGS"
10278 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10279 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
10280 cat >> confdefs.h
<<\EOF
10281 #define REPLACE_GETPASS 1
10286 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10287 echo "configure:10288: checking for broken inet_ntoa" >&5
10288 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10289 echo $ac_n "(cached) $ac_c" 1>&6
10292 if test "$cross_compiling" = yes; then
10293 samba_cv_REPLACE_INET_NTOA
=cross
10295 cat > conftest.
$ac_ext <<EOF
10296 #line 10297 "configure"
10297 #include "confdefs.h"
10300 #include <sys/types.h>
10301 #include <netinet/in.h>
10302 #ifdef HAVE_ARPA_INET_H
10303 #include <arpa/inet.h>
10305 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10306 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10307 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10310 if { (eval echo configure
:10311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10312 samba_cv_REPLACE_INET_NTOA
=yes
10314 echo "configure: failed program was:" >&5
10315 cat conftest.
$ac_ext >&5
10317 samba_cv_REPLACE_INET_NTOA
=no
10324 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10325 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
10326 cat >> confdefs.h
<<\EOF
10327 #define REPLACE_INET_NTOA 1
10332 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10333 echo "configure:10334: checking for secure mkstemp" >&5
10334 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10335 echo $ac_n "(cached) $ac_c" 1>&6
10338 if test "$cross_compiling" = yes; then
10339 samba_cv_HAVE_SECURE_MKSTEMP
=cross
10341 cat > conftest.
$ac_ext <<EOF
10342 #line 10343 "configure"
10343 #include "confdefs.h"
10344 #include <stdlib.h>
10345 #include <sys/types.h>
10346 #include <sys/stat.h>
10347 #include <unistd.h>
10350 char tpl[20]="/tmp/test.XXXXXX";
10351 int fd = mkstemp(tpl);
10352 if (fd == -1) exit(1);
10354 if (fstat(fd, &st) != 0) exit(1);
10355 if ((st.st_mode & 0777) != 0600) exit(1);
10359 if { (eval echo configure
:10360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10361 samba_cv_HAVE_SECURE_MKSTEMP
=yes
10363 echo "configure: failed program was:" >&5
10364 cat conftest.
$ac_ext >&5
10366 samba_cv_HAVE_SECURE_MKSTEMP
=no
10373 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10374 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
10375 cat >> confdefs.h
<<\EOF
10376 #define HAVE_SECURE_MKSTEMP 1
10381 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10382 echo "configure:10383: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10383 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10384 echo $ac_n "(cached) $ac_c" 1>&6
10387 if test "$cross_compiling" = yes; then
10388 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
10390 cat > conftest.
$ac_ext <<EOF
10391 #line 10392 "configure"
10392 #include "confdefs.h"
10393 #include <unistd.h>
10394 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10396 if { (eval echo configure
:10397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10398 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
10400 echo "configure: failed program was:" >&5
10401 cat conftest.
$ac_ext >&5
10403 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
10410 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10411 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
10412 cat >> confdefs.h
<<\EOF
10413 #define SYSCONF_SC_NGROUPS_MAX 1
10418 echo $ac_n "checking for root""... $ac_c" 1>&6
10419 echo "configure:10420: checking for root" >&5
10420 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10421 echo $ac_n "(cached) $ac_c" 1>&6
10424 if test "$cross_compiling" = yes; then
10425 samba_cv_HAVE_ROOT
=cross
10427 cat > conftest.
$ac_ext <<EOF
10428 #line 10429 "configure"
10429 #include "confdefs.h"
10430 main() { exit(getuid() != 0); }
10432 if { (eval echo configure
:10433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10434 samba_cv_HAVE_ROOT
=yes
10436 echo "configure: failed program was:" >&5
10437 cat conftest.
$ac_ext >&5
10439 samba_cv_HAVE_ROOT
=no
10446 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10447 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
10448 cat >> confdefs.h
<<\EOF
10449 #define HAVE_ROOT 1
10453 echo "configure: warning: running as non-root will disable some tests" 1>&2
10457 # look for a method of finding the list of network interfaces
10459 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10460 echo "configure:10461: checking for iface AIX" >&5
10461 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10462 echo $ac_n "(cached) $ac_c" 1>&6
10465 if test "$cross_compiling" = yes; then
10466 samba_cv_HAVE_IFACE_AIX
=cross
10468 cat > conftest.
$ac_ext <<EOF
10469 #line 10470 "configure"
10470 #include "confdefs.h"
10472 #define HAVE_IFACE_AIX 1
10473 #define AUTOCONF_TEST 1
10474 #include "confdefs.h"
10475 #include "${srcdir-.}/lib/interfaces.c"
10477 if { (eval echo configure
:10478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10479 samba_cv_HAVE_IFACE_AIX
=yes
10481 echo "configure: failed program was:" >&5
10482 cat conftest.
$ac_ext >&5
10484 samba_cv_HAVE_IFACE_AIX
=no
10491 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10492 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
10493 iface
=yes;cat >> confdefs.h
<<\EOF
10494 #define HAVE_IFACE_AIX 1
10499 if test $iface = no
; then
10500 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10501 echo "configure:10502: checking for iface ifconf" >&5
10502 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10503 echo $ac_n "(cached) $ac_c" 1>&6
10506 if test "$cross_compiling" = yes; then
10507 samba_cv_HAVE_IFACE_IFCONF
=cross
10509 cat > conftest.
$ac_ext <<EOF
10510 #line 10511 "configure"
10511 #include "confdefs.h"
10513 #define HAVE_IFACE_IFCONF 1
10514 #define AUTOCONF_TEST 1
10515 #include "confdefs.h"
10516 #include "${srcdir-.}/lib/interfaces.c"
10518 if { (eval echo configure
:10519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10520 samba_cv_HAVE_IFACE_IFCONF
=yes
10522 echo "configure: failed program was:" >&5
10523 cat conftest.
$ac_ext >&5
10525 samba_cv_HAVE_IFACE_IFCONF
=no
10532 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10533 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
10534 iface
=yes;cat >> confdefs.h
<<\EOF
10535 #define HAVE_IFACE_IFCONF 1
10541 if test $iface = no
; then
10542 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10543 echo "configure:10544: checking for iface ifreq" >&5
10544 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10545 echo $ac_n "(cached) $ac_c" 1>&6
10548 if test "$cross_compiling" = yes; then
10549 samba_cv_HAVE_IFACE_IFREQ
=cross
10551 cat > conftest.
$ac_ext <<EOF
10552 #line 10553 "configure"
10553 #include "confdefs.h"
10555 #define HAVE_IFACE_IFREQ 1
10556 #define AUTOCONF_TEST 1
10557 #include "confdefs.h"
10558 #include "${srcdir-.}/lib/interfaces.c"
10560 if { (eval echo configure
:10561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10562 samba_cv_HAVE_IFACE_IFREQ
=yes
10564 echo "configure: failed program was:" >&5
10565 cat conftest.
$ac_ext >&5
10567 samba_cv_HAVE_IFACE_IFREQ
=no
10574 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10575 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
10576 iface
=yes;cat >> confdefs.h
<<\EOF
10577 #define HAVE_IFACE_IFREQ 1
10584 ################################################
10585 # look for a method of setting the effective uid
10587 if test $seteuid = no
; then
10588 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10589 echo "configure:10590: checking for setresuid" >&5
10590 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10591 echo $ac_n "(cached) $ac_c" 1>&6
10594 if test "$cross_compiling" = yes; then
10595 samba_cv_USE_SETRESUID
=cross
10597 cat > conftest.
$ac_ext <<EOF
10598 #line 10599 "configure"
10599 #include "confdefs.h"
10601 #define AUTOCONF_TEST 1
10602 #define USE_SETRESUID 1
10603 #include "confdefs.h"
10604 #include "${srcdir-.}/lib/util_sec.c"
10606 if { (eval echo configure
:10607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10608 samba_cv_USE_SETRESUID
=yes
10610 echo "configure: failed program was:" >&5
10611 cat conftest.
$ac_ext >&5
10613 samba_cv_USE_SETRESUID
=no
10620 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10621 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
10622 seteuid
=yes;cat >> confdefs.h
<<\EOF
10623 #define USE_SETRESUID 1
10630 if test $seteuid = no
; then
10631 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10632 echo "configure:10633: checking for setreuid" >&5
10633 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10634 echo $ac_n "(cached) $ac_c" 1>&6
10637 if test "$cross_compiling" = yes; then
10638 samba_cv_USE_SETREUID
=cross
10640 cat > conftest.
$ac_ext <<EOF
10641 #line 10642 "configure"
10642 #include "confdefs.h"
10644 #define AUTOCONF_TEST 1
10645 #define USE_SETREUID 1
10646 #include "confdefs.h"
10647 #include "${srcdir-.}/lib/util_sec.c"
10649 if { (eval echo configure
:10650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10651 samba_cv_USE_SETREUID
=yes
10653 echo "configure: failed program was:" >&5
10654 cat conftest.
$ac_ext >&5
10656 samba_cv_USE_SETREUID
=no
10663 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10664 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
10665 seteuid
=yes;cat >> confdefs.h
<<\EOF
10666 #define USE_SETREUID 1
10672 if test $seteuid = no
; then
10673 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10674 echo "configure:10675: checking for seteuid" >&5
10675 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10676 echo $ac_n "(cached) $ac_c" 1>&6
10679 if test "$cross_compiling" = yes; then
10680 samba_cv_USE_SETEUID
=cross
10682 cat > conftest.
$ac_ext <<EOF
10683 #line 10684 "configure"
10684 #include "confdefs.h"
10686 #define AUTOCONF_TEST 1
10687 #define USE_SETEUID 1
10688 #include "confdefs.h"
10689 #include "${srcdir-.}/lib/util_sec.c"
10691 if { (eval echo configure
:10692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10693 samba_cv_USE_SETEUID
=yes
10695 echo "configure: failed program was:" >&5
10696 cat conftest.
$ac_ext >&5
10698 samba_cv_USE_SETEUID
=no
10705 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10706 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
10707 seteuid
=yes;cat >> confdefs.h
<<\EOF
10708 #define USE_SETEUID 1
10714 if test $seteuid = no
; then
10715 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10716 echo "configure:10717: checking for setuidx" >&5
10717 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10718 echo $ac_n "(cached) $ac_c" 1>&6
10721 if test "$cross_compiling" = yes; then
10722 samba_cv_USE_SETUIDX
=cross
10724 cat > conftest.
$ac_ext <<EOF
10725 #line 10726 "configure"
10726 #include "confdefs.h"
10728 #define AUTOCONF_TEST 1
10729 #define USE_SETUIDX 1
10730 #include "confdefs.h"
10731 #include "${srcdir-.}/lib/util_sec.c"
10733 if { (eval echo configure
:10734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10735 samba_cv_USE_SETUIDX
=yes
10737 echo "configure: failed program was:" >&5
10738 cat conftest.
$ac_ext >&5
10740 samba_cv_USE_SETUIDX
=no
10747 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10748 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
10749 seteuid
=yes;cat >> confdefs.h
<<\EOF
10750 #define USE_SETUIDX 1
10757 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10758 echo "configure:10759: checking for working mmap" >&5
10759 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10760 echo $ac_n "(cached) $ac_c" 1>&6
10763 if test "$cross_compiling" = yes; then
10764 samba_cv_HAVE_MMAP
=cross
10766 cat > conftest.
$ac_ext <<EOF
10767 #line 10768 "configure"
10768 #include "confdefs.h"
10769 #include "${srcdir-.}/tests/shared_mmap.c"
10771 if { (eval echo configure
:10772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10773 samba_cv_HAVE_MMAP
=yes
10775 echo "configure: failed program was:" >&5
10776 cat conftest.
$ac_ext >&5
10778 samba_cv_HAVE_MMAP
=no
10785 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10786 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
10787 cat >> confdefs.h
<<\EOF
10788 #define HAVE_MMAP 1
10793 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10794 echo "configure:10795: checking for ftruncate needs root" >&5
10795 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10796 echo $ac_n "(cached) $ac_c" 1>&6
10799 if test "$cross_compiling" = yes; then
10800 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
10802 cat > conftest.
$ac_ext <<EOF
10803 #line 10804 "configure"
10804 #include "confdefs.h"
10805 #include "${srcdir-.}/tests/ftruncroot.c"
10807 if { (eval echo configure
:10808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10809 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
10811 echo "configure: failed program was:" >&5
10812 cat conftest.
$ac_ext >&5
10814 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
10821 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10822 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
10823 cat >> confdefs.h
<<\EOF
10824 #define FTRUNCATE_NEEDS_ROOT 1
10829 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10830 echo "configure:10831: checking for fcntl locking" >&5
10831 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10832 echo $ac_n "(cached) $ac_c" 1>&6
10835 if test "$cross_compiling" = yes; then
10836 samba_cv_HAVE_FCNTL_LOCK
=cross
10838 cat > conftest.
$ac_ext <<EOF
10839 #line 10840 "configure"
10840 #include "confdefs.h"
10841 #include "${srcdir-.}/tests/fcntl_lock.c"
10843 if { (eval echo configure
:10844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10845 samba_cv_HAVE_FCNTL_LOCK
=yes
10847 echo "configure: failed program was:" >&5
10848 cat conftest.
$ac_ext >&5
10850 samba_cv_HAVE_FCNTL_LOCK
=no
10857 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10858 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
10859 cat >> confdefs.h
<<\EOF
10860 #define HAVE_FCNTL_LOCK 1
10865 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10866 echo "configure:10867: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10867 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10868 echo $ac_n "(cached) $ac_c" 1>&6
10871 if test "$cross_compiling" = yes; then
10872 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
10874 cat > conftest.
$ac_ext <<EOF
10875 #line 10876 "configure"
10876 #include "confdefs.h"
10877 #include "${srcdir-.}/tests/fcntl_lock64.c"
10879 if { (eval echo configure
:10880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10881 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
10883 echo "configure: failed program was:" >&5
10884 cat conftest.
$ac_ext >&5
10886 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
10893 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10894 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
10895 cat >> confdefs.h
<<\EOF
10896 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10903 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10904 echo "configure:10905: checking for 64 bit fcntl locking" >&5
10905 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10906 echo $ac_n "(cached) $ac_c" 1>&6
10909 if test "$cross_compiling" = yes; then
10910 samba_cv_HAVE_STRUCT_FLOCK64
=cross
10912 cat > conftest.
$ac_ext <<EOF
10913 #line 10914 "configure"
10914 #include "confdefs.h"
10916 #if defined(HAVE_UNISTD_H)
10917 #include <unistd.h>
10920 #include <stdlib.h>
10922 #ifdef HAVE_FCNTL_H
10926 #ifdef HAVE_SYS_FCNTL_H
10927 #include <sys/fcntl.h>
10929 main() { struct flock64 fl64;
10930 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10937 if { (eval echo configure
:10938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10939 samba_cv_HAVE_STRUCT_FLOCK64
=yes
10941 echo "configure: failed program was:" >&5
10942 cat conftest.
$ac_ext >&5
10944 samba_cv_HAVE_STRUCT_FLOCK64
=no
10951 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10953 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
10954 cat >> confdefs.h
<<\EOF
10955 #define HAVE_STRUCT_FLOCK64 1
10961 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
10962 echo "configure:10963: checking for a crypt that needs truncated salt" >&5
10963 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
10964 echo $ac_n "(cached) $ac_c" 1>&6
10967 if test "$cross_compiling" = yes; then
10968 samba_cv_HAVE_TRUNCATED_SALT
=cross
10970 cat > conftest.
$ac_ext <<EOF
10971 #line 10972 "configure"
10972 #include "confdefs.h"
10973 #include "${srcdir-.}/tests/crypttest.c"
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_TRUNCATED_SALT
=no
10979 echo "configure: failed program was:" >&5
10980 cat conftest.
$ac_ext >&5
10982 samba_cv_HAVE_TRUNCATED_SALT
=yes
10989 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
10990 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
10991 cat >> confdefs.h
<<\EOF
10992 #define HAVE_TRUNCATED_SALT 1
10997 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10998 echo "configure:10999: checking for broken nisplus include files" >&5
10999 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11000 echo $ac_n "(cached) $ac_c" 1>&6
11003 cat > conftest.
$ac_ext <<EOF
11004 #line 11005 "configure"
11005 #include "confdefs.h"
11006 #include <sys/acl.h>
11007 #if defined(HAVE_RPCSVC_NIS_H)
11008 #include <rpcsvc/nis.h>
11014 if { (eval echo configure
:11015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11016 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
11018 echo "configure: failed program was:" >&5
11019 cat conftest.
$ac_ext >&5
11021 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
11026 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11027 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
11028 cat >> confdefs.h
<<\EOF
11029 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11035 #################################################
11036 # check for smbwrapper support
11037 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11038 echo "configure:11039: checking whether to use smbwrapper" >&5
11039 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11040 if test "${with_smbwrapper+set}" = set; then
11041 withval
="$with_smbwrapper"
11044 echo "$ac_t""yes" 1>&6
11045 cat >> confdefs.h
<<\EOF
11046 #define WITH_SMBWRAPPER 1
11049 WRAP
="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11051 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
11054 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
11057 # Conditions under which smbwrapper should not be built.
11059 if test x
$PICFLAG = x
; then
11060 echo No support
for PIC code
- disabling smbwrapper and smbsh
11063 elif test x
$ac_cv_func_syscall = xno
; then
11064 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11070 echo "$ac_t""no" 1>&6
11074 echo "$ac_t""no" 1>&6
11079 #################################################
11080 # check for the AFS filesystem
11081 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11082 echo "configure:11083: checking whether to use AFS" >&5
11083 # Check whether --with-afs or --without-afs was given.
11084 if test "${with_afs+set}" = set; then
11085 withval
="$with_afs"
11088 echo "$ac_t""yes" 1>&6
11089 cat >> confdefs.h
<<\EOF
11095 echo "$ac_t""no" 1>&6
11099 echo "$ac_t""no" 1>&6
11105 #################################################
11106 # check for the DFS auth system
11107 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
11108 echo "configure:11109: checking whether to use DFS auth" >&5
11109 # Check whether --with-dfs or --without-dfs was given.
11110 if test "${with_dfs+set}" = set; then
11111 withval
="$with_dfs"
11114 echo "$ac_t""yes" 1>&6
11115 cat >> confdefs.h
<<\EOF
11121 echo "$ac_t""no" 1>&6
11125 echo "$ac_t""no" 1>&6
11130 #################################################
11131 # check for Kerberos IV auth system
11132 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11133 echo "configure:11134: checking whether to use Kerberos IV" >&5
11134 # Check whether --with-krb4 or --without-krb4 was given.
11135 if test "${with_krb4+set}" = set; then
11136 withval
="$with_krb4"
11137 echo "$ac_t""yes" 1>&6
11138 cat >> confdefs.h
<<\EOF
11139 #define KRB4_AUTH 1
11142 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11143 echo "configure:11144: checking for dn_expand in -lresolv" >&5
11144 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11145 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11146 echo $ac_n "(cached) $ac_c" 1>&6
11148 ac_save_LIBS
="$LIBS"
11149 LIBS
="-lresolv $LIBS"
11150 cat > conftest.
$ac_ext <<EOF
11151 #line 11152 "configure"
11152 #include "confdefs.h"
11153 /* Override any gcc2 internal prototype to avoid an error. */
11154 /* We use char because int might match the return type of a gcc2
11155 builtin and then its argument prototype would still apply. */
11162 if { (eval echo configure
:11163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11164 eval "ac_cv_lib_$ac_lib_var=yes"
11166 echo "configure: failed program was:" >&5
11167 cat conftest.
$ac_ext >&5
11169 eval "ac_cv_lib_$ac_lib_var=no"
11172 LIBS
="$ac_save_LIBS"
11175 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11176 echo "$ac_t""yes" 1>&6
11177 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11178 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11179 cat >> confdefs.h
<<EOF
11180 #define $ac_tr_lib 1
11183 LIBS
="-lresolv $LIBS"
11186 echo "$ac_t""no" 1>&6
11189 LIBS
="$LIBS -lkrb -ldes"
11190 CFLAGS
="$CFLAGS -I$withval/include"
11191 LDFLAGS
="$LDFLAGS -L$withval/lib"
11193 echo "$ac_t""no" 1>&6
11198 #################################################
11199 # check for Kerberos 5 auth system
11200 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11201 echo "configure:11202: checking whether to use Kerberos 5" >&5
11202 # Check whether --with-krb5 or --without-krb5 was given.
11203 if test "${with_krb5+set}" = set; then
11204 withval
="$with_krb5"
11205 echo "$ac_t""yes" 1>&6
11206 cat >> confdefs.h
<<\EOF
11207 #define KRB5_AUTH 1
11210 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11211 CFLAGS
="$CFLAGS -I$withval/include"
11212 LDFLAGS
="$LDFLAGS -L$withval/lib"
11214 echo "$ac_t""no" 1>&6
11219 #################################################
11220 # check for automount support
11221 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11222 echo "configure:11223: checking whether to use AUTOMOUNT" >&5
11223 # Check whether --with-automount or --without-automount was given.
11224 if test "${with_automount+set}" = set; then
11225 withval
="$with_automount"
11228 echo "$ac_t""yes" 1>&6
11229 cat >> confdefs.h
<<\EOF
11230 #define WITH_AUTOMOUNT 1
11235 echo "$ac_t""no" 1>&6
11239 echo "$ac_t""no" 1>&6
11244 #################################################
11245 # check for smbmount support
11246 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11247 echo "configure:11248: checking whether to use SMBMOUNT" >&5
11248 # Check whether --with-smbmount or --without-smbmount was given.
11249 if test "${with_smbmount+set}" = set; then
11250 withval
="$with_smbmount"
11253 echo "$ac_t""yes" 1>&6
11254 cat >> confdefs.h
<<\EOF
11255 #define WITH_SMBMOUNT 1
11258 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
11261 echo "$ac_t""no" 1>&6
11266 echo "$ac_t""no" 1>&6
11273 #################################################
11274 # check for a PAM password database
11275 with_pam_for_crypt
=no
11276 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11277 echo "configure:11278: checking whether to use PAM password database" >&5
11278 # Check whether --with-pam or --without-pam was given.
11279 if test "${with_pam+set}" = set; then
11280 withval
="$with_pam"
11283 echo "$ac_t""yes" 1>&6
11284 cat >> confdefs.h
<<\EOF
11289 with_pam_for_crypt
=yes
11292 echo "$ac_t""no" 1>&6
11296 echo "$ac_t""no" 1>&6
11301 # we can't build a pam module if we don't have pam.
11302 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11303 echo "configure:11304: checking for pam_get_data in -lpam" >&5
11304 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11305 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11306 echo $ac_n "(cached) $ac_c" 1>&6
11308 ac_save_LIBS
="$LIBS"
11310 cat > conftest.
$ac_ext <<EOF
11311 #line 11312 "configure"
11312 #include "confdefs.h"
11313 /* Override any gcc2 internal prototype to avoid an error. */
11314 /* We use char because int might match the return type of a gcc2
11315 builtin and then its argument prototype would still apply. */
11316 char pam_get_data();
11322 if { (eval echo configure
:11323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11324 eval "ac_cv_lib_$ac_lib_var=yes"
11326 echo "configure: failed program was:" >&5
11327 cat conftest.
$ac_ext >&5
11329 eval "ac_cv_lib_$ac_lib_var=no"
11332 LIBS
="$ac_save_LIBS"
11335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11336 echo "$ac_t""yes" 1>&6
11337 cat >> confdefs.h
<<\EOF
11338 #define HAVE_LIBPAM 1
11342 echo "$ac_t""no" 1>&6
11346 #################################################
11347 # check for pam_smbpass support
11348 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11349 echo "configure:11350: checking whether to use pam_smbpass" >&5
11350 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11351 if test "${with_pam_smbpass+set}" = set; then
11352 withval
="$with_pam_smbpass"
11355 echo "$ac_t""yes" 1>&6
11357 # Conditions under which pam_smbpass should not be built.
11359 if test x
$PICFLAG = x
; then
11360 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11362 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
11363 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11366 cat >> confdefs.h
<<\EOF
11367 #define WITH_PAM_SMBPASS 1
11370 PAM_MOD
="bin/pam_smbpass.so"
11374 echo "$ac_t""no" 1>&6
11378 echo "$ac_t""no" 1>&6
11384 ###############################################
11385 # test for where we get crypt() from, but only
11387 if test $with_pam_for_crypt = no
; then
11388 for ac_func
in crypt
11390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11391 echo "configure:11392: checking for $ac_func" >&5
11392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11393 echo $ac_n "(cached) $ac_c" 1>&6
11395 cat > conftest.
$ac_ext <<EOF
11396 #line 11397 "configure"
11397 #include "confdefs.h"
11398 /* System header to define __stub macros and hopefully few prototypes,
11399 which can conflict with char $ac_func(); below. */
11400 #include <assert.h>
11401 /* Override any gcc2 internal prototype to avoid an error. */
11402 /* We use char because int might match the return type of a gcc2
11403 builtin and then its argument prototype would still apply. */
11408 /* The GNU C library defines this for functions which it implements
11409 to always fail with ENOSYS. Some functions are actually named
11410 something starting with __ and the normal name is an alias. */
11411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11419 if { (eval echo configure
:11420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11421 eval "ac_cv_func_$ac_func=yes"
11423 echo "configure: failed program was:" >&5
11424 cat conftest.
$ac_ext >&5
11426 eval "ac_cv_func_$ac_func=no"
11431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11432 echo "$ac_t""yes" 1>&6
11433 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11434 cat >> confdefs.h
<<EOF
11435 #define $ac_tr_func 1
11439 echo "$ac_t""no" 1>&6
11443 if test x
"$ac_cv_func_crypt" = x
"no"; then
11444 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11445 echo "configure:11446: checking for crypt in -lcrypt" >&5
11446 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11448 echo $ac_n "(cached) $ac_c" 1>&6
11450 ac_save_LIBS
="$LIBS"
11451 LIBS
="-lcrypt $LIBS"
11452 cat > conftest.
$ac_ext <<EOF
11453 #line 11454 "configure"
11454 #include "confdefs.h"
11455 /* Override any gcc2 internal prototype to avoid an error. */
11456 /* We use char because int might match the return type of a gcc2
11457 builtin and then its argument prototype would still apply. */
11464 if { (eval echo configure
:11465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11466 eval "ac_cv_lib_$ac_lib_var=yes"
11468 echo "configure: failed program was:" >&5
11469 cat conftest.
$ac_ext >&5
11471 eval "ac_cv_lib_$ac_lib_var=no"
11474 LIBS
="$ac_save_LIBS"
11477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11478 echo "$ac_t""yes" 1>&6
11479 LIBS
="$LIBS -lcrypt";
11480 cat >> confdefs.h
<<\EOF
11481 #define HAVE_CRYPT 1
11485 echo "$ac_t""no" 1>&6
11492 #################################################
11493 # check for a TDB password database
11494 echo $ac_n "checking whether to use TDB password database""... $ac_c" 1>&6
11495 echo "configure:11496: checking whether to use TDB password database" >&5
11496 # Check whether --with-tdbsam or --without-tdbsam was given.
11497 if test "${with_tdbsam+set}" = set; then
11498 withval
="$with_tdbsam"
11501 echo "$ac_t""yes" 1>&6
11502 cat >> confdefs.h
<<\EOF
11503 #define WITH_TDBPWD 1
11506 # AC_MSG_ERROR([TDB password database not supported in this version.])
11509 echo "$ac_t""no" 1>&6
11513 echo "$ac_t""no" 1>&6
11518 #################################################
11519 # check for a LDAP password database
11520 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
11521 echo "configure:11522: checking whether to use LDAP password database" >&5
11522 # Check whether --with-ldap or --without-ldap was given.
11523 if test "${with_ldap+set}" = set; then
11524 withval
="$with_ldap"
11527 echo "$ac_t""yes" 1>&6
11528 cat >> confdefs.h
<<\EOF
11529 #define WITH_LDAP 1
11532 { echo "configure: error: LDAP password database not supported in this version." 1>&2; exit 1; }
11535 echo "$ac_t""no" 1>&6
11539 echo "$ac_t""no" 1>&6
11544 #################################################
11545 # check for a NISPLUS password database
11546 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
11547 echo "configure:11548: checking whether to use NISPLUS password database" >&5
11548 # Check whether --with-nisplus or --without-nisplus was given.
11549 if test "${with_nisplus+set}" = set; then
11550 withval
="$with_nisplus"
11553 echo "$ac_t""yes" 1>&6
11554 cat >> confdefs.h
<<\EOF
11555 #define WITH_NISPLUS 1
11560 echo "$ac_t""no" 1>&6
11564 echo "$ac_t""no" 1>&6
11569 #################################################
11570 # check for a NISPLUS_HOME support
11571 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11572 echo "configure:11573: checking whether to use NISPLUS_HOME" >&5
11573 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11574 if test "${with_nisplus_home+set}" = set; then
11575 withval
="$with_nisplus_home"
11578 echo "$ac_t""yes" 1>&6
11579 cat >> confdefs.h
<<\EOF
11580 #define WITH_NISPLUS_HOME 1
11585 echo "$ac_t""no" 1>&6
11589 echo "$ac_t""no" 1>&6
11594 #################################################
11595 # check for the secure socket layer
11596 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11597 echo "configure:11598: checking whether to use SSL" >&5
11598 # Check whether --with-ssl or --without-ssl was given.
11599 if test "${with_ssl+set}" = set; then
11600 withval
="$with_ssl"
11603 echo "$ac_t""yes" 1>&6
11604 cat >> confdefs.h
<<\EOF
11608 withval
="/usr/local/ssl" # default
11610 if test "${with_sslinc+set}" = set; then
11612 withval
="$with_sslinc"
11615 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11616 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
11617 LIBS
="-lssl -lcrypto $LIBS"
11618 LDFLAGS
="=L/usr/local/ssl/lib $LDFLAGS"
11621 CFLAGS
="-I${withval}/include $CFLAGS"
11622 LIBS
="-lssl -lcrypto $LIBS"
11623 LDFLAGS
="-L${withval}/lib $LDFLAGS"
11629 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
11630 LIBS
="-lssl -lcrypto $LIBS"
11631 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
11635 if test ! -d ${withval}; then
11636 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11640 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11644 echo "$ac_t""no" 1>&6
11648 echo "$ac_t""no" 1>&6
11653 #################################################
11654 # check for syslog logging
11655 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11656 echo "configure:11657: checking whether to use syslog logging" >&5
11657 # Check whether --with-syslog or --without-syslog was given.
11658 if test "${with_syslog+set}" = set; then
11659 withval
="$with_syslog"
11662 echo "$ac_t""yes" 1>&6
11663 cat >> confdefs.h
<<\EOF
11664 #define WITH_SYSLOG 1
11669 echo "$ac_t""no" 1>&6
11673 echo "$ac_t""no" 1>&6
11678 #################################################
11679 # check for a shared memory profiling support
11680 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11681 echo "configure:11682: checking whether to use profiling" >&5
11682 # Check whether --with-profile or --without-profile was given.
11683 if test "${with_profile+set}" = set; then
11684 withval
="$with_profile"
11687 echo "$ac_t""yes" 1>&6
11688 cat >> confdefs.h
<<\EOF
11689 #define WITH_PROFILE 1
11694 echo "$ac_t""no" 1>&6
11698 echo "$ac_t""no" 1>&6
11704 #################################################
11705 # check for experimental netatalk resource fork support
11706 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
11707 echo "configure:11708: checking whether to support netatalk" >&5
11708 # Check whether --with-netatalk or --without-netatalk was given.
11709 if test "${with_netatalk+set}" = set; then
11710 withval
="$with_netatalk"
11713 echo "$ac_t""yes" 1>&6
11714 cat >> confdefs.h
<<\EOF
11715 #define WITH_NETATALK 1
11720 echo "$ac_t""no" 1>&6
11724 echo "$ac_t""no" 1>&6
11729 #################################################
11730 # check for experimental disk-quotas support
11731 QUOTAOBJS
=smbd
/noquotas.o
11733 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11734 echo "configure:11735: checking whether to support disk-quotas" >&5
11735 # Check whether --with-quotas or --without-quotas was given.
11736 if test "${with_quotas+set}" = set; then
11737 withval
="$with_quotas"
11740 echo "$ac_t""yes" 1>&6
11741 QUOTAOBJS
=smbd
/quotas.o
11744 echo "$ac_t""no" 1>&6
11748 echo "$ac_t""no" 1>&6
11754 #################################################
11755 # check for experimental utmp accounting
11757 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11758 echo "configure:11759: checking whether to support utmp accounting" >&5
11759 # Check whether --with-utmp or --without-utmp was given.
11760 if test "${with_utmp+set}" = set; then
11761 withval
="$with_utmp"
11764 echo "$ac_t""yes" 1>&6
11765 cat >> confdefs.h
<<\EOF
11766 #define WITH_UTMP 1
11771 echo "$ac_t""no" 1>&6
11775 echo "$ac_t""no" 1>&6
11780 #################################################
11781 # check for MS Dfs support
11783 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11784 echo "configure:11785: checking whether to support Microsoft Dfs" >&5
11785 # Check whether --with-msdfs or --without-msdfs was given.
11786 if test "${with_msdfs+set}" = set; then
11787 withval
="$with_msdfs"
11790 echo "$ac_t""yes" 1>&6
11791 cat >> confdefs.h
<<\EOF
11792 #define WITH_MSDFS 1
11797 echo "$ac_t""no" 1>&6
11801 echo "$ac_t""no" 1>&6
11806 #################################################
11807 # set private directory location
11808 # Check whether --with-privatedir or --without-privatedir was given.
11809 if test "${with_privatedir+set}" = set; then
11810 withval
="$with_privatedir"
11814 # Just in case anybody calls it without argument
11816 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
11817 privatedir
='${prefix}/private'
11820 privatedir
="$withval"
11825 privatedir
='${prefix}/private'
11831 #################################################
11832 # set lock directory location
11833 # Check whether --with-lockdir or --without-lockdir was given.
11834 if test "${with_lockdir+set}" = set; then
11835 withval
="$with_lockdir"
11839 # Just in case anybody calls it without argument
11841 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
11842 lockdir
='$(VARDIR)/locks'
11850 lockdir
='$(VARDIR)/locks'
11856 #################################################
11857 # set SWAT directory location
11858 # Check whether --with-swatdir or --without-swatdir was given.
11859 if test "${with_swatdir+set}" = set; then
11860 withval
="$with_swatdir"
11864 # Just in case anybody does it
11866 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
11867 swatdir
='${prefix}/swat'
11875 swatdir
='${prefix}/swat'
11881 #################################################
11882 # these tests are taken from the GNU fileutils package
11883 echo "checking how to get filesystem space usage" 1>&6
11884 echo "configure:11885: checking how to get filesystem space usage" >&5
11887 # Test for statvfs64.
11888 if test $space = no
; then
11890 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11891 echo "configure:11892: checking statvfs64 function (SVR4)" >&5
11892 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11893 echo $ac_n "(cached) $ac_c" 1>&6
11895 if test "$cross_compiling" = yes; then
11896 fu_cv_sys_stat_statvfs64
=cross
11898 cat > conftest.
$ac_ext <<EOF
11899 #line 11900 "configure"
11900 #include "confdefs.h"
11902 #if defined(HAVE_UNISTD_H)
11903 #include <unistd.h>
11905 #include <sys/types.h>
11906 #include <sys/statvfs.h>
11909 struct statvfs64 fsd;
11910 exit (statvfs64 (".", &fsd));
11913 if { (eval echo configure
:11914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11915 fu_cv_sys_stat_statvfs64
=yes
11917 echo "configure: failed program was:" >&5
11918 cat conftest.
$ac_ext >&5
11920 fu_cv_sys_stat_statvfs64
=no
11927 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11928 if test $fu_cv_sys_stat_statvfs64 = yes; then
11930 cat >> confdefs.h
<<\EOF
11931 #define STAT_STATVFS64 1
11937 # Perform only the link test since it seems there are no variants of the
11938 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11939 # because that got a false positive on SCO OSR5. Adding the declaration
11940 # of a `struct statvfs' causes this test to fail (as it should) on such
11941 # systems. That system is reported to work fine with STAT_STATFS4 which
11942 # is what it gets when this test fails.
11943 if test $space = no
; then
11945 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11946 echo "configure:11947: checking statvfs function (SVR4)" >&5
11947 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11948 echo $ac_n "(cached) $ac_c" 1>&6
11950 cat > conftest.
$ac_ext <<EOF
11951 #line 11952 "configure"
11952 #include "confdefs.h"
11953 #include <sys/types.h>
11954 #include <sys/statvfs.h>
11956 struct statvfs fsd; statvfs (0, &fsd);
11959 if { (eval echo configure
:11960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11961 fu_cv_sys_stat_statvfs
=yes
11963 echo "configure: failed program was:" >&5
11964 cat conftest.
$ac_ext >&5
11966 fu_cv_sys_stat_statvfs
=no
11971 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11972 if test $fu_cv_sys_stat_statvfs = yes; then
11974 cat >> confdefs.h
<<\EOF
11975 #define STAT_STATVFS 1
11981 if test $space = no
; then
11982 # DEC Alpha running OSF/1
11983 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11984 echo "configure:11985: checking for 3-argument statfs function (DEC OSF/1)" >&5
11985 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11986 echo $ac_n "(cached) $ac_c" 1>&6
11988 if test "$cross_compiling" = yes; then
11989 fu_cv_sys_stat_statfs3_osf1
=no
11991 cat > conftest.
$ac_ext <<EOF
11992 #line 11993 "configure"
11993 #include "confdefs.h"
11995 #include <sys/param.h>
11996 #include <sys/types.h>
11997 #include <sys/mount.h>
12002 exit (statfs (".", &fsd, sizeof (struct statfs)));
12005 if { (eval echo configure
:12006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12007 fu_cv_sys_stat_statfs3_osf1
=yes
12009 echo "configure: failed program was:" >&5
12010 cat conftest.
$ac_ext >&5
12012 fu_cv_sys_stat_statfs3_osf1
=no
12019 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12020 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12022 cat >> confdefs.h
<<\EOF
12023 #define STAT_STATFS3_OSF1 1
12029 if test $space = no
; then
12031 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12032 echo "configure:12033: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12033 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12034 echo $ac_n "(cached) $ac_c" 1>&6
12036 if test "$cross_compiling" = yes; then
12037 fu_cv_sys_stat_statfs2_bsize
=no
12039 cat > conftest.
$ac_ext <<EOF
12040 #line 12041 "configure"
12041 #include "confdefs.h"
12043 #ifdef HAVE_SYS_PARAM_H
12044 #include <sys/param.h>
12046 #ifdef HAVE_SYS_MOUNT_H
12047 #include <sys/mount.h>
12049 #ifdef HAVE_SYS_VFS_H
12050 #include <sys/vfs.h>
12056 exit (statfs (".", &fsd));
12059 if { (eval echo configure
:12060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12061 fu_cv_sys_stat_statfs2_bsize
=yes
12063 echo "configure: failed program was:" >&5
12064 cat conftest.
$ac_ext >&5
12066 fu_cv_sys_stat_statfs2_bsize
=no
12073 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12074 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12076 cat >> confdefs.h
<<\EOF
12077 #define STAT_STATFS2_BSIZE 1
12083 if test $space = no
; then
12085 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12086 echo "configure:12087: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12087 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12088 echo $ac_n "(cached) $ac_c" 1>&6
12090 if test "$cross_compiling" = yes; then
12091 fu_cv_sys_stat_statfs4
=no
12093 cat > conftest.
$ac_ext <<EOF
12094 #line 12095 "configure"
12095 #include "confdefs.h"
12096 #include <sys/types.h>
12097 #include <sys/statfs.h>
12101 exit (statfs (".", &fsd, sizeof fsd, 0));
12104 if { (eval echo configure
:12105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12106 fu_cv_sys_stat_statfs4
=yes
12108 echo "configure: failed program was:" >&5
12109 cat conftest.
$ac_ext >&5
12111 fu_cv_sys_stat_statfs4
=no
12118 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12119 if test $fu_cv_sys_stat_statfs4 = yes; then
12121 cat >> confdefs.h
<<\EOF
12122 #define STAT_STATFS4 1
12128 if test $space = no
; then
12129 # 4.4BSD and NetBSD
12130 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12131 echo "configure:12132: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12132 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12133 echo $ac_n "(cached) $ac_c" 1>&6
12135 if test "$cross_compiling" = yes; then
12136 fu_cv_sys_stat_statfs2_fsize
=no
12138 cat > conftest.
$ac_ext <<EOF
12139 #line 12140 "configure"
12140 #include "confdefs.h"
12141 #include <sys/types.h>
12142 #ifdef HAVE_SYS_PARAM_H
12143 #include <sys/param.h>
12145 #ifdef HAVE_SYS_MOUNT_H
12146 #include <sys/mount.h>
12152 exit (statfs (".", &fsd));
12155 if { (eval echo configure
:12156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12157 fu_cv_sys_stat_statfs2_fsize
=yes
12159 echo "configure: failed program was:" >&5
12160 cat conftest.
$ac_ext >&5
12162 fu_cv_sys_stat_statfs2_fsize
=no
12169 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12170 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12172 cat >> confdefs.h
<<\EOF
12173 #define STAT_STATFS2_FSIZE 1
12179 if test $space = no
; then
12181 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12182 echo "configure:12183: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12183 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12184 echo $ac_n "(cached) $ac_c" 1>&6
12186 if test "$cross_compiling" = yes; then
12187 fu_cv_sys_stat_fs_data
=no
12189 cat > conftest.
$ac_ext <<EOF
12190 #line 12191 "configure"
12191 #include "confdefs.h"
12192 #include <sys/types.h>
12193 #ifdef HAVE_SYS_PARAM_H
12194 #include <sys/param.h>
12196 #ifdef HAVE_SYS_MOUNT_H
12197 #include <sys/mount.h>
12199 #ifdef HAVE_SYS_FS_TYPES_H
12200 #include <sys/fs_types.h>
12204 struct fs_data fsd;
12205 /* Ultrix's statfs returns 1 for success,
12206 0 for not mounted, -1 for failure. */
12207 exit (statfs (".", &fsd) != 1);
12210 if { (eval echo configure
:12211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12212 fu_cv_sys_stat_fs_data
=yes
12214 echo "configure: failed program was:" >&5
12215 cat conftest.
$ac_ext >&5
12217 fu_cv_sys_stat_fs_data
=no
12224 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12225 if test $fu_cv_sys_stat_fs_data = yes; then
12227 cat >> confdefs.h
<<\EOF
12228 #define STAT_STATFS2_FS_DATA 1
12235 # As a gating factor for large file support, in order to
12236 # use <4GB files we must have the following minimal support
12238 # long long, and a 64 bit off_t or off64_t.
12239 # If we don't have all of these then disable large
12242 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12243 echo "configure:12244: checking if large file support can be enabled" >&5
12244 cat > conftest.
$ac_ext <<EOF
12245 #line 12246 "configure"
12246 #include "confdefs.h"
12248 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12249 #include <sys/types.h>
12258 if { (eval echo configure
:12259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12260 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
12262 echo "configure: failed program was:" >&5
12263 cat conftest.
$ac_ext >&5
12265 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
12268 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
12269 cat >> confdefs.h
<<\EOF
12270 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12274 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
12276 # Check whether --with-spinlocks or --without-spinlocks was given.
12277 if test "${with_spinlocks+set}" = set; then
12278 withval
="$with_spinlocks"
12282 if test "x$with_spinlocks" = "xyes"; then
12283 cat >> confdefs.h
<<\EOF
12284 #define USE_SPINLOCKS 1
12288 case "$host_cpu" in
12290 cat >> confdefs.h
<<\EOF
12291 #define SPARC_SPINLOCKS 1
12296 i386|i486|i586|i686
)
12297 cat >> confdefs.h
<<\EOF
12298 #define INTEL_SPINLOCKS 1
12304 cat >> confdefs.h
<<\EOF
12305 #define MIPS_SPINLOCKS 1
12311 cat >> confdefs.h
<<\EOF
12312 #define POWERPC_SPINLOCKS 1
12319 #################################################
12320 # check for ACL support
12322 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12323 echo "configure:12324: checking whether to support ACLs" >&5
12324 # Check whether --with-acl-support or --without-acl-support was given.
12325 if test "${with_acl_support+set}" = set; then
12326 withval
="$with_acl_support"
12332 echo "$ac_t""Using UnixWare ACLs" 1>&6
12333 cat >> confdefs.h
<<\EOF
12334 #define HAVE_UNIXWARE_ACLS 1
12339 echo "$ac_t""Using solaris ACLs" 1>&6
12340 cat >> confdefs.h
<<\EOF
12341 #define HAVE_SOLARIS_ACLS 1
12346 echo "$ac_t""Using IRIX ACLs" 1>&6
12347 cat >> confdefs.h
<<\EOF
12348 #define HAVE_IRIX_ACLS 1
12353 echo "$ac_t""Using AIX ACLs" 1>&6
12354 cat >> confdefs.h
<<\EOF
12355 #define HAVE_AIX_ACLS 1
12360 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12361 echo "configure:12362: checking for acl_get_file in -lacl" >&5
12362 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12364 echo $ac_n "(cached) $ac_c" 1>&6
12366 ac_save_LIBS
="$LIBS"
12368 cat > conftest.
$ac_ext <<EOF
12369 #line 12370 "configure"
12370 #include "confdefs.h"
12371 /* Override any gcc2 internal prototype to avoid an error. */
12372 /* We use char because int might match the return type of a gcc2
12373 builtin and then its argument prototype would still apply. */
12374 char acl_get_file();
12380 if { (eval echo configure
:12381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12382 eval "ac_cv_lib_$ac_lib_var=yes"
12384 echo "configure: failed program was:" >&5
12385 cat conftest.
$ac_ext >&5
12387 eval "ac_cv_lib_$ac_lib_var=no"
12390 LIBS
="$ac_save_LIBS"
12393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12394 echo "$ac_t""yes" 1>&6
12395 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12396 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12397 cat >> confdefs.h
<<EOF
12398 #define $ac_tr_lib 1
12404 echo "$ac_t""no" 1>&6
12407 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12408 echo "configure:12409: checking for ACL support" >&5
12409 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12410 echo $ac_n "(cached) $ac_c" 1>&6
12413 cat > conftest.
$ac_ext <<EOF
12414 #line 12415 "configure"
12415 #include "confdefs.h"
12416 #include <sys/types.h>
12417 #include <sys/acl.h>
12419 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12422 if { (eval echo configure
:12423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12424 samba_cv_HAVE_POSIX_ACLS
=yes
12426 echo "configure: failed program was:" >&5
12427 cat conftest.
$ac_ext >&5
12429 samba_cv_HAVE_POSIX_ACLS
=no
12434 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12435 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
12436 echo "$ac_t""Using posix ACLs" 1>&6
12437 cat >> confdefs.h
<<\EOF
12438 #define HAVE_POSIX_ACLS 1
12441 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12442 echo "configure:12443: checking for acl_get_perm_np" >&5
12443 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12444 echo $ac_n "(cached) $ac_c" 1>&6
12447 cat > conftest.
$ac_ext <<EOF
12448 #line 12449 "configure"
12449 #include "confdefs.h"
12450 #include <sys/types.h>
12451 #include <sys/acl.h>
12453 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12456 if { (eval echo configure
:12457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12458 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
12460 echo "configure: failed program was:" >&5
12461 cat conftest.
$ac_ext >&5
12463 samba_cv_HAVE_ACL_GET_PERM_NP
=no
12468 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12469 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
12470 cat >> confdefs.h
<<\EOF
12471 #define HAVE_ACL_GET_PERM_NP 1
12476 echo $ac_n "checking for XFS ACL support""... $ac_c" 1>&6
12477 echo "configure:12478: checking for XFS ACL support" >&5
12478 if eval "test \"`echo '$''{'samba_cv_HAVE_XFS_ACLS'+set}'`\" = set"; then
12479 echo $ac_n "(cached) $ac_c" 1>&6
12482 cat > conftest.
$ac_ext <<EOF
12483 #line 12484 "configure"
12484 #include "confdefs.h"
12485 #include <sys/types.h>
12486 #include <acl/acl.h>
12488 char test_str[13] = SGI_ACL_FILE;
12491 if { (eval echo configure
:12492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12493 samba_cv_HAVE_XFS_ACLS
=yes
12495 echo "configure: failed program was:" >&5
12496 cat conftest.
$ac_ext >&5
12498 samba_cv_XFS_POSIX_ACLS
=no
12503 echo "$ac_t""$samba_cv_HAVE_XFS_ACLS" 1>&6
12504 if test x
"$samba_cv_HAVE_XFS_ACLS" = x
"yes"; then
12505 echo "$ac_t""Using XFS ACLs" 1>&6
12506 cat >> confdefs.h
<<\EOF
12507 #define HAVE_XFS_ACLS 1
12515 echo "$ac_t""no" 1>&6
12516 cat >> confdefs.h
<<\EOF
12517 #define HAVE_NO_ACLS 1
12523 cat >> confdefs.h
<<\EOF
12524 #define HAVE_NO_ACLS 1
12527 echo "$ac_t""no" 1>&6
12532 #################################################
12533 # check whether winbind is supported on this platform
12535 echo $ac_n "checking whether to compile winbind""... $ac_c" 1>&6
12536 echo "configure:12537: checking whether to compile winbind" >&5
12539 echo "$ac_t""yes" 1>&6
12540 WINBIND_TARGETS
="$WINBIND_TARGETS \$(WINBIND_PROGS)"
12543 echo "$ac_t""unsupported for $host_os" 1>&6
12549 #################################################
12550 # final configure stuff
12552 echo "checking configure summary"
12553 if test "$cross_compiling" = yes; then
12556 cat > conftest.
$ac_ext <<EOF
12557 #line 12558 "configure"
12558 #include "confdefs.h"
12559 #include "${srcdir-.}/tests/summary.c"
12561 if { (eval echo configure
:12562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12563 echo "configure OK";
12565 echo "configure: failed program was:" >&5
12566 cat conftest.
$ac_ext >&5
12568 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12578 cat > confcache
<<\EOF
12579 # This file is a shell script that caches the results of configure
12580 # tests run on this system so they can be shared between configure
12581 # scripts and configure runs. It is not useful on other systems.
12582 # If it contains results you don't want to keep, you may remove or edit it.
12584 # By default, configure uses ./config.cache as the cache file,
12585 # creating it if it does not exist already. You can give configure
12586 # the --cache-file=FILE option to use a different cache file; that is
12587 # what configure does when it calls configure scripts in
12588 # subdirectories, so they share the cache.
12589 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12590 # config.status only pays attention to the cache file if you give it the
12591 # --recheck option to rerun configure.
12594 # The following way of writing the cache mishandles newlines in values,
12595 # but we know of no workaround that is simple, portable, and efficient.
12596 # So, don't put newlines in cache variables' values.
12597 # Ultrix sh set writes to stderr and can't be redirected directly,
12598 # and sets the high bit in the cache file unless we assign to the vars.
12600 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12602 # `set' does not quote correctly, so add quotes (double-quote substitution
12603 # turns \\\\ into \\, and sed turns \\ into \).
12605 -e "s/'/'\\\\''/g" \
12606 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12609 # `set' quotes correctly as required by POSIX, so do not add quotes.
12610 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12613 if cmp -s $cache_file confcache
; then
12616 if test -w $cache_file; then
12617 echo "updating cache $cache_file"
12618 cat confcache
> $cache_file
12620 echo "not updating unwritable cache $cache_file"
12625 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12627 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12628 # Let make expand exec_prefix.
12629 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12631 # Any assignment to VPATH causes Sun make to only execute
12632 # the first set of double-colon rules, so remove it if not needed.
12633 # If there is a colon in the path, we need to keep it.
12634 if test "x$srcdir" = x.
; then
12635 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
12638 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12640 DEFS
=-DHAVE_CONFIG_H
12642 # Without the "./", some shells look in PATH for config.status.
12643 : ${CONFIG_STATUS=./config.status}
12645 echo creating
$CONFIG_STATUS
12646 rm -f $CONFIG_STATUS
12647 cat > $CONFIG_STATUS <<EOF
12649 # Generated automatically by configure.
12650 # Run this file to recreate the current configuration.
12651 # This directory was configured as follows,
12652 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12654 # $0 $ac_configure_args
12656 # Compiler output produced by configure, useful for debugging
12657 # configure, is in ./config.log if it exists.
12659 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12662 case "\$ac_option" in
12663 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12664 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12665 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12666 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12667 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12669 -help | --help | --hel | --he | --h)
12670 echo "\$ac_cs_usage"; exit 0 ;;
12671 *) echo "\$ac_cs_usage"; exit 1 ;;
12675 ac_given_srcdir=$srcdir
12676 ac_given_INSTALL="$INSTALL"
12678 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12680 cat >> $CONFIG_STATUS <<EOF
12682 # Protect against being on the right side of a sed subst in config.status.
12683 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12684 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12688 s%@CFLAGS@%$CFLAGS%g
12689 s%@CPPFLAGS@%$CPPFLAGS%g
12690 s%@CXXFLAGS@%$CXXFLAGS%g
12691 s%@FFLAGS@%$FFLAGS%g
12693 s%@LDFLAGS@%$LDFLAGS%g
12695 s%@exec_prefix@%$exec_prefix%g
12696 s%@prefix@%$prefix%g
12697 s%@program_transform_name@%$program_transform_name%g
12698 s%@bindir@%$bindir%g
12699 s%@sbindir@%$sbindir%g
12700 s%@libexecdir@%$libexecdir%g
12701 s%@datadir@%$datadir%g
12702 s%@sysconfdir@%$sysconfdir%g
12703 s%@sharedstatedir@%$sharedstatedir%g
12704 s%@localstatedir@%$localstatedir%g
12705 s%@libdir@%$libdir%g
12706 s%@includedir@%$includedir%g
12707 s%@oldincludedir@%$oldincludedir%g
12708 s%@infodir@%$infodir%g
12709 s%@mandir@%$mandir%g
12710 s%@RUNPROG@%$RUNPROG%g
12711 s%@MPROGS@%$MPROGS%g
12712 s%@LDSHFLAGS@%$LDSHFLAGS%g
12713 s%@HOST_OS@%$HOST_OS%g
12714 s%@PAM_MOD@%$PAM_MOD%g
12716 s%@WRAP32@%$WRAP32%g
12717 s%@PICFLAG@%$PICFLAG%g
12718 s%@SHLIBEXT@%$SHLIBEXT%g
12720 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12721 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12722 s%@INSTALL_DATA@%$INSTALL_DATA%g
12725 s%@host_alias@%$host_alias%g
12726 s%@host_cpu@%$host_cpu%g
12727 s%@host_vendor@%$host_vendor%g
12728 s%@host_os@%$host_os%g
12730 s%@build_alias@%$build_alias%g
12731 s%@build_cpu@%$build_cpu%g
12732 s%@build_vendor@%$build_vendor%g
12733 s%@build_os@%$build_os%g
12734 s%@RANLIB@%$RANLIB%g
12736 s%@LIBTOOL@%$LIBTOOL%g
12737 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
12738 s%@BROKEN_CC@%$BROKEN_CC%g
12739 s%@target@%$target%g
12740 s%@target_alias@%$target_alias%g
12741 s%@target_cpu@%$target_cpu%g
12742 s%@target_vendor@%$target_vendor%g
12743 s%@target_os@%$target_os%g
12745 s%@LIBOBJS@%$LIBOBJS%g
12746 s%@TERMLIBS@%$TERMLIBS%g
12747 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
12749 s%@QUOTAOBJS@%$QUOTAOBJS%g
12750 s%@privatedir@%$privatedir%g
12751 s%@lockdir@%$lockdir%g
12752 s%@swatdir@%$swatdir%g
12753 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
12754 s%@builddir@%$builddir%g
12759 cat >> $CONFIG_STATUS <<\EOF
12761 # Split the substitutions into bite-sized pieces for seds with
12762 # small command number limits, like on Digital OSF/1 and HP-UX.
12763 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
12764 ac_file
=1 # Number of current file.
12765 ac_beg
=1 # First line for current file.
12766 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
12769 while $ac_more_lines; do
12770 if test $ac_beg -gt 1; then
12771 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
12773 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
12775 if test ! -s conftest.s
$ac_file; then
12776 ac_more_lines
=false
12777 rm -f conftest.s
$ac_file
12779 if test -z "$ac_sed_cmds"; then
12780 ac_sed_cmds
="sed -f conftest.s$ac_file"
12782 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
12784 ac_file
=`expr $ac_file + 1`
12786 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
12789 if test -z "$ac_sed_cmds"; then
12794 cat >> $CONFIG_STATUS <<EOF
12796 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
12798 cat >> $CONFIG_STATUS <<\EOF
12799 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
12800 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12802 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
12803 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
12804 *) ac_file_in
="${ac_file}.in" ;;
12807 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12809 # Remove last slash and all that follows it. Not all systems have dirname.
12810 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12811 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
12812 # The file is in a subdirectory.
12813 test ! -d "$ac_dir" && mkdir
"$ac_dir"
12814 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
12815 # A "../" for each directory in $ac_dir_suffix.
12816 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12818 ac_dir_suffix
= ac_dots
=
12821 case "$ac_given_srcdir" in
12823 if test -z "$ac_dots"; then top_srcdir
=.
12824 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12825 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
12826 *) # Relative path.
12827 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12828 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
12831 case "$ac_given_INSTALL" in
12832 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
12833 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
12836 echo creating
"$ac_file"
12838 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12840 *Makefile
*) ac_comsub
="1i\\
12841 # $configure_input" ;;
12845 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12847 s%@configure_input@%$configure_input%g
12848 s%@srcdir@%$srcdir%g
12849 s%@top_srcdir@%$top_srcdir%g
12850 s%@INSTALL@%$INSTALL%g
12851 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
12855 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12856 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12858 # ac_d sets the value in "#define NAME VALUE" lines.
12859 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12860 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
12863 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12864 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12865 ac_uB
='\([ ]\)%\1#\2define\3'
12868 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12869 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12870 ac_eB
='$%\1#\2define\3'
12874 if test "${CONFIG_HEADERS+set}" != set; then
12876 cat >> $CONFIG_STATUS <<EOF
12877 CONFIG_HEADERS="include/config.h"
12879 cat >> $CONFIG_STATUS <<\EOF
12881 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
12882 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12884 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
12885 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
12886 *) ac_file_in
="${ac_file}.in" ;;
12889 echo creating
$ac_file
12891 rm -f conftest.frag conftest.
in conftest.out
12892 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12893 cat $ac_file_inputs > conftest.
in
12897 # Transform confdefs.h into a sed script conftest.vals that substitutes
12898 # the proper values into config.h.in to produce config.h. And first:
12899 # Protect against being on the right side of a sed subst in config.status.
12900 # Protect against being in an unquoted here document in config.status.
12901 rm -f conftest.vals
12902 cat > conftest.hdr
<<\EOF
12905 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12909 sed -n -f conftest.hdr confdefs.h > conftest.vals
12912 # This sed command replaces #undef with comments. This is necessary, for
12913 # example, in the case of _POSIX_SOURCE, which is predefined and required
12914 # on some systems where configure will not decide to define it.
12915 cat >> conftest.vals <<\EOF
12916 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12919 # Break up conftest.vals because some shells have a limit on
12920 # the size of here documents, and old seds have small limits too.
12922 rm -f conftest.tail
12925 ac_lines=`grep -c . conftest.vals
`
12926 # grep -c gives empty output for an empty file on some AIX systems.
12927 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12928 # Write a limited-size here document to conftest.frag.
12929 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12930 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12932 sed -f conftest.frag conftest.in > conftest.out
12934 mv conftest.out conftest.in
12935 ' >> $CONFIG_STATUS
12936 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12937 rm -f conftest.vals
12938 mv conftest.tail conftest.vals
12940 rm -f conftest.vals
12942 cat >> $CONFIG_STATUS <<\EOF
12943 rm -f conftest.frag conftest.h
12944 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12945 cat conftest.in >> conftest.h
12947 if cmp -s $ac_file conftest.h 2>/dev/null; then
12948 echo "$ac_file is unchanged"
12951 # Remove last slash and all that follows it. Not all systems have dirname.
12952 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
12953 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12954 # The file is in a subdirectory.
12955 test ! -d "$ac_dir" && mkdir "$ac_dir"
12958 mv conftest.h $ac_file
12963 cat >> $CONFIG_STATUS <<EOF
12966 cat >> $CONFIG_STATUS <<\EOF
12970 chmod +x $CONFIG_STATUS
12971 rm -fr confdefs* $ac_clean_files
12972 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1