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 --with-winbind Build winbind library (default, if supported by OS)
106 --without-winbind Don't build winbind library"
108 # Initialize some variables set by options.
109 # The variables have the same names as the options, with
110 # dashes changed to underlines.
112 cache_file
=.
/config.cache
121 program_transform_name
=s
,x
,x
,
129 bindir
='${exec_prefix}/bin'
130 sbindir
='${exec_prefix}/sbin'
131 libexecdir
='${exec_prefix}/libexec'
132 datadir
='${prefix}/share'
133 sysconfdir
='${prefix}/etc'
134 sharedstatedir
='${prefix}/com'
135 localstatedir
='${prefix}/var'
136 libdir
='${exec_prefix}/lib'
137 includedir
='${prefix}/include'
138 oldincludedir
='/usr/include'
139 infodir
='${prefix}/info'
140 mandir
='${prefix}/man'
142 # Initialize some other variables.
145 SHELL
=${CONFIG_SHELL-/bin/sh}
146 # Maximum number of lines to put in a shell here document.
153 # If the previous option needs an argument, assign it.
154 if test -n "$ac_prev"; then
155 eval "$ac_prev=\$ac_option"
161 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
165 # Accept the important Cygnus configure options, so we can diagnose typos.
169 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
171 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
172 bindir
="$ac_optarg" ;;
174 -build |
--build |
--buil |
--bui |
--bu)
176 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
177 build
="$ac_optarg" ;;
179 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
180 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
181 ac_prev
=cache_file
;;
182 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
183 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
184 cache_file
="$ac_optarg" ;;
186 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
188 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
190 datadir
="$ac_optarg" ;;
192 -disable-* |
--disable-*)
193 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
194 # Reject names that are not valid shell variable names.
195 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
196 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
198 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
199 eval "enable_${ac_feature}=no" ;;
201 -enable-* |
--enable-*)
202 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
203 # Reject names that are not valid shell variable names.
204 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
205 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
207 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
212 eval "enable_${ac_feature}='$ac_optarg'" ;;
214 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
215 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
216 |
--exec |
--exe |
--ex)
217 ac_prev
=exec_prefix
;;
218 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
219 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
220 |
--exec=* |
--exe=* |
--ex=*)
221 exec_prefix
="$ac_optarg" ;;
223 -gas |
--gas |
--ga |
--g)
224 # Obsolete; use --with-gas.
227 -help |
--help |
--hel |
--he)
228 # Omit some internal or obsolete options to make the list less imposing.
229 # This message is too long to be a string in the A/UX 3.1 sh.
231 Usage: configure [options] [host]
232 Options: [defaults in brackets after descriptions]
234 --cache-file=FILE cache test results in FILE
235 --help print this message
236 --no-create do not create output files
237 --quiet, --silent do not print \`checking...' messages
238 --version print the version of autoconf that created configure
239 Directory and file names:
240 --prefix=PREFIX install architecture-independent files in PREFIX
242 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
244 --bindir=DIR user executables in DIR [EPREFIX/bin]
245 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
246 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
247 --datadir=DIR read-only architecture-independent data in DIR
249 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
250 --sharedstatedir=DIR modifiable architecture-independent data in DIR
252 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
253 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
254 --includedir=DIR C header files in DIR [PREFIX/include]
255 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
256 --infodir=DIR info documentation in DIR [PREFIX/info]
257 --mandir=DIR man documentation in DIR [PREFIX/man]
258 --srcdir=DIR find the sources in DIR [configure dir or ..]
259 --program-prefix=PREFIX prepend PREFIX to installed program names
260 --program-suffix=SUFFIX append SUFFIX to installed program names
261 --program-transform-name=PROGRAM
262 run sed PROGRAM on installed program names
266 --build=BUILD configure for building on BUILD [BUILD=HOST]
267 --host=HOST configure for HOST [guessed]
268 --target=TARGET configure for TARGET [TARGET=HOST]
269 Features and packages:
270 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
271 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
272 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
273 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
274 --x-includes=DIR X include files are in DIR
275 --x-libraries=DIR X library files are in DIR
277 if test -n "$ac_help"; then
278 echo "--enable and --with options recognized:$ac_help"
282 -host |
--host |
--hos |
--ho)
284 -host=* |
--host=* |
--hos=* |
--ho=*)
287 -includedir |
--includedir |
--includedi |
--included |
--include \
288 |
--includ |
--inclu |
--incl |
--inc)
289 ac_prev
=includedir
;;
290 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
291 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
292 includedir
="$ac_optarg" ;;
294 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
296 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
297 infodir
="$ac_optarg" ;;
299 -libdir |
--libdir |
--libdi |
--libd)
301 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
302 libdir
="$ac_optarg" ;;
304 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
305 |
--libexe |
--libex |
--libe)
306 ac_prev
=libexecdir
;;
307 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
308 |
--libexe=* |
--libex=* |
--libe=*)
309 libexecdir
="$ac_optarg" ;;
311 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
312 |
--localstate |
--localstat |
--localsta |
--localst \
313 |
--locals |
--local |
--loca |
--loc |
--lo)
314 ac_prev
=localstatedir
;;
315 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
316 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
317 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
318 localstatedir
="$ac_optarg" ;;
320 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
322 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
323 mandir
="$ac_optarg" ;;
326 # Obsolete; use --without-fp.
329 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
333 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
334 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
337 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
338 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
339 |
--oldin |
--oldi |
--old |
--ol |
--o)
340 ac_prev
=oldincludedir
;;
341 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
342 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
343 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
344 oldincludedir
="$ac_optarg" ;;
346 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
348 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
349 prefix
="$ac_optarg" ;;
351 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
352 |
--program-pre |
--program-pr |
--program-p)
353 ac_prev
=program_prefix
;;
354 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
355 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
356 program_prefix
="$ac_optarg" ;;
358 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
359 |
--program-suf |
--program-su |
--program-s)
360 ac_prev
=program_suffix
;;
361 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
362 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
363 program_suffix
="$ac_optarg" ;;
365 -program-transform-name |
--program-transform-name \
366 |
--program-transform-nam |
--program-transform-na \
367 |
--program-transform-n |
--program-transform- \
368 |
--program-transform |
--program-transfor \
369 |
--program-transfo |
--program-transf \
370 |
--program-trans |
--program-tran \
371 |
--progr-tra |
--program-tr |
--program-t)
372 ac_prev
=program_transform_name
;;
373 -program-transform-name=* |
--program-transform-name=* \
374 |
--program-transform-nam=* |
--program-transform-na=* \
375 |
--program-transform-n=* |
--program-transform-=* \
376 |
--program-transform=* |
--program-transfor=* \
377 |
--program-transfo=* |
--program-transf=* \
378 |
--program-trans=* |
--program-tran=* \
379 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
380 program_transform_name
="$ac_optarg" ;;
382 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
383 |
-silent |
--silent |
--silen |
--sile |
--sil)
386 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
388 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
390 sbindir
="$ac_optarg" ;;
392 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
393 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
394 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
396 ac_prev
=sharedstatedir
;;
397 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
398 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
399 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
401 sharedstatedir
="$ac_optarg" ;;
403 -site |
--site |
--sit)
405 -site=* |
--site=* |
--sit=*)
408 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
410 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
411 srcdir
="$ac_optarg" ;;
413 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
414 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
415 ac_prev
=sysconfdir
;;
416 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
417 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
418 sysconfdir
="$ac_optarg" ;;
420 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
422 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
423 target
="$ac_optarg" ;;
425 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
428 -version |
--version |
--versio |
--versi |
--vers)
429 echo "configure generated by autoconf version 2.13"
433 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
434 # Reject names that are not valid shell variable names.
435 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
436 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
438 ac_package
=`echo $ac_package| sed 's/-/_/g'`
443 eval "with_${ac_package}='$ac_optarg'" ;;
445 -without-* |
--without-*)
446 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
447 # Reject names that are not valid shell variable names.
448 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
449 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
451 ac_package
=`echo $ac_package| sed 's/-/_/g'`
452 eval "with_${ac_package}=no" ;;
455 # Obsolete; use --with-x.
458 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
459 |
--x-incl |
--x-inc |
--x-in |
--x-i)
460 ac_prev
=x_includes
;;
461 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
462 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
463 x_includes
="$ac_optarg" ;;
465 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
466 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
467 ac_prev
=x_libraries
;;
468 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
469 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
470 x_libraries
="$ac_optarg" ;;
472 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
476 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
477 echo "configure: warning: $ac_option: invalid host type" 1>&2
479 if test "x$nonopt" != xNONE
; then
480 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
488 if test -n "$ac_prev"; then
489 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
492 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
494 # File descriptor usage:
497 # 2 errors and warnings
498 # 3 some systems may open it to /dev/tty
499 # 4 used on the Kubota Titan
500 # 6 checking for... messages and results
501 # 5 compiler messages saved in config.log
502 if test "$silent" = yes; then
510 This file contains any messages produced by compilers while
511 running configure, to aid debugging if configure makes a mistake.
514 # Strip out --no-create and --no-recursion so they do not pile up.
515 # Also quote any args containing shell metacharacters.
520 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
521 |
--no-cr |
--no-c) ;;
522 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
523 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
524 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
525 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
526 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
531 # Only set these to C if already set. These must not be set unconditionally
532 # because not all systems understand e.g. LANG=C (notably SCO).
533 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
534 # Non-C LC_CTYPE values break the ctype check.
535 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
536 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
537 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
538 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
540 # confdefs.h avoids OS command line length limits that DEFS can exceed.
541 rm -rf conftest
* confdefs.h
542 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
545 # A filename unique to this package, relative to the directory that
546 # configure is in, which we can look for to find out if srcdir is correct.
547 ac_unique_file
=include
/includes.h
549 # Find the source files, if location was not specified.
550 if test -z "$srcdir"; then
551 ac_srcdir_defaulted
=yes
552 # Try the directory containing this script, then its parent.
554 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
555 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
557 if test ! -r $srcdir/$ac_unique_file; then
561 ac_srcdir_defaulted
=no
563 if test ! -r $srcdir/$ac_unique_file; then
564 if test "$ac_srcdir_defaulted" = yes; then
565 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
567 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
570 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
572 # Prefer explicitly selected file to automatically selected ones.
573 if test -z "$CONFIG_SITE"; then
574 if test "x$prefix" != xNONE
; then
575 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
577 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
580 for ac_site_file
in $CONFIG_SITE; do
581 if test -r "$ac_site_file"; then
582 echo "loading site script $ac_site_file"
587 if test -r "$cache_file"; then
588 echo "loading cache $cache_file"
591 echo "creating cache $cache_file"
596 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
597 ac_cpp
='$CPP $CPPFLAGS'
598 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
599 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
600 cross_compiling
=$ac_cv_prog_cc_cross
604 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
605 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
606 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
613 ac_n
= ac_c
='\c' ac_t
=
618 # we want to be compatibe with older versions of Samba
632 # compile with optimisation and without debugging by default
633 CFLAGS
="-O ${CFLAGS}"
635 # Check whether --enable-debug or --disable-debug was given.
636 if test "${enable_debug+set}" = set; then
637 enableval
="$enable_debug"
638 if eval "test x$enable_debug = xyes"; then
639 CFLAGS
="${CFLAGS} -g"
645 # Extract the first word of "gcc", so it can be a program name with args.
646 set dummy gcc
; ac_word
=$2
647 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
648 echo "configure:649: checking for $ac_word" >&5
649 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
650 echo $ac_n "(cached) $ac_c" 1>&6
652 if test -n "$CC"; then
653 ac_cv_prog_CC
="$CC" # Let the user override the test.
655 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
657 for ac_dir
in $ac_dummy; do
658 test -z "$ac_dir" && ac_dir
=.
659 if test -f $ac_dir/$ac_word; then
668 if test -n "$CC"; then
669 echo "$ac_t""$CC" 1>&6
671 echo "$ac_t""no" 1>&6
674 if test -z "$CC"; then
675 # Extract the first word of "cc", so it can be a program name with args.
676 set dummy cc
; ac_word
=$2
677 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
678 echo "configure:679: checking for $ac_word" >&5
679 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
680 echo $ac_n "(cached) $ac_c" 1>&6
682 if test -n "$CC"; then
683 ac_cv_prog_CC
="$CC" # Let the user override the test.
685 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
688 for ac_dir
in $ac_dummy; do
689 test -z "$ac_dir" && ac_dir
=.
690 if test -f $ac_dir/$ac_word; then
691 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
700 if test $ac_prog_rejected = yes; then
701 # We found a bogon in the path, so make sure we never use it.
702 set dummy
$ac_cv_prog_CC
704 if test $# -gt 0; then
705 # We chose a different compiler from the bogus one.
706 # However, it has the same basename, so the bogon will be chosen
707 # first if we set CC to just the basename; use the full file name.
709 set dummy
"$ac_dir/$ac_word" "$@"
717 if test -n "$CC"; then
718 echo "$ac_t""$CC" 1>&6
720 echo "$ac_t""no" 1>&6
723 if test -z "$CC"; then
726 # Extract the first word of "cl", so it can be a program name with args.
727 set dummy cl
; ac_word
=$2
728 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
729 echo "configure:730: checking for $ac_word" >&5
730 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
731 echo $ac_n "(cached) $ac_c" 1>&6
733 if test -n "$CC"; then
734 ac_cv_prog_CC
="$CC" # Let the user override the test.
736 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
738 for ac_dir
in $ac_dummy; do
739 test -z "$ac_dir" && ac_dir
=.
740 if test -f $ac_dir/$ac_word; then
749 if test -n "$CC"; then
750 echo "$ac_t""$CC" 1>&6
752 echo "$ac_t""no" 1>&6
757 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
760 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
761 echo "configure:762: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
764 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
765 ac_cpp
='$CPP $CPPFLAGS'
766 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
767 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
768 cross_compiling
=$ac_cv_prog_cc_cross
770 cat > conftest.
$ac_ext << EOF
772 #line 773 "configure"
773 #include "confdefs.h"
777 if { (eval echo configure
:778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
778 ac_cv_prog_cc_works
=yes
779 # If we can't run a trivial program, we are probably using a cross compiler.
780 if (.
/conftest
; exit) 2>/dev
/null
; then
781 ac_cv_prog_cc_cross
=no
783 ac_cv_prog_cc_cross
=yes
786 echo "configure: failed program was:" >&5
787 cat conftest.
$ac_ext >&5
788 ac_cv_prog_cc_works
=no
792 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
793 ac_cpp
='$CPP $CPPFLAGS'
794 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
795 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
796 cross_compiling
=$ac_cv_prog_cc_cross
798 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
799 if test $ac_cv_prog_cc_works = no
; then
800 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
802 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
803 echo "configure:804: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
804 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
805 cross_compiling
=$ac_cv_prog_cc_cross
807 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
808 echo "configure:809: checking whether we are using GNU C" >&5
809 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
810 echo $ac_n "(cached) $ac_c" 1>&6
812 cat > conftest.c
<<EOF
817 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
824 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
826 if test $ac_cv_prog_gcc = yes; then
832 ac_test_CFLAGS
="${CFLAGS+set}"
833 ac_save_CFLAGS
="$CFLAGS"
835 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
836 echo "configure:837: checking whether ${CC-cc} accepts -g" >&5
837 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
838 echo $ac_n "(cached) $ac_c" 1>&6
840 echo 'void f(){}' > conftest.c
841 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
850 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
851 if test "$ac_test_CFLAGS" = set; then
852 CFLAGS
="$ac_save_CFLAGS"
853 elif test $ac_cv_prog_cc_g = yes; then
854 if test "$GCC" = yes; then
860 if test "$GCC" = yes; then
868 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
869 if test -f $ac_dir/install-sh
; then
871 ac_install_sh
="$ac_aux_dir/install-sh -c"
873 elif test -f $ac_dir/install.sh
; then
875 ac_install_sh
="$ac_aux_dir/install.sh -c"
879 if test -z "$ac_aux_dir"; then
880 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
882 ac_config_guess
=$ac_aux_dir/config.guess
883 ac_config_sub
=$ac_aux_dir/config.sub
884 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
886 # Find a good install program. We prefer a C program (faster),
887 # so one script is as good as another. But avoid the broken or
888 # incompatible versions:
889 # SysV /etc/install, /usr/sbin/install
890 # SunOS /usr/etc/install
893 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
894 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
895 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
896 # ./install, which can be erroneously created by make from ./install.sh.
897 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
898 echo "configure:899: checking for a BSD compatible install" >&5
899 if test -z "$INSTALL"; then
900 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
901 echo $ac_n "(cached) $ac_c" 1>&6
903 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
904 for ac_dir
in $PATH; do
905 # Account for people who put trailing slashes in PATH elements.
907 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
909 # OSF1 and SCO ODT 3.0 have their own names for install.
910 # Don't use installbsd from OSF since it installs stuff as root
912 for ac_prog
in ginstall scoinst
install; do
913 if test -f $ac_dir/$ac_prog; then
914 if test $ac_prog = install &&
915 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
916 # AIX install. It has an incompatible calling convention.
919 ac_cv_path_install
="$ac_dir/$ac_prog -c"
930 if test "${ac_cv_path_install+set}" = set; then
931 INSTALL
="$ac_cv_path_install"
933 # As a last resort, use the slow shell script. We don't cache a
934 # path for INSTALL within a source directory, because that will
935 # break other packages using the cache if that directory is
936 # removed, or if the path is relative.
937 INSTALL
="$ac_install_sh"
940 echo "$ac_t""$INSTALL" 1>&6
942 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
943 # It thinks the first close brace ends the variable substitution.
944 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
946 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
948 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
950 for ac_prog
in mawk gawk nawk
awk
952 # Extract the first word of "$ac_prog", so it can be a program name with args.
953 set dummy
$ac_prog; ac_word
=$2
954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
955 echo "configure:956: checking for $ac_word" >&5
956 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
957 echo $ac_n "(cached) $ac_c" 1>&6
959 if test -n "$AWK"; then
960 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
962 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
964 for ac_dir
in $ac_dummy; do
965 test -z "$ac_dir" && ac_dir
=.
966 if test -f $ac_dir/$ac_word; then
967 ac_cv_prog_AWK
="$ac_prog"
974 AWK
="$ac_cv_prog_AWK"
975 if test -n "$AWK"; then
976 echo "$ac_t""$AWK" 1>&6
978 echo "$ac_t""no" 1>&6
981 test -n "$AWK" && break
984 # Check whether --enable-shared or --disable-shared was given.
985 if test "${enable_shared+set}" = set; then
986 enableval
="$enable_shared"
989 yes) enable_shared
=yes ;;
990 no
) enable_shared
=no
;;
993 # Look at the argument we got. We use all the common list separators.
994 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
995 for pkg
in $enableval; do
996 if test "X$pkg" = "X$p"; then
1007 # Check whether --enable-static or --disable-static was given.
1008 if test "${enable_static+set}" = set; then
1009 enableval
="$enable_static"
1010 p
=${PACKAGE-default}
1011 case "$enableval" in
1012 yes) enable_static
=yes ;;
1013 no
) enable_static
=no
;;
1016 # Look at the argument we got. We use all the common list separators.
1017 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1018 for pkg
in $enableval; do
1019 if test "X$pkg" = "X$p"; then
1030 # Check whether --enable-fast-install or --disable-fast-install was given.
1031 if test "${enable_fast_install+set}" = set; then
1032 enableval
="$enable_fast_install"
1033 p
=${PACKAGE-default}
1034 case "$enableval" in
1035 yes) enable_fast_install
=yes ;;
1036 no
) enable_fast_install
=no
;;
1038 enable_fast_install
=no
1039 # Look at the argument we got. We use all the common list separators.
1040 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1041 for pkg
in $enableval; do
1042 if test "X$pkg" = "X$p"; then
1043 enable_fast_install
=yes
1050 enable_fast_install
=yes
1054 # Make sure we can run config.sub.
1055 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1056 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1059 echo $ac_n "checking host system type""... $ac_c" 1>&6
1060 echo "configure:1061: checking host system type" >&5
1063 case "$host_alias" in
1067 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1068 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1070 *) host_alias
=$nonopt ;;
1074 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1075 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1076 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1077 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1078 echo "$ac_t""$host" 1>&6
1080 echo $ac_n "checking build system type""... $ac_c" 1>&6
1081 echo "configure:1082: checking build system type" >&5
1084 case "$build_alias" in
1087 NONE
) build_alias
=$host_alias ;;
1088 *) build_alias
=$nonopt ;;
1092 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1093 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1094 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1095 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1096 echo "$ac_t""$build" 1>&6
1098 # Extract the first word of "ranlib", so it can be a program name with args.
1099 set dummy ranlib
; ac_word
=$2
1100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1101 echo "configure:1102: checking for $ac_word" >&5
1102 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1103 echo $ac_n "(cached) $ac_c" 1>&6
1105 if test -n "$RANLIB"; then
1106 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1108 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1110 for ac_dir
in $ac_dummy; do
1111 test -z "$ac_dir" && ac_dir
=.
1112 if test -f $ac_dir/$ac_word; then
1113 ac_cv_prog_RANLIB
="ranlib"
1118 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1121 RANLIB
="$ac_cv_prog_RANLIB"
1122 if test -n "$RANLIB"; then
1123 echo "$ac_t""$RANLIB" 1>&6
1125 echo "$ac_t""no" 1>&6
1128 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1129 if test "${with_gnu_ld+set}" = set; then
1130 withval
="$with_gnu_ld"
1131 test "$withval" = no || with_gnu_ld
=yes
1137 if test "$ac_cv_prog_gcc" = yes; then
1138 # Check if gcc -print-prog-name=ld gives a path.
1139 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1140 echo "configure:1141: checking for ld used by GCC" >&5
1141 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1143 # Accept absolute paths.
1144 [\\/]* |
[A-Za-z
]:[\\/]*)
1145 re_direlt
='/[^/][^/]*/\.\./'
1146 # Canonicalize the path of ld
1147 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1148 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1149 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1151 test -z "$LD" && LD
="$ac_prog"
1154 # If it fails, then pretend we aren't using GCC.
1158 # If it is relative, then search for the first ld in PATH.
1162 elif test "$with_gnu_ld" = yes; then
1163 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1164 echo "configure:1165: checking for GNU ld" >&5
1166 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1167 echo "configure:1168: checking for non-GNU ld" >&5
1169 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1172 if test -z "$LD"; then
1173 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1174 for ac_dir
in $PATH; do
1175 test -z "$ac_dir" && ac_dir
=.
1176 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1177 ac_cv_path_LD
="$ac_dir/$ac_prog"
1178 # Check to see if the program is GNU ld. I'd rather use --version,
1179 # but apparently some GNU ld's only accept -v.
1180 # Break only if it was the GNU/non-GNU ld that we prefer.
1181 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1182 test "$with_gnu_ld" != no
&& break
1184 test "$with_gnu_ld" != yes && break
1190 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1195 if test -n "$LD"; then
1196 echo "$ac_t""$LD" 1>&6
1198 echo "$ac_t""no" 1>&6
1200 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1201 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1202 echo "configure:1203: checking if the linker ($LD) is GNU ld" >&5
1203 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1204 echo $ac_n "(cached) $ac_c" 1>&6
1206 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1207 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1208 ac_cv_prog_gnu_ld
=yes
1210 ac_cv_prog_gnu_ld
=no
1214 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1217 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1218 echo "configure:1219: checking for BSD-compatible nm" >&5
1219 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1220 echo $ac_n "(cached) $ac_c" 1>&6
1222 if test -n "$NM"; then
1223 # Let the user override the test.
1226 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1227 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1228 test -z "$ac_dir" && ac_dir
=.
1229 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1230 # Check to see if the nm accepts a BSD-compat flag.
1231 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1232 # nm: unknown option "B" ignored
1233 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1234 ac_cv_path_NM
="$ac_dir/nm -B"
1236 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1237 ac_cv_path_NM
="$ac_dir/nm -p"
1240 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1241 continue # so that we can try to find one that supports BSD flags
1246 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1251 echo "$ac_t""$NM" 1>&6
1253 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1254 echo "configure:1255: checking whether ln -s works" >&5
1255 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1256 echo $ac_n "(cached) $ac_c" 1>&6
1259 if ln -s X conftestdata
2>/dev
/null
1262 ac_cv_prog_LN_S
="ln -s"
1267 LN_S
="$ac_cv_prog_LN_S"
1268 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1269 echo "$ac_t""yes" 1>&6
1271 echo "$ac_t""no" 1>&6
1276 NONE
) lt_target
="$host" ;;
1277 *) lt_target
="$target" ;;
1280 # Check for any special flags to pass to ltconfig.
1281 libtool_flags
="--cache-file=$cache_file"
1282 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1283 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1284 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1285 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1286 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1289 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1290 if test "${enable_libtool_lock+set}" = set; then
1291 enableval
="$enable_libtool_lock"
1295 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1296 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1298 # Some flags need to be propagated to the compiler or linker for good
1300 case "$lt_target" in
1302 # Find out which ABI we are using.
1303 echo '#line 1304 "configure"' > conftest.
$ac_ext
1304 if { (eval echo configure
:1305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1305 case "`/usr/bin/file conftest.o`" in
1321 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1322 SAVE_CFLAGS
="$CFLAGS"
1323 CFLAGS
="$CFLAGS -belf"
1324 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1325 echo "configure:1326: checking whether the C compiler needs -belf" >&5
1326 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1327 echo $ac_n "(cached) $ac_c" 1>&6
1329 cat > conftest.
$ac_ext <<EOF
1330 #line 1331 "configure"
1331 #include "confdefs.h"
1337 if { (eval echo configure
:1338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1339 lt_cv_cc_needs_belf
=yes
1341 echo "configure: failed program was:" >&5
1342 cat conftest.
$ac_ext >&5
1344 lt_cv_cc_needs_belf
=no
1349 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1350 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1351 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1352 CFLAGS
="$SAVE_CFLAGS"
1360 # Save cache, so that ltconfig can load it
1361 cat > confcache
<<\EOF
1362 # This file is a shell script that caches the results of configure
1363 # tests run on this system so they can be shared between configure
1364 # scripts and configure runs. It is not useful on other systems.
1365 # If it contains results you don't want to keep, you may remove or edit it.
1367 # By default, configure uses ./config.cache as the cache file,
1368 # creating it if it does not exist already. You can give configure
1369 # the --cache-file=FILE option to use a different cache file; that is
1370 # what configure does when it calls configure scripts in
1371 # subdirectories, so they share the cache.
1372 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1373 # config.status only pays attention to the cache file if you give it the
1374 # --recheck option to rerun configure.
1377 # The following way of writing the cache mishandles newlines in values,
1378 # but we know of no workaround that is simple, portable, and efficient.
1379 # So, don't put newlines in cache variables' values.
1380 # Ultrix sh set writes to stderr and can't be redirected directly,
1381 # and sets the high bit in the cache file unless we assign to the vars.
1383 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1385 # `set' does not quote correctly, so add quotes (double-quote substitution
1386 # turns \\\\ into \\, and sed turns \\ into \).
1388 -e "s/'/'\\\\''/g" \
1389 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1392 # `set' quotes correctly as required by POSIX, so do not add quotes.
1393 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1396 if cmp -s $cache_file confcache
; then
1399 if test -w $cache_file; then
1400 echo "updating cache $cache_file"
1401 cat confcache
> $cache_file
1403 echo "not updating unwritable cache $cache_file"
1409 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1410 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1411 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1412 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1413 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1414 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1415 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$lt_target \
1416 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1418 # Reload cache, that may have been modified by ltconfig
1419 if test -r "$cache_file"; then
1420 echo "loading cache $cache_file"
1423 echo "creating cache $cache_file"
1428 # This can be used to rebuild libtool when needed
1429 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1431 # Always use our own libtool.
1432 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1434 # Redirect the config.log output again, so that the ltconfig log is not
1435 # clobbered by the next message.
1436 exec 5>>.
/config.log
1440 if test "x$CC" != xcc
; then
1441 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1442 echo "configure:1443: checking whether $CC and cc understand -c and -o together" >&5
1444 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1445 echo "configure:1446: checking whether cc understands -c and -o together" >&5
1447 set dummy
$CC; ac_cc
="`echo $2 |
1448 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1449 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1450 echo $ac_n "(cached) $ac_c" 1>&6
1452 echo 'foo(){}' > conftest.c
1453 # Make sure it works both with $CC and with simple cc.
1454 # We do the test twice because some compilers refuse to overwrite an
1455 # existing .o file with -o, though they will create one.
1456 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1457 if { (eval echo configure
:1458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1458 test -f conftest.o
&& { (eval echo configure
:1459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1460 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1461 if test "x$CC" != xcc
; then
1462 # Test first that cc exists at all.
1463 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1464 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1465 if { (eval echo configure
:1466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1466 test -f conftest.o
&& { (eval echo configure
:1467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1471 # cc exists but doesn't like -o.
1472 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1477 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1482 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1483 echo "$ac_t""yes" 1>&6
1485 echo "$ac_t""no" 1>&6
1486 cat >> confdefs.h
<<\EOF
1487 #define NO_MINUS_C_MINUS_O 1
1492 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1499 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1500 echo "configure:1501: checking that the C compiler understands volatile" >&5
1501 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1502 echo $ac_n "(cached) $ac_c" 1>&6
1505 cat > conftest.
$ac_ext <<EOF
1506 #line 1507 "configure"
1507 #include "confdefs.h"
1508 #include <sys/types.h>
1513 if { (eval echo configure
:1514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1515 samba_cv_volatile
=yes
1517 echo "configure: failed program was:" >&5
1518 cat conftest.
$ac_ext >&5
1520 samba_cv_volatile
=no
1525 echo "$ac_t""$samba_cv_volatile" 1>&6
1526 if test x
"$samba_cv_volatile" = x
"yes"; then
1527 cat >> confdefs.h
<<\EOF
1528 #define HAVE_VOLATILE 1
1534 #################################################
1535 # set codepage directory location
1536 # Check whether --with-codepagedir or --without-codepagedir was given.
1537 if test "${with_codepagedir+set}" = set; then
1538 withval
="$with_codepagedir"
1542 # Just in case anybody does it
1544 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
1547 codepagedir
="$withval"
1555 # Do some error checking and defaulting for the host and target type.
1557 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1560 # 1. You are not allowed to specify --host, --target, and nonopt at the
1562 # 2. Host defaults to nonopt.
1563 # 3. If nonopt is not specified, then host defaults to the current host,
1564 # as determined by config.guess.
1565 # 4. Target and build default to nonopt.
1566 # 5. If nonopt is not specified, then target and build default to host.
1568 # The aliases save the names the user supplied, while $host etc.
1569 # will get canonicalized.
1570 case $host---$target---$nonopt in
1571 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1572 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1576 # Make sure we can run config.sub.
1577 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1578 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1581 echo $ac_n "checking host system type""... $ac_c" 1>&6
1582 echo "configure:1583: checking host system type" >&5
1585 case "$host_alias" in
1589 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1590 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1592 *) host_alias
=$nonopt ;;
1596 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1597 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1598 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1599 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600 echo "$ac_t""$host" 1>&6
1602 echo $ac_n "checking target system type""... $ac_c" 1>&6
1603 echo "configure:1604: checking target system type" >&5
1605 target_alias
=$target
1606 case "$target_alias" in
1609 NONE
) target_alias
=$host_alias ;;
1610 *) target_alias
=$nonopt ;;
1614 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1615 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1616 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1617 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1618 echo "$ac_t""$target" 1>&6
1620 echo $ac_n "checking build system type""... $ac_c" 1>&6
1621 echo "configure:1622: checking build system type" >&5
1624 case "$build_alias" in
1627 NONE
) build_alias
=$host_alias ;;
1628 *) build_alias
=$nonopt ;;
1632 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1633 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1634 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1635 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1636 echo "$ac_t""$build" 1>&6
1638 test "$host_alias" != "$target_alias" &&
1639 test "$program_prefix$program_suffix$program_transform_name" = \
1641 program_prefix
=${target_alias}-
1645 *irix6
*) cat >> confdefs.h
<<\EOF
1646 #include <standards.h>
1654 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1655 echo "configure:1656: checking config.cache system type" >&5
1656 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1657 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1658 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1659 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1660 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1661 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1662 echo "$ac_t""different" 1>&6
1663 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1665 echo "$ac_t""same" 1>&6
1667 ac_cv_host_system_type
="$host"
1668 ac_cv_build_system_type
="$build"
1669 ac_cv_target_system_type
="$target"
1673 # Config CPPFLAG settings for strange OS's that must be set
1674 # before other tests.
1677 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1679 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1680 echo "configure:1681: checking whether ${CC-cc} accepts -Ae" >&5
1681 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1684 echo 'void f(){}' > conftest.c
1685 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1686 ac_cv_prog_cc_Ae
=yes
1694 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1695 if test $ac_cv_prog_cc_Ae = yes; then
1696 CPPFLAGS
="$CPPFLAGS -Ae"
1699 # Defines needed for HPUX support.
1700 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1701 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1705 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1706 cat >> confdefs.h
<<\EOF
1707 #define USE_BOTH_CRYPT_CALLS 1
1712 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1713 cat >> confdefs.h
<<\EOF
1714 #define USE_BOTH_CRYPT_CALLS 1
1721 # AIX4.x doesn't even admit to having large
1722 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1725 echo "$ac_t""enabling large file support" 1>&6
1726 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1729 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1730 # to the existance of large files..
1731 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1732 # recommendations on large file support, however it makes the
1733 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1734 # recommendation makes the compile fail on gcc2.7. JRA.
1739 echo "$ac_t""enabling large file support" 1>&6
1740 if test "$ac_cv_prog_gcc" = yes; then
1741 ${CC-cc} -v >conftest.c
2>&1
1742 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1744 case "$ac_cv_gcc_compiler_version_number" in
1745 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1746 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1749 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1753 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1759 # Tests needed for SINIX large file support.
1762 if test $host = mips-sni-sysv4
; then
1763 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1764 echo "configure:1765: checking for LFS support" >&5
1765 old_CPPFLAGS
="$CPPFLAGS"
1766 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1767 if test "$cross_compiling" = yes; then
1768 SINIX_LFS_SUPPORT
=cross
1770 cat > conftest.
$ac_ext <<EOF
1771 #line 1772 "configure"
1772 #include "confdefs.h"
1776 #if _LFS64_LARGEFILE == 1
1783 if { (eval echo configure
:1784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1785 SINIX_LFS_SUPPORT
=yes
1787 echo "configure: failed program was:" >&5
1788 cat conftest.
$ac_ext >&5
1790 SINIX_LFS_SUPPORT
=no
1795 CPPFLAGS
="$old_CPPFLAGS"
1796 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1797 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1798 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1799 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1800 LIBS
="`getconf LFS64_LIBS` $LIBS"
1802 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1806 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1809 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1810 echo "configure:1811: checking for LFS support" >&5
1811 old_CPPFLAGS
="$CPPFLAGS"
1812 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1813 if test "$cross_compiling" = yes; then
1814 LINUX_LFS_SUPPORT
=cross
1816 cat > conftest.
$ac_ext <<EOF
1817 #line 1818 "configure"
1818 #include "confdefs.h"
1821 #include <sys/utsname.h>
1823 #if _LFS64_LARGEFILE == 1
1828 /* Ensure this is glibc 2.2 or higher */
1829 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1830 int libc_major = __GLIBC__;
1831 int libc_minor = __GLIBC_MINOR__;
1839 /* Ensure this is kernel 2.4 or higher */
1842 release = uts.release;
1843 major = atoi(strsep(&release, "."));
1844 minor = atoi(strsep(&release, "."));
1846 if (major > 2 || (major == 2 && minor > 3))
1855 if { (eval echo configure
:1856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1857 LINUX_LFS_SUPPORT
=yes
1859 echo "configure: failed program was:" >&5
1860 cat conftest.
$ac_ext >&5
1862 LINUX_LFS_SUPPORT
=no
1867 CPPFLAGS
="$old_CPPFLAGS"
1868 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1869 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1871 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1875 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1876 echo "configure:1877: checking for LFS support" >&5
1877 old_CPPFLAGS
="$CPPFLAGS"
1878 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1879 if test "$cross_compiling" = yes; then
1880 GLIBC_LFS_SUPPORT
=cross
1882 cat > conftest.
$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1888 #if _LFS64_LARGEFILE == 1
1895 if { (eval echo configure
:1896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1897 GLIBC_LFS_SUPPORT
=yes
1899 echo "configure: failed program was:" >&5
1900 cat conftest.
$ac_ext >&5
1902 GLIBC_LFS_SUPPORT
=no
1907 CPPFLAGS
="$old_CPPFLAGS"
1908 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1909 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1911 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1916 echo $ac_n "checking for inline""... $ac_c" 1>&6
1917 echo "configure:1918: checking for inline" >&5
1918 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
1922 for ac_kw
in inline __inline__ __inline
; do
1923 cat > conftest.
$ac_ext <<EOF
1924 #line 1925 "configure"
1925 #include "confdefs.h"
1931 if { (eval echo configure
:1932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1933 ac_cv_c_inline
=$ac_kw; break
1935 echo "configure: failed program was:" >&5
1936 cat conftest.
$ac_ext >&5
1943 echo "$ac_t""$ac_cv_c_inline" 1>&6
1944 case "$ac_cv_c_inline" in
1946 no
) cat >> confdefs.h
<<\EOF
1950 *) cat >> confdefs.h
<<EOF
1951 #define inline $ac_cv_c_inline
1956 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1957 echo "configure:1958: checking how to run the C preprocessor" >&5
1958 # On Suns, sometimes $CPP names a directory.
1959 if test -n "$CPP" && test -d "$CPP"; then
1962 if test -z "$CPP"; then
1963 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1966 # This must be in double quotes, not single quotes, because CPP may get
1967 # substituted into the Makefile and "${CC-cc}" will confuse make.
1969 # On the NeXT, cc -E runs the code through the compiler's parser,
1970 # not just through cpp.
1971 cat > conftest.
$ac_ext <<EOF
1972 #line 1973 "configure"
1973 #include "confdefs.h"
1977 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1978 { (eval echo configure
:1979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1979 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1980 if test -z "$ac_err"; then
1984 echo "configure: failed program was:" >&5
1985 cat conftest.
$ac_ext >&5
1987 CPP
="${CC-cc} -E -traditional-cpp"
1988 cat > conftest.
$ac_ext <<EOF
1989 #line 1990 "configure"
1990 #include "confdefs.h"
1994 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1995 { (eval echo configure
:1996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1996 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1997 if test -z "$ac_err"; then
2001 echo "configure: failed program was:" >&5
2002 cat conftest.
$ac_ext >&5
2004 CPP
="${CC-cc} -nologo -E"
2005 cat > conftest.
$ac_ext <<EOF
2006 #line 2007 "configure"
2007 #include "confdefs.h"
2011 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2012 { (eval echo configure
:2013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2013 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2014 if test -z "$ac_err"; then
2018 echo "configure: failed program was:" >&5
2019 cat conftest.
$ac_ext >&5
2028 ac_cv_prog_CPP
="$CPP"
2030 CPP
="$ac_cv_prog_CPP"
2032 ac_cv_prog_CPP
="$CPP"
2034 echo "$ac_t""$CPP" 1>&6
2036 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2037 echo "configure:2038: checking for ANSI C header files" >&5
2038 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2041 cat > conftest.
$ac_ext <<EOF
2042 #line 2043 "configure"
2043 #include "confdefs.h"
2049 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2050 { (eval echo configure
:2051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2051 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2052 if test -z "$ac_err"; then
2054 ac_cv_header_stdc
=yes
2057 echo "configure: failed program was:" >&5
2058 cat conftest.
$ac_ext >&5
2060 ac_cv_header_stdc
=no
2064 if test $ac_cv_header_stdc = yes; then
2065 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2066 cat > conftest.
$ac_ext <<EOF
2067 #line 2068 "configure"
2068 #include "confdefs.h"
2071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2072 egrep "memchr" >/dev
/null
2>&1; then
2076 ac_cv_header_stdc
=no
2082 if test $ac_cv_header_stdc = yes; then
2083 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2084 cat > conftest.
$ac_ext <<EOF
2085 #line 2086 "configure"
2086 #include "confdefs.h"
2089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2090 egrep "free" >/dev
/null
2>&1; then
2094 ac_cv_header_stdc
=no
2100 if test $ac_cv_header_stdc = yes; then
2101 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2102 if test "$cross_compiling" = yes; then
2105 cat > conftest.
$ac_ext <<EOF
2106 #line 2107 "configure"
2107 #include "confdefs.h"
2109 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2110 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2111 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2112 int main () { int i; for (i = 0; i < 256; i++)
2113 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2117 if { (eval echo configure
:2118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2121 echo "configure: failed program was:" >&5
2122 cat conftest.
$ac_ext >&5
2124 ac_cv_header_stdc
=no
2132 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2133 if test $ac_cv_header_stdc = yes; then
2134 cat >> confdefs.h
<<\EOF
2135 #define STDC_HEADERS 1
2141 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2143 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2144 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2145 echo "configure:2146: checking for $ac_hdr that defines DIR" >&5
2146 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2147 echo $ac_n "(cached) $ac_c" 1>&6
2149 cat > conftest.
$ac_ext <<EOF
2150 #line 2151 "configure"
2151 #include "confdefs.h"
2152 #include <sys/types.h>
2158 if { (eval echo configure
:2159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2160 eval "ac_cv_header_dirent_$ac_safe=yes"
2162 echo "configure: failed program was:" >&5
2163 cat conftest.
$ac_ext >&5
2165 eval "ac_cv_header_dirent_$ac_safe=no"
2169 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2170 echo "$ac_t""yes" 1>&6
2171 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2172 cat >> confdefs.h
<<EOF
2173 #define $ac_tr_hdr 1
2175 ac_header_dirent
=$ac_hdr; break
2177 echo "$ac_t""no" 1>&6
2180 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2181 if test $ac_header_dirent = dirent.h
; then
2182 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2183 echo "configure:2184: checking for opendir in -ldir" >&5
2184 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2186 echo $ac_n "(cached) $ac_c" 1>&6
2188 ac_save_LIBS
="$LIBS"
2190 cat > conftest.
$ac_ext <<EOF
2191 #line 2192 "configure"
2192 #include "confdefs.h"
2193 /* Override any gcc2 internal prototype to avoid an error. */
2194 /* We use char because int might match the return type of a gcc2
2195 builtin and then its argument prototype would still apply. */
2202 if { (eval echo configure
:2203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2204 eval "ac_cv_lib_$ac_lib_var=yes"
2206 echo "configure: failed program was:" >&5
2207 cat conftest.
$ac_ext >&5
2209 eval "ac_cv_lib_$ac_lib_var=no"
2212 LIBS
="$ac_save_LIBS"
2215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2216 echo "$ac_t""yes" 1>&6
2219 echo "$ac_t""no" 1>&6
2223 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2224 echo "configure:2225: checking for opendir in -lx" >&5
2225 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2226 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2227 echo $ac_n "(cached) $ac_c" 1>&6
2229 ac_save_LIBS
="$LIBS"
2231 cat > conftest.
$ac_ext <<EOF
2232 #line 2233 "configure"
2233 #include "confdefs.h"
2234 /* Override any gcc2 internal prototype to avoid an error. */
2235 /* We use char because int might match the return type of a gcc2
2236 builtin and then its argument prototype would still apply. */
2243 if { (eval echo configure
:2244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2245 eval "ac_cv_lib_$ac_lib_var=yes"
2247 echo "configure: failed program was:" >&5
2248 cat conftest.
$ac_ext >&5
2250 eval "ac_cv_lib_$ac_lib_var=no"
2253 LIBS
="$ac_save_LIBS"
2256 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2257 echo "$ac_t""yes" 1>&6
2260 echo "$ac_t""no" 1>&6
2265 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2266 echo "configure:2267: checking whether time.h and sys/time.h may both be included" >&5
2267 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2268 echo $ac_n "(cached) $ac_c" 1>&6
2270 cat > conftest.
$ac_ext <<EOF
2271 #line 2272 "configure"
2272 #include "confdefs.h"
2273 #include <sys/types.h>
2274 #include <sys/time.h>
2280 if { (eval echo configure
:2281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2282 ac_cv_header_time
=yes
2284 echo "configure: failed program was:" >&5
2285 cat conftest.
$ac_ext >&5
2287 ac_cv_header_time
=no
2292 echo "$ac_t""$ac_cv_header_time" 1>&6
2293 if test $ac_cv_header_time = yes; then
2294 cat >> confdefs.h
<<\EOF
2295 #define TIME_WITH_SYS_TIME 1
2300 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2301 echo "configure:2302: checking for sys/wait.h that is POSIX.1 compatible" >&5
2302 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2305 cat > conftest.
$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2308 #include <sys/types.h>
2309 #include <sys/wait.h>
2311 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2314 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2319 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2322 if { (eval echo configure
:2323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2324 ac_cv_header_sys_wait_h
=yes
2326 echo "configure: failed program was:" >&5
2327 cat conftest.
$ac_ext >&5
2329 ac_cv_header_sys_wait_h
=no
2334 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2335 if test $ac_cv_header_sys_wait_h = yes; then
2336 cat >> confdefs.h
<<\EOF
2337 #define HAVE_SYS_WAIT_H 1
2342 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
2344 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2345 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2346 echo "configure:2347: checking for $ac_hdr" >&5
2347 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2350 cat > conftest.
$ac_ext <<EOF
2351 #line 2352 "configure"
2352 #include "confdefs.h"
2355 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2356 { (eval echo configure
:2357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2357 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2358 if test -z "$ac_err"; then
2360 eval "ac_cv_header_$ac_safe=yes"
2363 echo "configure: failed program was:" >&5
2364 cat conftest.
$ac_ext >&5
2366 eval "ac_cv_header_$ac_safe=no"
2370 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2371 echo "$ac_t""yes" 1>&6
2372 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2373 cat >> confdefs.h
<<EOF
2374 #define $ac_tr_hdr 1
2378 echo "$ac_t""no" 1>&6
2382 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2384 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2385 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2386 echo "configure:2387: checking for $ac_hdr" >&5
2387 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2388 echo $ac_n "(cached) $ac_c" 1>&6
2390 cat > conftest.
$ac_ext <<EOF
2391 #line 2392 "configure"
2392 #include "confdefs.h"
2395 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2396 { (eval echo configure
:2397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2397 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2398 if test -z "$ac_err"; then
2400 eval "ac_cv_header_$ac_safe=yes"
2403 echo "configure: failed program was:" >&5
2404 cat conftest.
$ac_ext >&5
2406 eval "ac_cv_header_$ac_safe=no"
2410 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2411 echo "$ac_t""yes" 1>&6
2412 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2413 cat >> confdefs.h
<<EOF
2414 #define $ac_tr_hdr 1
2418 echo "$ac_t""no" 1>&6
2422 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2424 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2425 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2426 echo "configure:2427: checking for $ac_hdr" >&5
2427 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2430 cat > conftest.
$ac_ext <<EOF
2431 #line 2432 "configure"
2432 #include "confdefs.h"
2435 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2436 { (eval echo configure
:2437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2437 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2438 if test -z "$ac_err"; then
2440 eval "ac_cv_header_$ac_safe=yes"
2443 echo "configure: failed program was:" >&5
2444 cat conftest.
$ac_ext >&5
2446 eval "ac_cv_header_$ac_safe=no"
2450 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2451 echo "$ac_t""yes" 1>&6
2452 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2453 cat >> confdefs.h
<<EOF
2454 #define $ac_tr_hdr 1
2458 echo "$ac_t""no" 1>&6
2462 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
2464 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2465 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2466 echo "configure:2467: checking for $ac_hdr" >&5
2467 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2470 cat > conftest.
$ac_ext <<EOF
2471 #line 2472 "configure"
2472 #include "confdefs.h"
2475 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2476 { (eval echo configure
:2477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2477 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2478 if test -z "$ac_err"; then
2480 eval "ac_cv_header_$ac_safe=yes"
2483 echo "configure: failed program was:" >&5
2484 cat conftest.
$ac_ext >&5
2486 eval "ac_cv_header_$ac_safe=no"
2490 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2491 echo "$ac_t""yes" 1>&6
2492 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2493 cat >> confdefs.h
<<EOF
2494 #define $ac_tr_hdr 1
2498 echo "$ac_t""no" 1>&6
2502 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
2504 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2505 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2506 echo "configure:2507: checking for $ac_hdr" >&5
2507 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2508 echo $ac_n "(cached) $ac_c" 1>&6
2510 cat > conftest.
$ac_ext <<EOF
2511 #line 2512 "configure"
2512 #include "confdefs.h"
2515 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2516 { (eval echo configure
:2517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2517 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2518 if test -z "$ac_err"; then
2520 eval "ac_cv_header_$ac_safe=yes"
2523 echo "configure: failed program was:" >&5
2524 cat conftest.
$ac_ext >&5
2526 eval "ac_cv_header_$ac_safe=no"
2530 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2531 echo "$ac_t""yes" 1>&6
2532 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2533 cat >> confdefs.h
<<EOF
2534 #define $ac_tr_hdr 1
2538 echo "$ac_t""no" 1>&6
2542 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2544 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2545 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2546 echo "configure:2547: checking for $ac_hdr" >&5
2547 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2548 echo $ac_n "(cached) $ac_c" 1>&6
2550 cat > conftest.
$ac_ext <<EOF
2551 #line 2552 "configure"
2552 #include "confdefs.h"
2555 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2556 { (eval echo configure
:2557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2557 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2558 if test -z "$ac_err"; then
2560 eval "ac_cv_header_$ac_safe=yes"
2563 echo "configure: failed program was:" >&5
2564 cat conftest.
$ac_ext >&5
2566 eval "ac_cv_header_$ac_safe=no"
2570 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2571 echo "$ac_t""yes" 1>&6
2572 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2573 cat >> confdefs.h
<<EOF
2574 #define $ac_tr_hdr 1
2578 echo "$ac_t""no" 1>&6
2582 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2584 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2585 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2586 echo "configure:2587: checking for $ac_hdr" >&5
2587 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2590 cat > conftest.
$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2595 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2596 { (eval echo configure
:2597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2597 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2598 if test -z "$ac_err"; then
2600 eval "ac_cv_header_$ac_safe=yes"
2603 echo "configure: failed program was:" >&5
2604 cat conftest.
$ac_ext >&5
2606 eval "ac_cv_header_$ac_safe=no"
2610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2611 echo "$ac_t""yes" 1>&6
2612 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2613 cat >> confdefs.h
<<EOF
2614 #define $ac_tr_hdr 1
2618 echo "$ac_t""no" 1>&6
2622 for ac_hdr
in security
/pam_modules.h security
/_pam_macros.h
2624 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2625 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2626 echo "configure:2627: checking for $ac_hdr" >&5
2627 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2628 echo $ac_n "(cached) $ac_c" 1>&6
2630 cat > conftest.
$ac_ext <<EOF
2631 #line 2632 "configure"
2632 #include "confdefs.h"
2635 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2636 { (eval echo configure
:2637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2637 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2638 if test -z "$ac_err"; then
2640 eval "ac_cv_header_$ac_safe=yes"
2643 echo "configure: failed program was:" >&5
2644 cat conftest.
$ac_ext >&5
2646 eval "ac_cv_header_$ac_safe=no"
2650 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2651 echo "$ac_t""yes" 1>&6
2652 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2653 cat >> confdefs.h
<<EOF
2654 #define $ac_tr_hdr 1
2658 echo "$ac_t""no" 1>&6
2664 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2665 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2669 cat > conftest.
$ac_ext <<EOF
2670 #line 2671 "configure"
2671 #include "confdefs.h"
2677 if { (eval echo configure
:2678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2679 ac_cv_header_shadow_h
=yes
2681 echo "configure: failed program was:" >&5
2682 cat conftest.
$ac_ext >&5
2684 ac_cv_header_shadow_h
=no
2687 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2688 cat >> confdefs.h
<<\EOF
2689 #define HAVE_SHADOW_H 1
2695 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2697 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2698 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2699 echo "configure:2700: checking for $ac_hdr" >&5
2700 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2701 echo $ac_n "(cached) $ac_c" 1>&6
2703 cat > conftest.
$ac_ext <<EOF
2704 #line 2705 "configure"
2705 #include "confdefs.h"
2708 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2709 { (eval echo configure
:2710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2710 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2711 if test -z "$ac_err"; then
2713 eval "ac_cv_header_$ac_safe=yes"
2716 echo "configure: failed program was:" >&5
2717 cat conftest.
$ac_ext >&5
2719 eval "ac_cv_header_$ac_safe=no"
2723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2724 echo "$ac_t""yes" 1>&6
2725 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2726 cat >> confdefs.h
<<EOF
2727 #define $ac_tr_hdr 1
2731 echo "$ac_t""no" 1>&6
2735 for ac_hdr
in nss.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2737 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2738 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2739 echo "configure:2740: checking for $ac_hdr" >&5
2740 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2741 echo $ac_n "(cached) $ac_c" 1>&6
2743 cat > conftest.
$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2748 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2749 { (eval echo configure
:2750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2750 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2751 if test -z "$ac_err"; then
2753 eval "ac_cv_header_$ac_safe=yes"
2756 echo "configure: failed program was:" >&5
2757 cat conftest.
$ac_ext >&5
2759 eval "ac_cv_header_$ac_safe=no"
2763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2764 echo "$ac_t""yes" 1>&6
2765 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2766 cat >> confdefs.h
<<EOF
2767 #define $ac_tr_hdr 1
2771 echo "$ac_t""no" 1>&6
2775 for ac_hdr
in stropts.h poll.h
2777 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2778 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2779 echo "configure:2780: checking for $ac_hdr" >&5
2780 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2781 echo $ac_n "(cached) $ac_c" 1>&6
2783 cat > conftest.
$ac_ext <<EOF
2784 #line 2785 "configure"
2785 #include "confdefs.h"
2788 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2789 { (eval echo configure
:2790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2790 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2791 if test -z "$ac_err"; then
2793 eval "ac_cv_header_$ac_safe=yes"
2796 echo "configure: failed program was:" >&5
2797 cat conftest.
$ac_ext >&5
2799 eval "ac_cv_header_$ac_safe=no"
2803 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2804 echo "$ac_t""yes" 1>&6
2805 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2806 cat >> confdefs.h
<<EOF
2807 #define $ac_tr_hdr 1
2811 echo "$ac_t""no" 1>&6
2815 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2817 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2818 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2819 echo "configure:2820: checking for $ac_hdr" >&5
2820 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2821 echo $ac_n "(cached) $ac_c" 1>&6
2823 cat > conftest.
$ac_ext <<EOF
2824 #line 2825 "configure"
2825 #include "confdefs.h"
2828 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2829 { (eval echo configure
:2830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2830 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2831 if test -z "$ac_err"; then
2833 eval "ac_cv_header_$ac_safe=yes"
2836 echo "configure: failed program was:" >&5
2837 cat conftest.
$ac_ext >&5
2839 eval "ac_cv_header_$ac_safe=no"
2843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2844 echo "$ac_t""yes" 1>&6
2845 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2846 cat >> confdefs.h
<<EOF
2847 #define $ac_tr_hdr 1
2851 echo "$ac_t""no" 1>&6
2855 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h acl
/acl.h
2857 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2858 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2859 echo "configure:2860: checking for $ac_hdr" >&5
2860 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2861 echo $ac_n "(cached) $ac_c" 1>&6
2863 cat > conftest.
$ac_ext <<EOF
2864 #line 2865 "configure"
2865 #include "confdefs.h"
2868 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2869 { (eval echo configure
:2870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2870 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2871 if test -z "$ac_err"; then
2873 eval "ac_cv_header_$ac_safe=yes"
2876 echo "configure: failed program was:" >&5
2877 cat conftest.
$ac_ext >&5
2879 eval "ac_cv_header_$ac_safe=no"
2883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2884 echo "$ac_t""yes" 1>&6
2885 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2886 cat >> confdefs.h
<<EOF
2887 #define $ac_tr_hdr 1
2891 echo "$ac_t""no" 1>&6
2896 # For experimental utmp support (lastlog on some BSD-like systems)
2897 for ac_hdr
in utmp.h utmpx.h lastlog.h
2899 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2900 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2901 echo "configure:2902: checking for $ac_hdr" >&5
2902 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2903 echo $ac_n "(cached) $ac_c" 1>&6
2905 cat > conftest.
$ac_ext <<EOF
2906 #line 2907 "configure"
2907 #include "confdefs.h"
2910 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2911 { (eval echo configure
:2912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2912 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2913 if test -z "$ac_err"; then
2915 eval "ac_cv_header_$ac_safe=yes"
2918 echo "configure: failed program was:" >&5
2919 cat conftest.
$ac_ext >&5
2921 eval "ac_cv_header_$ac_safe=no"
2925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2926 echo "$ac_t""yes" 1>&6
2927 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2928 cat >> confdefs.h
<<EOF
2929 #define $ac_tr_hdr 1
2933 echo "$ac_t""no" 1>&6
2938 # For quotas on Veritas VxFS filesystems
2939 for ac_hdr
in sys
/fs
/vx_quota.h
2941 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2942 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2943 echo "configure:2944: checking for $ac_hdr" >&5
2944 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2947 cat > conftest.
$ac_ext <<EOF
2948 #line 2949 "configure"
2949 #include "confdefs.h"
2952 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2953 { (eval echo configure
:2954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2954 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2955 if test -z "$ac_err"; then
2957 eval "ac_cv_header_$ac_safe=yes"
2960 echo "configure: failed program was:" >&5
2961 cat conftest.
$ac_ext >&5
2963 eval "ac_cv_header_$ac_safe=no"
2967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2968 echo "$ac_t""yes" 1>&6
2969 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2970 cat >> confdefs.h
<<EOF
2971 #define $ac_tr_hdr 1
2975 echo "$ac_t""no" 1>&6
2980 echo $ac_n "checking size of int""... $ac_c" 1>&6
2981 echo "configure:2982: checking size of int" >&5
2982 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2985 if test "$cross_compiling" = yes; then
2986 ac_cv_sizeof_int
=cross
2988 cat > conftest.
$ac_ext <<EOF
2989 #line 2990 "configure"
2990 #include "confdefs.h"
2992 #include <sys/types.h>
2995 FILE *f=fopen("conftestval", "w");
2997 fprintf(f, "%d\n", sizeof(int));
3001 if { (eval echo configure
:3002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3003 ac_cv_sizeof_int
=`cat conftestval`
3005 echo "configure: failed program was:" >&5
3006 cat conftest.
$ac_ext >&5
3014 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3015 cat >> confdefs.h
<<EOF
3016 #define SIZEOF_INT $ac_cv_sizeof_int
3020 echo $ac_n "checking size of long""... $ac_c" 1>&6
3021 echo "configure:3022: checking size of long" >&5
3022 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3023 echo $ac_n "(cached) $ac_c" 1>&6
3025 if test "$cross_compiling" = yes; then
3026 ac_cv_sizeof_long
=cross
3028 cat > conftest.
$ac_ext <<EOF
3029 #line 3030 "configure"
3030 #include "confdefs.h"
3032 #include <sys/types.h>
3035 FILE *f=fopen("conftestval", "w");
3037 fprintf(f, "%d\n", sizeof(long));
3041 if { (eval echo configure
:3042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3043 ac_cv_sizeof_long
=`cat conftestval`
3045 echo "configure: failed program was:" >&5
3046 cat conftest.
$ac_ext >&5
3054 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3055 cat >> confdefs.h
<<EOF
3056 #define SIZEOF_LONG $ac_cv_sizeof_long
3060 echo $ac_n "checking size of short""... $ac_c" 1>&6
3061 echo "configure:3062: checking size of short" >&5
3062 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3063 echo $ac_n "(cached) $ac_c" 1>&6
3065 if test "$cross_compiling" = yes; then
3066 ac_cv_sizeof_short
=cross
3068 cat > conftest.
$ac_ext <<EOF
3069 #line 3070 "configure"
3070 #include "confdefs.h"
3072 #include <sys/types.h>
3075 FILE *f=fopen("conftestval", "w");
3077 fprintf(f, "%d\n", sizeof(short));
3081 if { (eval echo configure
:3082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3083 ac_cv_sizeof_short
=`cat conftestval`
3085 echo "configure: failed program was:" >&5
3086 cat conftest.
$ac_ext >&5
3088 ac_cv_sizeof_short
=0
3094 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3095 cat >> confdefs.h
<<EOF
3096 #define SIZEOF_SHORT $ac_cv_sizeof_short
3101 echo $ac_n "checking for working const""... $ac_c" 1>&6
3102 echo "configure:3103: checking for working const" >&5
3103 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3104 echo $ac_n "(cached) $ac_c" 1>&6
3106 cat > conftest.
$ac_ext <<EOF
3107 #line 3108 "configure"
3108 #include "confdefs.h"
3112 /* Ultrix mips cc rejects this. */
3113 typedef int charset[2]; const charset x;
3114 /* SunOS 4.1.1 cc rejects this. */
3115 char const *const *ccp;
3117 /* NEC SVR4.0.2 mips cc rejects this. */
3118 struct point {int x, y;};
3119 static struct point const zero = {0,0};
3120 /* AIX XL C 1.02.0.0 rejects this.
3121 It does not let you subtract one const X* pointer from another in an arm
3122 of an if-expression whose if-part is not a constant expression */
3123 const char *g = "string";
3124 ccp = &g + (g ? g-g : 0);
3125 /* HPUX 7.0 cc rejects these. */
3128 ccp = (char const *const *) p;
3129 { /* SCO 3.2v4 cc rejects this. */
3131 char const *s = 0 ? (char *) 0 : (char const *) 0;
3135 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3137 const int *foo = &x[0];
3140 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3141 typedef const int *iptr;
3145 { /* AIX XL C 1.02.0.0 rejects this saying
3146 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3147 struct s { int j; const int *ap[3]; };
3148 struct s *b; b->j = 5;
3150 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3156 if { (eval echo configure
:3157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3160 echo "configure: failed program was:" >&5
3161 cat conftest.
$ac_ext >&5
3168 echo "$ac_t""$ac_cv_c_const" 1>&6
3169 if test $ac_cv_c_const = no
; then
3170 cat >> confdefs.h
<<\EOF
3176 echo $ac_n "checking for inline""... $ac_c" 1>&6
3177 echo "configure:3178: checking for inline" >&5
3178 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3179 echo $ac_n "(cached) $ac_c" 1>&6
3182 for ac_kw
in inline __inline__ __inline
; do
3183 cat > conftest.
$ac_ext <<EOF
3184 #line 3185 "configure"
3185 #include "confdefs.h"
3191 if { (eval echo configure
:3192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3193 ac_cv_c_inline
=$ac_kw; break
3195 echo "configure: failed program was:" >&5
3196 cat conftest.
$ac_ext >&5
3203 echo "$ac_t""$ac_cv_c_inline" 1>&6
3204 case "$ac_cv_c_inline" in
3206 no
) cat >> confdefs.h
<<\EOF
3210 *) cat >> confdefs.h
<<EOF
3211 #define inline $ac_cv_c_inline
3216 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3217 echo "configure:3218: checking whether byte ordering is bigendian" >&5
3218 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3219 echo $ac_n "(cached) $ac_c" 1>&6
3221 ac_cv_c_bigendian
=unknown
3222 # See if sys/param.h defines the BYTE_ORDER macro.
3223 cat > conftest.
$ac_ext <<EOF
3224 #line 3225 "configure"
3225 #include "confdefs.h"
3226 #include <sys/types.h>
3227 #include <sys/param.h>
3230 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3235 if { (eval echo configure
:3236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3237 # It does; now see whether it defined to BIG_ENDIAN or not.
3238 cat > conftest.
$ac_ext <<EOF
3239 #line 3240 "configure"
3240 #include "confdefs.h"
3241 #include <sys/types.h>
3242 #include <sys/param.h>
3245 #if BYTE_ORDER != BIG_ENDIAN
3250 if { (eval echo configure
:3251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3252 ac_cv_c_bigendian
=yes
3254 echo "configure: failed program was:" >&5
3255 cat conftest.
$ac_ext >&5
3257 ac_cv_c_bigendian
=no
3261 echo "configure: failed program was:" >&5
3262 cat conftest.
$ac_ext >&5
3265 if test $ac_cv_c_bigendian = unknown
; then
3266 if test "$cross_compiling" = yes; then
3267 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3269 cat > conftest.
$ac_ext <<EOF
3270 #line 3271 "configure"
3271 #include "confdefs.h"
3273 /* Are we little or big endian? From Harbison&Steele. */
3277 char c[sizeof (long)];
3280 exit (u.c[sizeof (long) - 1] == 1);
3283 if { (eval echo configure
:3284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3285 ac_cv_c_bigendian
=no
3287 echo "configure: failed program was:" >&5
3288 cat conftest.
$ac_ext >&5
3290 ac_cv_c_bigendian
=yes
3298 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3299 if test $ac_cv_c_bigendian = yes; then
3300 cat >> confdefs.h
<<\EOF
3301 #define WORDS_BIGENDIAN 1
3306 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3307 echo "configure:3308: checking whether char is unsigned" >&5
3308 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3309 echo $ac_n "(cached) $ac_c" 1>&6
3311 if test "$GCC" = yes; then
3312 # GCC predefines this symbol on systems where it applies.
3313 cat > conftest.
$ac_ext <<EOF
3314 #line 3315 "configure"
3315 #include "confdefs.h"
3316 #ifdef __CHAR_UNSIGNED__
3321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3322 egrep "yes" >/dev
/null
2>&1; then
3324 ac_cv_c_char_unsigned
=yes
3327 ac_cv_c_char_unsigned
=no
3332 if test "$cross_compiling" = yes; then
3333 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3335 cat > conftest.
$ac_ext <<EOF
3336 #line 3337 "configure"
3337 #include "confdefs.h"
3338 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3339 #if !defined(__STDC__) || __STDC__ != 1
3343 volatile char c = 255; exit(c < 0);
3346 if { (eval echo configure
:3347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3348 ac_cv_c_char_unsigned
=yes
3350 echo "configure: failed program was:" >&5
3351 cat conftest.
$ac_ext >&5
3353 ac_cv_c_char_unsigned
=no
3361 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3362 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3363 cat >> confdefs.h
<<\EOF
3364 #define __CHAR_UNSIGNED__ 1
3370 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3371 echo "configure:3372: checking return type of signal handlers" >&5
3372 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3373 echo $ac_n "(cached) $ac_c" 1>&6
3375 cat > conftest.
$ac_ext <<EOF
3376 #line 3377 "configure"
3377 #include "confdefs.h"
3378 #include <sys/types.h>
3384 extern "C" void (*signal (int, void (*)(int)))(int);
3386 void (*signal ()) ();
3393 if { (eval echo configure
:3394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3395 ac_cv_type_signal
=void
3397 echo "configure: failed program was:" >&5
3398 cat conftest.
$ac_ext >&5
3400 ac_cv_type_signal
=int
3405 echo "$ac_t""$ac_cv_type_signal" 1>&6
3406 cat >> confdefs.h
<<EOF
3407 #define RETSIGTYPE $ac_cv_type_signal
3411 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3412 echo "configure:3413: checking for uid_t in sys/types.h" >&5
3413 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3414 echo $ac_n "(cached) $ac_c" 1>&6
3416 cat > conftest.
$ac_ext <<EOF
3417 #line 3418 "configure"
3418 #include "confdefs.h"
3419 #include <sys/types.h>
3421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3422 egrep "uid_t" >/dev
/null
2>&1; then
3424 ac_cv_type_uid_t
=yes
3433 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3434 if test $ac_cv_type_uid_t = no
; then
3435 cat >> confdefs.h
<<\EOF
3439 cat >> confdefs.h
<<\EOF
3445 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3446 echo "configure:3447: checking for mode_t" >&5
3447 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3448 echo $ac_n "(cached) $ac_c" 1>&6
3450 cat > conftest.
$ac_ext <<EOF
3451 #line 3452 "configure"
3452 #include "confdefs.h"
3453 #include <sys/types.h>
3459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3460 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3462 ac_cv_type_mode_t
=yes
3465 ac_cv_type_mode_t
=no
3470 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3471 if test $ac_cv_type_mode_t = no
; then
3472 cat >> confdefs.h
<<\EOF
3478 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3479 echo "configure:3480: checking for off_t" >&5
3480 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3481 echo $ac_n "(cached) $ac_c" 1>&6
3483 cat > conftest.
$ac_ext <<EOF
3484 #line 3485 "configure"
3485 #include "confdefs.h"
3486 #include <sys/types.h>
3492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3493 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3495 ac_cv_type_off_t
=yes
3503 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3504 if test $ac_cv_type_off_t = no
; then
3505 cat >> confdefs.h
<<\EOF
3511 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3512 echo "configure:3513: checking for size_t" >&5
3513 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3514 echo $ac_n "(cached) $ac_c" 1>&6
3516 cat > conftest.
$ac_ext <<EOF
3517 #line 3518 "configure"
3518 #include "confdefs.h"
3519 #include <sys/types.h>
3525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3526 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3528 ac_cv_type_size_t
=yes
3531 ac_cv_type_size_t
=no
3536 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3537 if test $ac_cv_type_size_t = no
; then
3538 cat >> confdefs.h
<<\EOF
3539 #define size_t unsigned
3544 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3545 echo "configure:3546: checking for pid_t" >&5
3546 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3547 echo $ac_n "(cached) $ac_c" 1>&6
3549 cat > conftest.
$ac_ext <<EOF
3550 #line 3551 "configure"
3551 #include "confdefs.h"
3552 #include <sys/types.h>
3558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3559 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3561 ac_cv_type_pid_t
=yes
3569 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3570 if test $ac_cv_type_pid_t = no
; then
3571 cat >> confdefs.h
<<\EOF
3577 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3578 echo "configure:3579: checking for st_rdev in struct stat" >&5
3579 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3580 echo $ac_n "(cached) $ac_c" 1>&6
3582 cat > conftest.
$ac_ext <<EOF
3583 #line 3584 "configure"
3584 #include "confdefs.h"
3585 #include <sys/types.h>
3586 #include <sys/stat.h>
3588 struct stat s; s.st_rdev;
3591 if { (eval echo configure
:3592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3593 ac_cv_struct_st_rdev
=yes
3595 echo "configure: failed program was:" >&5
3596 cat conftest.
$ac_ext >&5
3598 ac_cv_struct_st_rdev
=no
3603 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3604 if test $ac_cv_struct_st_rdev = yes; then
3605 cat >> confdefs.h
<<\EOF
3606 #define HAVE_ST_RDEV 1
3611 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3612 echo "configure:3613: checking for d_off in dirent" >&5
3613 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3614 echo $ac_n "(cached) $ac_c" 1>&6
3616 cat > conftest.
$ac_ext <<EOF
3617 #line 3618 "configure"
3618 #include "confdefs.h"
3621 #include <sys/types.h>
3624 struct dirent d; d.d_off;
3627 if { (eval echo configure
:3628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3629 ac_cv_dirent_d_off
=yes
3631 echo "configure: failed program was:" >&5
3632 cat conftest.
$ac_ext >&5
3634 ac_cv_dirent_d_off
=no
3639 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3640 if test $ac_cv_dirent_d_off = yes; then
3641 cat >> confdefs.h
<<\EOF
3642 #define HAVE_DIRENT_D_OFF 1
3647 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3648 echo "configure:3649: checking for ino_t" >&5
3649 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3650 echo $ac_n "(cached) $ac_c" 1>&6
3652 cat > conftest.
$ac_ext <<EOF
3653 #line 3654 "configure"
3654 #include "confdefs.h"
3655 #include <sys/types.h>
3661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3662 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3664 ac_cv_type_ino_t
=yes
3672 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3673 if test $ac_cv_type_ino_t = no
; then
3674 cat >> confdefs.h
<<\EOF
3675 #define ino_t unsigned
3680 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3681 echo "configure:3682: checking for loff_t" >&5
3682 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3683 echo $ac_n "(cached) $ac_c" 1>&6
3685 cat > conftest.
$ac_ext <<EOF
3686 #line 3687 "configure"
3687 #include "confdefs.h"
3688 #include <sys/types.h>
3694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3695 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3697 ac_cv_type_loff_t
=yes
3700 ac_cv_type_loff_t
=no
3705 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3706 if test $ac_cv_type_loff_t = no
; then
3707 cat >> confdefs.h
<<\EOF
3708 #define loff_t off_t
3713 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3714 echo "configure:3715: checking for offset_t" >&5
3715 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3716 echo $ac_n "(cached) $ac_c" 1>&6
3718 cat > conftest.
$ac_ext <<EOF
3719 #line 3720 "configure"
3720 #include "confdefs.h"
3721 #include <sys/types.h>
3727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3728 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3730 ac_cv_type_offset_t
=yes
3733 ac_cv_type_offset_t
=no
3738 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3739 if test $ac_cv_type_offset_t = no
; then
3740 cat >> confdefs.h
<<\EOF
3741 #define offset_t loff_t
3746 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3747 echo "configure:3748: checking for ssize_t" >&5
3748 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3749 echo $ac_n "(cached) $ac_c" 1>&6
3751 cat > conftest.
$ac_ext <<EOF
3752 #line 3753 "configure"
3753 #include "confdefs.h"
3754 #include <sys/types.h>
3760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3761 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3763 ac_cv_type_ssize_t
=yes
3766 ac_cv_type_ssize_t
=no
3771 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3772 if test $ac_cv_type_ssize_t = no
; then
3773 cat >> confdefs.h
<<\EOF
3779 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3780 echo "configure:3781: checking for wchar_t" >&5
3781 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3782 echo $ac_n "(cached) $ac_c" 1>&6
3784 cat > conftest.
$ac_ext <<EOF
3785 #line 3786 "configure"
3786 #include "confdefs.h"
3787 #include <sys/types.h>
3793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3794 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3796 ac_cv_type_wchar_t
=yes
3799 ac_cv_type_wchar_t
=no
3804 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3805 if test $ac_cv_type_wchar_t = no
; then
3806 cat >> confdefs.h
<<\EOF
3807 #define wchar_t unsigned short
3813 # we need libcups for CUPS support...
3814 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3815 echo "configure:3816: checking for httpConnect in -lcups" >&5
3816 ac_lib_var
=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3817 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3818 echo $ac_n "(cached) $ac_c" 1>&6
3820 ac_save_LIBS
="$LIBS"
3822 cat > conftest.
$ac_ext <<EOF
3823 #line 3824 "configure"
3824 #include "confdefs.h"
3825 /* Override any gcc2 internal prototype to avoid an error. */
3826 /* We use char because int might match the return type of a gcc2
3827 builtin and then its argument prototype would still apply. */
3834 if { (eval echo configure
:3835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3836 eval "ac_cv_lib_$ac_lib_var=yes"
3838 echo "configure: failed program was:" >&5
3839 cat conftest.
$ac_ext >&5
3841 eval "ac_cv_lib_$ac_lib_var=no"
3844 LIBS
="$ac_save_LIBS"
3847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3848 echo "$ac_t""yes" 1>&6
3849 ac_tr_lib
=HAVE_LIB
`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3850 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3851 cat >> confdefs.h
<<EOF
3852 #define $ac_tr_lib 1
3858 echo "$ac_t""no" 1>&6
3862 # we need libdl for PAM and the new VFS code
3863 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3864 echo "configure:3865: checking for dlopen in -ldl" >&5
3865 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3866 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3869 ac_save_LIBS
="$LIBS"
3871 cat > conftest.
$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3874 /* Override any gcc2 internal prototype to avoid an error. */
3875 /* We use char because int might match the return type of a gcc2
3876 builtin and then its argument prototype would still apply. */
3883 if { (eval echo configure
:3884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3885 eval "ac_cv_lib_$ac_lib_var=yes"
3887 echo "configure: failed program was:" >&5
3888 cat conftest.
$ac_ext >&5
3890 eval "ac_cv_lib_$ac_lib_var=no"
3893 LIBS
="$ac_save_LIBS"
3896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3897 echo "$ac_t""yes" 1>&6
3899 cat >> confdefs.h
<<\EOF
3900 #define HAVE_LIBDL 1
3904 echo "$ac_t""no" 1>&6
3908 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3909 echo "configure:3910: checking for sig_atomic_t type" >&5
3910 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3911 echo $ac_n "(cached) $ac_c" 1>&6
3914 cat > conftest.
$ac_ext <<EOF
3915 #line 3916 "configure"
3916 #include "confdefs.h"
3918 #include <sys/types.h>
3928 if { (eval echo configure
:3929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3930 samba_cv_sig_atomic_t
=yes
3932 echo "configure: failed program was:" >&5
3933 cat conftest.
$ac_ext >&5
3935 samba_cv_sig_atomic_t
=no
3940 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3941 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
3942 cat >> confdefs.h
<<\EOF
3943 #define HAVE_SIG_ATOMIC_T_TYPE 1
3948 # stupid headers have the functions but no declaration. grrrr.
3950 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3951 echo "configure:3952: checking for errno declaration" >&5
3952 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3953 echo $ac_n "(cached) $ac_c" 1>&6
3956 cat > conftest.
$ac_ext <<EOF
3957 #line 3958 "configure"
3958 #include "confdefs.h"
3964 if { (eval echo configure
:3965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3966 ac_cv_have_errno_decl
=yes
3968 echo "configure: failed program was:" >&5
3969 cat conftest.
$ac_ext >&5
3971 ac_cv_have_errno_decl
=no
3976 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3977 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
3978 cat >> confdefs.h
<<\EOF
3979 #define HAVE_ERRNO_DECL 1
3985 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3986 echo "configure:3987: checking for setresuid declaration" >&5
3987 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3988 echo $ac_n "(cached) $ac_c" 1>&6
3991 cat > conftest.
$ac_ext <<EOF
3992 #line 3993 "configure"
3993 #include "confdefs.h"
3996 int i = (int)setresuid
3999 if { (eval echo configure
:4000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4001 ac_cv_have_setresuid_decl
=yes
4003 echo "configure: failed program was:" >&5
4004 cat conftest.
$ac_ext >&5
4006 ac_cv_have_setresuid_decl
=no
4011 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4012 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
4013 cat >> confdefs.h
<<\EOF
4014 #define HAVE_SETRESUID_DECL 1
4020 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4021 echo "configure:4022: checking for setresgid declaration" >&5
4022 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4023 echo $ac_n "(cached) $ac_c" 1>&6
4026 cat > conftest.
$ac_ext <<EOF
4027 #line 4028 "configure"
4028 #include "confdefs.h"
4031 int i = (int)setresgid
4034 if { (eval echo configure
:4035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4036 ac_cv_have_setresgid_decl
=yes
4038 echo "configure: failed program was:" >&5
4039 cat conftest.
$ac_ext >&5
4041 ac_cv_have_setresgid_decl
=no
4046 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4047 if test x
"$ac_cv_have_setresgid_decl" = x
"yes"; then
4048 cat >> confdefs.h
<<\EOF
4049 #define HAVE_SETRESGID_DECL 1
4055 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4056 echo "configure:4057: checking for asprintf declaration" >&5
4057 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4058 echo $ac_n "(cached) $ac_c" 1>&6
4061 cat > conftest.
$ac_ext <<EOF
4062 #line 4063 "configure"
4063 #include "confdefs.h"
4066 int i = (int)asprintf
4069 if { (eval echo configure
:4070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4071 ac_cv_have_asprintf_decl
=yes
4073 echo "configure: failed program was:" >&5
4074 cat conftest.
$ac_ext >&5
4076 ac_cv_have_asprintf_decl
=no
4081 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4082 if test x
"$ac_cv_have_asprintf_decl" = x
"yes"; then
4083 cat >> confdefs.h
<<\EOF
4084 #define HAVE_ASPRINTF_DECL 1
4090 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4091 echo "configure:4092: checking for vasprintf declaration" >&5
4092 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4093 echo $ac_n "(cached) $ac_c" 1>&6
4096 cat > conftest.
$ac_ext <<EOF
4097 #line 4098 "configure"
4098 #include "confdefs.h"
4101 int i = (int)vasprintf
4104 if { (eval echo configure
:4105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4106 ac_cv_have_vasprintf_decl
=yes
4108 echo "configure: failed program was:" >&5
4109 cat conftest.
$ac_ext >&5
4111 ac_cv_have_vasprintf_decl
=no
4116 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4117 if test x
"$ac_cv_have_vasprintf_decl" = x
"yes"; then
4118 cat >> confdefs.h
<<\EOF
4119 #define HAVE_VASPRINTF_DECL 1
4125 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4126 echo "configure:4127: checking for vsnprintf declaration" >&5
4127 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4128 echo $ac_n "(cached) $ac_c" 1>&6
4131 cat > conftest.
$ac_ext <<EOF
4132 #line 4133 "configure"
4133 #include "confdefs.h"
4136 int i = (int)vsnprintf
4139 if { (eval echo configure
:4140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4141 ac_cv_have_vsnprintf_decl
=yes
4143 echo "configure: failed program was:" >&5
4144 cat conftest.
$ac_ext >&5
4146 ac_cv_have_vsnprintf_decl
=no
4151 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4152 if test x
"$ac_cv_have_vsnprintf_decl" = x
"yes"; then
4153 cat >> confdefs.h
<<\EOF
4154 #define HAVE_VSNPRINTF_DECL 1
4160 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4161 echo "configure:4162: checking for snprintf declaration" >&5
4162 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4163 echo $ac_n "(cached) $ac_c" 1>&6
4166 cat > conftest.
$ac_ext <<EOF
4167 #line 4168 "configure"
4168 #include "confdefs.h"
4171 int i = (int)snprintf
4174 if { (eval echo configure
:4175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4176 ac_cv_have_snprintf_decl
=yes
4178 echo "configure: failed program was:" >&5
4179 cat conftest.
$ac_ext >&5
4181 ac_cv_have_snprintf_decl
=no
4186 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4187 if test x
"$ac_cv_have_snprintf_decl" = x
"yes"; then
4188 cat >> confdefs.h
<<\EOF
4189 #define HAVE_SNPRINTF_DECL 1
4195 # and glibc has setresuid under linux but the function does
4196 # nothing until kernel 2.1.44! very dumb.
4197 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4198 echo "configure:4199: checking for real setresuid" >&5
4199 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4200 echo $ac_n "(cached) $ac_c" 1>&6
4203 if test "$cross_compiling" = yes; then
4204 samba_cv_have_setresuid
=cross
4206 cat > conftest.
$ac_ext <<EOF
4207 #line 4208 "configure"
4208 #include "confdefs.h"
4210 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4212 if { (eval echo configure
:4213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4214 samba_cv_have_setresuid
=yes
4216 echo "configure: failed program was:" >&5
4217 cat conftest.
$ac_ext >&5
4219 samba_cv_have_setresuid
=no
4226 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4227 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
4228 cat >> confdefs.h
<<\EOF
4229 #define HAVE_SETRESUID 1
4234 # Do the same check for setresguid...
4236 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4237 echo "configure:4238: checking for real setresgid" >&5
4238 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4239 echo $ac_n "(cached) $ac_c" 1>&6
4242 if test "$cross_compiling" = yes; then
4243 samba_cv_have_setresgid
=cross
4245 cat > conftest.
$ac_ext <<EOF
4246 #line 4247 "configure"
4247 #include "confdefs.h"
4250 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4252 if { (eval echo configure
:4253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4254 samba_cv_have_setresgid
=yes
4256 echo "configure: failed program was:" >&5
4257 cat conftest.
$ac_ext >&5
4259 samba_cv_have_setresgid
=no
4266 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4267 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4268 cat >> confdefs.h
<<\EOF
4269 #define HAVE_SETRESGID 1
4274 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4275 echo "configure:4276: checking for 8-bit clean memcmp" >&5
4276 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4277 echo $ac_n "(cached) $ac_c" 1>&6
4279 if test "$cross_compiling" = yes; then
4280 ac_cv_func_memcmp_clean
=no
4282 cat > conftest.
$ac_ext <<EOF
4283 #line 4284 "configure"
4284 #include "confdefs.h"
4288 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4289 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4293 if { (eval echo configure
:4294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4295 ac_cv_func_memcmp_clean
=yes
4297 echo "configure: failed program was:" >&5
4298 cat conftest.
$ac_ext >&5
4300 ac_cv_func_memcmp_clean
=no
4307 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4308 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4311 ###############################################
4312 # test for where we get crypt() from
4313 for ac_func
in crypt
4315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4316 echo "configure:4317: checking for $ac_func" >&5
4317 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4318 echo $ac_n "(cached) $ac_c" 1>&6
4320 cat > conftest.
$ac_ext <<EOF
4321 #line 4322 "configure"
4322 #include "confdefs.h"
4323 /* System header to define __stub macros and hopefully few prototypes,
4324 which can conflict with char $ac_func(); below. */
4326 /* Override any gcc2 internal prototype to avoid an error. */
4327 /* We use char because int might match the return type of a gcc2
4328 builtin and then its argument prototype would still apply. */
4333 /* The GNU C library defines this for functions which it implements
4334 to always fail with ENOSYS. Some functions are actually named
4335 something starting with __ and the normal name is an alias. */
4336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4344 if { (eval echo configure
:4345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4346 eval "ac_cv_func_$ac_func=yes"
4348 echo "configure: failed program was:" >&5
4349 cat conftest.
$ac_ext >&5
4351 eval "ac_cv_func_$ac_func=no"
4356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4357 echo "$ac_t""yes" 1>&6
4358 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4359 cat >> confdefs.h
<<EOF
4360 #define $ac_tr_func 1
4364 echo "$ac_t""no" 1>&6
4368 if test x
"$ac_cv_func_crypt" = x
"no"; then
4369 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4370 echo "configure:4371: checking for crypt in -lcrypt" >&5
4371 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4372 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4373 echo $ac_n "(cached) $ac_c" 1>&6
4375 ac_save_LIBS
="$LIBS"
4376 LIBS
="-lcrypt $LIBS"
4377 cat > conftest.
$ac_ext <<EOF
4378 #line 4379 "configure"
4379 #include "confdefs.h"
4380 /* Override any gcc2 internal prototype to avoid an error. */
4381 /* We use char because int might match the return type of a gcc2
4382 builtin and then its argument prototype would still apply. */
4389 if { (eval echo configure
:4390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4391 eval "ac_cv_lib_$ac_lib_var=yes"
4393 echo "configure: failed program was:" >&5
4394 cat conftest.
$ac_ext >&5
4396 eval "ac_cv_lib_$ac_lib_var=no"
4399 LIBS
="$ac_save_LIBS"
4402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4403 echo "$ac_t""yes" 1>&6
4404 LIBS
="$LIBS -lcrypt";
4405 cat >> confdefs.h
<<\EOF
4406 #define HAVE_CRYPT 1
4410 echo "$ac_t""no" 1>&6
4416 ###############################################
4417 # Readline included by default unless explicitly asked not to
4418 test "${with_readline+set}" != "set" && with_readline
=yes
4420 # test for where we get readline() from
4421 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4422 echo "configure:4423: checking whether to use readline" >&5
4423 # Check whether --with-readline or --without-readline was given.
4424 if test "${with_readline+set}" = set; then
4425 withval
="$with_readline"
4426 case "$with_readline" in
4428 echo "$ac_t""yes" 1>&6
4430 for ac_hdr
in readline.h
history.h readline
/readline.h
4432 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4433 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4434 echo "configure:4435: checking for $ac_hdr" >&5
4435 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4436 echo $ac_n "(cached) $ac_c" 1>&6
4438 cat > conftest.
$ac_ext <<EOF
4439 #line 4440 "configure"
4440 #include "confdefs.h"
4443 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4444 { (eval echo configure
:4445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4445 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4446 if test -z "$ac_err"; then
4448 eval "ac_cv_header_$ac_safe=yes"
4451 echo "configure: failed program was:" >&5
4452 cat conftest.
$ac_ext >&5
4454 eval "ac_cv_header_$ac_safe=no"
4458 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4459 echo "$ac_t""yes" 1>&6
4460 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4461 cat >> confdefs.h
<<EOF
4462 #define $ac_tr_hdr 1
4466 echo "$ac_t""no" 1>&6
4470 for ac_hdr
in readline
/history.h
4472 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4473 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4474 echo "configure:4475: checking for $ac_hdr" >&5
4475 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4476 echo $ac_n "(cached) $ac_c" 1>&6
4478 cat > conftest.
$ac_ext <<EOF
4479 #line 4480 "configure"
4480 #include "confdefs.h"
4483 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4484 { (eval echo configure
:4485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4485 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4486 if test -z "$ac_err"; then
4488 eval "ac_cv_header_$ac_safe=yes"
4491 echo "configure: failed program was:" >&5
4492 cat conftest.
$ac_ext >&5
4494 eval "ac_cv_header_$ac_safe=no"
4498 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4499 echo "$ac_t""yes" 1>&6
4500 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4501 cat >> confdefs.h
<<EOF
4502 #define $ac_tr_hdr 1
4506 echo "$ac_t""no" 1>&6
4511 for ac_hdr
in readline.h readline
/readline.h
4513 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4514 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4515 echo "configure:4516: checking for $ac_hdr" >&5
4516 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4517 echo $ac_n "(cached) $ac_c" 1>&6
4519 cat > conftest.
$ac_ext <<EOF
4520 #line 4521 "configure"
4521 #include "confdefs.h"
4524 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4525 { (eval echo configure
:4526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4526 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4527 if test -z "$ac_err"; then
4529 eval "ac_cv_header_$ac_safe=yes"
4532 echo "configure: failed program was:" >&5
4533 cat conftest.
$ac_ext >&5
4535 eval "ac_cv_header_$ac_safe=no"
4539 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4540 echo "$ac_t""yes" 1>&6
4541 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4542 cat >> confdefs.h
<<EOF
4543 #define $ac_tr_hdr 1
4546 for termlib
in ncurses curses termcap terminfo termlib
; do
4547 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4548 echo "configure:4549: checking for tgetent in -l${termlib}" >&5
4549 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4550 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4551 echo $ac_n "(cached) $ac_c" 1>&6
4553 ac_save_LIBS
="$LIBS"
4554 LIBS
="-l${termlib} $LIBS"
4555 cat > conftest.
$ac_ext <<EOF
4556 #line 4557 "configure"
4557 #include "confdefs.h"
4558 /* Override any gcc2 internal prototype to avoid an error. */
4559 /* We use char because int might match the return type of a gcc2
4560 builtin and then its argument prototype would still apply. */
4567 if { (eval echo configure
:4568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4569 eval "ac_cv_lib_$ac_lib_var=yes"
4571 echo "configure: failed program was:" >&5
4572 cat conftest.
$ac_ext >&5
4574 eval "ac_cv_lib_$ac_lib_var=no"
4577 LIBS
="$ac_save_LIBS"
4580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4581 echo "$ac_t""yes" 1>&6
4582 TERMLIBS
="-l${termlib}"; break
4584 echo "$ac_t""no" 1>&6
4588 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4589 echo "configure:4590: checking for rl_callback_handler_install in -lreadline" >&5
4590 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4592 echo $ac_n "(cached) $ac_c" 1>&6
4594 ac_save_LIBS
="$LIBS"
4595 LIBS
="-lreadline $TERMLIBS $LIBS"
4596 cat > conftest.
$ac_ext <<EOF
4597 #line 4598 "configure"
4598 #include "confdefs.h"
4599 /* Override any gcc2 internal prototype to avoid an error. */
4600 /* We use char because int might match the return type of a gcc2
4601 builtin and then its argument prototype would still apply. */
4602 char rl_callback_handler_install();
4605 rl_callback_handler_install()
4608 if { (eval echo configure
:4609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4610 eval "ac_cv_lib_$ac_lib_var=yes"
4612 echo "configure: failed program was:" >&5
4613 cat conftest.
$ac_ext >&5
4615 eval "ac_cv_lib_$ac_lib_var=no"
4618 LIBS
="$ac_save_LIBS"
4621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4622 echo "$ac_t""yes" 1>&6
4623 TERMLIBS
="-lreadline $TERMLIBS"
4624 cat >> confdefs.h
<<\EOF
4625 #define HAVE_LIBREADLINE 1
4630 echo "$ac_t""no" 1>&6
4635 echo "$ac_t""no" 1>&6
4641 echo "$ac_t""no" 1>&6
4644 echo "$ac_t""yes" 1>&6
4646 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4647 # alternate readline path
4649 _cppflags
=${CPPFLAGS}
4651 # Add additional search path
4652 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4653 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4655 for ac_hdr
in readline.h
history.h readline
/readline.h
4657 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4658 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4659 echo "configure:4660: checking for $ac_hdr" >&5
4660 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4661 echo $ac_n "(cached) $ac_c" 1>&6
4663 cat > conftest.
$ac_ext <<EOF
4664 #line 4665 "configure"
4665 #include "confdefs.h"
4668 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4669 { (eval echo configure
:4670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4670 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4671 if test -z "$ac_err"; then
4673 eval "ac_cv_header_$ac_safe=yes"
4676 echo "configure: failed program was:" >&5
4677 cat conftest.
$ac_ext >&5
4679 eval "ac_cv_header_$ac_safe=no"
4683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4684 echo "$ac_t""yes" 1>&6
4685 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4686 cat >> confdefs.h
<<EOF
4687 #define $ac_tr_hdr 1
4691 echo "$ac_t""no" 1>&6
4695 for ac_hdr
in readline
/history.h
4697 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4698 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4699 echo "configure:4700: checking for $ac_hdr" >&5
4700 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4701 echo $ac_n "(cached) $ac_c" 1>&6
4703 cat > conftest.
$ac_ext <<EOF
4704 #line 4705 "configure"
4705 #include "confdefs.h"
4708 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4709 { (eval echo configure
:4710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4710 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4711 if test -z "$ac_err"; then
4713 eval "ac_cv_header_$ac_safe=yes"
4716 echo "configure: failed program was:" >&5
4717 cat conftest.
$ac_ext >&5
4719 eval "ac_cv_header_$ac_safe=no"
4723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4724 echo "$ac_t""yes" 1>&6
4725 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4726 cat >> confdefs.h
<<EOF
4727 #define $ac_tr_hdr 1
4731 echo "$ac_t""no" 1>&6
4736 for ac_hdr
in readline.h readline
/readline.h
4738 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4740 echo "configure:4741: checking for $ac_hdr" >&5
4741 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4742 echo $ac_n "(cached) $ac_c" 1>&6
4744 cat > conftest.
$ac_ext <<EOF
4745 #line 4746 "configure"
4746 #include "confdefs.h"
4749 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4750 { (eval echo configure
:4751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4751 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4752 if test -z "$ac_err"; then
4754 eval "ac_cv_header_$ac_safe=yes"
4757 echo "configure: failed program was:" >&5
4758 cat conftest.
$ac_ext >&5
4760 eval "ac_cv_header_$ac_safe=no"
4764 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4765 echo "$ac_t""yes" 1>&6
4766 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4767 cat >> confdefs.h
<<EOF
4768 #define $ac_tr_hdr 1
4771 for termlib
in ncurses curses termcap terminfo termlib
; do
4772 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4773 echo "configure:4774: checking for tgetent in -l${termlib}" >&5
4774 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4775 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4776 echo $ac_n "(cached) $ac_c" 1>&6
4778 ac_save_LIBS
="$LIBS"
4779 LIBS
="-l${termlib} $LIBS"
4780 cat > conftest.
$ac_ext <<EOF
4781 #line 4782 "configure"
4782 #include "confdefs.h"
4783 /* Override any gcc2 internal prototype to avoid an error. */
4784 /* We use char because int might match the return type of a gcc2
4785 builtin and then its argument prototype would still apply. */
4792 if { (eval echo configure
:4793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4794 eval "ac_cv_lib_$ac_lib_var=yes"
4796 echo "configure: failed program was:" >&5
4797 cat conftest.
$ac_ext >&5
4799 eval "ac_cv_lib_$ac_lib_var=no"
4802 LIBS
="$ac_save_LIBS"
4805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4806 echo "$ac_t""yes" 1>&6
4807 TERMLIBS
="-l${termlib}"; break
4809 echo "$ac_t""no" 1>&6
4813 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4814 echo "configure:4815: checking for rl_callback_handler_install in -lreadline" >&5
4815 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4816 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4817 echo $ac_n "(cached) $ac_c" 1>&6
4819 ac_save_LIBS
="$LIBS"
4820 LIBS
="-lreadline $TERMLIBS $LIBS"
4821 cat > conftest.
$ac_ext <<EOF
4822 #line 4823 "configure"
4823 #include "confdefs.h"
4824 /* Override any gcc2 internal prototype to avoid an error. */
4825 /* We use char because int might match the return type of a gcc2
4826 builtin and then its argument prototype would still apply. */
4827 char rl_callback_handler_install();
4830 rl_callback_handler_install()
4833 if { (eval echo configure
:4834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4835 eval "ac_cv_lib_$ac_lib_var=yes"
4837 echo "configure: failed program was:" >&5
4838 cat conftest.
$ac_ext >&5
4840 eval "ac_cv_lib_$ac_lib_var=no"
4843 LIBS
="$ac_save_LIBS"
4846 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4847 echo "$ac_t""yes" 1>&6
4848 TERMLDFLAGS
="-L$with_readline/lib"
4849 TERMCPPFLAGS
="-I$with_readline/include"
4850 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4851 TERMLIBS
="-lreadline $TERMLIBS"
4852 cat >> confdefs.h
<<\EOF
4853 #define HAVE_LIBREADLINE 1
4858 echo "$ac_t""no" 1>&6
4859 TERMLIBS
= CPPFLAGS
=$_cppflags
4863 echo "$ac_t""no" 1>&6
4872 echo "$ac_t""no" 1>&6
4879 # The following test taken from the cvs sources
4880 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4881 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4882 # libsocket.so which has a bad implementation of gethostbyname (it
4883 # only looks in /etc/hosts), so we only look for -lsocket if we need
4885 for ac_func
in connect
4887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4888 echo "configure:4889: checking for $ac_func" >&5
4889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4890 echo $ac_n "(cached) $ac_c" 1>&6
4892 cat > conftest.
$ac_ext <<EOF
4893 #line 4894 "configure"
4894 #include "confdefs.h"
4895 /* System header to define __stub macros and hopefully few prototypes,
4896 which can conflict with char $ac_func(); below. */
4898 /* Override any gcc2 internal prototype to avoid an error. */
4899 /* We use char because int might match the return type of a gcc2
4900 builtin and then its argument prototype would still apply. */
4905 /* The GNU C library defines this for functions which it implements
4906 to always fail with ENOSYS. Some functions are actually named
4907 something starting with __ and the normal name is an alias. */
4908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4916 if { (eval echo configure
:4917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4918 eval "ac_cv_func_$ac_func=yes"
4920 echo "configure: failed program was:" >&5
4921 cat conftest.
$ac_ext >&5
4923 eval "ac_cv_func_$ac_func=no"
4928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4929 echo "$ac_t""yes" 1>&6
4930 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4931 cat >> confdefs.h
<<EOF
4932 #define $ac_tr_func 1
4936 echo "$ac_t""no" 1>&6
4940 if test x
"$ac_cv_func_connect" = x
"no"; then
4943 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4944 echo "configure:4945: checking for printf in -lnsl_s" >&5
4945 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4946 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4947 echo $ac_n "(cached) $ac_c" 1>&6
4949 ac_save_LIBS
="$LIBS"
4950 LIBS
="-lnsl_s $LIBS"
4951 cat > conftest.
$ac_ext <<EOF
4952 #line 4953 "configure"
4953 #include "confdefs.h"
4954 /* Override any gcc2 internal prototype to avoid an error. */
4955 /* We use char because int might match the return type of a gcc2
4956 builtin and then its argument prototype would still apply. */
4963 if { (eval echo configure
:4964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4965 eval "ac_cv_lib_$ac_lib_var=yes"
4967 echo "configure: failed program was:" >&5
4968 cat conftest.
$ac_ext >&5
4970 eval "ac_cv_lib_$ac_lib_var=no"
4973 LIBS
="$ac_save_LIBS"
4976 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4977 echo "$ac_t""yes" 1>&6
4978 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4979 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4980 cat >> confdefs.h
<<EOF
4981 #define $ac_tr_lib 1
4984 LIBS
="-lnsl_s $LIBS"
4987 echo "$ac_t""no" 1>&6
4993 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4994 echo "configure:4995: checking for printf in -lnsl" >&5
4995 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4997 echo $ac_n "(cached) $ac_c" 1>&6
4999 ac_save_LIBS
="$LIBS"
5001 cat > conftest.
$ac_ext <<EOF
5002 #line 5003 "configure"
5003 #include "confdefs.h"
5004 /* Override any gcc2 internal prototype to avoid an error. */
5005 /* We use char because int might match the return type of a gcc2
5006 builtin and then its argument prototype would still apply. */
5013 if { (eval echo configure
:5014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5015 eval "ac_cv_lib_$ac_lib_var=yes"
5017 echo "configure: failed program was:" >&5
5018 cat conftest.
$ac_ext >&5
5020 eval "ac_cv_lib_$ac_lib_var=no"
5023 LIBS
="$ac_save_LIBS"
5026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5027 echo "$ac_t""yes" 1>&6
5028 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5029 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5030 cat >> confdefs.h
<<EOF
5031 #define $ac_tr_lib 1
5037 echo "$ac_t""no" 1>&6
5043 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5044 echo "configure:5045: checking for connect in -lsocket" >&5
5045 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5046 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5047 echo $ac_n "(cached) $ac_c" 1>&6
5049 ac_save_LIBS
="$LIBS"
5050 LIBS
="-lsocket $LIBS"
5051 cat > conftest.
$ac_ext <<EOF
5052 #line 5053 "configure"
5053 #include "confdefs.h"
5054 /* Override any gcc2 internal prototype to avoid an error. */
5055 /* We use char because int might match the return type of a gcc2
5056 builtin and then its argument prototype would still apply. */
5063 if { (eval echo configure
:5064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5065 eval "ac_cv_lib_$ac_lib_var=yes"
5067 echo "configure: failed program was:" >&5
5068 cat conftest.
$ac_ext >&5
5070 eval "ac_cv_lib_$ac_lib_var=no"
5073 LIBS
="$ac_save_LIBS"
5076 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5077 echo "$ac_t""yes" 1>&6
5078 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5079 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5080 cat >> confdefs.h
<<EOF
5081 #define $ac_tr_lib 1
5084 LIBS
="-lsocket $LIBS"
5087 echo "$ac_t""no" 1>&6
5093 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5094 echo "configure:5095: checking for connect in -linet" >&5
5095 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5096 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5097 echo $ac_n "(cached) $ac_c" 1>&6
5099 ac_save_LIBS
="$LIBS"
5101 cat > conftest.
$ac_ext <<EOF
5102 #line 5103 "configure"
5103 #include "confdefs.h"
5104 /* Override any gcc2 internal prototype to avoid an error. */
5105 /* We use char because int might match the return type of a gcc2
5106 builtin and then its argument prototype would still apply. */
5113 if { (eval echo configure
:5114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5115 eval "ac_cv_lib_$ac_lib_var=yes"
5117 echo "configure: failed program was:" >&5
5118 cat conftest.
$ac_ext >&5
5120 eval "ac_cv_lib_$ac_lib_var=no"
5123 LIBS
="$ac_save_LIBS"
5126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5127 echo "$ac_t""yes" 1>&6
5128 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5129 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5130 cat >> confdefs.h
<<EOF
5131 #define $ac_tr_lib 1
5137 echo "$ac_t""no" 1>&6
5141 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
5142 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
5143 # ac_cv_func_connect=yes
5144 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5145 cat >> confdefs.h
<<\EOF
5146 #define HAVE_CONNECT 1
5152 ###############################################
5153 # test for where we get get_yp_default_domain() from
5154 for ac_func
in yp_get_default_domain
5156 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5157 echo "configure:5158: checking for $ac_func" >&5
5158 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5159 echo $ac_n "(cached) $ac_c" 1>&6
5161 cat > conftest.
$ac_ext <<EOF
5162 #line 5163 "configure"
5163 #include "confdefs.h"
5164 /* System header to define __stub macros and hopefully few prototypes,
5165 which can conflict with char $ac_func(); below. */
5167 /* Override any gcc2 internal prototype to avoid an error. */
5168 /* We use char because int might match the return type of a gcc2
5169 builtin and then its argument prototype would still apply. */
5174 /* The GNU C library defines this for functions which it implements
5175 to always fail with ENOSYS. Some functions are actually named
5176 something starting with __ and the normal name is an alias. */
5177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5185 if { (eval echo configure
:5186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5187 eval "ac_cv_func_$ac_func=yes"
5189 echo "configure: failed program was:" >&5
5190 cat conftest.
$ac_ext >&5
5192 eval "ac_cv_func_$ac_func=no"
5197 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5198 echo "$ac_t""yes" 1>&6
5199 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5200 cat >> confdefs.h
<<EOF
5201 #define $ac_tr_func 1
5205 echo "$ac_t""no" 1>&6
5209 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
5210 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5211 echo "configure:5212: checking for yp_get_default_domain in -lnsl" >&5
5212 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5213 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5214 echo $ac_n "(cached) $ac_c" 1>&6
5216 ac_save_LIBS
="$LIBS"
5218 cat > conftest.
$ac_ext <<EOF
5219 #line 5220 "configure"
5220 #include "confdefs.h"
5221 /* Override any gcc2 internal prototype to avoid an error. */
5222 /* We use char because int might match the return type of a gcc2
5223 builtin and then its argument prototype would still apply. */
5224 char yp_get_default_domain();
5227 yp_get_default_domain()
5230 if { (eval echo configure
:5231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5232 eval "ac_cv_lib_$ac_lib_var=yes"
5234 echo "configure: failed program was:" >&5
5235 cat conftest.
$ac_ext >&5
5237 eval "ac_cv_lib_$ac_lib_var=no"
5240 LIBS
="$ac_save_LIBS"
5243 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5244 echo "$ac_t""yes" 1>&6
5246 cat >> confdefs.h
<<\EOF
5247 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5251 echo "$ac_t""no" 1>&6
5256 # Check if we have execl, if not we need to compile smbrun.
5257 for ac_func
in execl
5259 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5260 echo "configure:5261: checking for $ac_func" >&5
5261 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5262 echo $ac_n "(cached) $ac_c" 1>&6
5264 cat > conftest.
$ac_ext <<EOF
5265 #line 5266 "configure"
5266 #include "confdefs.h"
5267 /* System header to define __stub macros and hopefully few prototypes,
5268 which can conflict with char $ac_func(); below. */
5270 /* Override any gcc2 internal prototype to avoid an error. */
5271 /* We use char because int might match the return type of a gcc2
5272 builtin and then its argument prototype would still apply. */
5277 /* The GNU C library defines this for functions which it implements
5278 to always fail with ENOSYS. Some functions are actually named
5279 something starting with __ and the normal name is an alias. */
5280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5288 if { (eval echo configure
:5289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5290 eval "ac_cv_func_$ac_func=yes"
5292 echo "configure: failed program was:" >&5
5293 cat conftest.
$ac_ext >&5
5295 eval "ac_cv_func_$ac_func=no"
5300 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5301 echo "$ac_t""yes" 1>&6
5302 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5303 cat >> confdefs.h
<<EOF
5304 #define $ac_tr_func 1
5308 echo "$ac_t""no" 1>&6
5312 if test x
"$ac_cv_func_execl" = x
"no"; then
5313 RUNPROG
="bin/smbrun"
5318 for ac_func
in waitpid getcwd strdup strtoul strerror chown fchown
chmod fchmod chroot
5320 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5321 echo "configure:5322: checking for $ac_func" >&5
5322 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5323 echo $ac_n "(cached) $ac_c" 1>&6
5325 cat > conftest.
$ac_ext <<EOF
5326 #line 5327 "configure"
5327 #include "confdefs.h"
5328 /* System header to define __stub macros and hopefully few prototypes,
5329 which can conflict with char $ac_func(); below. */
5331 /* Override any gcc2 internal prototype to avoid an error. */
5332 /* We use char because int might match the return type of a gcc2
5333 builtin and then its argument prototype would still apply. */
5338 /* The GNU C library defines this for functions which it implements
5339 to always fail with ENOSYS. Some functions are actually named
5340 something starting with __ and the normal name is an alias. */
5341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5349 if { (eval echo configure
:5350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5351 eval "ac_cv_func_$ac_func=yes"
5353 echo "configure: failed program was:" >&5
5354 cat conftest.
$ac_ext >&5
5356 eval "ac_cv_func_$ac_func=no"
5361 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5362 echo "$ac_t""yes" 1>&6
5363 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5364 cat >> confdefs.h
<<EOF
5365 #define $ac_tr_func 1
5369 echo "$ac_t""no" 1>&6
5373 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset
5375 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5376 echo "configure:5377: checking for $ac_func" >&5
5377 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5378 echo $ac_n "(cached) $ac_c" 1>&6
5380 cat > conftest.
$ac_ext <<EOF
5381 #line 5382 "configure"
5382 #include "confdefs.h"
5383 /* System header to define __stub macros and hopefully few prototypes,
5384 which can conflict with char $ac_func(); below. */
5386 /* Override any gcc2 internal prototype to avoid an error. */
5387 /* We use char because int might match the return type of a gcc2
5388 builtin and then its argument prototype would still apply. */
5393 /* The GNU C library defines this for functions which it implements
5394 to always fail with ENOSYS. Some functions are actually named
5395 something starting with __ and the normal name is an alias. */
5396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5404 if { (eval echo configure
:5405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5406 eval "ac_cv_func_$ac_func=yes"
5408 echo "configure: failed program was:" >&5
5409 cat conftest.
$ac_ext >&5
5411 eval "ac_cv_func_$ac_func=no"
5416 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5417 echo "$ac_t""yes" 1>&6
5418 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5419 cat >> confdefs.h
<<EOF
5420 #define $ac_tr_func 1
5424 echo "$ac_t""no" 1>&6
5428 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5430 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5431 echo "configure:5432: checking for $ac_func" >&5
5432 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5433 echo $ac_n "(cached) $ac_c" 1>&6
5435 cat > conftest.
$ac_ext <<EOF
5436 #line 5437 "configure"
5437 #include "confdefs.h"
5438 /* System header to define __stub macros and hopefully few prototypes,
5439 which can conflict with char $ac_func(); below. */
5441 /* Override any gcc2 internal prototype to avoid an error. */
5442 /* We use char because int might match the return type of a gcc2
5443 builtin and then its argument prototype would still apply. */
5448 /* The GNU C library defines this for functions which it implements
5449 to always fail with ENOSYS. Some functions are actually named
5450 something starting with __ and the normal name is an alias. */
5451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5459 if { (eval echo configure
:5460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5461 eval "ac_cv_func_$ac_func=yes"
5463 echo "configure: failed program was:" >&5
5464 cat conftest.
$ac_ext >&5
5466 eval "ac_cv_func_$ac_func=no"
5471 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5472 echo "$ac_t""yes" 1>&6
5473 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5474 cat >> confdefs.h
<<EOF
5475 #define $ac_tr_func 1
5479 echo "$ac_t""no" 1>&6
5483 for ac_func
in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
5485 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5486 echo "configure:5487: checking for $ac_func" >&5
5487 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5488 echo $ac_n "(cached) $ac_c" 1>&6
5490 cat > conftest.
$ac_ext <<EOF
5491 #line 5492 "configure"
5492 #include "confdefs.h"
5493 /* System header to define __stub macros and hopefully few prototypes,
5494 which can conflict with char $ac_func(); below. */
5496 /* Override any gcc2 internal prototype to avoid an error. */
5497 /* We use char because int might match the return type of a gcc2
5498 builtin and then its argument prototype would still apply. */
5503 /* The GNU C library defines this for functions which it implements
5504 to always fail with ENOSYS. Some functions are actually named
5505 something starting with __ and the normal name is an alias. */
5506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5514 if { (eval echo configure
:5515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5516 eval "ac_cv_func_$ac_func=yes"
5518 echo "configure: failed program was:" >&5
5519 cat conftest.
$ac_ext >&5
5521 eval "ac_cv_func_$ac_func=no"
5526 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5527 echo "$ac_t""yes" 1>&6
5528 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5529 cat >> confdefs.h
<<EOF
5530 #define $ac_tr_func 1
5534 echo "$ac_t""no" 1>&6
5538 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf
5540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5541 echo "configure:5542: checking for $ac_func" >&5
5542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5543 echo $ac_n "(cached) $ac_c" 1>&6
5545 cat > conftest.
$ac_ext <<EOF
5546 #line 5547 "configure"
5547 #include "confdefs.h"
5548 /* System header to define __stub macros and hopefully few prototypes,
5549 which can conflict with char $ac_func(); below. */
5551 /* Override any gcc2 internal prototype to avoid an error. */
5552 /* We use char because int might match the return type of a gcc2
5553 builtin and then its argument prototype would still apply. */
5558 /* The GNU C library defines this for functions which it implements
5559 to always fail with ENOSYS. Some functions are actually named
5560 something starting with __ and the normal name is an alias. */
5561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5569 if { (eval echo configure
:5570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5571 eval "ac_cv_func_$ac_func=yes"
5573 echo "configure: failed program was:" >&5
5574 cat conftest.
$ac_ext >&5
5576 eval "ac_cv_func_$ac_func=no"
5581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5582 echo "$ac_t""yes" 1>&6
5583 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5584 cat >> confdefs.h
<<EOF
5585 #define $ac_tr_func 1
5589 echo "$ac_t""no" 1>&6
5593 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5596 echo "configure:5597: checking for $ac_func" >&5
5597 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5598 echo $ac_n "(cached) $ac_c" 1>&6
5600 cat > conftest.
$ac_ext <<EOF
5601 #line 5602 "configure"
5602 #include "confdefs.h"
5603 /* System header to define __stub macros and hopefully few prototypes,
5604 which can conflict with char $ac_func(); below. */
5606 /* Override any gcc2 internal prototype to avoid an error. */
5607 /* We use char because int might match the return type of a gcc2
5608 builtin and then its argument prototype would still apply. */
5613 /* The GNU C library defines this for functions which it implements
5614 to always fail with ENOSYS. Some functions are actually named
5615 something starting with __ and the normal name is an alias. */
5616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5624 if { (eval echo configure
:5625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5626 eval "ac_cv_func_$ac_func=yes"
5628 echo "configure: failed program was:" >&5
5629 cat conftest.
$ac_ext >&5
5631 eval "ac_cv_func_$ac_func=no"
5636 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5637 echo "$ac_t""yes" 1>&6
5638 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5639 cat >> confdefs.h
<<EOF
5640 #define $ac_tr_func 1
5644 echo "$ac_t""no" 1>&6
5648 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5650 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5651 echo "configure:5652: checking for $ac_func" >&5
5652 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5653 echo $ac_n "(cached) $ac_c" 1>&6
5655 cat > conftest.
$ac_ext <<EOF
5656 #line 5657 "configure"
5657 #include "confdefs.h"
5658 /* System header to define __stub macros and hopefully few prototypes,
5659 which can conflict with char $ac_func(); below. */
5661 /* Override any gcc2 internal prototype to avoid an error. */
5662 /* We use char because int might match the return type of a gcc2
5663 builtin and then its argument prototype would still apply. */
5668 /* The GNU C library defines this for functions which it implements
5669 to always fail with ENOSYS. Some functions are actually named
5670 something starting with __ and the normal name is an alias. */
5671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5679 if { (eval echo configure
:5680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5681 eval "ac_cv_func_$ac_func=yes"
5683 echo "configure: failed program was:" >&5
5684 cat conftest.
$ac_ext >&5
5686 eval "ac_cv_func_$ac_func=no"
5691 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5692 echo "$ac_t""yes" 1>&6
5693 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5694 cat >> confdefs.h
<<EOF
5695 #define $ac_tr_func 1
5699 echo "$ac_t""no" 1>&6
5703 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5705 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5706 echo "configure:5707: checking for $ac_func" >&5
5707 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5708 echo $ac_n "(cached) $ac_c" 1>&6
5710 cat > conftest.
$ac_ext <<EOF
5711 #line 5712 "configure"
5712 #include "confdefs.h"
5713 /* System header to define __stub macros and hopefully few prototypes,
5714 which can conflict with char $ac_func(); below. */
5716 /* Override any gcc2 internal prototype to avoid an error. */
5717 /* We use char because int might match the return type of a gcc2
5718 builtin and then its argument prototype would still apply. */
5723 /* The GNU C library defines this for functions which it implements
5724 to always fail with ENOSYS. Some functions are actually named
5725 something starting with __ and the normal name is an alias. */
5726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5734 if { (eval echo configure
:5735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5736 eval "ac_cv_func_$ac_func=yes"
5738 echo "configure: failed program was:" >&5
5739 cat conftest.
$ac_ext >&5
5741 eval "ac_cv_func_$ac_func=no"
5746 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5747 echo "$ac_t""yes" 1>&6
5748 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5749 cat >> confdefs.h
<<EOF
5750 #define $ac_tr_func 1
5754 echo "$ac_t""no" 1>&6
5758 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl
5760 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5761 echo "configure:5762: checking for $ac_func" >&5
5762 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5763 echo $ac_n "(cached) $ac_c" 1>&6
5765 cat > conftest.
$ac_ext <<EOF
5766 #line 5767 "configure"
5767 #include "confdefs.h"
5768 /* System header to define __stub macros and hopefully few prototypes,
5769 which can conflict with char $ac_func(); below. */
5771 /* Override any gcc2 internal prototype to avoid an error. */
5772 /* We use char because int might match the return type of a gcc2
5773 builtin and then its argument prototype would still apply. */
5778 /* The GNU C library defines this for functions which it implements
5779 to always fail with ENOSYS. Some functions are actually named
5780 something starting with __ and the normal name is an alias. */
5781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5789 if { (eval echo configure
:5790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5791 eval "ac_cv_func_$ac_func=yes"
5793 echo "configure: failed program was:" >&5
5794 cat conftest.
$ac_ext >&5
5796 eval "ac_cv_func_$ac_func=no"
5801 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5802 echo "$ac_t""yes" 1>&6
5803 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5804 cat >> confdefs.h
<<EOF
5805 #define $ac_tr_func 1
5809 echo "$ac_t""no" 1>&6
5814 # syscall() is needed for smbwrapper.
5815 for ac_func
in syscall
5817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5818 echo "configure:5819: checking for $ac_func" >&5
5819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5820 echo $ac_n "(cached) $ac_c" 1>&6
5822 cat > conftest.
$ac_ext <<EOF
5823 #line 5824 "configure"
5824 #include "confdefs.h"
5825 /* System header to define __stub macros and hopefully few prototypes,
5826 which can conflict with char $ac_func(); below. */
5828 /* Override any gcc2 internal prototype to avoid an error. */
5829 /* We use char because int might match the return type of a gcc2
5830 builtin and then its argument prototype would still apply. */
5835 /* The GNU C library defines this for functions which it implements
5836 to always fail with ENOSYS. Some functions are actually named
5837 something starting with __ and the normal name is an alias. */
5838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5846 if { (eval echo configure
:5847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5848 eval "ac_cv_func_$ac_func=yes"
5850 echo "configure: failed program was:" >&5
5851 cat conftest.
$ac_ext >&5
5853 eval "ac_cv_func_$ac_func=no"
5858 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5859 echo "$ac_t""yes" 1>&6
5860 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5861 cat >> confdefs.h
<<EOF
5862 #define $ac_tr_func 1
5866 echo "$ac_t""no" 1>&6
5871 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5874 echo "configure:5875: checking for $ac_func" >&5
5875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5876 echo $ac_n "(cached) $ac_c" 1>&6
5878 cat > conftest.
$ac_ext <<EOF
5879 #line 5880 "configure"
5880 #include "confdefs.h"
5881 /* System header to define __stub macros and hopefully few prototypes,
5882 which can conflict with char $ac_func(); below. */
5884 /* Override any gcc2 internal prototype to avoid an error. */
5885 /* We use char because int might match the return type of a gcc2
5886 builtin and then its argument prototype would still apply. */
5891 /* The GNU C library defines this for functions which it implements
5892 to always fail with ENOSYS. Some functions are actually named
5893 something starting with __ and the normal name is an alias. */
5894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5902 if { (eval echo configure
:5903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5904 eval "ac_cv_func_$ac_func=yes"
5906 echo "configure: failed program was:" >&5
5907 cat conftest.
$ac_ext >&5
5909 eval "ac_cv_func_$ac_func=no"
5914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5915 echo "$ac_t""yes" 1>&6
5916 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5917 cat >> confdefs.h
<<EOF
5918 #define $ac_tr_func 1
5922 echo "$ac_t""no" 1>&6
5926 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5928 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5929 echo "configure:5930: checking for $ac_func" >&5
5930 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5931 echo $ac_n "(cached) $ac_c" 1>&6
5933 cat > conftest.
$ac_ext <<EOF
5934 #line 5935 "configure"
5935 #include "confdefs.h"
5936 /* System header to define __stub macros and hopefully few prototypes,
5937 which can conflict with char $ac_func(); below. */
5939 /* Override any gcc2 internal prototype to avoid an error. */
5940 /* We use char because int might match the return type of a gcc2
5941 builtin and then its argument prototype would still apply. */
5946 /* The GNU C library defines this for functions which it implements
5947 to always fail with ENOSYS. Some functions are actually named
5948 something starting with __ and the normal name is an alias. */
5949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5957 if { (eval echo configure
:5958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5959 eval "ac_cv_func_$ac_func=yes"
5961 echo "configure: failed program was:" >&5
5962 cat conftest.
$ac_ext >&5
5964 eval "ac_cv_func_$ac_func=no"
5969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5970 echo "$ac_t""yes" 1>&6
5971 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5972 cat >> confdefs.h
<<EOF
5973 #define $ac_tr_func 1
5977 echo "$ac_t""no" 1>&6
5981 for ac_func
in __getcwd _getcwd
5983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5984 echo "configure:5985: checking for $ac_func" >&5
5985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5986 echo $ac_n "(cached) $ac_c" 1>&6
5988 cat > conftest.
$ac_ext <<EOF
5989 #line 5990 "configure"
5990 #include "confdefs.h"
5991 /* System header to define __stub macros and hopefully few prototypes,
5992 which can conflict with char $ac_func(); below. */
5994 /* Override any gcc2 internal prototype to avoid an error. */
5995 /* We use char because int might match the return type of a gcc2
5996 builtin and then its argument prototype would still apply. */
6001 /* The GNU C library defines this for functions which it implements
6002 to always fail with ENOSYS. Some functions are actually named
6003 something starting with __ and the normal name is an alias. */
6004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6012 if { (eval echo configure
:6013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6014 eval "ac_cv_func_$ac_func=yes"
6016 echo "configure: failed program was:" >&5
6017 cat conftest.
$ac_ext >&5
6019 eval "ac_cv_func_$ac_func=no"
6024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6025 echo "$ac_t""yes" 1>&6
6026 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6027 cat >> confdefs.h
<<EOF
6028 #define $ac_tr_func 1
6032 echo "$ac_t""no" 1>&6
6036 for ac_func
in __xstat __fxstat __lxstat
6038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6039 echo "configure:6040: checking for $ac_func" >&5
6040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6041 echo $ac_n "(cached) $ac_c" 1>&6
6043 cat > conftest.
$ac_ext <<EOF
6044 #line 6045 "configure"
6045 #include "confdefs.h"
6046 /* System header to define __stub macros and hopefully few prototypes,
6047 which can conflict with char $ac_func(); below. */
6049 /* Override any gcc2 internal prototype to avoid an error. */
6050 /* We use char because int might match the return type of a gcc2
6051 builtin and then its argument prototype would still apply. */
6056 /* The GNU C library defines this for functions which it implements
6057 to always fail with ENOSYS. Some functions are actually named
6058 something starting with __ and the normal name is an alias. */
6059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6067 if { (eval echo configure
:6068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6069 eval "ac_cv_func_$ac_func=yes"
6071 echo "configure: failed program was:" >&5
6072 cat conftest.
$ac_ext >&5
6074 eval "ac_cv_func_$ac_func=no"
6079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6080 echo "$ac_t""yes" 1>&6
6081 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6082 cat >> confdefs.h
<<EOF
6083 #define $ac_tr_func 1
6087 echo "$ac_t""no" 1>&6
6091 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
6093 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6094 echo "configure:6095: checking for $ac_func" >&5
6095 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6096 echo $ac_n "(cached) $ac_c" 1>&6
6098 cat > conftest.
$ac_ext <<EOF
6099 #line 6100 "configure"
6100 #include "confdefs.h"
6101 /* System header to define __stub macros and hopefully few prototypes,
6102 which can conflict with char $ac_func(); below. */
6104 /* Override any gcc2 internal prototype to avoid an error. */
6105 /* We use char because int might match the return type of a gcc2
6106 builtin and then its argument prototype would still apply. */
6111 /* The GNU C library defines this for functions which it implements
6112 to always fail with ENOSYS. Some functions are actually named
6113 something starting with __ and the normal name is an alias. */
6114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6122 if { (eval echo configure
:6123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6124 eval "ac_cv_func_$ac_func=yes"
6126 echo "configure: failed program was:" >&5
6127 cat conftest.
$ac_ext >&5
6129 eval "ac_cv_func_$ac_func=no"
6134 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6135 echo "$ac_t""yes" 1>&6
6136 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6137 cat >> confdefs.h
<<EOF
6138 #define $ac_tr_func 1
6142 echo "$ac_t""no" 1>&6
6146 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
6148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6149 echo "configure:6150: checking for $ac_func" >&5
6150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6151 echo $ac_n "(cached) $ac_c" 1>&6
6153 cat > conftest.
$ac_ext <<EOF
6154 #line 6155 "configure"
6155 #include "confdefs.h"
6156 /* System header to define __stub macros and hopefully few prototypes,
6157 which can conflict with char $ac_func(); below. */
6159 /* Override any gcc2 internal prototype to avoid an error. */
6160 /* We use char because int might match the return type of a gcc2
6161 builtin and then its argument prototype would still apply. */
6166 /* The GNU C library defines this for functions which it implements
6167 to always fail with ENOSYS. Some functions are actually named
6168 something starting with __ and the normal name is an alias. */
6169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6177 if { (eval echo configure
:6178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6179 eval "ac_cv_func_$ac_func=yes"
6181 echo "configure: failed program was:" >&5
6182 cat conftest.
$ac_ext >&5
6184 eval "ac_cv_func_$ac_func=no"
6189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6190 echo "$ac_t""yes" 1>&6
6191 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6192 cat >> confdefs.h
<<EOF
6193 #define $ac_tr_func 1
6197 echo "$ac_t""no" 1>&6
6201 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
6203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6204 echo "configure:6205: checking for $ac_func" >&5
6205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6206 echo $ac_n "(cached) $ac_c" 1>&6
6208 cat > conftest.
$ac_ext <<EOF
6209 #line 6210 "configure"
6210 #include "confdefs.h"
6211 /* System header to define __stub macros and hopefully few prototypes,
6212 which can conflict with char $ac_func(); below. */
6214 /* Override any gcc2 internal prototype to avoid an error. */
6215 /* We use char because int might match the return type of a gcc2
6216 builtin and then its argument prototype would still apply. */
6221 /* The GNU C library defines this for functions which it implements
6222 to always fail with ENOSYS. Some functions are actually named
6223 something starting with __ and the normal name is an alias. */
6224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6232 if { (eval echo configure
:6233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6234 eval "ac_cv_func_$ac_func=yes"
6236 echo "configure: failed program was:" >&5
6237 cat conftest.
$ac_ext >&5
6239 eval "ac_cv_func_$ac_func=no"
6244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6245 echo "$ac_t""yes" 1>&6
6246 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6247 cat >> confdefs.h
<<EOF
6248 #define $ac_tr_func 1
6252 echo "$ac_t""no" 1>&6
6256 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
6258 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6259 echo "configure:6260: checking for $ac_func" >&5
6260 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6261 echo $ac_n "(cached) $ac_c" 1>&6
6263 cat > conftest.
$ac_ext <<EOF
6264 #line 6265 "configure"
6265 #include "confdefs.h"
6266 /* System header to define __stub macros and hopefully few prototypes,
6267 which can conflict with char $ac_func(); below. */
6269 /* Override any gcc2 internal prototype to avoid an error. */
6270 /* We use char because int might match the return type of a gcc2
6271 builtin and then its argument prototype would still apply. */
6276 /* The GNU C library defines this for functions which it implements
6277 to always fail with ENOSYS. Some functions are actually named
6278 something starting with __ and the normal name is an alias. */
6279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6287 if { (eval echo configure
:6288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6289 eval "ac_cv_func_$ac_func=yes"
6291 echo "configure: failed program was:" >&5
6292 cat conftest.
$ac_ext >&5
6294 eval "ac_cv_func_$ac_func=no"
6299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6300 echo "$ac_t""yes" 1>&6
6301 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6302 cat >> confdefs.h
<<EOF
6303 #define $ac_tr_func 1
6307 echo "$ac_t""no" 1>&6
6311 for ac_func
in _write __write _fork __fork
6313 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6314 echo "configure:6315: checking for $ac_func" >&5
6315 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6316 echo $ac_n "(cached) $ac_c" 1>&6
6318 cat > conftest.
$ac_ext <<EOF
6319 #line 6320 "configure"
6320 #include "confdefs.h"
6321 /* System header to define __stub macros and hopefully few prototypes,
6322 which can conflict with char $ac_func(); below. */
6324 /* Override any gcc2 internal prototype to avoid an error. */
6325 /* We use char because int might match the return type of a gcc2
6326 builtin and then its argument prototype would still apply. */
6331 /* The GNU C library defines this for functions which it implements
6332 to always fail with ENOSYS. Some functions are actually named
6333 something starting with __ and the normal name is an alias. */
6334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6342 if { (eval echo configure
:6343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6344 eval "ac_cv_func_$ac_func=yes"
6346 echo "configure: failed program was:" >&5
6347 cat conftest.
$ac_ext >&5
6349 eval "ac_cv_func_$ac_func=no"
6354 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6355 echo "$ac_t""yes" 1>&6
6356 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6357 cat >> confdefs.h
<<EOF
6358 #define $ac_tr_func 1
6362 echo "$ac_t""no" 1>&6
6366 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6369 echo "configure:6370: checking for $ac_func" >&5
6370 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6371 echo $ac_n "(cached) $ac_c" 1>&6
6373 cat > conftest.
$ac_ext <<EOF
6374 #line 6375 "configure"
6375 #include "confdefs.h"
6376 /* System header to define __stub macros and hopefully few prototypes,
6377 which can conflict with char $ac_func(); below. */
6379 /* Override any gcc2 internal prototype to avoid an error. */
6380 /* We use char because int might match the return type of a gcc2
6381 builtin and then its argument prototype would still apply. */
6386 /* The GNU C library defines this for functions which it implements
6387 to always fail with ENOSYS. Some functions are actually named
6388 something starting with __ and the normal name is an alias. */
6389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6397 if { (eval echo configure
:6398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6399 eval "ac_cv_func_$ac_func=yes"
6401 echo "configure: failed program was:" >&5
6402 cat conftest.
$ac_ext >&5
6404 eval "ac_cv_func_$ac_func=no"
6409 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6410 echo "$ac_t""yes" 1>&6
6411 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6412 cat >> confdefs.h
<<EOF
6413 #define $ac_tr_func 1
6417 echo "$ac_t""no" 1>&6
6421 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6423 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6424 echo "configure:6425: checking for $ac_func" >&5
6425 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6426 echo $ac_n "(cached) $ac_c" 1>&6
6428 cat > conftest.
$ac_ext <<EOF
6429 #line 6430 "configure"
6430 #include "confdefs.h"
6431 /* System header to define __stub macros and hopefully few prototypes,
6432 which can conflict with char $ac_func(); below. */
6434 /* Override any gcc2 internal prototype to avoid an error. */
6435 /* We use char because int might match the return type of a gcc2
6436 builtin and then its argument prototype would still apply. */
6441 /* The GNU C library defines this for functions which it implements
6442 to always fail with ENOSYS. Some functions are actually named
6443 something starting with __ and the normal name is an alias. */
6444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6452 if { (eval echo configure
:6453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6454 eval "ac_cv_func_$ac_func=yes"
6456 echo "configure: failed program was:" >&5
6457 cat conftest.
$ac_ext >&5
6459 eval "ac_cv_func_$ac_func=no"
6464 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6465 echo "$ac_t""yes" 1>&6
6466 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6467 cat >> confdefs.h
<<EOF
6468 #define $ac_tr_func 1
6472 echo "$ac_t""no" 1>&6
6476 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6479 echo "configure:6480: checking for $ac_func" >&5
6480 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6481 echo $ac_n "(cached) $ac_c" 1>&6
6483 cat > conftest.
$ac_ext <<EOF
6484 #line 6485 "configure"
6485 #include "confdefs.h"
6486 /* System header to define __stub macros and hopefully few prototypes,
6487 which can conflict with char $ac_func(); below. */
6489 /* Override any gcc2 internal prototype to avoid an error. */
6490 /* We use char because int might match the return type of a gcc2
6491 builtin and then its argument prototype would still apply. */
6496 /* The GNU C library defines this for functions which it implements
6497 to always fail with ENOSYS. Some functions are actually named
6498 something starting with __ and the normal name is an alias. */
6499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6507 if { (eval echo configure
:6508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6509 eval "ac_cv_func_$ac_func=yes"
6511 echo "configure: failed program was:" >&5
6512 cat conftest.
$ac_ext >&5
6514 eval "ac_cv_func_$ac_func=no"
6519 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6520 echo "$ac_t""yes" 1>&6
6521 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6522 cat >> confdefs.h
<<EOF
6523 #define $ac_tr_func 1
6527 echo "$ac_t""no" 1>&6
6531 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6533 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6534 echo "configure:6535: checking for $ac_func" >&5
6535 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6536 echo $ac_n "(cached) $ac_c" 1>&6
6538 cat > conftest.
$ac_ext <<EOF
6539 #line 6540 "configure"
6540 #include "confdefs.h"
6541 /* System header to define __stub macros and hopefully few prototypes,
6542 which can conflict with char $ac_func(); below. */
6544 /* Override any gcc2 internal prototype to avoid an error. */
6545 /* We use char because int might match the return type of a gcc2
6546 builtin and then its argument prototype would still apply. */
6551 /* The GNU C library defines this for functions which it implements
6552 to always fail with ENOSYS. Some functions are actually named
6553 something starting with __ and the normal name is an alias. */
6554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6562 if { (eval echo configure
:6563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6564 eval "ac_cv_func_$ac_func=yes"
6566 echo "configure: failed program was:" >&5
6567 cat conftest.
$ac_ext >&5
6569 eval "ac_cv_func_$ac_func=no"
6574 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6575 echo "$ac_t""yes" 1>&6
6576 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6577 cat >> confdefs.h
<<EOF
6578 #define $ac_tr_func 1
6582 echo "$ac_t""no" 1>&6
6586 for ac_func
in open64 _open64 __open64 creat64
6588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6589 echo "configure:6590: checking for $ac_func" >&5
6590 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6591 echo $ac_n "(cached) $ac_c" 1>&6
6593 cat > conftest.
$ac_ext <<EOF
6594 #line 6595 "configure"
6595 #include "confdefs.h"
6596 /* System header to define __stub macros and hopefully few prototypes,
6597 which can conflict with char $ac_func(); below. */
6599 /* Override any gcc2 internal prototype to avoid an error. */
6600 /* We use char because int might match the return type of a gcc2
6601 builtin and then its argument prototype would still apply. */
6606 /* The GNU C library defines this for functions which it implements
6607 to always fail with ENOSYS. Some functions are actually named
6608 something starting with __ and the normal name is an alias. */
6609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6617 if { (eval echo configure
:6618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6619 eval "ac_cv_func_$ac_func=yes"
6621 echo "configure: failed program was:" >&5
6622 cat conftest.
$ac_ext >&5
6624 eval "ac_cv_func_$ac_func=no"
6629 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6630 echo "$ac_t""yes" 1>&6
6631 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6632 cat >> confdefs.h
<<EOF
6633 #define $ac_tr_func 1
6637 echo "$ac_t""no" 1>&6
6643 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6646 if test x
$ac_cv_func_stat64 = xno
; then
6647 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6648 echo "configure:6649: checking for stat64 in <sys/stat.h>" >&5
6649 cat > conftest.
$ac_ext <<EOF
6650 #line 6651 "configure"
6651 #include "confdefs.h"
6653 #if defined(HAVE_UNISTD_H)
6656 #include <sys/stat.h>
6659 struct stat64 st64; exit(stat64(".",&st64));
6662 if { (eval echo configure
:6663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6664 ac_cv_func_stat64
=yes
6666 echo "configure: failed program was:" >&5
6667 cat conftest.
$ac_ext >&5
6670 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6671 if test x
$ac_cv_func_stat64 = xyes
; then
6672 cat >> confdefs.h
<<\EOF
6673 #define HAVE_STAT64 1
6679 if test x
$ac_cv_func_lstat64 = xno
; then
6680 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6681 echo "configure:6682: checking for lstat64 in <sys/stat.h>" >&5
6682 cat > conftest.
$ac_ext <<EOF
6683 #line 6684 "configure"
6684 #include "confdefs.h"
6686 #if defined(HAVE_UNISTD_H)
6689 #include <sys/stat.h>
6692 struct stat64 st64; exit(lstat64(".",&st64));
6695 if { (eval echo configure
:6696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6697 ac_cv_func_lstat64
=yes
6699 echo "configure: failed program was:" >&5
6700 cat conftest.
$ac_ext >&5
6703 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6704 if test x
$ac_cv_func_lstat64 = xyes
; then
6705 cat >> confdefs.h
<<\EOF
6706 #define HAVE_LSTAT64 1
6712 if test x
$ac_cv_func_fstat64 = xno
; then
6713 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6714 echo "configure:6715: checking for fstat64 in <sys/stat.h>" >&5
6715 cat > conftest.
$ac_ext <<EOF
6716 #line 6717 "configure"
6717 #include "confdefs.h"
6719 #if defined(HAVE_UNISTD_H)
6722 #include <sys/stat.h>
6725 struct stat64 st64; exit(fstat64(0,&st64));
6728 if { (eval echo configure
:6729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6730 ac_cv_func_fstat64
=yes
6732 echo "configure: failed program was:" >&5
6733 cat conftest.
$ac_ext >&5
6736 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6737 if test x
$ac_cv_func_fstat64 = xyes
; then
6738 cat >> confdefs.h
<<\EOF
6739 #define HAVE_FSTAT64 1
6746 # If no strcasecmp, check for it in some known places
6747 # It is in -lresolv on ReliantUNIX and UnixWare
6748 # -lresolve *must* follow -lnsl for name resolution to work properly
6751 if test x
$ac_cv_func_strcasecmp = xno
; then
6752 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6753 echo "configure:6754: checking for strcasecmp in -lresolv" >&5
6754 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6755 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6756 echo $ac_n "(cached) $ac_c" 1>&6
6758 ac_save_LIBS
="$LIBS"
6759 LIBS
="-lresolv $LIBS"
6760 cat > conftest.
$ac_ext <<EOF
6761 #line 6762 "configure"
6762 #include "confdefs.h"
6763 /* Override any gcc2 internal prototype to avoid an error. */
6764 /* We use char because int might match the return type of a gcc2
6765 builtin and then its argument prototype would still apply. */
6772 if { (eval echo configure
:6773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6774 eval "ac_cv_lib_$ac_lib_var=yes"
6776 echo "configure: failed program was:" >&5
6777 cat conftest.
$ac_ext >&5
6779 eval "ac_cv_lib_$ac_lib_var=no"
6782 LIBS
="$ac_save_LIBS"
6785 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6786 echo "$ac_t""yes" 1>&6
6787 LIBS
="$LIBS -lresolv"
6788 cat >> confdefs.h
<<\EOF
6789 #define HAVE_STRCASECMP 1
6793 echo "$ac_t""no" 1>&6
6799 # Check for the functions putprpwnam, set_auth_parameters,
6800 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6801 # Needed for OSF1 and HPUX.
6805 *-lsecurity*) for ac_func
in putprpwnam
6807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6808 echo "configure:6809: checking for $ac_func" >&5
6809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6810 echo $ac_n "(cached) $ac_c" 1>&6
6812 cat > conftest.
$ac_ext <<EOF
6813 #line 6814 "configure"
6814 #include "confdefs.h"
6815 /* System header to define __stub macros and hopefully few prototypes,
6816 which can conflict with char $ac_func(); below. */
6818 /* Override any gcc2 internal prototype to avoid an error. */
6819 /* We use char because int might match the return type of a gcc2
6820 builtin and then its argument prototype would still apply. */
6825 /* The GNU C library defines this for functions which it implements
6826 to always fail with ENOSYS. Some functions are actually named
6827 something starting with __ and the normal name is an alias. */
6828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6836 if { (eval echo configure
:6837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6838 eval "ac_cv_func_$ac_func=yes"
6840 echo "configure: failed program was:" >&5
6841 cat conftest.
$ac_ext >&5
6843 eval "ac_cv_func_$ac_func=no"
6848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6849 echo "$ac_t""yes" 1>&6
6850 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6851 cat >> confdefs.h
<<EOF
6852 #define $ac_tr_func 1
6856 echo "$ac_t""no" 1>&6
6860 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6861 echo "configure:6862: checking for putprpwnam in -lsecurity" >&5
6862 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6863 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6864 echo $ac_n "(cached) $ac_c" 1>&6
6866 ac_save_LIBS
="$LIBS"
6867 LIBS
="-lsecurity $LIBS"
6868 cat > conftest.
$ac_ext <<EOF
6869 #line 6870 "configure"
6870 #include "confdefs.h"
6871 /* Override any gcc2 internal prototype to avoid an error. */
6872 /* We use char because int might match the return type of a gcc2
6873 builtin and then its argument prototype would still apply. */
6880 if { (eval echo configure
:6881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6882 eval "ac_cv_lib_$ac_lib_var=yes"
6884 echo "configure: failed program was:" >&5
6885 cat conftest.
$ac_ext >&5
6887 eval "ac_cv_lib_$ac_lib_var=no"
6890 LIBS
="$ac_save_LIBS"
6893 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6894 echo "$ac_t""yes" 1>&6
6895 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6896 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6897 cat >> confdefs.h
<<EOF
6898 #define $ac_tr_lib 1
6901 LIBS
="-lsecurity $LIBS"
6904 echo "$ac_t""no" 1>&6
6907 for ac_func
in putprpwnam
6909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6910 echo "configure:6911: checking for $ac_func" >&5
6911 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6912 echo $ac_n "(cached) $ac_c" 1>&6
6914 cat > conftest.
$ac_ext <<EOF
6915 #line 6916 "configure"
6916 #include "confdefs.h"
6917 /* System header to define __stub macros and hopefully few prototypes,
6918 which can conflict with char $ac_func(); below. */
6920 /* Override any gcc2 internal prototype to avoid an error. */
6921 /* We use char because int might match the return type of a gcc2
6922 builtin and then its argument prototype would still apply. */
6927 /* The GNU C library defines this for functions which it implements
6928 to always fail with ENOSYS. Some functions are actually named
6929 something starting with __ and the normal name is an alias. */
6930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6938 if { (eval echo configure
:6939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6940 eval "ac_cv_func_$ac_func=yes"
6942 echo "configure: failed program was:" >&5
6943 cat conftest.
$ac_ext >&5
6945 eval "ac_cv_func_$ac_func=no"
6950 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6951 echo "$ac_t""yes" 1>&6
6952 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6953 cat >> confdefs.h
<<EOF
6954 #define $ac_tr_func 1
6958 echo "$ac_t""no" 1>&6
6966 *-lsec*) for ac_func
in putprpwnam
6968 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6969 echo "configure:6970: checking for $ac_func" >&5
6970 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6971 echo $ac_n "(cached) $ac_c" 1>&6
6973 cat > conftest.
$ac_ext <<EOF
6974 #line 6975 "configure"
6975 #include "confdefs.h"
6976 /* System header to define __stub macros and hopefully few prototypes,
6977 which can conflict with char $ac_func(); below. */
6979 /* Override any gcc2 internal prototype to avoid an error. */
6980 /* We use char because int might match the return type of a gcc2
6981 builtin and then its argument prototype would still apply. */
6986 /* The GNU C library defines this for functions which it implements
6987 to always fail with ENOSYS. Some functions are actually named
6988 something starting with __ and the normal name is an alias. */
6989 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6997 if { (eval echo configure
:6998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6999 eval "ac_cv_func_$ac_func=yes"
7001 echo "configure: failed program was:" >&5
7002 cat conftest.
$ac_ext >&5
7004 eval "ac_cv_func_$ac_func=no"
7009 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7010 echo "$ac_t""yes" 1>&6
7011 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7012 cat >> confdefs.h
<<EOF
7013 #define $ac_tr_func 1
7017 echo "$ac_t""no" 1>&6
7021 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7022 echo "configure:7023: checking for putprpwnam in -lsec" >&5
7023 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7024 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7025 echo $ac_n "(cached) $ac_c" 1>&6
7027 ac_save_LIBS
="$LIBS"
7029 cat > conftest.
$ac_ext <<EOF
7030 #line 7031 "configure"
7031 #include "confdefs.h"
7032 /* Override any gcc2 internal prototype to avoid an error. */
7033 /* We use char because int might match the return type of a gcc2
7034 builtin and then its argument prototype would still apply. */
7041 if { (eval echo configure
:7042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7043 eval "ac_cv_lib_$ac_lib_var=yes"
7045 echo "configure: failed program was:" >&5
7046 cat conftest.
$ac_ext >&5
7048 eval "ac_cv_lib_$ac_lib_var=no"
7051 LIBS
="$ac_save_LIBS"
7054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7055 echo "$ac_t""yes" 1>&6
7056 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7057 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7058 cat >> confdefs.h
<<EOF
7059 #define $ac_tr_lib 1
7065 echo "$ac_t""no" 1>&6
7068 for ac_func
in putprpwnam
7070 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7071 echo "configure:7072: checking for $ac_func" >&5
7072 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7073 echo $ac_n "(cached) $ac_c" 1>&6
7075 cat > conftest.
$ac_ext <<EOF
7076 #line 7077 "configure"
7077 #include "confdefs.h"
7078 /* System header to define __stub macros and hopefully few prototypes,
7079 which can conflict with char $ac_func(); below. */
7081 /* Override any gcc2 internal prototype to avoid an error. */
7082 /* We use char because int might match the return type of a gcc2
7083 builtin and then its argument prototype would still apply. */
7088 /* The GNU C library defines this for functions which it implements
7089 to always fail with ENOSYS. Some functions are actually named
7090 something starting with __ and the normal name is an alias. */
7091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7099 if { (eval echo configure
:7100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7101 eval "ac_cv_func_$ac_func=yes"
7103 echo "configure: failed program was:" >&5
7104 cat conftest.
$ac_ext >&5
7106 eval "ac_cv_func_$ac_func=no"
7111 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7112 echo "$ac_t""yes" 1>&6
7113 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7114 cat >> confdefs.h
<<EOF
7115 #define $ac_tr_func 1
7119 echo "$ac_t""no" 1>&6
7128 *-lsecurity*) for ac_func
in set_auth_parameters
7130 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7131 echo "configure:7132: checking for $ac_func" >&5
7132 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7133 echo $ac_n "(cached) $ac_c" 1>&6
7135 cat > conftest.
$ac_ext <<EOF
7136 #line 7137 "configure"
7137 #include "confdefs.h"
7138 /* System header to define __stub macros and hopefully few prototypes,
7139 which can conflict with char $ac_func(); below. */
7141 /* Override any gcc2 internal prototype to avoid an error. */
7142 /* We use char because int might match the return type of a gcc2
7143 builtin and then its argument prototype would still apply. */
7148 /* The GNU C library defines this for functions which it implements
7149 to always fail with ENOSYS. Some functions are actually named
7150 something starting with __ and the normal name is an alias. */
7151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7159 if { (eval echo configure
:7160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7161 eval "ac_cv_func_$ac_func=yes"
7163 echo "configure: failed program was:" >&5
7164 cat conftest.
$ac_ext >&5
7166 eval "ac_cv_func_$ac_func=no"
7171 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7172 echo "$ac_t""yes" 1>&6
7173 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7174 cat >> confdefs.h
<<EOF
7175 #define $ac_tr_func 1
7179 echo "$ac_t""no" 1>&6
7183 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7184 echo "configure:7185: checking for set_auth_parameters in -lsecurity" >&5
7185 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7186 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7187 echo $ac_n "(cached) $ac_c" 1>&6
7189 ac_save_LIBS
="$LIBS"
7190 LIBS
="-lsecurity $LIBS"
7191 cat > conftest.
$ac_ext <<EOF
7192 #line 7193 "configure"
7193 #include "confdefs.h"
7194 /* Override any gcc2 internal prototype to avoid an error. */
7195 /* We use char because int might match the return type of a gcc2
7196 builtin and then its argument prototype would still apply. */
7197 char set_auth_parameters();
7200 set_auth_parameters()
7203 if { (eval echo configure
:7204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7205 eval "ac_cv_lib_$ac_lib_var=yes"
7207 echo "configure: failed program was:" >&5
7208 cat conftest.
$ac_ext >&5
7210 eval "ac_cv_lib_$ac_lib_var=no"
7213 LIBS
="$ac_save_LIBS"
7216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7217 echo "$ac_t""yes" 1>&6
7218 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7219 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7220 cat >> confdefs.h
<<EOF
7221 #define $ac_tr_lib 1
7224 LIBS
="-lsecurity $LIBS"
7227 echo "$ac_t""no" 1>&6
7230 for ac_func
in set_auth_parameters
7232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7233 echo "configure:7234: checking for $ac_func" >&5
7234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7235 echo $ac_n "(cached) $ac_c" 1>&6
7237 cat > conftest.
$ac_ext <<EOF
7238 #line 7239 "configure"
7239 #include "confdefs.h"
7240 /* System header to define __stub macros and hopefully few prototypes,
7241 which can conflict with char $ac_func(); below. */
7243 /* Override any gcc2 internal prototype to avoid an error. */
7244 /* We use char because int might match the return type of a gcc2
7245 builtin and then its argument prototype would still apply. */
7250 /* The GNU C library defines this for functions which it implements
7251 to always fail with ENOSYS. Some functions are actually named
7252 something starting with __ and the normal name is an alias. */
7253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7261 if { (eval echo configure
:7262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7263 eval "ac_cv_func_$ac_func=yes"
7265 echo "configure: failed program was:" >&5
7266 cat conftest.
$ac_ext >&5
7268 eval "ac_cv_func_$ac_func=no"
7273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7274 echo "$ac_t""yes" 1>&6
7275 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7276 cat >> confdefs.h
<<EOF
7277 #define $ac_tr_func 1
7281 echo "$ac_t""no" 1>&6
7289 *-lsec*) for ac_func
in set_auth_parameters
7291 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7292 echo "configure:7293: checking for $ac_func" >&5
7293 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7294 echo $ac_n "(cached) $ac_c" 1>&6
7296 cat > conftest.
$ac_ext <<EOF
7297 #line 7298 "configure"
7298 #include "confdefs.h"
7299 /* System header to define __stub macros and hopefully few prototypes,
7300 which can conflict with char $ac_func(); below. */
7302 /* Override any gcc2 internal prototype to avoid an error. */
7303 /* We use char because int might match the return type of a gcc2
7304 builtin and then its argument prototype would still apply. */
7309 /* The GNU C library defines this for functions which it implements
7310 to always fail with ENOSYS. Some functions are actually named
7311 something starting with __ and the normal name is an alias. */
7312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7320 if { (eval echo configure
:7321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7322 eval "ac_cv_func_$ac_func=yes"
7324 echo "configure: failed program was:" >&5
7325 cat conftest.
$ac_ext >&5
7327 eval "ac_cv_func_$ac_func=no"
7332 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7333 echo "$ac_t""yes" 1>&6
7334 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7335 cat >> confdefs.h
<<EOF
7336 #define $ac_tr_func 1
7340 echo "$ac_t""no" 1>&6
7344 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7345 echo "configure:7346: checking for set_auth_parameters in -lsec" >&5
7346 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7348 echo $ac_n "(cached) $ac_c" 1>&6
7350 ac_save_LIBS
="$LIBS"
7352 cat > conftest.
$ac_ext <<EOF
7353 #line 7354 "configure"
7354 #include "confdefs.h"
7355 /* Override any gcc2 internal prototype to avoid an error. */
7356 /* We use char because int might match the return type of a gcc2
7357 builtin and then its argument prototype would still apply. */
7358 char set_auth_parameters();
7361 set_auth_parameters()
7364 if { (eval echo configure
:7365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7366 eval "ac_cv_lib_$ac_lib_var=yes"
7368 echo "configure: failed program was:" >&5
7369 cat conftest.
$ac_ext >&5
7371 eval "ac_cv_lib_$ac_lib_var=no"
7374 LIBS
="$ac_save_LIBS"
7377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7378 echo "$ac_t""yes" 1>&6
7379 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7380 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7381 cat >> confdefs.h
<<EOF
7382 #define $ac_tr_lib 1
7388 echo "$ac_t""no" 1>&6
7391 for ac_func
in set_auth_parameters
7393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7394 echo "configure:7395: checking for $ac_func" >&5
7395 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7396 echo $ac_n "(cached) $ac_c" 1>&6
7398 cat > conftest.
$ac_ext <<EOF
7399 #line 7400 "configure"
7400 #include "confdefs.h"
7401 /* System header to define __stub macros and hopefully few prototypes,
7402 which can conflict with char $ac_func(); below. */
7404 /* Override any gcc2 internal prototype to avoid an error. */
7405 /* We use char because int might match the return type of a gcc2
7406 builtin and then its argument prototype would still apply. */
7411 /* The GNU C library defines this for functions which it implements
7412 to always fail with ENOSYS. Some functions are actually named
7413 something starting with __ and the normal name is an alias. */
7414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7422 if { (eval echo configure
:7423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7424 eval "ac_cv_func_$ac_func=yes"
7426 echo "configure: failed program was:" >&5
7427 cat conftest.
$ac_ext >&5
7429 eval "ac_cv_func_$ac_func=no"
7434 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7435 echo "$ac_t""yes" 1>&6
7436 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7437 cat >> confdefs.h
<<EOF
7438 #define $ac_tr_func 1
7442 echo "$ac_t""no" 1>&6
7450 # UnixWare 7.x has its getspnam in -lgen
7452 *-lgen*) for ac_func
in getspnam
7454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7455 echo "configure:7456: checking for $ac_func" >&5
7456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7457 echo $ac_n "(cached) $ac_c" 1>&6
7459 cat > conftest.
$ac_ext <<EOF
7460 #line 7461 "configure"
7461 #include "confdefs.h"
7462 /* System header to define __stub macros and hopefully few prototypes,
7463 which can conflict with char $ac_func(); below. */
7465 /* Override any gcc2 internal prototype to avoid an error. */
7466 /* We use char because int might match the return type of a gcc2
7467 builtin and then its argument prototype would still apply. */
7472 /* The GNU C library defines this for functions which it implements
7473 to always fail with ENOSYS. Some functions are actually named
7474 something starting with __ and the normal name is an alias. */
7475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7483 if { (eval echo configure
:7484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7485 eval "ac_cv_func_$ac_func=yes"
7487 echo "configure: failed program was:" >&5
7488 cat conftest.
$ac_ext >&5
7490 eval "ac_cv_func_$ac_func=no"
7495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7496 echo "$ac_t""yes" 1>&6
7497 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7498 cat >> confdefs.h
<<EOF
7499 #define $ac_tr_func 1
7503 echo "$ac_t""no" 1>&6
7507 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7508 echo "configure:7509: checking for getspnam in -lgen" >&5
7509 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7510 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7511 echo $ac_n "(cached) $ac_c" 1>&6
7513 ac_save_LIBS
="$LIBS"
7515 cat > conftest.
$ac_ext <<EOF
7516 #line 7517 "configure"
7517 #include "confdefs.h"
7518 /* Override any gcc2 internal prototype to avoid an error. */
7519 /* We use char because int might match the return type of a gcc2
7520 builtin and then its argument prototype would still apply. */
7527 if { (eval echo configure
:7528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7529 eval "ac_cv_lib_$ac_lib_var=yes"
7531 echo "configure: failed program was:" >&5
7532 cat conftest.
$ac_ext >&5
7534 eval "ac_cv_lib_$ac_lib_var=no"
7537 LIBS
="$ac_save_LIBS"
7540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7541 echo "$ac_t""yes" 1>&6
7542 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7543 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7544 cat >> confdefs.h
<<EOF
7545 #define $ac_tr_lib 1
7551 echo "$ac_t""no" 1>&6
7554 for ac_func
in getspnam
7556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7557 echo "configure:7558: checking for $ac_func" >&5
7558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7559 echo $ac_n "(cached) $ac_c" 1>&6
7561 cat > conftest.
$ac_ext <<EOF
7562 #line 7563 "configure"
7563 #include "confdefs.h"
7564 /* System header to define __stub macros and hopefully few prototypes,
7565 which can conflict with char $ac_func(); below. */
7567 /* Override any gcc2 internal prototype to avoid an error. */
7568 /* We use char because int might match the return type of a gcc2
7569 builtin and then its argument prototype would still apply. */
7574 /* The GNU C library defines this for functions which it implements
7575 to always fail with ENOSYS. Some functions are actually named
7576 something starting with __ and the normal name is an alias. */
7577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7585 if { (eval echo configure
:7586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7587 eval "ac_cv_func_$ac_func=yes"
7589 echo "configure: failed program was:" >&5
7590 cat conftest.
$ac_ext >&5
7592 eval "ac_cv_func_$ac_func=no"
7597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7598 echo "$ac_t""yes" 1>&6
7599 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7600 cat >> confdefs.h
<<EOF
7601 #define $ac_tr_func 1
7605 echo "$ac_t""no" 1>&6
7614 *-lsecurity*) for ac_func
in getspnam
7616 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7617 echo "configure:7618: checking for $ac_func" >&5
7618 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7619 echo $ac_n "(cached) $ac_c" 1>&6
7621 cat > conftest.
$ac_ext <<EOF
7622 #line 7623 "configure"
7623 #include "confdefs.h"
7624 /* System header to define __stub macros and hopefully few prototypes,
7625 which can conflict with char $ac_func(); below. */
7627 /* Override any gcc2 internal prototype to avoid an error. */
7628 /* We use char because int might match the return type of a gcc2
7629 builtin and then its argument prototype would still apply. */
7634 /* The GNU C library defines this for functions which it implements
7635 to always fail with ENOSYS. Some functions are actually named
7636 something starting with __ and the normal name is an alias. */
7637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7645 if { (eval echo configure
:7646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7647 eval "ac_cv_func_$ac_func=yes"
7649 echo "configure: failed program was:" >&5
7650 cat conftest.
$ac_ext >&5
7652 eval "ac_cv_func_$ac_func=no"
7657 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7658 echo "$ac_t""yes" 1>&6
7659 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7660 cat >> confdefs.h
<<EOF
7661 #define $ac_tr_func 1
7665 echo "$ac_t""no" 1>&6
7669 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7670 echo "configure:7671: checking for getspnam in -lsecurity" >&5
7671 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7672 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7673 echo $ac_n "(cached) $ac_c" 1>&6
7675 ac_save_LIBS
="$LIBS"
7676 LIBS
="-lsecurity $LIBS"
7677 cat > conftest.
$ac_ext <<EOF
7678 #line 7679 "configure"
7679 #include "confdefs.h"
7680 /* Override any gcc2 internal prototype to avoid an error. */
7681 /* We use char because int might match the return type of a gcc2
7682 builtin and then its argument prototype would still apply. */
7689 if { (eval echo configure
:7690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7691 eval "ac_cv_lib_$ac_lib_var=yes"
7693 echo "configure: failed program was:" >&5
7694 cat conftest.
$ac_ext >&5
7696 eval "ac_cv_lib_$ac_lib_var=no"
7699 LIBS
="$ac_save_LIBS"
7702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7703 echo "$ac_t""yes" 1>&6
7704 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7705 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7706 cat >> confdefs.h
<<EOF
7707 #define $ac_tr_lib 1
7710 LIBS
="-lsecurity $LIBS"
7713 echo "$ac_t""no" 1>&6
7716 for ac_func
in getspnam
7718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7719 echo "configure:7720: checking for $ac_func" >&5
7720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7721 echo $ac_n "(cached) $ac_c" 1>&6
7723 cat > conftest.
$ac_ext <<EOF
7724 #line 7725 "configure"
7725 #include "confdefs.h"
7726 /* System header to define __stub macros and hopefully few prototypes,
7727 which can conflict with char $ac_func(); below. */
7729 /* Override any gcc2 internal prototype to avoid an error. */
7730 /* We use char because int might match the return type of a gcc2
7731 builtin and then its argument prototype would still apply. */
7736 /* The GNU C library defines this for functions which it implements
7737 to always fail with ENOSYS. Some functions are actually named
7738 something starting with __ and the normal name is an alias. */
7739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7747 if { (eval echo configure
:7748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7749 eval "ac_cv_func_$ac_func=yes"
7751 echo "configure: failed program was:" >&5
7752 cat conftest.
$ac_ext >&5
7754 eval "ac_cv_func_$ac_func=no"
7759 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7760 echo "$ac_t""yes" 1>&6
7761 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7762 cat >> confdefs.h
<<EOF
7763 #define $ac_tr_func 1
7767 echo "$ac_t""no" 1>&6
7775 *-lsec*) for ac_func
in getspnam
7777 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7778 echo "configure:7779: checking for $ac_func" >&5
7779 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7780 echo $ac_n "(cached) $ac_c" 1>&6
7782 cat > conftest.
$ac_ext <<EOF
7783 #line 7784 "configure"
7784 #include "confdefs.h"
7785 /* System header to define __stub macros and hopefully few prototypes,
7786 which can conflict with char $ac_func(); below. */
7788 /* Override any gcc2 internal prototype to avoid an error. */
7789 /* We use char because int might match the return type of a gcc2
7790 builtin and then its argument prototype would still apply. */
7795 /* The GNU C library defines this for functions which it implements
7796 to always fail with ENOSYS. Some functions are actually named
7797 something starting with __ and the normal name is an alias. */
7798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7806 if { (eval echo configure
:7807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7808 eval "ac_cv_func_$ac_func=yes"
7810 echo "configure: failed program was:" >&5
7811 cat conftest.
$ac_ext >&5
7813 eval "ac_cv_func_$ac_func=no"
7818 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7819 echo "$ac_t""yes" 1>&6
7820 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7821 cat >> confdefs.h
<<EOF
7822 #define $ac_tr_func 1
7826 echo "$ac_t""no" 1>&6
7830 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7831 echo "configure:7832: checking for getspnam in -lsec" >&5
7832 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7834 echo $ac_n "(cached) $ac_c" 1>&6
7836 ac_save_LIBS
="$LIBS"
7838 cat > conftest.
$ac_ext <<EOF
7839 #line 7840 "configure"
7840 #include "confdefs.h"
7841 /* Override any gcc2 internal prototype to avoid an error. */
7842 /* We use char because int might match the return type of a gcc2
7843 builtin and then its argument prototype would still apply. */
7850 if { (eval echo configure
:7851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7852 eval "ac_cv_lib_$ac_lib_var=yes"
7854 echo "configure: failed program was:" >&5
7855 cat conftest.
$ac_ext >&5
7857 eval "ac_cv_lib_$ac_lib_var=no"
7860 LIBS
="$ac_save_LIBS"
7863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7864 echo "$ac_t""yes" 1>&6
7865 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7866 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7867 cat >> confdefs.h
<<EOF
7868 #define $ac_tr_lib 1
7874 echo "$ac_t""no" 1>&6
7877 for ac_func
in getspnam
7879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7880 echo "configure:7881: checking for $ac_func" >&5
7881 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7882 echo $ac_n "(cached) $ac_c" 1>&6
7884 cat > conftest.
$ac_ext <<EOF
7885 #line 7886 "configure"
7886 #include "confdefs.h"
7887 /* System header to define __stub macros and hopefully few prototypes,
7888 which can conflict with char $ac_func(); below. */
7890 /* Override any gcc2 internal prototype to avoid an error. */
7891 /* We use char because int might match the return type of a gcc2
7892 builtin and then its argument prototype would still apply. */
7897 /* The GNU C library defines this for functions which it implements
7898 to always fail with ENOSYS. Some functions are actually named
7899 something starting with __ and the normal name is an alias. */
7900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7908 if { (eval echo configure
:7909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7910 eval "ac_cv_func_$ac_func=yes"
7912 echo "configure: failed program was:" >&5
7913 cat conftest.
$ac_ext >&5
7915 eval "ac_cv_func_$ac_func=no"
7920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7921 echo "$ac_t""yes" 1>&6
7922 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7923 cat >> confdefs.h
<<EOF
7924 #define $ac_tr_func 1
7928 echo "$ac_t""no" 1>&6
7937 *-lsecurity*) for ac_func
in bigcrypt
7939 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7940 echo "configure:7941: checking for $ac_func" >&5
7941 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7942 echo $ac_n "(cached) $ac_c" 1>&6
7944 cat > conftest.
$ac_ext <<EOF
7945 #line 7946 "configure"
7946 #include "confdefs.h"
7947 /* System header to define __stub macros and hopefully few prototypes,
7948 which can conflict with char $ac_func(); below. */
7950 /* Override any gcc2 internal prototype to avoid an error. */
7951 /* We use char because int might match the return type of a gcc2
7952 builtin and then its argument prototype would still apply. */
7957 /* The GNU C library defines this for functions which it implements
7958 to always fail with ENOSYS. Some functions are actually named
7959 something starting with __ and the normal name is an alias. */
7960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7968 if { (eval echo configure
:7969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7970 eval "ac_cv_func_$ac_func=yes"
7972 echo "configure: failed program was:" >&5
7973 cat conftest.
$ac_ext >&5
7975 eval "ac_cv_func_$ac_func=no"
7980 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7981 echo "$ac_t""yes" 1>&6
7982 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7983 cat >> confdefs.h
<<EOF
7984 #define $ac_tr_func 1
7988 echo "$ac_t""no" 1>&6
7992 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7993 echo "configure:7994: checking for bigcrypt in -lsecurity" >&5
7994 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7995 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7996 echo $ac_n "(cached) $ac_c" 1>&6
7998 ac_save_LIBS
="$LIBS"
7999 LIBS
="-lsecurity $LIBS"
8000 cat > conftest.
$ac_ext <<EOF
8001 #line 8002 "configure"
8002 #include "confdefs.h"
8003 /* Override any gcc2 internal prototype to avoid an error. */
8004 /* We use char because int might match the return type of a gcc2
8005 builtin and then its argument prototype would still apply. */
8012 if { (eval echo configure
:8013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8014 eval "ac_cv_lib_$ac_lib_var=yes"
8016 echo "configure: failed program was:" >&5
8017 cat conftest.
$ac_ext >&5
8019 eval "ac_cv_lib_$ac_lib_var=no"
8022 LIBS
="$ac_save_LIBS"
8025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8026 echo "$ac_t""yes" 1>&6
8027 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8028 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8029 cat >> confdefs.h
<<EOF
8030 #define $ac_tr_lib 1
8033 LIBS
="-lsecurity $LIBS"
8036 echo "$ac_t""no" 1>&6
8039 for ac_func
in bigcrypt
8041 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8042 echo "configure:8043: checking for $ac_func" >&5
8043 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8044 echo $ac_n "(cached) $ac_c" 1>&6
8046 cat > conftest.
$ac_ext <<EOF
8047 #line 8048 "configure"
8048 #include "confdefs.h"
8049 /* System header to define __stub macros and hopefully few prototypes,
8050 which can conflict with char $ac_func(); below. */
8052 /* Override any gcc2 internal prototype to avoid an error. */
8053 /* We use char because int might match the return type of a gcc2
8054 builtin and then its argument prototype would still apply. */
8059 /* The GNU C library defines this for functions which it implements
8060 to always fail with ENOSYS. Some functions are actually named
8061 something starting with __ and the normal name is an alias. */
8062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8070 if { (eval echo configure
:8071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8072 eval "ac_cv_func_$ac_func=yes"
8074 echo "configure: failed program was:" >&5
8075 cat conftest.
$ac_ext >&5
8077 eval "ac_cv_func_$ac_func=no"
8082 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8083 echo "$ac_t""yes" 1>&6
8084 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8085 cat >> confdefs.h
<<EOF
8086 #define $ac_tr_func 1
8090 echo "$ac_t""no" 1>&6
8098 *-lsec*) for ac_func
in bigcrypt
8100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8101 echo "configure:8102: checking for $ac_func" >&5
8102 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8103 echo $ac_n "(cached) $ac_c" 1>&6
8105 cat > conftest.
$ac_ext <<EOF
8106 #line 8107 "configure"
8107 #include "confdefs.h"
8108 /* System header to define __stub macros and hopefully few prototypes,
8109 which can conflict with char $ac_func(); below. */
8111 /* Override any gcc2 internal prototype to avoid an error. */
8112 /* We use char because int might match the return type of a gcc2
8113 builtin and then its argument prototype would still apply. */
8118 /* The GNU C library defines this for functions which it implements
8119 to always fail with ENOSYS. Some functions are actually named
8120 something starting with __ and the normal name is an alias. */
8121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8129 if { (eval echo configure
:8130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8131 eval "ac_cv_func_$ac_func=yes"
8133 echo "configure: failed program was:" >&5
8134 cat conftest.
$ac_ext >&5
8136 eval "ac_cv_func_$ac_func=no"
8141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8142 echo "$ac_t""yes" 1>&6
8143 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8144 cat >> confdefs.h
<<EOF
8145 #define $ac_tr_func 1
8149 echo "$ac_t""no" 1>&6
8153 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8154 echo "configure:8155: checking for bigcrypt in -lsec" >&5
8155 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8156 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8157 echo $ac_n "(cached) $ac_c" 1>&6
8159 ac_save_LIBS
="$LIBS"
8161 cat > conftest.
$ac_ext <<EOF
8162 #line 8163 "configure"
8163 #include "confdefs.h"
8164 /* Override any gcc2 internal prototype to avoid an error. */
8165 /* We use char because int might match the return type of a gcc2
8166 builtin and then its argument prototype would still apply. */
8173 if { (eval echo configure
:8174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8175 eval "ac_cv_lib_$ac_lib_var=yes"
8177 echo "configure: failed program was:" >&5
8178 cat conftest.
$ac_ext >&5
8180 eval "ac_cv_lib_$ac_lib_var=no"
8183 LIBS
="$ac_save_LIBS"
8186 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8187 echo "$ac_t""yes" 1>&6
8188 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8189 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8190 cat >> confdefs.h
<<EOF
8191 #define $ac_tr_lib 1
8197 echo "$ac_t""no" 1>&6
8200 for ac_func
in bigcrypt
8202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8203 echo "configure:8204: checking for $ac_func" >&5
8204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8205 echo $ac_n "(cached) $ac_c" 1>&6
8207 cat > conftest.
$ac_ext <<EOF
8208 #line 8209 "configure"
8209 #include "confdefs.h"
8210 /* System header to define __stub macros and hopefully few prototypes,
8211 which can conflict with char $ac_func(); below. */
8213 /* Override any gcc2 internal prototype to avoid an error. */
8214 /* We use char because int might match the return type of a gcc2
8215 builtin and then its argument prototype would still apply. */
8220 /* The GNU C library defines this for functions which it implements
8221 to always fail with ENOSYS. Some functions are actually named
8222 something starting with __ and the normal name is an alias. */
8223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8231 if { (eval echo configure
:8232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8233 eval "ac_cv_func_$ac_func=yes"
8235 echo "configure: failed program was:" >&5
8236 cat conftest.
$ac_ext >&5
8238 eval "ac_cv_func_$ac_func=no"
8243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8244 echo "$ac_t""yes" 1>&6
8245 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8246 cat >> confdefs.h
<<EOF
8247 #define $ac_tr_func 1
8251 echo "$ac_t""no" 1>&6
8260 *-lsecurity*) for ac_func
in getprpwnam
8262 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8263 echo "configure:8264: checking for $ac_func" >&5
8264 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8265 echo $ac_n "(cached) $ac_c" 1>&6
8267 cat > conftest.
$ac_ext <<EOF
8268 #line 8269 "configure"
8269 #include "confdefs.h"
8270 /* System header to define __stub macros and hopefully few prototypes,
8271 which can conflict with char $ac_func(); below. */
8273 /* Override any gcc2 internal prototype to avoid an error. */
8274 /* We use char because int might match the return type of a gcc2
8275 builtin and then its argument prototype would still apply. */
8280 /* The GNU C library defines this for functions which it implements
8281 to always fail with ENOSYS. Some functions are actually named
8282 something starting with __ and the normal name is an alias. */
8283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8291 if { (eval echo configure
:8292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8293 eval "ac_cv_func_$ac_func=yes"
8295 echo "configure: failed program was:" >&5
8296 cat conftest.
$ac_ext >&5
8298 eval "ac_cv_func_$ac_func=no"
8303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8304 echo "$ac_t""yes" 1>&6
8305 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8306 cat >> confdefs.h
<<EOF
8307 #define $ac_tr_func 1
8311 echo "$ac_t""no" 1>&6
8315 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8316 echo "configure:8317: checking for getprpwnam in -lsecurity" >&5
8317 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8318 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8319 echo $ac_n "(cached) $ac_c" 1>&6
8321 ac_save_LIBS
="$LIBS"
8322 LIBS
="-lsecurity $LIBS"
8323 cat > conftest.
$ac_ext <<EOF
8324 #line 8325 "configure"
8325 #include "confdefs.h"
8326 /* Override any gcc2 internal prototype to avoid an error. */
8327 /* We use char because int might match the return type of a gcc2
8328 builtin and then its argument prototype would still apply. */
8335 if { (eval echo configure
:8336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8337 eval "ac_cv_lib_$ac_lib_var=yes"
8339 echo "configure: failed program was:" >&5
8340 cat conftest.
$ac_ext >&5
8342 eval "ac_cv_lib_$ac_lib_var=no"
8345 LIBS
="$ac_save_LIBS"
8348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8349 echo "$ac_t""yes" 1>&6
8350 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8351 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8352 cat >> confdefs.h
<<EOF
8353 #define $ac_tr_lib 1
8356 LIBS
="-lsecurity $LIBS"
8359 echo "$ac_t""no" 1>&6
8362 for ac_func
in getprpwnam
8364 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8365 echo "configure:8366: checking for $ac_func" >&5
8366 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8367 echo $ac_n "(cached) $ac_c" 1>&6
8369 cat > conftest.
$ac_ext <<EOF
8370 #line 8371 "configure"
8371 #include "confdefs.h"
8372 /* System header to define __stub macros and hopefully few prototypes,
8373 which can conflict with char $ac_func(); below. */
8375 /* Override any gcc2 internal prototype to avoid an error. */
8376 /* We use char because int might match the return type of a gcc2
8377 builtin and then its argument prototype would still apply. */
8382 /* The GNU C library defines this for functions which it implements
8383 to always fail with ENOSYS. Some functions are actually named
8384 something starting with __ and the normal name is an alias. */
8385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8393 if { (eval echo configure
:8394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8395 eval "ac_cv_func_$ac_func=yes"
8397 echo "configure: failed program was:" >&5
8398 cat conftest.
$ac_ext >&5
8400 eval "ac_cv_func_$ac_func=no"
8405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8406 echo "$ac_t""yes" 1>&6
8407 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8408 cat >> confdefs.h
<<EOF
8409 #define $ac_tr_func 1
8413 echo "$ac_t""no" 1>&6
8421 *-lsec*) for ac_func
in getprpwnam
8423 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8424 echo "configure:8425: checking for $ac_func" >&5
8425 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8426 echo $ac_n "(cached) $ac_c" 1>&6
8428 cat > conftest.
$ac_ext <<EOF
8429 #line 8430 "configure"
8430 #include "confdefs.h"
8431 /* System header to define __stub macros and hopefully few prototypes,
8432 which can conflict with char $ac_func(); below. */
8434 /* Override any gcc2 internal prototype to avoid an error. */
8435 /* We use char because int might match the return type of a gcc2
8436 builtin and then its argument prototype would still apply. */
8441 /* The GNU C library defines this for functions which it implements
8442 to always fail with ENOSYS. Some functions are actually named
8443 something starting with __ and the normal name is an alias. */
8444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8452 if { (eval echo configure
:8453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8454 eval "ac_cv_func_$ac_func=yes"
8456 echo "configure: failed program was:" >&5
8457 cat conftest.
$ac_ext >&5
8459 eval "ac_cv_func_$ac_func=no"
8464 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8465 echo "$ac_t""yes" 1>&6
8466 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8467 cat >> confdefs.h
<<EOF
8468 #define $ac_tr_func 1
8472 echo "$ac_t""no" 1>&6
8476 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8477 echo "configure:8478: checking for getprpwnam in -lsec" >&5
8478 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8479 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8480 echo $ac_n "(cached) $ac_c" 1>&6
8482 ac_save_LIBS
="$LIBS"
8484 cat > conftest.
$ac_ext <<EOF
8485 #line 8486 "configure"
8486 #include "confdefs.h"
8487 /* Override any gcc2 internal prototype to avoid an error. */
8488 /* We use char because int might match the return type of a gcc2
8489 builtin and then its argument prototype would still apply. */
8496 if { (eval echo configure
:8497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8498 eval "ac_cv_lib_$ac_lib_var=yes"
8500 echo "configure: failed program was:" >&5
8501 cat conftest.
$ac_ext >&5
8503 eval "ac_cv_lib_$ac_lib_var=no"
8506 LIBS
="$ac_save_LIBS"
8509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8510 echo "$ac_t""yes" 1>&6
8511 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8512 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8513 cat >> confdefs.h
<<EOF
8514 #define $ac_tr_lib 1
8520 echo "$ac_t""no" 1>&6
8523 for ac_func
in getprpwnam
8525 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8526 echo "configure:8527: checking for $ac_func" >&5
8527 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8528 echo $ac_n "(cached) $ac_c" 1>&6
8530 cat > conftest.
$ac_ext <<EOF
8531 #line 8532 "configure"
8532 #include "confdefs.h"
8533 /* System header to define __stub macros and hopefully few prototypes,
8534 which can conflict with char $ac_func(); below. */
8536 /* Override any gcc2 internal prototype to avoid an error. */
8537 /* We use char because int might match the return type of a gcc2
8538 builtin and then its argument prototype would still apply. */
8543 /* The GNU C library defines this for functions which it implements
8544 to always fail with ENOSYS. Some functions are actually named
8545 something starting with __ and the normal name is an alias. */
8546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8554 if { (eval echo configure
:8555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8556 eval "ac_cv_func_$ac_func=yes"
8558 echo "configure: failed program was:" >&5
8559 cat conftest.
$ac_ext >&5
8561 eval "ac_cv_func_$ac_func=no"
8566 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8567 echo "$ac_t""yes" 1>&6
8568 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8569 cat >> confdefs.h
<<EOF
8570 #define $ac_tr_func 1
8574 echo "$ac_t""no" 1>&6
8582 # this bit needs to be modified for each OS that is suported by
8583 # smbwrapper. You need to specify how to created a shared library and
8584 # how to compile C code to produce PIC object files
8586 # these are the defaults, good for lots of systems
8592 # and these are for particular systems
8594 *linux
*) cat >> confdefs.h
<<\EOF
8598 *solaris
*) cat >> confdefs.h
<<\EOF
8604 *sunos
*) cat >> confdefs.h
<<\EOF
8610 *bsd
*) LDSHFLAGS
="-shared -Bshareable"
8612 *irix
*) cat >> confdefs.h
<<\EOF
8617 *irix6
*) cat >> confdefs.h
<<\EOF
8623 ATTEMPT_WRAP32_BUILD
=yes
8625 *aix
*) cat >> confdefs.h
<<\EOF
8629 *hpux
*) cat >> confdefs.h
<<\EOF
8634 # Use special PIC flags for the native HP-UX compiler.
8635 if test $ac_cv_prog_cc_Ae = yes; then
8640 *qnx
*) cat >> confdefs.h
<<\EOF
8644 *osf
*) cat >> confdefs.h
<<\EOF
8648 *sco
*) cat >> confdefs.h
<<\EOF
8652 *next2
*) cat >> confdefs.h
<<\EOF
8656 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
8657 set dummy
groff; ac_word
=$2
8658 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8659 echo "configure:8660: checking for $ac_word" >&5
8660 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8661 echo $ac_n "(cached) $ac_c" 1>&6
8663 if test -n "$ROFF"; then
8664 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
8666 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8668 for ac_dir
in $ac_dummy; do
8669 test -z "$ac_dir" && ac_dir
=.
8670 if test -f $ac_dir/$ac_word; then
8671 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
8678 ROFF
="$ac_cv_prog_ROFF"
8679 if test -n "$ROFF"; then
8680 echo "$ac_t""$ROFF" 1>&6
8682 echo "$ac_t""no" 1>&6
8687 *-univel-*) if test "$GCC" != yes ; then
8688 cat >> confdefs.h
<<\EOF
8689 #define HAVE_MEMSET 1
8695 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
8696 #define RELIANTUNIX 1
8702 if test "$GCC" != yes ; then
8703 cat >> confdefs.h
<<\EOF
8704 #define HAVE_MEMSET 1
8712 # try to work out how to produce PIC code with this compiler
8713 echo $ac_n "checking whether ${CC-cc} accepts -fPIC""... $ac_c" 1>&6
8714 echo "configure:8715: checking whether ${CC-cc} accepts -fPIC" >&5
8715 if eval "test \"`echo '$''{'ac_cv_prog_cc_fPIC'+set}'`\" = set"; then
8716 echo $ac_n "(cached) $ac_c" 1>&6
8718 echo 'void f(){}' > conftest.c
8719 if test -z "`${CC-cc} -fPIC -c conftest.c 2>&1`"; then
8720 ac_cv_prog_cc_fPIC
=yes
8722 ac_cv_prog_cc_fPIC
=no
8728 echo "$ac_t""$ac_cv_prog_cc_fPIC" 1>&6
8729 if test $ac_cv_prog_cc_fPIC = yes; then
8732 if test x
$PICFLAG = x
; then
8733 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8734 echo "configure:8735: checking whether ${CC-cc} accepts -KPIC" >&5
8735 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8736 echo $ac_n "(cached) $ac_c" 1>&6
8738 echo 'void f(){}' > conftest.c
8739 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8740 ac_cv_prog_cc_KPIC
=yes
8742 ac_cv_prog_cc_KPIC
=no
8748 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8749 if test $ac_cv_prog_cc_KPIC = yes; then
8753 if test x
$PICFLAG = x
; then
8754 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8755 echo "configure:8756: checking whether ${CC-cc} accepts -Kpic" >&5
8756 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8757 echo $ac_n "(cached) $ac_c" 1>&6
8759 echo 'void f(){}' > conftest.c
8760 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8761 ac_cv_prog_cc_Kpic
=yes
8763 ac_cv_prog_cc_Kpic
=no
8769 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8770 if test $ac_cv_prog_cc_Kpic = yes; then
8777 echo $ac_n "checking for long long""... $ac_c" 1>&6
8778 echo "configure:8779: checking for long long" >&5
8779 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8780 echo $ac_n "(cached) $ac_c" 1>&6
8783 if test "$cross_compiling" = yes; then
8784 samba_cv_have_longlong
=cross
8786 cat > conftest.
$ac_ext <<EOF
8787 #line 8788 "configure"
8788 #include "confdefs.h"
8790 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8792 if { (eval echo configure
:8793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8794 samba_cv_have_longlong
=yes
8796 echo "configure: failed program was:" >&5
8797 cat conftest.
$ac_ext >&5
8799 samba_cv_have_longlong
=no
8806 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8807 if test x
"$samba_cv_have_longlong" = x
"yes"; then
8808 cat >> confdefs.h
<<\EOF
8809 #define HAVE_LONGLONG 1
8815 # Check if the compiler supports the LL prefix on long long integers.
8818 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8819 echo "configure:8820: checking for LL suffix on long long integers" >&5
8820 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8821 echo $ac_n "(cached) $ac_c" 1>&6
8824 cat > conftest.
$ac_ext <<EOF
8825 #line 8826 "configure"
8826 #include "confdefs.h"
8829 long long i = 0x8000000000LL
8832 if { (eval echo configure
:8833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8834 samba_cv_compiler_supports_ll
=yes
8836 echo "configure: failed program was:" >&5
8837 cat conftest.
$ac_ext >&5
8839 samba_cv_compiler_supports_ll
=no
8844 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8845 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
8846 cat >> confdefs.h
<<\EOF
8847 #define COMPILER_SUPPORTS_LL 1
8853 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8854 echo "configure:8855: checking for 64 bit off_t" >&5
8855 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8856 echo $ac_n "(cached) $ac_c" 1>&6
8859 if test "$cross_compiling" = yes; then
8860 samba_cv_SIZEOF_OFF_T
=cross
8862 cat > conftest.
$ac_ext <<EOF
8863 #line 8864 "configure"
8864 #include "confdefs.h"
8866 #include <sys/stat.h>
8867 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8869 if { (eval echo configure
:8870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8871 samba_cv_SIZEOF_OFF_T
=yes
8873 echo "configure: failed program was:" >&5
8874 cat conftest.
$ac_ext >&5
8876 samba_cv_SIZEOF_OFF_T
=no
8883 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8884 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
8885 cat >> confdefs.h
<<\EOF
8886 #define SIZEOF_OFF_T 8
8891 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8892 echo "configure:8893: checking for off64_t" >&5
8893 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8894 echo $ac_n "(cached) $ac_c" 1>&6
8897 if test "$cross_compiling" = yes; then
8898 samba_cv_HAVE_OFF64_T
=cross
8900 cat > conftest.
$ac_ext <<EOF
8901 #line 8902 "configure"
8902 #include "confdefs.h"
8904 #if defined(HAVE_UNISTD_H)
8908 #include <sys/stat.h>
8909 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8911 if { (eval echo configure
:8912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8913 samba_cv_HAVE_OFF64_T
=yes
8915 echo "configure: failed program was:" >&5
8916 cat conftest.
$ac_ext >&5
8918 samba_cv_HAVE_OFF64_T
=no
8925 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8926 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
8927 cat >> confdefs.h
<<\EOF
8928 #define HAVE_OFF64_T 1
8933 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8934 echo "configure:8935: checking for 64 bit ino_t" >&5
8935 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8936 echo $ac_n "(cached) $ac_c" 1>&6
8939 if test "$cross_compiling" = yes; then
8940 samba_cv_SIZEOF_INO_T
=cross
8942 cat > conftest.
$ac_ext <<EOF
8943 #line 8944 "configure"
8944 #include "confdefs.h"
8946 #include <sys/stat.h>
8947 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8949 if { (eval echo configure
:8950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8951 samba_cv_SIZEOF_INO_T
=yes
8953 echo "configure: failed program was:" >&5
8954 cat conftest.
$ac_ext >&5
8956 samba_cv_SIZEOF_INO_T
=no
8963 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8964 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
8965 cat >> confdefs.h
<<\EOF
8966 #define SIZEOF_INO_T 8
8971 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8972 echo "configure:8973: checking for ino64_t" >&5
8973 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8974 echo $ac_n "(cached) $ac_c" 1>&6
8977 if test "$cross_compiling" = yes; then
8978 samba_cv_HAVE_INO64_T
=cross
8980 cat > conftest.
$ac_ext <<EOF
8981 #line 8982 "configure"
8982 #include "confdefs.h"
8984 #if defined(HAVE_UNISTD_H)
8988 #include <sys/stat.h>
8989 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8991 if { (eval echo configure
:8992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8993 samba_cv_HAVE_INO64_T
=yes
8995 echo "configure: failed program was:" >&5
8996 cat conftest.
$ac_ext >&5
8998 samba_cv_HAVE_INO64_T
=no
9005 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9006 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
9007 cat >> confdefs.h
<<\EOF
9008 #define HAVE_INO64_T 1
9013 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9014 echo "configure:9015: checking for struct dirent64" >&5
9015 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9016 echo $ac_n "(cached) $ac_c" 1>&6
9019 cat > conftest.
$ac_ext <<EOF
9020 #line 9021 "configure"
9021 #include "confdefs.h"
9023 #if defined(HAVE_UNISTD_H)
9026 #include <sys/types.h>
9032 if { (eval echo configure
:9033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9034 samba_cv_HAVE_STRUCT_DIRENT64
=yes
9036 echo "configure: failed program was:" >&5
9037 cat conftest.
$ac_ext >&5
9039 samba_cv_HAVE_STRUCT_DIRENT64
=no
9044 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9045 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes"; then
9046 cat >> confdefs.h
<<\EOF
9047 #define HAVE_STRUCT_DIRENT64 1
9052 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9053 echo "configure:9054: checking for unsigned char" >&5
9054 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9055 echo $ac_n "(cached) $ac_c" 1>&6
9058 if test "$cross_compiling" = yes; then
9059 samba_cv_HAVE_UNSIGNED_CHAR
=cross
9061 cat > conftest.
$ac_ext <<EOF
9062 #line 9063 "configure"
9063 #include "confdefs.h"
9065 main() { char c; c=250; exit((c > 0)?0:1); }
9067 if { (eval echo configure
:9068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9069 samba_cv_HAVE_UNSIGNED_CHAR
=yes
9071 echo "configure: failed program was:" >&5
9072 cat conftest.
$ac_ext >&5
9074 samba_cv_HAVE_UNSIGNED_CHAR
=no
9081 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9082 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
9083 cat >> confdefs.h
<<\EOF
9084 #define HAVE_UNSIGNED_CHAR 1
9089 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9090 echo "configure:9091: checking for sin_len in sock" >&5
9091 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9092 echo $ac_n "(cached) $ac_c" 1>&6
9095 cat > conftest.
$ac_ext <<EOF
9096 #line 9097 "configure"
9097 #include "confdefs.h"
9098 #include <sys/types.h>
9099 #include <sys/socket.h>
9100 #include <netinet/in.h>
9102 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9105 if { (eval echo configure
:9106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9107 samba_cv_HAVE_SOCK_SIN_LEN
=yes
9109 echo "configure: failed program was:" >&5
9110 cat conftest.
$ac_ext >&5
9112 samba_cv_HAVE_SOCK_SIN_LEN
=no
9117 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9118 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
9119 cat >> confdefs.h
<<\EOF
9120 #define HAVE_SOCK_SIN_LEN 1
9125 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9126 echo "configure:9127: checking whether seekdir returns void" >&5
9127 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9128 echo $ac_n "(cached) $ac_c" 1>&6
9131 cat > conftest.
$ac_ext <<EOF
9132 #line 9133 "configure"
9133 #include "confdefs.h"
9134 #include <sys/types.h>
9136 void seekdir(DIR *d, long loc) { return; }
9141 if { (eval echo configure
:9142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9143 samba_cv_SEEKDIR_RETURNS_VOID
=yes
9145 echo "configure: failed program was:" >&5
9146 cat conftest.
$ac_ext >&5
9148 samba_cv_SEEKDIR_RETURNS_VOID
=no
9153 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9154 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
9155 cat >> confdefs.h
<<\EOF
9156 #define SEEKDIR_RETURNS_VOID 1
9161 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9162 echo "configure:9163: checking for __FILE__ macro" >&5
9163 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9164 echo $ac_n "(cached) $ac_c" 1>&6
9167 cat > conftest.
$ac_ext <<EOF
9168 #line 9169 "configure"
9169 #include "confdefs.h"
9172 printf("%s\n", __FILE__);
9175 if { (eval echo configure
:9176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9177 samba_cv_HAVE_FILE_MACRO
=yes
9179 echo "configure: failed program was:" >&5
9180 cat conftest.
$ac_ext >&5
9182 samba_cv_HAVE_FILE_MACRO
=no
9187 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9188 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
9189 cat >> confdefs.h
<<\EOF
9190 #define HAVE_FILE_MACRO 1
9195 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9196 echo "configure:9197: checking for __FUNCTION__ macro" >&5
9197 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9198 echo $ac_n "(cached) $ac_c" 1>&6
9201 cat > conftest.
$ac_ext <<EOF
9202 #line 9203 "configure"
9203 #include "confdefs.h"
9206 printf("%s\n", __FUNCTION__);
9209 if { (eval echo configure
:9210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9211 samba_cv_HAVE_FUNCTION_MACRO
=yes
9213 echo "configure: failed program was:" >&5
9214 cat conftest.
$ac_ext >&5
9216 samba_cv_HAVE_FUNCTION_MACRO
=no
9221 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9222 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
9223 cat >> confdefs.h
<<\EOF
9224 #define HAVE_FUNCTION_MACRO 1
9229 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9230 echo "configure:9231: checking if gettimeofday takes tz argument" >&5
9231 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9232 echo $ac_n "(cached) $ac_c" 1>&6
9235 if test "$cross_compiling" = yes; then
9236 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
9238 cat > conftest.
$ac_ext <<EOF
9239 #line 9240 "configure"
9240 #include "confdefs.h"
9242 #include <sys/time.h>
9244 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9246 if { (eval echo configure
:9247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9248 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
9250 echo "configure: failed program was:" >&5
9251 cat conftest.
$ac_ext >&5
9253 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
9260 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9261 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
9262 cat >> confdefs.h
<<\EOF
9263 #define HAVE_GETTIMEOFDAY_TZ 1
9268 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9269 echo "configure:9270: checking for C99 vsnprintf" >&5
9270 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9271 echo $ac_n "(cached) $ac_c" 1>&6
9274 if test "$cross_compiling" = yes; then
9275 samba_cv_HAVE_C99_VSNPRINTF
=cross
9277 cat > conftest.
$ac_ext <<EOF
9278 #line 9279 "configure"
9279 #include "confdefs.h"
9281 #include <sys/types.h>
9283 void foo(const char *format, ...) {
9288 va_start(ap, format);
9289 len = vsnprintf(0, 0, format, ap);
9291 if (len != 5) exit(1);
9293 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9297 main() { foo("hello"); }
9300 if { (eval echo configure
:9301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9302 samba_cv_HAVE_C99_VSNPRINTF
=yes
9304 echo "configure: failed program was:" >&5
9305 cat conftest.
$ac_ext >&5
9307 samba_cv_HAVE_C99_VSNPRINTF
=no
9314 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9315 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
9316 cat >> confdefs.h
<<\EOF
9317 #define HAVE_C99_VSNPRINTF 1
9322 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9323 echo "configure:9324: checking for broken readdir" >&5
9324 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9325 echo $ac_n "(cached) $ac_c" 1>&6
9328 if test "$cross_compiling" = yes; then
9329 samba_cv_HAVE_BROKEN_READDIR
=cross
9331 cat > conftest.
$ac_ext <<EOF
9332 #line 9333 "configure"
9333 #include "confdefs.h"
9334 #include <sys/types.h>
9336 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9337 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9338 di->d_name[0] == 0) exit(0); exit(1);}
9340 if { (eval echo configure
:9341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9342 samba_cv_HAVE_BROKEN_READDIR
=yes
9344 echo "configure: failed program was:" >&5
9345 cat conftest.
$ac_ext >&5
9347 samba_cv_HAVE_BROKEN_READDIR
=no
9354 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9355 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
9356 cat >> confdefs.h
<<\EOF
9357 #define HAVE_BROKEN_READDIR 1
9362 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9363 echo "configure:9364: checking for utimbuf" >&5
9364 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9365 echo $ac_n "(cached) $ac_c" 1>&6
9368 cat > conftest.
$ac_ext <<EOF
9369 #line 9370 "configure"
9370 #include "confdefs.h"
9371 #include <sys/types.h>
9374 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9377 if { (eval echo configure
:9378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9379 samba_cv_HAVE_UTIMBUF
=yes
9381 echo "configure: failed program was:" >&5
9382 cat conftest.
$ac_ext >&5
9384 samba_cv_HAVE_UTIMBUF
=no
9389 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9390 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
9391 cat >> confdefs.h
<<\EOF
9392 #define HAVE_UTIMBUF 1
9398 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
9400 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9401 echo "configure:9402: checking for $ac_func" >&5
9402 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9403 echo $ac_n "(cached) $ac_c" 1>&6
9405 cat > conftest.
$ac_ext <<EOF
9406 #line 9407 "configure"
9407 #include "confdefs.h"
9408 /* System header to define __stub macros and hopefully few prototypes,
9409 which can conflict with char $ac_func(); below. */
9411 /* Override any gcc2 internal prototype to avoid an error. */
9412 /* We use char because int might match the return type of a gcc2
9413 builtin and then its argument prototype would still apply. */
9418 /* The GNU C library defines this for functions which it implements
9419 to always fail with ENOSYS. Some functions are actually named
9420 something starting with __ and the normal name is an alias. */
9421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9429 if { (eval echo configure
:9430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9431 eval "ac_cv_func_$ac_func=yes"
9433 echo "configure: failed program was:" >&5
9434 cat conftest.
$ac_ext >&5
9436 eval "ac_cv_func_$ac_func=no"
9441 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9442 echo "$ac_t""yes" 1>&6
9443 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9444 cat >> confdefs.h
<<EOF
9445 #define $ac_tr_func 1
9449 echo "$ac_t""no" 1>&6
9454 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9455 echo "configure:9456: checking for ut_name in utmp" >&5
9456 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9457 echo $ac_n "(cached) $ac_c" 1>&6
9460 cat > conftest.
$ac_ext <<EOF
9461 #line 9462 "configure"
9462 #include "confdefs.h"
9463 #include <sys/types.h>
9466 struct utmp ut; ut.ut_name[0] = 'a';
9469 if { (eval echo configure
:9470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9471 samba_cv_HAVE_UT_UT_NAME
=yes
9473 echo "configure: failed program was:" >&5
9474 cat conftest.
$ac_ext >&5
9476 samba_cv_HAVE_UT_UT_NAME
=no
9481 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9482 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
9483 cat >> confdefs.h
<<\EOF
9484 #define HAVE_UT_UT_NAME 1
9489 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9490 echo "configure:9491: checking for ut_user in utmp" >&5
9491 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9492 echo $ac_n "(cached) $ac_c" 1>&6
9495 cat > conftest.
$ac_ext <<EOF
9496 #line 9497 "configure"
9497 #include "confdefs.h"
9498 #include <sys/types.h>
9501 struct utmp ut; ut.ut_user[0] = 'a';
9504 if { (eval echo configure
:9505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9506 samba_cv_HAVE_UT_UT_USER
=yes
9508 echo "configure: failed program was:" >&5
9509 cat conftest.
$ac_ext >&5
9511 samba_cv_HAVE_UT_UT_USER
=no
9516 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9517 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
9518 cat >> confdefs.h
<<\EOF
9519 #define HAVE_UT_UT_USER 1
9524 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9525 echo "configure:9526: checking for ut_id in utmp" >&5
9526 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9527 echo $ac_n "(cached) $ac_c" 1>&6
9530 cat > conftest.
$ac_ext <<EOF
9531 #line 9532 "configure"
9532 #include "confdefs.h"
9533 #include <sys/types.h>
9536 struct utmp ut; ut.ut_id[0] = 'a';
9539 if { (eval echo configure
:9540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9541 samba_cv_HAVE_UT_UT_ID
=yes
9543 echo "configure: failed program was:" >&5
9544 cat conftest.
$ac_ext >&5
9546 samba_cv_HAVE_UT_UT_ID
=no
9551 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9552 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
9553 cat >> confdefs.h
<<\EOF
9554 #define HAVE_UT_UT_ID 1
9559 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9560 echo "configure:9561: checking for ut_host in utmp" >&5
9561 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9562 echo $ac_n "(cached) $ac_c" 1>&6
9565 cat > conftest.
$ac_ext <<EOF
9566 #line 9567 "configure"
9567 #include "confdefs.h"
9568 #include <sys/types.h>
9571 struct utmp ut; ut.ut_host[0] = 'a';
9574 if { (eval echo configure
:9575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9576 samba_cv_HAVE_UT_UT_HOST
=yes
9578 echo "configure: failed program was:" >&5
9579 cat conftest.
$ac_ext >&5
9581 samba_cv_HAVE_UT_UT_HOST
=no
9586 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9587 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
9588 cat >> confdefs.h
<<\EOF
9589 #define HAVE_UT_UT_HOST 1
9594 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9595 echo "configure:9596: checking for ut_time in utmp" >&5
9596 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9597 echo $ac_n "(cached) $ac_c" 1>&6
9600 cat > conftest.
$ac_ext <<EOF
9601 #line 9602 "configure"
9602 #include "confdefs.h"
9603 #include <sys/types.h>
9606 struct utmp ut; time_t t; ut.ut_time = t;
9609 if { (eval echo configure
:9610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9611 samba_cv_HAVE_UT_UT_TIME
=yes
9613 echo "configure: failed program was:" >&5
9614 cat conftest.
$ac_ext >&5
9616 samba_cv_HAVE_UT_UT_TIME
=no
9621 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9622 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
9623 cat >> confdefs.h
<<\EOF
9624 #define HAVE_UT_UT_TIME 1
9629 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9630 echo "configure:9631: checking for ut_tv in utmp" >&5
9631 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9632 echo $ac_n "(cached) $ac_c" 1>&6
9635 cat > conftest.
$ac_ext <<EOF
9636 #line 9637 "configure"
9637 #include "confdefs.h"
9638 #include <sys/types.h>
9641 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9644 if { (eval echo configure
:9645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9646 samba_cv_HAVE_UT_UT_TV
=yes
9648 echo "configure: failed program was:" >&5
9649 cat conftest.
$ac_ext >&5
9651 samba_cv_HAVE_UT_UT_TV
=no
9656 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9657 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
9658 cat >> confdefs.h
<<\EOF
9659 #define HAVE_UT_UT_TV 1
9664 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9665 echo "configure:9666: checking for ut_type in utmp" >&5
9666 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9667 echo $ac_n "(cached) $ac_c" 1>&6
9670 cat > conftest.
$ac_ext <<EOF
9671 #line 9672 "configure"
9672 #include "confdefs.h"
9673 #include <sys/types.h>
9676 struct utmp ut; ut.ut_type = 0;
9679 if { (eval echo configure
:9680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9681 samba_cv_HAVE_UT_UT_TYPE
=yes
9683 echo "configure: failed program was:" >&5
9684 cat conftest.
$ac_ext >&5
9686 samba_cv_HAVE_UT_UT_TYPE
=no
9691 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9692 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
9693 cat >> confdefs.h
<<\EOF
9694 #define HAVE_UT_UT_TYPE 1
9699 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9700 echo "configure:9701: checking for ut_pid in utmp" >&5
9701 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9702 echo $ac_n "(cached) $ac_c" 1>&6
9705 cat > conftest.
$ac_ext <<EOF
9706 #line 9707 "configure"
9707 #include "confdefs.h"
9708 #include <sys/types.h>
9711 struct utmp ut; ut.ut_pid = 0;
9714 if { (eval echo configure
:9715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9716 samba_cv_HAVE_UT_UT_PID
=yes
9718 echo "configure: failed program was:" >&5
9719 cat conftest.
$ac_ext >&5
9721 samba_cv_HAVE_UT_UT_PID
=no
9726 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9727 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
9728 cat >> confdefs.h
<<\EOF
9729 #define HAVE_UT_UT_PID 1
9734 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9735 echo "configure:9736: checking for ut_exit in utmp" >&5
9736 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9737 echo $ac_n "(cached) $ac_c" 1>&6
9740 cat > conftest.
$ac_ext <<EOF
9741 #line 9742 "configure"
9742 #include "confdefs.h"
9743 #include <sys/types.h>
9746 struct utmp ut; ut.ut_exit.e_exit = 0;
9749 if { (eval echo configure
:9750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9751 samba_cv_HAVE_UT_UT_EXIT
=yes
9753 echo "configure: failed program was:" >&5
9754 cat conftest.
$ac_ext >&5
9756 samba_cv_HAVE_UT_UT_EXIT
=no
9761 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9762 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
9763 cat >> confdefs.h
<<\EOF
9764 #define HAVE_UT_UT_EXIT 1
9769 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9770 echo "configure:9771: checking for ut_addr in utmp" >&5
9771 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9772 echo $ac_n "(cached) $ac_c" 1>&6
9775 cat > conftest.
$ac_ext <<EOF
9776 #line 9777 "configure"
9777 #include "confdefs.h"
9778 #include <sys/types.h>
9781 struct utmp ut; ut.ut_addr = 0;
9784 if { (eval echo configure
:9785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9786 samba_cv_HAVE_UT_UT_ADDR
=yes
9788 echo "configure: failed program was:" >&5
9789 cat conftest.
$ac_ext >&5
9791 samba_cv_HAVE_UT_UT_ADDR
=no
9796 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9797 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
9798 cat >> confdefs.h
<<\EOF
9799 #define HAVE_UT_UT_ADDR 1
9804 if test x
$ac_cv_func_pututline = xyes
; then
9805 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9806 echo "configure:9807: checking whether pututline returns pointer" >&5
9807 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9808 echo $ac_n "(cached) $ac_c" 1>&6
9811 cat > conftest.
$ac_ext <<EOF
9812 #line 9813 "configure"
9813 #include "confdefs.h"
9814 #include <sys/types.h>
9817 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9820 if { (eval echo configure
:9821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9822 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
9824 echo "configure: failed program was:" >&5
9825 cat conftest.
$ac_ext >&5
9827 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
9832 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9833 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
9834 cat >> confdefs.h
<<\EOF
9835 #define PUTUTLINE_RETURNS_UTMP 1
9841 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9842 echo "configure:9843: checking for ut_syslen in utmpx" >&5
9843 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9844 echo $ac_n "(cached) $ac_c" 1>&6
9847 cat > conftest.
$ac_ext <<EOF
9848 #line 9849 "configure"
9849 #include "confdefs.h"
9850 #include <sys/types.h>
9853 struct utmpx ux; ux.ut_syslen = 0;
9856 if { (eval echo configure
:9857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9858 samba_cv_HAVE_UX_UT_SYSLEN
=yes
9860 echo "configure: failed program was:" >&5
9861 cat conftest.
$ac_ext >&5
9863 samba_cv_HAVE_UX_UT_SYSLEN
=no
9868 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9869 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
9870 cat >> confdefs.h
<<\EOF
9871 #define HAVE_UX_UT_SYSLEN 1
9876 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9877 echo "configure:9878: checking for Linux kernel oplocks" >&5
9878 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9879 echo $ac_n "(cached) $ac_c" 1>&6
9882 if test "$cross_compiling" = yes; then
9883 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
9885 cat > conftest.
$ac_ext <<EOF
9886 #line 9887 "configure"
9887 #include "confdefs.h"
9889 #include <sys/types.h>
9892 #define F_GETLEASE 1025
9895 int fd = open("/dev/null", O_RDONLY);
9896 return fcntl(fd, F_GETLEASE, 0) == -1;
9900 if { (eval echo configure
:9901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9902 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
9904 echo "configure: failed program was:" >&5
9905 cat conftest.
$ac_ext >&5
9907 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
9914 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9915 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
9916 cat >> confdefs.h
<<\EOF
9917 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9922 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9923 echo "configure:9924: checking for kernel change notify support" >&5
9924 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9925 echo $ac_n "(cached) $ac_c" 1>&6
9928 if test "$cross_compiling" = yes; then
9929 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
9931 cat > conftest.
$ac_ext <<EOF
9932 #line 9933 "configure"
9933 #include "confdefs.h"
9935 #include <sys/types.h>
9939 #define F_NOTIFY 1026
9942 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9946 if { (eval echo configure
:9947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9948 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
9950 echo "configure: failed program was:" >&5
9951 cat conftest.
$ac_ext >&5
9953 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
9960 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9961 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
9962 cat >> confdefs.h
<<\EOF
9963 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9968 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9969 echo "configure:9970: checking for kernel share modes" >&5
9970 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9971 echo $ac_n "(cached) $ac_c" 1>&6
9974 if test "$cross_compiling" = yes; then
9975 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
9977 cat > conftest.
$ac_ext <<EOF
9978 #line 9979 "configure"
9979 #include "confdefs.h"
9981 #include <sys/types.h>
9984 #include <sys/file.h>
9986 #define LOCK_MAND 32
9987 #define LOCK_READ 64
9990 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9994 if { (eval echo configure
:9995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9996 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
9998 echo "configure: failed program was:" >&5
9999 cat conftest.
$ac_ext >&5
10001 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
10008 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10009 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
10010 cat >> confdefs.h
<<\EOF
10011 #define HAVE_KERNEL_SHARE_MODES 1
10019 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10020 echo "configure:10021: checking for IRIX kernel oplock type definitions" >&5
10021 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10022 echo $ac_n "(cached) $ac_c" 1>&6
10025 cat > conftest.
$ac_ext <<EOF
10026 #line 10027 "configure"
10027 #include "confdefs.h"
10028 #include <sys/types.h>
10031 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10034 if { (eval echo configure
:10035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10036 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
10038 echo "configure: failed program was:" >&5
10039 cat conftest.
$ac_ext >&5
10041 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
10046 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10047 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
10048 cat >> confdefs.h
<<\EOF
10049 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10054 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10055 echo "configure:10056: checking for irix specific capabilities" >&5
10056 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10057 echo $ac_n "(cached) $ac_c" 1>&6
10060 if test "$cross_compiling" = yes; then
10061 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
10063 cat > conftest.
$ac_ext <<EOF
10064 #line 10065 "configure"
10065 #include "confdefs.h"
10066 #include <sys/types.h>
10067 #include <sys/capability.h>
10070 if ((cap = cap_get_proc()) == NULL)
10072 cap->cap_effective |= CAP_NETWORK_MGT;
10073 cap->cap_inheritable |= CAP_NETWORK_MGT;
10079 if { (eval echo configure
:10080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10081 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
10083 echo "configure: failed program was:" >&5
10084 cat conftest.
$ac_ext >&5
10086 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
10093 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10094 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
10095 cat >> confdefs.h
<<\EOF
10096 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10102 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10103 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10106 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10107 echo "configure:10108: checking for int16 typedef included by rpc/rpc.h" >&5
10108 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+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 #if defined(HAVE_RPC_RPC_H)
10117 #include <rpc/rpc.h>
10123 if { (eval echo configure
:10124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10125 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
10127 echo "configure: failed program was:" >&5
10128 cat conftest.
$ac_ext >&5
10130 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
10135 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10136 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
10137 cat >> confdefs.h
<<\EOF
10138 #define HAVE_INT16_FROM_RPC_RPC_H 1
10143 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10144 echo "configure:10145: checking for uint16 typedef included by rpc/rpc.h" >&5
10145 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10146 echo $ac_n "(cached) $ac_c" 1>&6
10149 cat > conftest.
$ac_ext <<EOF
10150 #line 10151 "configure"
10151 #include "confdefs.h"
10152 #include <sys/types.h>
10153 #if defined(HAVE_RPC_RPC_H)
10154 #include <rpc/rpc.h>
10160 if { (eval echo configure
:10161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10162 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
10164 echo "configure: failed program was:" >&5
10165 cat conftest.
$ac_ext >&5
10167 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
10172 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10173 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
10174 cat >> confdefs.h
<<\EOF
10175 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10180 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10181 echo "configure:10182: checking for int32 typedef included by rpc/rpc.h" >&5
10182 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10183 echo $ac_n "(cached) $ac_c" 1>&6
10186 cat > conftest.
$ac_ext <<EOF
10187 #line 10188 "configure"
10188 #include "confdefs.h"
10189 #include <sys/types.h>
10190 #if defined(HAVE_RPC_RPC_H)
10191 #include <rpc/rpc.h>
10197 if { (eval echo configure
:10198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10199 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
10201 echo "configure: failed program was:" >&5
10202 cat conftest.
$ac_ext >&5
10204 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
10209 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10210 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
10211 cat >> confdefs.h
<<\EOF
10212 #define HAVE_INT32_FROM_RPC_RPC_H 1
10217 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10218 echo "configure:10219: checking for uint32 typedef included by rpc/rpc.h" >&5
10219 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10220 echo $ac_n "(cached) $ac_c" 1>&6
10223 cat > conftest.
$ac_ext <<EOF
10224 #line 10225 "configure"
10225 #include "confdefs.h"
10226 #include <sys/types.h>
10227 #if defined(HAVE_RPC_RPC_H)
10228 #include <rpc/rpc.h>
10234 if { (eval echo configure
:10235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10236 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
10238 echo "configure: failed program was:" >&5
10239 cat conftest.
$ac_ext >&5
10241 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
10246 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10247 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
10248 cat >> confdefs.h
<<\EOF
10249 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10255 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10256 echo "configure:10257: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10257 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10258 echo $ac_n "(cached) $ac_c" 1>&6
10261 cat > conftest.
$ac_ext <<EOF
10262 #line 10263 "configure"
10263 #include "confdefs.h"
10264 #include <sys/types.h>
10265 #ifdef HAVE_SYS_SECURITY_H
10266 #include <sys/security.h>
10268 #endif /* HAVE_SYS_SECURITY_H */
10269 #if defined(HAVE_RPC_RPC_H)
10270 #include <rpc/rpc.h>
10276 if { (eval echo configure
:10277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10278 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
10280 echo "configure: failed program was:" >&5
10281 cat conftest.
$ac_ext >&5
10283 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
10288 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10289 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
10290 cat >> confdefs.h
<<\EOF
10291 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10296 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10297 echo "configure:10298: checking for test routines" >&5
10298 if test "$cross_compiling" = yes; then
10299 echo "configure: warning: cannot run when cross-compiling" 1>&2
10301 cat > conftest.
$ac_ext <<EOF
10302 #line 10303 "configure"
10303 #include "confdefs.h"
10304 #include "${srcdir-.}/tests/trivial.c"
10306 if { (eval echo configure
:10307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10308 echo "$ac_t""yes" 1>&6
10310 echo "configure: failed program was:" >&5
10311 cat conftest.
$ac_ext >&5
10313 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10319 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10320 echo "configure:10321: checking for ftruncate extend" >&5
10321 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10322 echo $ac_n "(cached) $ac_c" 1>&6
10325 if test "$cross_compiling" = yes; then
10326 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
10328 cat > conftest.
$ac_ext <<EOF
10329 #line 10330 "configure"
10330 #include "confdefs.h"
10331 #include "${srcdir-.}/tests/ftruncate.c"
10333 if { (eval echo configure
:10334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10335 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
10337 echo "configure: failed program was:" >&5
10338 cat conftest.
$ac_ext >&5
10340 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
10347 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10348 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
10349 cat >> confdefs.h
<<\EOF
10350 #define HAVE_FTRUNCATE_EXTEND 1
10355 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10356 echo "configure:10357: checking for broken getgroups" >&5
10357 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10358 echo $ac_n "(cached) $ac_c" 1>&6
10361 if test "$cross_compiling" = yes; then
10362 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
10364 cat > conftest.
$ac_ext <<EOF
10365 #line 10366 "configure"
10366 #include "confdefs.h"
10367 #include "${srcdir-.}/tests/getgroups.c"
10369 if { (eval echo configure
:10370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10371 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
10373 echo "configure: failed program was:" >&5
10374 cat conftest.
$ac_ext >&5
10376 samba_cv_HAVE_BROKEN_GETGROUPS
=no
10383 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10384 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
10385 cat >> confdefs.h
<<\EOF
10386 #define HAVE_BROKEN_GETGROUPS 1
10391 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10392 echo "configure:10393: checking whether getpass should be replaced" >&5
10393 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10394 echo $ac_n "(cached) $ac_c" 1>&6
10397 SAVE_CPPFLAGS
="$CPPFLAGS"
10398 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10399 cat > conftest.
$ac_ext <<EOF
10400 #line 10401 "configure"
10401 #include "confdefs.h"
10403 #define REPLACE_GETPASS 1
10404 #define NO_CONFIG_H 1
10405 #define main dont_declare_main
10406 #include "${srcdir-.}/lib/getsmbpass.c"
10413 if { (eval echo configure
:10414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10415 samba_cv_REPLACE_GETPASS
=yes
10417 echo "configure: failed program was:" >&5
10418 cat conftest.
$ac_ext >&5
10420 samba_cv_REPLACE_GETPASS
=no
10423 CPPFLAGS
="$SAVE_CPPFLAGS"
10427 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10428 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
10429 cat >> confdefs.h
<<\EOF
10430 #define REPLACE_GETPASS 1
10435 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10436 echo "configure:10437: checking for broken inet_ntoa" >&5
10437 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10438 echo $ac_n "(cached) $ac_c" 1>&6
10441 if test "$cross_compiling" = yes; then
10442 samba_cv_REPLACE_INET_NTOA
=cross
10444 cat > conftest.
$ac_ext <<EOF
10445 #line 10446 "configure"
10446 #include "confdefs.h"
10449 #include <sys/types.h>
10450 #include <netinet/in.h>
10451 #ifdef HAVE_ARPA_INET_H
10452 #include <arpa/inet.h>
10454 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10455 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10456 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10459 if { (eval echo configure
:10460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10461 samba_cv_REPLACE_INET_NTOA
=yes
10463 echo "configure: failed program was:" >&5
10464 cat conftest.
$ac_ext >&5
10466 samba_cv_REPLACE_INET_NTOA
=no
10473 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10474 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
10475 cat >> confdefs.h
<<\EOF
10476 #define REPLACE_INET_NTOA 1
10481 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10482 echo "configure:10483: checking for secure mkstemp" >&5
10483 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10484 echo $ac_n "(cached) $ac_c" 1>&6
10487 if test "$cross_compiling" = yes; then
10488 samba_cv_HAVE_SECURE_MKSTEMP
=cross
10490 cat > conftest.
$ac_ext <<EOF
10491 #line 10492 "configure"
10492 #include "confdefs.h"
10493 #include <stdlib.h>
10494 #include <sys/types.h>
10495 #include <sys/stat.h>
10496 #include <unistd.h>
10499 char tpl[20]="/tmp/test.XXXXXX";
10500 int fd = mkstemp(tpl);
10501 if (fd == -1) exit(1);
10503 if (fstat(fd, &st) != 0) exit(1);
10504 if ((st.st_mode & 0777) != 0600) exit(1);
10508 if { (eval echo configure
:10509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10510 samba_cv_HAVE_SECURE_MKSTEMP
=yes
10512 echo "configure: failed program was:" >&5
10513 cat conftest.
$ac_ext >&5
10515 samba_cv_HAVE_SECURE_MKSTEMP
=no
10522 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10523 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
10524 cat >> confdefs.h
<<\EOF
10525 #define HAVE_SECURE_MKSTEMP 1
10530 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10531 echo "configure:10532: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10532 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10533 echo $ac_n "(cached) $ac_c" 1>&6
10536 if test "$cross_compiling" = yes; then
10537 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
10539 cat > conftest.
$ac_ext <<EOF
10540 #line 10541 "configure"
10541 #include "confdefs.h"
10542 #include <unistd.h>
10543 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10545 if { (eval echo configure
:10546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10547 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
10549 echo "configure: failed program was:" >&5
10550 cat conftest.
$ac_ext >&5
10552 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
10559 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10560 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
10561 cat >> confdefs.h
<<\EOF
10562 #define SYSCONF_SC_NGROUPS_MAX 1
10567 echo $ac_n "checking for root""... $ac_c" 1>&6
10568 echo "configure:10569: checking for root" >&5
10569 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10570 echo $ac_n "(cached) $ac_c" 1>&6
10573 if test "$cross_compiling" = yes; then
10574 samba_cv_HAVE_ROOT
=cross
10576 cat > conftest.
$ac_ext <<EOF
10577 #line 10578 "configure"
10578 #include "confdefs.h"
10579 main() { exit(getuid() != 0); }
10581 if { (eval echo configure
:10582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10583 samba_cv_HAVE_ROOT
=yes
10585 echo "configure: failed program was:" >&5
10586 cat conftest.
$ac_ext >&5
10588 samba_cv_HAVE_ROOT
=no
10595 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10596 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
10597 cat >> confdefs.h
<<\EOF
10598 #define HAVE_ROOT 1
10602 echo "configure: warning: running as non-root will disable some tests" 1>&2
10606 # look for a method of finding the list of network interfaces
10608 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10609 echo "configure:10610: checking for iface AIX" >&5
10610 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10611 echo $ac_n "(cached) $ac_c" 1>&6
10614 if test "$cross_compiling" = yes; then
10615 samba_cv_HAVE_IFACE_AIX
=cross
10617 cat > conftest.
$ac_ext <<EOF
10618 #line 10619 "configure"
10619 #include "confdefs.h"
10621 #define HAVE_IFACE_AIX 1
10622 #define AUTOCONF_TEST 1
10623 #include "confdefs.h"
10624 #include "${srcdir-.}/lib/interfaces.c"
10626 if { (eval echo configure
:10627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10628 samba_cv_HAVE_IFACE_AIX
=yes
10630 echo "configure: failed program was:" >&5
10631 cat conftest.
$ac_ext >&5
10633 samba_cv_HAVE_IFACE_AIX
=no
10640 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10641 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
10642 iface
=yes;cat >> confdefs.h
<<\EOF
10643 #define HAVE_IFACE_AIX 1
10648 if test $iface = no
; then
10649 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10650 echo "configure:10651: checking for iface ifconf" >&5
10651 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10652 echo $ac_n "(cached) $ac_c" 1>&6
10655 if test "$cross_compiling" = yes; then
10656 samba_cv_HAVE_IFACE_IFCONF
=cross
10658 cat > conftest.
$ac_ext <<EOF
10659 #line 10660 "configure"
10660 #include "confdefs.h"
10662 #define HAVE_IFACE_IFCONF 1
10663 #define AUTOCONF_TEST 1
10664 #include "confdefs.h"
10665 #include "${srcdir-.}/lib/interfaces.c"
10667 if { (eval echo configure
:10668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10669 samba_cv_HAVE_IFACE_IFCONF
=yes
10671 echo "configure: failed program was:" >&5
10672 cat conftest.
$ac_ext >&5
10674 samba_cv_HAVE_IFACE_IFCONF
=no
10681 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10682 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
10683 iface
=yes;cat >> confdefs.h
<<\EOF
10684 #define HAVE_IFACE_IFCONF 1
10690 if test $iface = no
; then
10691 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10692 echo "configure:10693: checking for iface ifreq" >&5
10693 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10694 echo $ac_n "(cached) $ac_c" 1>&6
10697 if test "$cross_compiling" = yes; then
10698 samba_cv_HAVE_IFACE_IFREQ
=cross
10700 cat > conftest.
$ac_ext <<EOF
10701 #line 10702 "configure"
10702 #include "confdefs.h"
10704 #define HAVE_IFACE_IFREQ 1
10705 #define AUTOCONF_TEST 1
10706 #include "confdefs.h"
10707 #include "${srcdir-.}/lib/interfaces.c"
10709 if { (eval echo configure
:10710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10711 samba_cv_HAVE_IFACE_IFREQ
=yes
10713 echo "configure: failed program was:" >&5
10714 cat conftest.
$ac_ext >&5
10716 samba_cv_HAVE_IFACE_IFREQ
=no
10723 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10724 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
10725 iface
=yes;cat >> confdefs.h
<<\EOF
10726 #define HAVE_IFACE_IFREQ 1
10733 ################################################
10734 # look for a method of setting the effective uid
10736 if test $seteuid = no
; then
10737 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10738 echo "configure:10739: checking for setresuid" >&5
10739 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10740 echo $ac_n "(cached) $ac_c" 1>&6
10743 if test "$cross_compiling" = yes; then
10744 samba_cv_USE_SETRESUID
=cross
10746 cat > conftest.
$ac_ext <<EOF
10747 #line 10748 "configure"
10748 #include "confdefs.h"
10750 #define AUTOCONF_TEST 1
10751 #define USE_SETRESUID 1
10752 #include "confdefs.h"
10753 #include "${srcdir-.}/lib/util_sec.c"
10755 if { (eval echo configure
:10756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10757 samba_cv_USE_SETRESUID
=yes
10759 echo "configure: failed program was:" >&5
10760 cat conftest.
$ac_ext >&5
10762 samba_cv_USE_SETRESUID
=no
10769 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10770 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
10771 seteuid
=yes;cat >> confdefs.h
<<\EOF
10772 #define USE_SETRESUID 1
10779 if test $seteuid = no
; then
10780 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10781 echo "configure:10782: checking for setreuid" >&5
10782 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10783 echo $ac_n "(cached) $ac_c" 1>&6
10786 if test "$cross_compiling" = yes; then
10787 samba_cv_USE_SETREUID
=cross
10789 cat > conftest.
$ac_ext <<EOF
10790 #line 10791 "configure"
10791 #include "confdefs.h"
10793 #define AUTOCONF_TEST 1
10794 #define USE_SETREUID 1
10795 #include "confdefs.h"
10796 #include "${srcdir-.}/lib/util_sec.c"
10798 if { (eval echo configure
:10799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10800 samba_cv_USE_SETREUID
=yes
10802 echo "configure: failed program was:" >&5
10803 cat conftest.
$ac_ext >&5
10805 samba_cv_USE_SETREUID
=no
10812 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10813 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
10814 seteuid
=yes;cat >> confdefs.h
<<\EOF
10815 #define USE_SETREUID 1
10821 if test $seteuid = no
; then
10822 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10823 echo "configure:10824: checking for seteuid" >&5
10824 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10825 echo $ac_n "(cached) $ac_c" 1>&6
10828 if test "$cross_compiling" = yes; then
10829 samba_cv_USE_SETEUID
=cross
10831 cat > conftest.
$ac_ext <<EOF
10832 #line 10833 "configure"
10833 #include "confdefs.h"
10835 #define AUTOCONF_TEST 1
10836 #define USE_SETEUID 1
10837 #include "confdefs.h"
10838 #include "${srcdir-.}/lib/util_sec.c"
10840 if { (eval echo configure
:10841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10842 samba_cv_USE_SETEUID
=yes
10844 echo "configure: failed program was:" >&5
10845 cat conftest.
$ac_ext >&5
10847 samba_cv_USE_SETEUID
=no
10854 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10855 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
10856 seteuid
=yes;cat >> confdefs.h
<<\EOF
10857 #define USE_SETEUID 1
10863 if test $seteuid = no
; then
10864 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10865 echo "configure:10866: checking for setuidx" >&5
10866 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10867 echo $ac_n "(cached) $ac_c" 1>&6
10870 if test "$cross_compiling" = yes; then
10871 samba_cv_USE_SETUIDX
=cross
10873 cat > conftest.
$ac_ext <<EOF
10874 #line 10875 "configure"
10875 #include "confdefs.h"
10877 #define AUTOCONF_TEST 1
10878 #define USE_SETUIDX 1
10879 #include "confdefs.h"
10880 #include "${srcdir-.}/lib/util_sec.c"
10882 if { (eval echo configure
:10883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10884 samba_cv_USE_SETUIDX
=yes
10886 echo "configure: failed program was:" >&5
10887 cat conftest.
$ac_ext >&5
10889 samba_cv_USE_SETUIDX
=no
10896 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10897 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
10898 seteuid
=yes;cat >> confdefs.h
<<\EOF
10899 #define USE_SETUIDX 1
10906 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10907 echo "configure:10908: checking for working mmap" >&5
10908 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10909 echo $ac_n "(cached) $ac_c" 1>&6
10912 if test "$cross_compiling" = yes; then
10913 samba_cv_HAVE_MMAP
=cross
10915 cat > conftest.
$ac_ext <<EOF
10916 #line 10917 "configure"
10917 #include "confdefs.h"
10918 #include "${srcdir-.}/tests/shared_mmap.c"
10920 if { (eval echo configure
:10921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10922 samba_cv_HAVE_MMAP
=yes
10924 echo "configure: failed program was:" >&5
10925 cat conftest.
$ac_ext >&5
10927 samba_cv_HAVE_MMAP
=no
10934 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10935 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
10936 cat >> confdefs.h
<<\EOF
10937 #define HAVE_MMAP 1
10942 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10943 echo "configure:10944: checking for ftruncate needs root" >&5
10944 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10945 echo $ac_n "(cached) $ac_c" 1>&6
10948 if test "$cross_compiling" = yes; then
10949 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
10951 cat > conftest.
$ac_ext <<EOF
10952 #line 10953 "configure"
10953 #include "confdefs.h"
10954 #include "${srcdir-.}/tests/ftruncroot.c"
10956 if { (eval echo configure
:10957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10958 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
10960 echo "configure: failed program was:" >&5
10961 cat conftest.
$ac_ext >&5
10963 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
10970 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10971 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
10972 cat >> confdefs.h
<<\EOF
10973 #define FTRUNCATE_NEEDS_ROOT 1
10978 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10979 echo "configure:10980: checking for fcntl locking" >&5
10980 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10981 echo $ac_n "(cached) $ac_c" 1>&6
10984 if test "$cross_compiling" = yes; then
10985 samba_cv_HAVE_FCNTL_LOCK
=cross
10987 cat > conftest.
$ac_ext <<EOF
10988 #line 10989 "configure"
10989 #include "confdefs.h"
10990 #include "${srcdir-.}/tests/fcntl_lock.c"
10992 if { (eval echo configure
:10993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10994 samba_cv_HAVE_FCNTL_LOCK
=yes
10996 echo "configure: failed program was:" >&5
10997 cat conftest.
$ac_ext >&5
10999 samba_cv_HAVE_FCNTL_LOCK
=no
11006 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11007 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
11008 cat >> confdefs.h
<<\EOF
11009 #define HAVE_FCNTL_LOCK 1
11014 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11015 echo "configure:11016: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11016 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11017 echo $ac_n "(cached) $ac_c" 1>&6
11020 if test "$cross_compiling" = yes; then
11021 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
11023 cat > conftest.
$ac_ext <<EOF
11024 #line 11025 "configure"
11025 #include "confdefs.h"
11026 #include "${srcdir-.}/tests/fcntl_lock64.c"
11028 if { (eval echo configure
:11029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11030 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
11032 echo "configure: failed program was:" >&5
11033 cat conftest.
$ac_ext >&5
11035 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
11042 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11043 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
11044 cat >> confdefs.h
<<\EOF
11045 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11052 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11053 echo "configure:11054: checking for 64 bit fcntl locking" >&5
11054 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11055 echo $ac_n "(cached) $ac_c" 1>&6
11058 if test "$cross_compiling" = yes; then
11059 samba_cv_HAVE_STRUCT_FLOCK64
=cross
11061 cat > conftest.
$ac_ext <<EOF
11062 #line 11063 "configure"
11063 #include "confdefs.h"
11065 #if defined(HAVE_UNISTD_H)
11066 #include <unistd.h>
11069 #include <stdlib.h>
11071 #ifdef HAVE_FCNTL_H
11075 #ifdef HAVE_SYS_FCNTL_H
11076 #include <sys/fcntl.h>
11078 main() { struct flock64 fl64;
11079 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11086 if { (eval echo configure
:11087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11088 samba_cv_HAVE_STRUCT_FLOCK64
=yes
11090 echo "configure: failed program was:" >&5
11091 cat conftest.
$ac_ext >&5
11093 samba_cv_HAVE_STRUCT_FLOCK64
=no
11100 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11102 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
11103 cat >> confdefs.h
<<\EOF
11104 #define HAVE_STRUCT_FLOCK64 1
11110 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
11111 echo "configure:11112: checking for a crypt that needs truncated salt" >&5
11112 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
11113 echo $ac_n "(cached) $ac_c" 1>&6
11116 if test "$cross_compiling" = yes; then
11117 samba_cv_HAVE_TRUNCATED_SALT
=cross
11119 cat > conftest.
$ac_ext <<EOF
11120 #line 11121 "configure"
11121 #include "confdefs.h"
11122 #include "${srcdir-.}/tests/crypttest.c"
11124 if { (eval echo configure
:11125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11126 samba_cv_HAVE_TRUNCATED_SALT
=no
11128 echo "configure: failed program was:" >&5
11129 cat conftest.
$ac_ext >&5
11131 samba_cv_HAVE_TRUNCATED_SALT
=yes
11138 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
11139 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
11140 cat >> confdefs.h
<<\EOF
11141 #define HAVE_TRUNCATED_SALT 1
11146 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11147 echo "configure:11148: checking for broken nisplus include files" >&5
11148 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11149 echo $ac_n "(cached) $ac_c" 1>&6
11152 cat > conftest.
$ac_ext <<EOF
11153 #line 11154 "configure"
11154 #include "confdefs.h"
11155 #include <sys/acl.h>
11156 #if defined(HAVE_RPCSVC_NIS_H)
11157 #include <rpcsvc/nis.h>
11163 if { (eval echo configure
:11164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11165 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
11167 echo "configure: failed program was:" >&5
11168 cat conftest.
$ac_ext >&5
11170 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
11175 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11176 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
11177 cat >> confdefs.h
<<\EOF
11178 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11184 #################################################
11185 # check for smbwrapper support
11186 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11187 echo "configure:11188: checking whether to use smbwrapper" >&5
11188 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11189 if test "${with_smbwrapper+set}" = set; then
11190 withval
="$with_smbwrapper"
11193 echo "$ac_t""yes" 1>&6
11194 cat >> confdefs.h
<<\EOF
11195 #define WITH_SMBWRAPPER 1
11198 WRAP
="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11200 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
11203 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
11206 # Conditions under which smbwrapper should not be built.
11208 if test x
$PICFLAG = x
; then
11209 echo No support
for PIC code
- disabling smbwrapper and smbsh
11212 elif test x
$ac_cv_func_syscall = xno
; then
11213 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11219 echo "$ac_t""no" 1>&6
11223 echo "$ac_t""no" 1>&6
11228 #################################################
11229 # check for the AFS filesystem
11230 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11231 echo "configure:11232: checking whether to use AFS" >&5
11232 # Check whether --with-afs or --without-afs was given.
11233 if test "${with_afs+set}" = set; then
11234 withval
="$with_afs"
11237 echo "$ac_t""yes" 1>&6
11238 cat >> confdefs.h
<<\EOF
11244 echo "$ac_t""no" 1>&6
11248 echo "$ac_t""no" 1>&6
11254 #################################################
11255 # check for the DFS auth system
11256 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
11257 echo "configure:11258: checking whether to use DFS auth" >&5
11258 # Check whether --with-dfs or --without-dfs was given.
11259 if test "${with_dfs+set}" = set; then
11260 withval
="$with_dfs"
11263 echo "$ac_t""yes" 1>&6
11264 cat >> confdefs.h
<<\EOF
11270 echo "$ac_t""no" 1>&6
11274 echo "$ac_t""no" 1>&6
11279 #################################################
11280 # check for Kerberos IV auth system
11281 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11282 echo "configure:11283: checking whether to use Kerberos IV" >&5
11283 # Check whether --with-krb4 or --without-krb4 was given.
11284 if test "${with_krb4+set}" = set; then
11285 withval
="$with_krb4"
11286 echo "$ac_t""yes" 1>&6
11287 cat >> confdefs.h
<<\EOF
11288 #define KRB4_AUTH 1
11291 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11292 echo "configure:11293: checking for dn_expand in -lresolv" >&5
11293 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11294 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11295 echo $ac_n "(cached) $ac_c" 1>&6
11297 ac_save_LIBS
="$LIBS"
11298 LIBS
="-lresolv $LIBS"
11299 cat > conftest.
$ac_ext <<EOF
11300 #line 11301 "configure"
11301 #include "confdefs.h"
11302 /* Override any gcc2 internal prototype to avoid an error. */
11303 /* We use char because int might match the return type of a gcc2
11304 builtin and then its argument prototype would still apply. */
11311 if { (eval echo configure
:11312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11313 eval "ac_cv_lib_$ac_lib_var=yes"
11315 echo "configure: failed program was:" >&5
11316 cat conftest.
$ac_ext >&5
11318 eval "ac_cv_lib_$ac_lib_var=no"
11321 LIBS
="$ac_save_LIBS"
11324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11325 echo "$ac_t""yes" 1>&6
11326 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11327 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11328 cat >> confdefs.h
<<EOF
11329 #define $ac_tr_lib 1
11332 LIBS
="-lresolv $LIBS"
11335 echo "$ac_t""no" 1>&6
11338 LIBS
="$LIBS -lkrb -ldes"
11339 CFLAGS
="$CFLAGS -I$withval/include"
11340 LDFLAGS
="$LDFLAGS -L$withval/lib"
11342 echo "$ac_t""no" 1>&6
11347 #################################################
11348 # check for Kerberos 5 auth system
11349 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11350 echo "configure:11351: checking whether to use Kerberos 5" >&5
11351 # Check whether --with-krb5 or --without-krb5 was given.
11352 if test "${with_krb5+set}" = set; then
11353 withval
="$with_krb5"
11354 echo "$ac_t""yes" 1>&6
11355 cat >> confdefs.h
<<\EOF
11356 #define KRB5_AUTH 1
11359 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11360 CFLAGS
="$CFLAGS -I$withval/include"
11361 LDFLAGS
="$LDFLAGS -L$withval/lib"
11363 echo "$ac_t""no" 1>&6
11368 #################################################
11369 # check for automount support
11370 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11371 echo "configure:11372: checking whether to use AUTOMOUNT" >&5
11372 # Check whether --with-automount or --without-automount was given.
11373 if test "${with_automount+set}" = set; then
11374 withval
="$with_automount"
11377 echo "$ac_t""yes" 1>&6
11378 cat >> confdefs.h
<<\EOF
11379 #define WITH_AUTOMOUNT 1
11384 echo "$ac_t""no" 1>&6
11388 echo "$ac_t""no" 1>&6
11393 #################################################
11394 # check for smbmount support
11395 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11396 echo "configure:11397: checking whether to use SMBMOUNT" >&5
11397 # Check whether --with-smbmount or --without-smbmount was given.
11398 if test "${with_smbmount+set}" = set; then
11399 withval
="$with_smbmount"
11402 echo "$ac_t""yes" 1>&6
11403 cat >> confdefs.h
<<\EOF
11404 #define WITH_SMBMOUNT 1
11407 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
11410 echo "$ac_t""no" 1>&6
11415 echo "$ac_t""no" 1>&6
11422 #################################################
11423 # check for a PAM password database
11424 with_pam_for_crypt
=no
11425 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11426 echo "configure:11427: checking whether to use PAM password database" >&5
11427 # Check whether --with-pam or --without-pam was given.
11428 if test "${with_pam+set}" = set; then
11429 withval
="$with_pam"
11432 echo "$ac_t""yes" 1>&6
11433 cat >> confdefs.h
<<\EOF
11438 with_pam_for_crypt
=yes
11441 echo "$ac_t""no" 1>&6
11445 echo "$ac_t""no" 1>&6
11450 # we can't build a pam module if we don't have pam.
11451 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11452 echo "configure:11453: checking for pam_get_data in -lpam" >&5
11453 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11454 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11455 echo $ac_n "(cached) $ac_c" 1>&6
11457 ac_save_LIBS
="$LIBS"
11459 cat > conftest.
$ac_ext <<EOF
11460 #line 11461 "configure"
11461 #include "confdefs.h"
11462 /* Override any gcc2 internal prototype to avoid an error. */
11463 /* We use char because int might match the return type of a gcc2
11464 builtin and then its argument prototype would still apply. */
11465 char pam_get_data();
11471 if { (eval echo configure
:11472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11473 eval "ac_cv_lib_$ac_lib_var=yes"
11475 echo "configure: failed program was:" >&5
11476 cat conftest.
$ac_ext >&5
11478 eval "ac_cv_lib_$ac_lib_var=no"
11481 LIBS
="$ac_save_LIBS"
11484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11485 echo "$ac_t""yes" 1>&6
11486 cat >> confdefs.h
<<\EOF
11487 #define HAVE_LIBPAM 1
11491 echo "$ac_t""no" 1>&6
11495 #################################################
11496 # check for pam_smbpass support
11497 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11498 echo "configure:11499: checking whether to use pam_smbpass" >&5
11499 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11500 if test "${with_pam_smbpass+set}" = set; then
11501 withval
="$with_pam_smbpass"
11504 echo "$ac_t""yes" 1>&6
11506 # Conditions under which pam_smbpass should not be built.
11508 if test x
$PICFLAG = x
; then
11509 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11511 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
11512 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11515 cat >> confdefs.h
<<\EOF
11516 #define WITH_PAM_SMBPASS 1
11519 PAM_MOD
="bin/pam_smbpass.so"
11523 echo "$ac_t""no" 1>&6
11527 echo "$ac_t""no" 1>&6
11533 ###############################################
11534 # test for where we get crypt() from, but only
11536 if test $with_pam_for_crypt = no
; then
11537 for ac_func
in crypt
11539 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11540 echo "configure:11541: checking for $ac_func" >&5
11541 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11542 echo $ac_n "(cached) $ac_c" 1>&6
11544 cat > conftest.
$ac_ext <<EOF
11545 #line 11546 "configure"
11546 #include "confdefs.h"
11547 /* System header to define __stub macros and hopefully few prototypes,
11548 which can conflict with char $ac_func(); below. */
11549 #include <assert.h>
11550 /* Override any gcc2 internal prototype to avoid an error. */
11551 /* We use char because int might match the return type of a gcc2
11552 builtin and then its argument prototype would still apply. */
11557 /* The GNU C library defines this for functions which it implements
11558 to always fail with ENOSYS. Some functions are actually named
11559 something starting with __ and the normal name is an alias. */
11560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11568 if { (eval echo configure
:11569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11570 eval "ac_cv_func_$ac_func=yes"
11572 echo "configure: failed program was:" >&5
11573 cat conftest.
$ac_ext >&5
11575 eval "ac_cv_func_$ac_func=no"
11580 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11581 echo "$ac_t""yes" 1>&6
11582 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11583 cat >> confdefs.h
<<EOF
11584 #define $ac_tr_func 1
11588 echo "$ac_t""no" 1>&6
11592 if test x
"$ac_cv_func_crypt" = x
"no"; then
11593 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11594 echo "configure:11595: checking for crypt in -lcrypt" >&5
11595 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11596 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11597 echo $ac_n "(cached) $ac_c" 1>&6
11599 ac_save_LIBS
="$LIBS"
11600 LIBS
="-lcrypt $LIBS"
11601 cat > conftest.
$ac_ext <<EOF
11602 #line 11603 "configure"
11603 #include "confdefs.h"
11604 /* Override any gcc2 internal prototype to avoid an error. */
11605 /* We use char because int might match the return type of a gcc2
11606 builtin and then its argument prototype would still apply. */
11613 if { (eval echo configure
:11614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11615 eval "ac_cv_lib_$ac_lib_var=yes"
11617 echo "configure: failed program was:" >&5
11618 cat conftest.
$ac_ext >&5
11620 eval "ac_cv_lib_$ac_lib_var=no"
11623 LIBS
="$ac_save_LIBS"
11626 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11627 echo "$ac_t""yes" 1>&6
11628 LIBS
="$LIBS -lcrypt";
11629 cat >> confdefs.h
<<\EOF
11630 #define HAVE_CRYPT 1
11634 echo "$ac_t""no" 1>&6
11641 #################################################
11642 # check for a TDB password database
11643 echo $ac_n "checking whether to use TDB password database""... $ac_c" 1>&6
11644 echo "configure:11645: checking whether to use TDB password database" >&5
11645 # Check whether --with-tdbsam or --without-tdbsam was given.
11646 if test "${with_tdbsam+set}" = set; then
11647 withval
="$with_tdbsam"
11650 echo "$ac_t""yes" 1>&6
11651 cat >> confdefs.h
<<\EOF
11652 #define WITH_TDBPWD 1
11655 # AC_MSG_ERROR([TDB password database not supported in this version.])
11658 echo "$ac_t""no" 1>&6
11662 echo "$ac_t""no" 1>&6
11667 #################################################
11668 # check for a LDAP password database
11669 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
11670 echo "configure:11671: checking whether to use LDAP password database" >&5
11671 # Check whether --with-ldap or --without-ldap was given.
11672 if test "${with_ldap+set}" = set; then
11673 withval
="$with_ldap"
11676 echo "$ac_t""yes" 1>&6
11677 cat >> confdefs.h
<<\EOF
11678 #define WITH_LDAP 1
11681 { echo "configure: error: LDAP password database not supported in this version." 1>&2; exit 1; }
11684 echo "$ac_t""no" 1>&6
11688 echo "$ac_t""no" 1>&6
11693 #################################################
11694 # check for a NISPLUS password database
11695 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
11696 echo "configure:11697: checking whether to use NISPLUS password database" >&5
11697 # Check whether --with-nisplus or --without-nisplus was given.
11698 if test "${with_nisplus+set}" = set; then
11699 withval
="$with_nisplus"
11702 echo "$ac_t""yes" 1>&6
11703 cat >> confdefs.h
<<\EOF
11704 #define WITH_NISPLUS 1
11709 echo "$ac_t""no" 1>&6
11713 echo "$ac_t""no" 1>&6
11718 #################################################
11719 # check for a NISPLUS_HOME support
11720 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11721 echo "configure:11722: checking whether to use NISPLUS_HOME" >&5
11722 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11723 if test "${with_nisplus_home+set}" = set; then
11724 withval
="$with_nisplus_home"
11727 echo "$ac_t""yes" 1>&6
11728 cat >> confdefs.h
<<\EOF
11729 #define WITH_NISPLUS_HOME 1
11734 echo "$ac_t""no" 1>&6
11738 echo "$ac_t""no" 1>&6
11743 #################################################
11744 # check for the secure socket layer
11745 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11746 echo "configure:11747: checking whether to use SSL" >&5
11747 # Check whether --with-ssl or --without-ssl was given.
11748 if test "${with_ssl+set}" = set; then
11749 withval
="$with_ssl"
11752 echo "$ac_t""yes" 1>&6
11753 cat >> confdefs.h
<<\EOF
11757 withval
="/usr/local/ssl" # default
11759 if test "${with_sslinc+set}" = set; then
11761 withval
="$with_sslinc"
11764 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11765 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
11766 LIBS
="-lssl -lcrypto $LIBS"
11767 LDFLAGS
="=L/usr/local/ssl/lib $LDFLAGS"
11770 CFLAGS
="-I${withval}/include $CFLAGS"
11771 LIBS
="-lssl -lcrypto $LIBS"
11772 LDFLAGS
="-L${withval}/lib $LDFLAGS"
11778 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
11779 LIBS
="-lssl -lcrypto $LIBS"
11780 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
11784 if test ! -d ${withval}; then
11785 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11789 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11793 echo "$ac_t""no" 1>&6
11797 echo "$ac_t""no" 1>&6
11802 #################################################
11803 # check for syslog logging
11804 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11805 echo "configure:11806: checking whether to use syslog logging" >&5
11806 # Check whether --with-syslog or --without-syslog was given.
11807 if test "${with_syslog+set}" = set; then
11808 withval
="$with_syslog"
11811 echo "$ac_t""yes" 1>&6
11812 cat >> confdefs.h
<<\EOF
11813 #define WITH_SYSLOG 1
11818 echo "$ac_t""no" 1>&6
11822 echo "$ac_t""no" 1>&6
11827 #################################################
11828 # check for a shared memory profiling support
11829 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11830 echo "configure:11831: checking whether to use profiling" >&5
11831 # Check whether --with-profile or --without-profile was given.
11832 if test "${with_profile+set}" = set; then
11833 withval
="$with_profile"
11836 echo "$ac_t""yes" 1>&6
11837 cat >> confdefs.h
<<\EOF
11838 #define WITH_PROFILE 1
11843 echo "$ac_t""no" 1>&6
11847 echo "$ac_t""no" 1>&6
11853 #################################################
11854 # check for experimental netatalk resource fork support
11855 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
11856 echo "configure:11857: checking whether to support netatalk" >&5
11857 # Check whether --with-netatalk or --without-netatalk was given.
11858 if test "${with_netatalk+set}" = set; then
11859 withval
="$with_netatalk"
11862 echo "$ac_t""yes" 1>&6
11863 cat >> confdefs.h
<<\EOF
11864 #define WITH_NETATALK 1
11869 echo "$ac_t""no" 1>&6
11873 echo "$ac_t""no" 1>&6
11878 #################################################
11879 # check for experimental disk-quotas support
11880 QUOTAOBJS
=smbd
/noquotas.o
11882 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11883 echo "configure:11884: checking whether to support disk-quotas" >&5
11884 # Check whether --with-quotas or --without-quotas was given.
11885 if test "${with_quotas+set}" = set; then
11886 withval
="$with_quotas"
11889 echo "$ac_t""yes" 1>&6
11890 QUOTAOBJS
=smbd
/quotas.o
11893 echo "$ac_t""no" 1>&6
11897 echo "$ac_t""no" 1>&6
11903 #################################################
11904 # check for experimental utmp accounting
11906 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11907 echo "configure:11908: checking whether to support utmp accounting" >&5
11908 # Check whether --with-utmp or --without-utmp was given.
11909 if test "${with_utmp+set}" = set; then
11910 withval
="$with_utmp"
11913 echo "$ac_t""yes" 1>&6
11914 cat >> confdefs.h
<<\EOF
11915 #define WITH_UTMP 1
11920 echo "$ac_t""no" 1>&6
11924 echo "$ac_t""no" 1>&6
11929 #################################################
11930 # check for MS Dfs support
11932 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11933 echo "configure:11934: checking whether to support Microsoft Dfs" >&5
11934 # Check whether --with-msdfs or --without-msdfs was given.
11935 if test "${with_msdfs+set}" = set; then
11936 withval
="$with_msdfs"
11939 echo "$ac_t""yes" 1>&6
11940 cat >> confdefs.h
<<\EOF
11941 #define WITH_MSDFS 1
11946 echo "$ac_t""no" 1>&6
11950 echo "$ac_t""no" 1>&6
11955 #################################################
11956 # set private directory location
11957 # Check whether --with-privatedir or --without-privatedir was given.
11958 if test "${with_privatedir+set}" = set; then
11959 withval
="$with_privatedir"
11963 # Just in case anybody calls it without argument
11965 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
11966 privatedir
='${prefix}/private'
11969 privatedir
="$withval"
11974 privatedir
='${prefix}/private'
11980 #################################################
11981 # set lock directory location
11982 # Check whether --with-lockdir or --without-lockdir was given.
11983 if test "${with_lockdir+set}" = set; then
11984 withval
="$with_lockdir"
11988 # Just in case anybody calls it without argument
11990 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
11991 lockdir
='$(VARDIR)/locks'
11999 lockdir
='$(VARDIR)/locks'
12005 #################################################
12006 # set SWAT directory location
12007 # Check whether --with-swatdir or --without-swatdir was given.
12008 if test "${with_swatdir+set}" = set; then
12009 withval
="$with_swatdir"
12013 # Just in case anybody does it
12015 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
12016 swatdir
='${prefix}/swat'
12024 swatdir
='${prefix}/swat'
12030 #################################################
12031 # these tests are taken from the GNU fileutils package
12032 echo "checking how to get filesystem space usage" 1>&6
12033 echo "configure:12034: checking how to get filesystem space usage" >&5
12036 # Test for statvfs64.
12037 if test $space = no
; then
12039 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12040 echo "configure:12041: checking statvfs64 function (SVR4)" >&5
12041 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12042 echo $ac_n "(cached) $ac_c" 1>&6
12044 if test "$cross_compiling" = yes; then
12045 fu_cv_sys_stat_statvfs64
=cross
12047 cat > conftest.
$ac_ext <<EOF
12048 #line 12049 "configure"
12049 #include "confdefs.h"
12051 #if defined(HAVE_UNISTD_H)
12052 #include <unistd.h>
12054 #include <sys/types.h>
12055 #include <sys/statvfs.h>
12058 struct statvfs64 fsd;
12059 exit (statvfs64 (".", &fsd));
12062 if { (eval echo configure
:12063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12064 fu_cv_sys_stat_statvfs64
=yes
12066 echo "configure: failed program was:" >&5
12067 cat conftest.
$ac_ext >&5
12069 fu_cv_sys_stat_statvfs64
=no
12076 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12077 if test $fu_cv_sys_stat_statvfs64 = yes; then
12079 cat >> confdefs.h
<<\EOF
12080 #define STAT_STATVFS64 1
12086 # Perform only the link test since it seems there are no variants of the
12087 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12088 # because that got a false positive on SCO OSR5. Adding the declaration
12089 # of a `struct statvfs' causes this test to fail (as it should) on such
12090 # systems. That system is reported to work fine with STAT_STATFS4 which
12091 # is what it gets when this test fails.
12092 if test $space = no
; then
12094 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12095 echo "configure:12096: checking statvfs function (SVR4)" >&5
12096 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12097 echo $ac_n "(cached) $ac_c" 1>&6
12099 cat > conftest.
$ac_ext <<EOF
12100 #line 12101 "configure"
12101 #include "confdefs.h"
12102 #include <sys/types.h>
12103 #include <sys/statvfs.h>
12105 struct statvfs fsd; statvfs (0, &fsd);
12108 if { (eval echo configure
:12109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12110 fu_cv_sys_stat_statvfs
=yes
12112 echo "configure: failed program was:" >&5
12113 cat conftest.
$ac_ext >&5
12115 fu_cv_sys_stat_statvfs
=no
12120 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12121 if test $fu_cv_sys_stat_statvfs = yes; then
12123 cat >> confdefs.h
<<\EOF
12124 #define STAT_STATVFS 1
12130 if test $space = no
; then
12131 # DEC Alpha running OSF/1
12132 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12133 echo "configure:12134: checking for 3-argument statfs function (DEC OSF/1)" >&5
12134 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12135 echo $ac_n "(cached) $ac_c" 1>&6
12137 if test "$cross_compiling" = yes; then
12138 fu_cv_sys_stat_statfs3_osf1
=no
12140 cat > conftest.
$ac_ext <<EOF
12141 #line 12142 "configure"
12142 #include "confdefs.h"
12144 #include <sys/param.h>
12145 #include <sys/types.h>
12146 #include <sys/mount.h>
12151 exit (statfs (".", &fsd, sizeof (struct statfs)));
12154 if { (eval echo configure
:12155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12156 fu_cv_sys_stat_statfs3_osf1
=yes
12158 echo "configure: failed program was:" >&5
12159 cat conftest.
$ac_ext >&5
12161 fu_cv_sys_stat_statfs3_osf1
=no
12168 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12169 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12171 cat >> confdefs.h
<<\EOF
12172 #define STAT_STATFS3_OSF1 1
12178 if test $space = no
; then
12180 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12181 echo "configure:12182: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12182 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12183 echo $ac_n "(cached) $ac_c" 1>&6
12185 if test "$cross_compiling" = yes; then
12186 fu_cv_sys_stat_statfs2_bsize
=no
12188 cat > conftest.
$ac_ext <<EOF
12189 #line 12190 "configure"
12190 #include "confdefs.h"
12192 #ifdef HAVE_SYS_PARAM_H
12193 #include <sys/param.h>
12195 #ifdef HAVE_SYS_MOUNT_H
12196 #include <sys/mount.h>
12198 #ifdef HAVE_SYS_VFS_H
12199 #include <sys/vfs.h>
12205 exit (statfs (".", &fsd));
12208 if { (eval echo configure
:12209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12210 fu_cv_sys_stat_statfs2_bsize
=yes
12212 echo "configure: failed program was:" >&5
12213 cat conftest.
$ac_ext >&5
12215 fu_cv_sys_stat_statfs2_bsize
=no
12222 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12223 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12225 cat >> confdefs.h
<<\EOF
12226 #define STAT_STATFS2_BSIZE 1
12232 if test $space = no
; then
12234 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12235 echo "configure:12236: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12236 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12237 echo $ac_n "(cached) $ac_c" 1>&6
12239 if test "$cross_compiling" = yes; then
12240 fu_cv_sys_stat_statfs4
=no
12242 cat > conftest.
$ac_ext <<EOF
12243 #line 12244 "configure"
12244 #include "confdefs.h"
12245 #include <sys/types.h>
12246 #include <sys/statfs.h>
12250 exit (statfs (".", &fsd, sizeof fsd, 0));
12253 if { (eval echo configure
:12254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12255 fu_cv_sys_stat_statfs4
=yes
12257 echo "configure: failed program was:" >&5
12258 cat conftest.
$ac_ext >&5
12260 fu_cv_sys_stat_statfs4
=no
12267 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12268 if test $fu_cv_sys_stat_statfs4 = yes; then
12270 cat >> confdefs.h
<<\EOF
12271 #define STAT_STATFS4 1
12277 if test $space = no
; then
12278 # 4.4BSD and NetBSD
12279 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12280 echo "configure:12281: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12281 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12282 echo $ac_n "(cached) $ac_c" 1>&6
12284 if test "$cross_compiling" = yes; then
12285 fu_cv_sys_stat_statfs2_fsize
=no
12287 cat > conftest.
$ac_ext <<EOF
12288 #line 12289 "configure"
12289 #include "confdefs.h"
12290 #include <sys/types.h>
12291 #ifdef HAVE_SYS_PARAM_H
12292 #include <sys/param.h>
12294 #ifdef HAVE_SYS_MOUNT_H
12295 #include <sys/mount.h>
12301 exit (statfs (".", &fsd));
12304 if { (eval echo configure
:12305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12306 fu_cv_sys_stat_statfs2_fsize
=yes
12308 echo "configure: failed program was:" >&5
12309 cat conftest.
$ac_ext >&5
12311 fu_cv_sys_stat_statfs2_fsize
=no
12318 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12319 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12321 cat >> confdefs.h
<<\EOF
12322 #define STAT_STATFS2_FSIZE 1
12328 if test $space = no
; then
12330 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12331 echo "configure:12332: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12332 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12333 echo $ac_n "(cached) $ac_c" 1>&6
12335 if test "$cross_compiling" = yes; then
12336 fu_cv_sys_stat_fs_data
=no
12338 cat > conftest.
$ac_ext <<EOF
12339 #line 12340 "configure"
12340 #include "confdefs.h"
12341 #include <sys/types.h>
12342 #ifdef HAVE_SYS_PARAM_H
12343 #include <sys/param.h>
12345 #ifdef HAVE_SYS_MOUNT_H
12346 #include <sys/mount.h>
12348 #ifdef HAVE_SYS_FS_TYPES_H
12349 #include <sys/fs_types.h>
12353 struct fs_data fsd;
12354 /* Ultrix's statfs returns 1 for success,
12355 0 for not mounted, -1 for failure. */
12356 exit (statfs (".", &fsd) != 1);
12359 if { (eval echo configure
:12360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12361 fu_cv_sys_stat_fs_data
=yes
12363 echo "configure: failed program was:" >&5
12364 cat conftest.
$ac_ext >&5
12366 fu_cv_sys_stat_fs_data
=no
12373 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12374 if test $fu_cv_sys_stat_fs_data = yes; then
12376 cat >> confdefs.h
<<\EOF
12377 #define STAT_STATFS2_FS_DATA 1
12384 # As a gating factor for large file support, in order to
12385 # use <4GB files we must have the following minimal support
12387 # long long, and a 64 bit off_t or off64_t.
12388 # If we don't have all of these then disable large
12391 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12392 echo "configure:12393: checking if large file support can be enabled" >&5
12393 cat > conftest.
$ac_ext <<EOF
12394 #line 12395 "configure"
12395 #include "confdefs.h"
12397 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12398 #include <sys/types.h>
12407 if { (eval echo configure
:12408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12409 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
12411 echo "configure: failed program was:" >&5
12412 cat conftest.
$ac_ext >&5
12414 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
12417 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
12418 cat >> confdefs.h
<<\EOF
12419 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12423 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
12425 # Check whether --with-spinlocks or --without-spinlocks was given.
12426 if test "${with_spinlocks+set}" = set; then
12427 withval
="$with_spinlocks"
12431 if test "x$with_spinlocks" = "xyes"; then
12432 cat >> confdefs.h
<<\EOF
12433 #define USE_SPINLOCKS 1
12437 case "$host_cpu" in
12439 cat >> confdefs.h
<<\EOF
12440 #define SPARC_SPINLOCKS 1
12445 i386|i486|i586|i686
)
12446 cat >> confdefs.h
<<\EOF
12447 #define INTEL_SPINLOCKS 1
12453 cat >> confdefs.h
<<\EOF
12454 #define MIPS_SPINLOCKS 1
12460 cat >> confdefs.h
<<\EOF
12461 #define POWERPC_SPINLOCKS 1
12468 #################################################
12469 # check for ACL support
12471 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12472 echo "configure:12473: checking whether to support ACLs" >&5
12473 # Check whether --with-acl-support or --without-acl-support was given.
12474 if test "${with_acl_support+set}" = set; then
12475 withval
="$with_acl_support"
12481 echo "$ac_t""Using UnixWare ACLs" 1>&6
12482 cat >> confdefs.h
<<\EOF
12483 #define HAVE_UNIXWARE_ACLS 1
12488 echo "$ac_t""Using solaris ACLs" 1>&6
12489 cat >> confdefs.h
<<\EOF
12490 #define HAVE_SOLARIS_ACLS 1
12495 echo "$ac_t""Using IRIX ACLs" 1>&6
12496 cat >> confdefs.h
<<\EOF
12497 #define HAVE_IRIX_ACLS 1
12502 echo "$ac_t""Using AIX ACLs" 1>&6
12503 cat >> confdefs.h
<<\EOF
12504 #define HAVE_AIX_ACLS 1
12509 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12510 echo "configure:12511: checking for acl_get_file in -lacl" >&5
12511 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12513 echo $ac_n "(cached) $ac_c" 1>&6
12515 ac_save_LIBS
="$LIBS"
12517 cat > conftest.
$ac_ext <<EOF
12518 #line 12519 "configure"
12519 #include "confdefs.h"
12520 /* Override any gcc2 internal prototype to avoid an error. */
12521 /* We use char because int might match the return type of a gcc2
12522 builtin and then its argument prototype would still apply. */
12523 char acl_get_file();
12529 if { (eval echo configure
:12530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12531 eval "ac_cv_lib_$ac_lib_var=yes"
12533 echo "configure: failed program was:" >&5
12534 cat conftest.
$ac_ext >&5
12536 eval "ac_cv_lib_$ac_lib_var=no"
12539 LIBS
="$ac_save_LIBS"
12542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12543 echo "$ac_t""yes" 1>&6
12544 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12545 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12546 cat >> confdefs.h
<<EOF
12547 #define $ac_tr_lib 1
12553 echo "$ac_t""no" 1>&6
12556 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12557 echo "configure:12558: checking for ACL support" >&5
12558 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12559 echo $ac_n "(cached) $ac_c" 1>&6
12562 cat > conftest.
$ac_ext <<EOF
12563 #line 12564 "configure"
12564 #include "confdefs.h"
12565 #include <sys/types.h>
12566 #include <sys/acl.h>
12568 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12571 if { (eval echo configure
:12572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12573 samba_cv_HAVE_POSIX_ACLS
=yes
12575 echo "configure: failed program was:" >&5
12576 cat conftest.
$ac_ext >&5
12578 samba_cv_HAVE_POSIX_ACLS
=no
12583 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12584 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
12585 echo "$ac_t""Using posix ACLs" 1>&6
12586 cat >> confdefs.h
<<\EOF
12587 #define HAVE_POSIX_ACLS 1
12590 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12591 echo "configure:12592: checking for acl_get_perm_np" >&5
12592 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12593 echo $ac_n "(cached) $ac_c" 1>&6
12596 cat > conftest.
$ac_ext <<EOF
12597 #line 12598 "configure"
12598 #include "confdefs.h"
12599 #include <sys/types.h>
12600 #include <sys/acl.h>
12602 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12605 if { (eval echo configure
:12606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12607 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
12609 echo "configure: failed program was:" >&5
12610 cat conftest.
$ac_ext >&5
12612 samba_cv_HAVE_ACL_GET_PERM_NP
=no
12617 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12618 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
12619 cat >> confdefs.h
<<\EOF
12620 #define HAVE_ACL_GET_PERM_NP 1
12625 echo $ac_n "checking for XFS ACL support""... $ac_c" 1>&6
12626 echo "configure:12627: checking for XFS ACL support" >&5
12627 if eval "test \"`echo '$''{'samba_cv_HAVE_XFS_ACLS'+set}'`\" = set"; then
12628 echo $ac_n "(cached) $ac_c" 1>&6
12631 cat > conftest.
$ac_ext <<EOF
12632 #line 12633 "configure"
12633 #include "confdefs.h"
12634 #include <sys/types.h>
12635 #include <acl/acl.h>
12637 char test_str[13] = SGI_ACL_FILE;
12640 if { (eval echo configure
:12641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12642 samba_cv_HAVE_XFS_ACLS
=yes
12644 echo "configure: failed program was:" >&5
12645 cat conftest.
$ac_ext >&5
12647 samba_cv_XFS_POSIX_ACLS
=no
12652 echo "$ac_t""$samba_cv_HAVE_XFS_ACLS" 1>&6
12653 if test x
"$samba_cv_HAVE_XFS_ACLS" = x
"yes"; then
12654 echo "$ac_t""Using XFS ACLs" 1>&6
12655 cat >> confdefs.h
<<\EOF
12656 #define HAVE_XFS_ACLS 1
12664 echo "$ac_t""no" 1>&6
12665 cat >> confdefs.h
<<\EOF
12666 #define HAVE_NO_ACLS 1
12672 cat >> confdefs.h
<<\EOF
12673 #define HAVE_NO_ACLS 1
12676 echo "$ac_t""no" 1>&6
12681 #################################################
12682 # check whether winbind is supported on this platform
12684 echo $ac_n "checking whether to compile winbind""... $ac_c" 1>&6
12685 echo "configure:12686: checking whether to compile winbind" >&5
12689 WINBIND_TARGETS
="$WINBIND_TARGETS \$(WINBIND_PROGS)"
12692 winbind_no_reason
=", unsupported on $host_os"
12696 # Check whether --with-winbind or --without-winbind was given.
12697 if test "${with_winbind+set}" = set; then
12698 withval
="$with_winbind"
12709 if test x
"$WINBIND_TARGETS" = x
; then
12710 echo "$ac_t""no$winbind_no_reason" 1>&6
12712 echo "$ac_t""yes" 1>&6
12717 #################################################
12718 # final configure stuff
12720 echo "checking configure summary"
12721 if test "$cross_compiling" = yes; then
12724 cat > conftest.
$ac_ext <<EOF
12725 #line 12726 "configure"
12726 #include "confdefs.h"
12727 #include "${srcdir-.}/tests/summary.c"
12729 if { (eval echo configure
:12730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12731 echo "configure OK";
12733 echo "configure: failed program was:" >&5
12734 cat conftest.
$ac_ext >&5
12736 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12746 cat > confcache
<<\EOF
12747 # This file is a shell script that caches the results of configure
12748 # tests run on this system so they can be shared between configure
12749 # scripts and configure runs. It is not useful on other systems.
12750 # If it contains results you don't want to keep, you may remove or edit it.
12752 # By default, configure uses ./config.cache as the cache file,
12753 # creating it if it does not exist already. You can give configure
12754 # the --cache-file=FILE option to use a different cache file; that is
12755 # what configure does when it calls configure scripts in
12756 # subdirectories, so they share the cache.
12757 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12758 # config.status only pays attention to the cache file if you give it the
12759 # --recheck option to rerun configure.
12762 # The following way of writing the cache mishandles newlines in values,
12763 # but we know of no workaround that is simple, portable, and efficient.
12764 # So, don't put newlines in cache variables' values.
12765 # Ultrix sh set writes to stderr and can't be redirected directly,
12766 # and sets the high bit in the cache file unless we assign to the vars.
12768 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12770 # `set' does not quote correctly, so add quotes (double-quote substitution
12771 # turns \\\\ into \\, and sed turns \\ into \).
12773 -e "s/'/'\\\\''/g" \
12774 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12777 # `set' quotes correctly as required by POSIX, so do not add quotes.
12778 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12781 if cmp -s $cache_file confcache
; then
12784 if test -w $cache_file; then
12785 echo "updating cache $cache_file"
12786 cat confcache
> $cache_file
12788 echo "not updating unwritable cache $cache_file"
12793 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12795 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12796 # Let make expand exec_prefix.
12797 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12799 # Any assignment to VPATH causes Sun make to only execute
12800 # the first set of double-colon rules, so remove it if not needed.
12801 # If there is a colon in the path, we need to keep it.
12802 if test "x$srcdir" = x.
; then
12803 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
12806 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12808 DEFS
=-DHAVE_CONFIG_H
12810 # Without the "./", some shells look in PATH for config.status.
12811 : ${CONFIG_STATUS=./config.status}
12813 echo creating
$CONFIG_STATUS
12814 rm -f $CONFIG_STATUS
12815 cat > $CONFIG_STATUS <<EOF
12817 # Generated automatically by configure.
12818 # Run this file to recreate the current configuration.
12819 # This directory was configured as follows,
12820 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12822 # $0 $ac_configure_args
12824 # Compiler output produced by configure, useful for debugging
12825 # configure, is in ./config.log if it exists.
12827 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12830 case "\$ac_option" in
12831 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12832 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12833 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12834 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12835 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12837 -help | --help | --hel | --he | --h)
12838 echo "\$ac_cs_usage"; exit 0 ;;
12839 *) echo "\$ac_cs_usage"; exit 1 ;;
12843 ac_given_srcdir=$srcdir
12844 ac_given_INSTALL="$INSTALL"
12846 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12848 cat >> $CONFIG_STATUS <<EOF
12850 # Protect against being on the right side of a sed subst in config.status.
12851 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12852 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12856 s%@CFLAGS@%$CFLAGS%g
12857 s%@CPPFLAGS@%$CPPFLAGS%g
12858 s%@CXXFLAGS@%$CXXFLAGS%g
12859 s%@FFLAGS@%$FFLAGS%g
12861 s%@LDFLAGS@%$LDFLAGS%g
12863 s%@exec_prefix@%$exec_prefix%g
12864 s%@prefix@%$prefix%g
12865 s%@program_transform_name@%$program_transform_name%g
12866 s%@bindir@%$bindir%g
12867 s%@sbindir@%$sbindir%g
12868 s%@libexecdir@%$libexecdir%g
12869 s%@datadir@%$datadir%g
12870 s%@sysconfdir@%$sysconfdir%g
12871 s%@sharedstatedir@%$sharedstatedir%g
12872 s%@localstatedir@%$localstatedir%g
12873 s%@libdir@%$libdir%g
12874 s%@includedir@%$includedir%g
12875 s%@oldincludedir@%$oldincludedir%g
12876 s%@infodir@%$infodir%g
12877 s%@mandir@%$mandir%g
12878 s%@RUNPROG@%$RUNPROG%g
12879 s%@MPROGS@%$MPROGS%g
12880 s%@LDSHFLAGS@%$LDSHFLAGS%g
12881 s%@HOST_OS@%$HOST_OS%g
12882 s%@PAM_MOD@%$PAM_MOD%g
12884 s%@WRAP32@%$WRAP32%g
12885 s%@PICFLAG@%$PICFLAG%g
12886 s%@SHLIBEXT@%$SHLIBEXT%g
12888 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12889 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12890 s%@INSTALL_DATA@%$INSTALL_DATA%g
12893 s%@host_alias@%$host_alias%g
12894 s%@host_cpu@%$host_cpu%g
12895 s%@host_vendor@%$host_vendor%g
12896 s%@host_os@%$host_os%g
12898 s%@build_alias@%$build_alias%g
12899 s%@build_cpu@%$build_cpu%g
12900 s%@build_vendor@%$build_vendor%g
12901 s%@build_os@%$build_os%g
12902 s%@RANLIB@%$RANLIB%g
12904 s%@LIBTOOL@%$LIBTOOL%g
12905 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
12906 s%@BROKEN_CC@%$BROKEN_CC%g
12907 s%@target@%$target%g
12908 s%@target_alias@%$target_alias%g
12909 s%@target_cpu@%$target_cpu%g
12910 s%@target_vendor@%$target_vendor%g
12911 s%@target_os@%$target_os%g
12913 s%@LIBOBJS@%$LIBOBJS%g
12914 s%@TERMLIBS@%$TERMLIBS%g
12915 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
12917 s%@QUOTAOBJS@%$QUOTAOBJS%g
12918 s%@privatedir@%$privatedir%g
12919 s%@lockdir@%$lockdir%g
12920 s%@swatdir@%$swatdir%g
12921 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
12922 s%@builddir@%$builddir%g
12927 cat >> $CONFIG_STATUS <<\EOF
12929 # Split the substitutions into bite-sized pieces for seds with
12930 # small command number limits, like on Digital OSF/1 and HP-UX.
12931 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
12932 ac_file
=1 # Number of current file.
12933 ac_beg
=1 # First line for current file.
12934 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
12937 while $ac_more_lines; do
12938 if test $ac_beg -gt 1; then
12939 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
12941 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
12943 if test ! -s conftest.s
$ac_file; then
12944 ac_more_lines
=false
12945 rm -f conftest.s
$ac_file
12947 if test -z "$ac_sed_cmds"; then
12948 ac_sed_cmds
="sed -f conftest.s$ac_file"
12950 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
12952 ac_file
=`expr $ac_file + 1`
12954 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
12957 if test -z "$ac_sed_cmds"; then
12962 cat >> $CONFIG_STATUS <<EOF
12964 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
12966 cat >> $CONFIG_STATUS <<\EOF
12967 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
12968 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12970 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
12971 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
12972 *) ac_file_in
="${ac_file}.in" ;;
12975 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12977 # Remove last slash and all that follows it. Not all systems have dirname.
12978 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12979 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
12980 # The file is in a subdirectory.
12981 test ! -d "$ac_dir" && mkdir
"$ac_dir"
12982 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
12983 # A "../" for each directory in $ac_dir_suffix.
12984 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12986 ac_dir_suffix
= ac_dots
=
12989 case "$ac_given_srcdir" in
12991 if test -z "$ac_dots"; then top_srcdir
=.
12992 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12993 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
12994 *) # Relative path.
12995 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12996 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
12999 case "$ac_given_INSTALL" in
13000 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
13001 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
13004 echo creating
"$ac_file"
13006 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13008 *Makefile
*) ac_comsub
="1i\\
13009 # $configure_input" ;;
13013 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13015 s%@configure_input@%$configure_input%g
13016 s%@srcdir@%$srcdir%g
13017 s%@top_srcdir@%$top_srcdir%g
13018 s%@INSTALL@%$INSTALL%g
13019 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
13023 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13024 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13026 # ac_d sets the value in "#define NAME VALUE" lines.
13027 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13028 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
13031 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13032 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13033 ac_uB
='\([ ]\)%\1#\2define\3'
13036 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13037 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13038 ac_eB
='$%\1#\2define\3'
13042 if test "${CONFIG_HEADERS+set}" != set; then
13044 cat >> $CONFIG_STATUS <<EOF
13045 CONFIG_HEADERS="include/config.h"
13047 cat >> $CONFIG_STATUS <<\EOF
13049 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
13050 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13052 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
13053 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
13054 *) ac_file_in
="${ac_file}.in" ;;
13057 echo creating
$ac_file
13059 rm -f conftest.frag conftest.
in conftest.out
13060 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13061 cat $ac_file_inputs > conftest.
in
13065 # Transform confdefs.h into a sed script conftest.vals that substitutes
13066 # the proper values into config.h.in to produce config.h. And first:
13067 # Protect against being on the right side of a sed subst in config.status.
13068 # Protect against being in an unquoted here document in config.status.
13069 rm -f conftest.vals
13070 cat > conftest.hdr
<<\EOF
13073 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13077 sed -n -f conftest.hdr confdefs.h > conftest.vals
13080 # This sed command replaces #undef with comments. This is necessary, for
13081 # example, in the case of _POSIX_SOURCE, which is predefined and required
13082 # on some systems where configure will not decide to define it.
13083 cat >> conftest.vals <<\EOF
13084 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13087 # Break up conftest.vals because some shells have a limit on
13088 # the size of here documents, and old seds have small limits too.
13090 rm -f conftest.tail
13093 ac_lines=`grep -c . conftest.vals
`
13094 # grep -c gives empty output for an empty file on some AIX systems.
13095 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13096 # Write a limited-size here document to conftest.frag.
13097 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13098 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13100 sed -f conftest.frag conftest.in > conftest.out
13102 mv conftest.out conftest.in
13103 ' >> $CONFIG_STATUS
13104 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13105 rm -f conftest.vals
13106 mv conftest.tail conftest.vals
13108 rm -f conftest.vals
13110 cat >> $CONFIG_STATUS <<\EOF
13111 rm -f conftest.frag conftest.h
13112 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13113 cat conftest.in >> conftest.h
13115 if cmp -s $ac_file conftest.h 2>/dev/null; then
13116 echo "$ac_file is unchanged"
13119 # Remove last slash and all that follows it. Not all systems have dirname.
13120 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
13121 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13122 # The file is in a subdirectory.
13123 test ! -d "$ac_dir" && mkdir "$ac_dir"
13126 mv conftest.h $ac_file
13131 cat >> $CONFIG_STATUS <<EOF
13134 cat >> $CONFIG_STATUS <<\EOF
13138 chmod +x $CONFIG_STATUS
13139 rm -fr confdefs* $ac_clean_files
13140 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1