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
633 # compile with optimisation and without debugging by default
634 CFLAGS="-O ${CFLAGS}"
636 # Check whether --enable-debug or --disable-debug was given.
637 if test "${enable_debug+set}" = set; then
638 enableval="$enable_debug"
639 if eval "test x$enable_debug = xyes"; then
640 CFLAGS="${CFLAGS} -g"
646 # Extract the first word of "gcc", so it can be a program name with args.
647 set dummy gcc; ac_word=$2
648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
649 echo "configure:650: checking for $ac_word" >&5
650 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
651 echo $ac_n "(cached) $ac_c" 1>&6
653 if test -n "$CC"; then
654 ac_cv_prog_CC="$CC" # Let the user override the test.
656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
658 for ac_dir in $ac_dummy; do
659 test -z "$ac_dir" && ac_dir=.
660 if test -f $ac_dir/$ac_word; then
669 if test -n "$CC"; then
670 echo "$ac_t""$CC" 1>&6
672 echo "$ac_t""no" 1>&6
675 if test -z "$CC"; then
676 # Extract the first word of "cc", so it can be a program name with args.
677 set dummy cc; ac_word=$2
678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
679 echo "configure:680: checking for $ac_word" >&5
680 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
683 if test -n "$CC"; then
684 ac_cv_prog_CC="$CC" # Let the user override the test.
686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
689 for ac_dir in $ac_dummy; do
690 test -z "$ac_dir" && ac_dir=.
691 if test -f $ac_dir/$ac_word; then
692 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
701 if test $ac_prog_rejected = yes; then
702 # We found a bogon in the path, so make sure we never use it.
703 set dummy $ac_cv_prog_CC
705 if test $# -gt 0; then
706 # We chose a different compiler from the bogus one.
707 # However, it has the same basename, so the bogon will be chosen
708 # first if we set CC to just the basename; use the full file name.
710 set dummy "$ac_dir/$ac_word" "$@"
718 if test -n "$CC"; then
719 echo "$ac_t""$CC" 1>&6
721 echo "$ac_t""no" 1>&6
724 if test -z "$CC"; then
727 # Extract the first word of "cl", so it can be a program name with args.
728 set dummy cl; ac_word=$2
729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
730 echo "configure:731: checking for $ac_word" >&5
731 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
732 echo $ac_n "(cached) $ac_c" 1>&6
734 if test -n "$CC"; then
735 ac_cv_prog_CC="$CC" # Let the user override the test.
737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
739 for ac_dir in $ac_dummy; do
740 test -z "$ac_dir" && ac_dir=.
741 if test -f $ac_dir/$ac_word; then
750 if test -n "$CC"; then
751 echo "$ac_t""$CC" 1>&6
753 echo "$ac_t""no" 1>&6
758 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
761 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
762 echo "configure:763: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
766 ac_cpp='$CPP $CPPFLAGS'
767 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
768 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
769 cross_compiling=$ac_cv_prog_cc_cross
771 cat > conftest.$ac_ext << EOF
773 #line 774 "configure"
774 #include "confdefs.h"
778 if { (eval echo configure:779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
779 ac_cv_prog_cc_works=yes
780 # If we can't run a trivial program, we are probably using a cross compiler.
781 if (./conftest; exit) 2>/dev/null; then
782 ac_cv_prog_cc_cross=no
784 ac_cv_prog_cc_cross=yes
787 echo "configure: failed program was:" >&5
788 cat conftest.$ac_ext >&5
789 ac_cv_prog_cc_works=no
793 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
794 ac_cpp='$CPP $CPPFLAGS'
795 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
796 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
797 cross_compiling=$ac_cv_prog_cc_cross
799 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
800 if test $ac_cv_prog_cc_works = no; then
801 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
803 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
804 echo "configure:805: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
805 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
806 cross_compiling=$ac_cv_prog_cc_cross
808 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
809 echo "configure:810: checking whether we are using GNU C" >&5
810 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
811 echo $ac_n "(cached) $ac_c" 1>&6
813 cat > conftest.c <<EOF
818 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
825 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
827 if test $ac_cv_prog_gcc = yes; then
833 ac_test_CFLAGS="${CFLAGS+set}"
834 ac_save_CFLAGS="$CFLAGS"
836 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
837 echo "configure:838: checking whether ${CC-cc} accepts -g" >&5
838 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
841 echo 'void f(){}' > conftest.c
842 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
851 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
852 if test "$ac_test_CFLAGS" = set; then
853 CFLAGS="$ac_save_CFLAGS"
854 elif test $ac_cv_prog_cc_g = yes; then
855 if test "$GCC" = yes; then
861 if test "$GCC" = yes; then
869 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
870 if test -f $ac_dir/install-sh; then
872 ac_install_sh="$ac_aux_dir/install-sh -c"
874 elif test -f $ac_dir/install.sh; then
876 ac_install_sh="$ac_aux_dir/install.sh -c"
880 if test -z "$ac_aux_dir"; then
881 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
883 ac_config_guess=$ac_aux_dir/config.guess
884 ac_config_sub=$ac_aux_dir/config.sub
885 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
887 # Find a good install program. We prefer a C program (faster),
888 # so one script is as good as another. But avoid the broken or
889 # incompatible versions:
890 # SysV /etc/install, /usr/sbin/install
891 # SunOS /usr/etc/install
894 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
895 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
896 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
897 # ./install, which can be erroneously created by make from ./install.sh.
898 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
899 echo "configure:900: checking for a BSD compatible install" >&5
900 if test -z "$INSTALL"; then
901 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
902 echo $ac_n "(cached) $ac_c" 1>&6
904 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
905 for ac_dir in $PATH; do
906 # Account for people who put trailing slashes in PATH elements.
908 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
910 # OSF1 and SCO ODT 3.0 have their own names for install.
911 # Don't use installbsd from OSF since it installs stuff as root
913 for ac_prog in ginstall scoinst install; do
914 if test -f $ac_dir/$ac_prog; then
915 if test $ac_prog = install &&
916 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
917 # AIX install. It has an incompatible calling convention.
920 ac_cv_path_install="$ac_dir/$ac_prog -c"
931 if test "${ac_cv_path_install+set}" = set; then
932 INSTALL="$ac_cv_path_install"
934 # As a last resort, use the slow shell script. We don't cache a
935 # path for INSTALL within a source directory, because that will
936 # break other packages using the cache if that directory is
937 # removed, or if the path is relative.
938 INSTALL="$ac_install_sh"
941 echo "$ac_t""$INSTALL" 1>&6
943 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
944 # It thinks the first close brace ends the variable substitution.
945 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
947 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
949 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
951 for ac_prog in gawk mawk nawk awk
953 # Extract the first word of "$ac_prog", so it can be a program name with args.
954 set dummy $ac_prog; ac_word=$2
955 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
956 echo "configure:957: checking for $ac_word" >&5
957 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
958 echo $ac_n "(cached) $ac_c" 1>&6
960 if test -n "$AWK"; then
961 ac_cv_prog_AWK="$AWK" # Let the user override the test.
963 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
965 for ac_dir in $ac_dummy; do
966 test -z "$ac_dir" && ac_dir=.
967 if test -f $ac_dir/$ac_word; then
968 ac_cv_prog_AWK="$ac_prog"
975 AWK="$ac_cv_prog_AWK"
976 if test -n "$AWK"; then
977 echo "$ac_t""$AWK" 1>&6
979 echo "$ac_t""no" 1>&6
982 test -n "$AWK" && break
985 # Check whether --enable-shared or --disable-shared was given.
986 if test "${enable_shared+set}" = set; then
987 enableval="$enable_shared"
990 yes) enable_shared=yes ;;
991 no) enable_shared=no ;;
994 # Look at the argument we got. We use all the common list separators.
995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
996 for pkg in $enableval; do
997 if test "X$pkg" = "X$p"; then
1008 # Check whether --enable-static or --disable-static was given.
1009 if test "${enable_static+set}" = set; then
1010 enableval="$enable_static"
1011 p=${PACKAGE-default}
1012 case "$enableval" in
1013 yes) enable_static=yes ;;
1014 no) enable_static=no ;;
1017 # Look at the argument we got. We use all the common list separators.
1018 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1019 for pkg in $enableval; do
1020 if test "X$pkg" = "X$p"; then
1031 # Check whether --enable-fast-install or --disable-fast-install was given.
1032 if test "${enable_fast_install+set}" = set; then
1033 enableval="$enable_fast_install"
1034 p=${PACKAGE-default}
1035 case "$enableval" in
1036 yes) enable_fast_install=yes ;;
1037 no) enable_fast_install=no ;;
1039 enable_fast_install=no
1040 # Look at the argument we got. We use all the common list separators.
1041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1042 for pkg in $enableval; do
1043 if test "X$pkg" = "X$p"; then
1044 enable_fast_install=yes
1051 enable_fast_install=yes
1055 # Make sure we can run config.sub.
1056 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1057 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1060 echo $ac_n "checking host system type""... $ac_c" 1>&6
1061 echo "configure:1062: checking host system type" >&5
1064 case "$host_alias" in
1068 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1069 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1071 *) host_alias=$nonopt ;;
1075 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1076 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1077 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1078 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1079 echo "$ac_t""$host" 1>&6
1081 echo $ac_n "checking build system type""... $ac_c" 1>&6
1082 echo "configure:1083: checking build system type" >&5
1085 case "$build_alias" in
1088 NONE) build_alias=$host_alias ;;
1089 *) build_alias=$nonopt ;;
1093 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1094 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1095 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1096 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1097 echo "$ac_t""$build" 1>&6
1099 # Extract the first word of "ranlib", so it can be a program name with args.
1100 set dummy ranlib; ac_word=$2
1101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1102 echo "configure:1103: checking for $ac_word" >&5
1103 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1104 echo $ac_n "(cached) $ac_c" 1>&6
1106 if test -n "$RANLIB"; then
1107 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1109 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1111 for ac_dir in $ac_dummy; do
1112 test -z "$ac_dir" && ac_dir=.
1113 if test -f $ac_dir/$ac_word; then
1114 ac_cv_prog_RANLIB="ranlib"
1119 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1122 RANLIB="$ac_cv_prog_RANLIB"
1123 if test -n "$RANLIB"; then
1124 echo "$ac_t""$RANLIB" 1>&6
1126 echo "$ac_t""no" 1>&6
1129 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1130 if test "${with_gnu_ld+set}" = set; then
1131 withval="$with_gnu_ld"
1132 test "$withval" = no || with_gnu_ld=yes
1138 if test "$ac_cv_prog_gcc" = yes; then
1139 # Check if gcc -print-prog-name=ld gives a path.
1140 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1141 echo "configure:1142: checking for ld used by GCC" >&5
1142 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1144 # Accept absolute paths.
1145 [\\/]* | [A-Za-z]:[\\/]*)
1146 re_direlt='/[^/][^/]*/\.\./'
1147 # Canonicalize the path of ld
1148 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1149 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1150 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1152 test -z "$LD" && LD="$ac_prog"
1155 # If it fails, then pretend we aren't using GCC.
1159 # If it is relative, then search for the first ld in PATH.
1163 elif test "$with_gnu_ld" = yes; then
1164 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1165 echo "configure:1166: checking for GNU ld" >&5
1167 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1168 echo "configure:1169: checking for non-GNU ld" >&5
1170 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1173 if test -z "$LD"; then
1174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1175 for ac_dir in $PATH; do
1176 test -z "$ac_dir" && ac_dir=.
1177 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1178 ac_cv_path_LD="$ac_dir/$ac_prog"
1179 # Check to see if the program is GNU ld. I'd rather use --version,
1180 # but apparently some GNU ld's only accept -v.
1181 # Break only if it was the GNU/non-GNU ld that we prefer.
1182 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1183 test "$with_gnu_ld" != no && break
1185 test "$with_gnu_ld" != yes && break
1191 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1196 if test -n "$LD"; then
1197 echo "$ac_t""$LD" 1>&6
1199 echo "$ac_t""no" 1>&6
1201 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1202 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1203 echo "configure:1204: checking if the linker ($LD) is GNU ld" >&5
1204 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6
1207 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1208 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1209 ac_cv_prog_gnu_ld=yes
1211 ac_cv_prog_gnu_ld=no
1215 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1218 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1219 echo "configure:1220: checking for BSD-compatible nm" >&5
1220 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 if test -n "$NM"; then
1224 # Let the user override the test.
1227 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1228 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1229 test -z "$ac_dir" && ac_dir=.
1230 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1231 # Check to see if the nm accepts a BSD-compat flag.
1232 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1233 # nm: unknown option "B" ignored
1234 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1235 ac_cv_path_NM="$ac_dir/nm -B"
1237 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1238 ac_cv_path_NM="$ac_dir/nm -p"
1241 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1242 continue # so that we can try to find one that supports BSD flags
1247 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1252 echo "$ac_t""$NM" 1>&6
1254 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1255 echo "configure:1256: checking whether ln -s works" >&5
1256 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1260 if ln -s X conftestdata 2>/dev/null
1263 ac_cv_prog_LN_S="ln -s"
1268 LN_S="$ac_cv_prog_LN_S"
1269 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1270 echo "$ac_t""yes" 1>&6
1272 echo "$ac_t""no" 1>&6
1277 NONE) lt_target="$host" ;;
1278 *) lt_target="$target" ;;
1281 # Check for any special flags to pass to ltconfig.
1282 libtool_flags="--cache-file=$cache_file"
1283 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1284 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1285 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1286 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1287 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1290 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1291 if test "${enable_libtool_lock+set}" = set; then
1292 enableval="$enable_libtool_lock"
1296 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1297 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1299 # Some flags need to be propagated to the compiler or linker for good
1301 case "$lt_target" in
1303 # Find out which ABI we are using.
1304 echo '#line 1305 "configure"' > conftest.$ac_ext
1305 if { (eval echo configure:1306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1306 case "`/usr/bin/file conftest.o`" in
1322 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1323 SAVE_CFLAGS="$CFLAGS"
1324 CFLAGS="$CFLAGS -belf"
1325 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1326 echo "configure:1327: checking whether the C compiler needs -belf" >&5
1327 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1328 echo $ac_n "(cached) $ac_c" 1>&6
1330 cat > conftest.$ac_ext <<EOF
1331 #line 1332 "configure"
1332 #include "confdefs.h"
1338 if { (eval echo configure:1339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1340 lt_cv_cc_needs_belf=yes
1342 echo "configure: failed program was:" >&5
1343 cat conftest.$ac_ext >&5
1345 lt_cv_cc_needs_belf=no
1350 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1351 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1352 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1353 CFLAGS="$SAVE_CFLAGS"
1361 # Save cache, so that ltconfig can load it
1362 cat > confcache <<\EOF
1363 # This file is a shell script that caches the results of configure
1364 # tests run on this system so they can be shared between configure
1365 # scripts and configure runs. It is not useful on other systems.
1366 # If it contains results you don't want to keep, you may remove or edit it.
1368 # By default, configure uses ./config.cache as the cache file,
1369 # creating it if it does not exist already. You can give configure
1370 # the --cache-file=FILE option to use a different cache file; that is
1371 # what configure does when it calls configure scripts in
1372 # subdirectories, so they share the cache.
1373 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1374 # config.status only pays attention to the cache file if you give it the
1375 # --recheck option to rerun configure.
1378 # The following way of writing the cache mishandles newlines in values,
1379 # but we know of no workaround that is simple, portable, and efficient.
1380 # So, don't put newlines in cache variables' values.
1381 # Ultrix sh set writes to stderr and can't be redirected directly,
1382 # and sets the high bit in the cache file unless we assign to the vars.
1384 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1386 # `set' does not quote correctly, so add quotes (double-quote substitution
1387 # turns \\\\ into \\, and sed turns \\ into \).
1389 -e "s/'/'\\\\''/g" \
1390 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1393 # `set' quotes correctly as required by POSIX, so do not add quotes.
1394 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1397 if cmp -s $cache_file confcache; then
1400 if test -w $cache_file; then
1401 echo "updating cache $cache_file"
1402 cat confcache > $cache_file
1404 echo "not updating unwritable cache $cache_file"
1410 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1411 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1412 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1413 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1414 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1415 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1416 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1417 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1419 # Reload cache, that may have been modified by ltconfig
1420 if test -r "$cache_file"; then
1421 echo "loading cache $cache_file"
1424 echo "creating cache $cache_file"
1429 # This can be used to rebuild libtool when needed
1430 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1432 # Always use our own libtool.
1433 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1435 # Redirect the config.log output again, so that the ltconfig log is not
1436 # clobbered by the next message.
1437 exec 5>>./config.log
1441 if test "x$CC" != xcc; then
1442 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1443 echo "configure:1444: checking whether $CC and cc understand -c and -o together" >&5
1445 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1446 echo "configure:1447: checking whether cc understands -c and -o together" >&5
1448 set dummy $CC; ac_cc="`echo $2 |
1449 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1450 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1451 echo $ac_n "(cached) $ac_c" 1>&6
1453 echo 'foo(){}' > conftest.c
1454 # Make sure it works both with $CC and with simple cc.
1455 # We do the test twice because some compilers refuse to overwrite an
1456 # existing .o file with -o, though they will create one.
1457 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1458 if { (eval echo configure:1459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1459 test -f conftest.o && { (eval echo configure:1460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1461 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1462 if test "x$CC" != xcc; then
1463 # Test first that cc exists at all.
1464 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1465 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1466 if { (eval echo configure:1467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1467 test -f conftest.o && { (eval echo configure:1468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1472 # cc exists but doesn't like -o.
1473 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1478 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1483 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1484 echo "$ac_t""yes" 1>&6
1486 echo "$ac_t""no" 1>&6
1487 cat >> confdefs.h <<\EOF
1488 #define NO_MINUS_C_MINUS_O 1
1493 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1500 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1501 echo "configure:1502: checking that the C compiler understands volatile" >&5
1502 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1503 echo $ac_n "(cached) $ac_c" 1>&6
1506 cat > conftest.$ac_ext <<EOF
1507 #line 1508 "configure"
1508 #include "confdefs.h"
1509 #include <sys/types.h>
1514 if { (eval echo configure:1515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1516 samba_cv_volatile=yes
1518 echo "configure: failed program was:" >&5
1519 cat conftest.$ac_ext >&5
1521 samba_cv_volatile=no
1526 echo "$ac_t""$samba_cv_volatile" 1>&6
1527 if test x"$samba_cv_volatile" = x"yes"; then
1528 cat >> confdefs.h <<\EOF
1529 #define HAVE_VOLATILE 1
1535 #################################################
1536 # set codepage directory location
1537 # Check whether --with-codepagedir or --without-codepagedir was given.
1538 if test "${with_codepagedir+set}" = set; then
1539 withval="$with_codepagedir"
1543 # Just in case anybody does it
1545 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
1548 codepagedir="$withval"
1556 # Do some error checking and defaulting for the host and target type.
1558 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1561 # 1. You are not allowed to specify --host, --target, and nonopt at the
1563 # 2. Host defaults to nonopt.
1564 # 3. If nonopt is not specified, then host defaults to the current host,
1565 # as determined by config.guess.
1566 # 4. Target and build default to nonopt.
1567 # 5. If nonopt is not specified, then target and build default to host.
1569 # The aliases save the names the user supplied, while $host etc.
1570 # will get canonicalized.
1571 case $host---$target---$nonopt in
1572 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1573 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1577 # Make sure we can run config.sub.
1578 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1579 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1582 echo $ac_n "checking host system type""... $ac_c" 1>&6
1583 echo "configure:1584: checking host system type" >&5
1586 case "$host_alias" in
1590 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1591 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1593 *) host_alias=$nonopt ;;
1597 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1598 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1599 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1600 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601 echo "$ac_t""$host" 1>&6
1603 echo $ac_n "checking target system type""... $ac_c" 1>&6
1604 echo "configure:1605: checking target system type" >&5
1606 target_alias=$target
1607 case "$target_alias" in
1610 NONE) target_alias=$host_alias ;;
1611 *) target_alias=$nonopt ;;
1615 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1616 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1617 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1618 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1619 echo "$ac_t""$target" 1>&6
1621 echo $ac_n "checking build system type""... $ac_c" 1>&6
1622 echo "configure:1623: checking build system type" >&5
1625 case "$build_alias" in
1628 NONE) build_alias=$host_alias ;;
1629 *) build_alias=$nonopt ;;
1633 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1634 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1635 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1636 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1637 echo "$ac_t""$build" 1>&6
1639 test "$host_alias" != "$target_alias" &&
1640 test "$program_prefix$program_suffix$program_transform_name" = \
1642 program_prefix=${target_alias}-
1646 *irix6*) cat >> confdefs.h <<\EOF
1647 #include <standards.h>
1655 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1656 echo "configure:1657: checking config.cache system type" >&5
1657 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1658 test x"$ac_cv_host_system_type" != x"$host"; } ||
1659 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1660 test x"$ac_cv_build_system_type" != x"$build"; } ||
1661 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1662 test x"$ac_cv_target_system_type" != x"$target"; }; then
1663 echo "$ac_t""different" 1>&6
1664 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1666 echo "$ac_t""same" 1>&6
1668 ac_cv_host_system_type="$host"
1669 ac_cv_build_system_type="$build"
1670 ac_cv_target_system_type="$target"
1674 # Config CPPFLAG settings for strange OS's that must be set
1675 # before other tests.
1678 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1680 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1681 echo "configure:1682: checking whether ${CC-cc} accepts -Ae" >&5
1682 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1683 echo $ac_n "(cached) $ac_c" 1>&6
1685 echo 'void f(){}' > conftest.c
1686 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1687 ac_cv_prog_cc_Ae=yes
1695 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1696 if test $ac_cv_prog_cc_Ae = yes; then
1697 CPPFLAGS="$CPPFLAGS -Ae"
1700 # Defines needed for HPUX support.
1701 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1702 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1706 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1707 cat >> confdefs.h <<\EOF
1708 #define USE_BOTH_CRYPT_CALLS 1
1713 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1714 cat >> confdefs.h <<\EOF
1715 #define USE_BOTH_CRYPT_CALLS 1
1722 # AIX4.x doesn't even admit to having large
1723 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1726 echo "$ac_t""enabling large file support" 1>&6
1727 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1730 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1731 # to the existance of large files..
1732 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1733 # recommendations on large file support, however it makes the
1734 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1735 # recommendation makes the compile fail on gcc2.7. JRA.
1740 echo "$ac_t""enabling large file support" 1>&6
1741 if test "$ac_cv_prog_gcc" = yes; then
1742 ${CC-cc} -v >conftest.c 2>&1
1743 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1745 case "$ac_cv_gcc_compiler_version_number" in
1746 *"gcc version 2.6"*|*"gcc version 2.7"*)
1747 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1750 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1754 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1760 # Tests needed for SINIX large file support.
1763 if test $host = mips-sni-sysv4 ; then
1764 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1765 echo "configure:1766: checking for LFS support" >&5
1766 old_CPPFLAGS="$CPPFLAGS"
1767 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1768 if test "$cross_compiling" = yes; then
1769 SINIX_LFS_SUPPORT=cross
1771 cat > conftest.$ac_ext <<EOF
1772 #line 1773 "configure"
1773 #include "confdefs.h"
1777 #if _LFS64_LARGEFILE == 1
1784 if { (eval echo configure:1785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1786 SINIX_LFS_SUPPORT=yes
1788 echo "configure: failed program was:" >&5
1789 cat conftest.$ac_ext >&5
1791 SINIX_LFS_SUPPORT=no
1796 CPPFLAGS="$old_CPPFLAGS"
1797 if test x$SINIX_LFS_SUPPORT = xyes ; then
1798 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1799 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1800 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1801 LIBS="`getconf LFS64_LIBS` $LIBS"
1803 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1807 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1810 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1811 echo "configure:1812: checking for LFS support" >&5
1812 old_CPPFLAGS="$CPPFLAGS"
1813 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1814 if test "$cross_compiling" = yes; then
1815 LINUX_LFS_SUPPORT=cross
1817 cat > conftest.$ac_ext <<EOF
1818 #line 1819 "configure"
1819 #include "confdefs.h"
1822 #include <sys/utsname.h>
1824 #if _LFS64_LARGEFILE == 1
1829 /* Ensure this is glibc 2.2 or higher */
1830 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1831 int libc_major = __GLIBC__;
1832 int libc_minor = __GLIBC_MINOR__;
1840 /* Ensure this is kernel 2.4 or higher */
1843 release = uts.release;
1844 major = atoi(strsep(&release, "."));
1845 minor = atoi(strsep(&release, "."));
1847 if (major > 2 || (major == 2 && minor > 3))
1856 if { (eval echo configure:1857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1858 LINUX_LFS_SUPPORT=yes
1860 echo "configure: failed program was:" >&5
1861 cat conftest.$ac_ext >&5
1863 LINUX_LFS_SUPPORT=no
1868 CPPFLAGS="$old_CPPFLAGS"
1869 if test x$LINUX_LFS_SUPPORT = xyes ; then
1870 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1872 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1876 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1877 echo "configure:1878: checking for LFS support" >&5
1878 old_CPPFLAGS="$CPPFLAGS"
1879 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1880 if test "$cross_compiling" = yes; then
1881 GLIBC_LFS_SUPPORT=cross
1883 cat > conftest.$ac_ext <<EOF
1884 #line 1885 "configure"
1885 #include "confdefs.h"
1889 #if _LFS64_LARGEFILE == 1
1896 if { (eval echo configure:1897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1898 GLIBC_LFS_SUPPORT=yes
1900 echo "configure: failed program was:" >&5
1901 cat conftest.$ac_ext >&5
1903 GLIBC_LFS_SUPPORT=no
1908 CPPFLAGS="$old_CPPFLAGS"
1909 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1910 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1912 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1917 echo $ac_n "checking for inline""... $ac_c" 1>&6
1918 echo "configure:1919: checking for inline" >&5
1919 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1920 echo $ac_n "(cached) $ac_c" 1>&6
1923 for ac_kw in inline __inline__ __inline; do
1924 cat > conftest.$ac_ext <<EOF
1925 #line 1926 "configure"
1926 #include "confdefs.h"
1932 if { (eval echo configure:1933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1934 ac_cv_c_inline=$ac_kw; break
1936 echo "configure: failed program was:" >&5
1937 cat conftest.$ac_ext >&5
1944 echo "$ac_t""$ac_cv_c_inline" 1>&6
1945 case "$ac_cv_c_inline" in
1947 no) cat >> confdefs.h <<\EOF
1951 *) cat >> confdefs.h <<EOF
1952 #define inline $ac_cv_c_inline
1957 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1958 echo "configure:1959: checking how to run the C preprocessor" >&5
1959 # On Suns, sometimes $CPP names a directory.
1960 if test -n "$CPP" && test -d "$CPP"; then
1963 if test -z "$CPP"; then
1964 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1965 echo $ac_n "(cached) $ac_c" 1>&6
1967 # This must be in double quotes, not single quotes, because CPP may get
1968 # substituted into the Makefile and "${CC-cc}" will confuse make.
1970 # On the NeXT, cc -E runs the code through the compiler's parser,
1971 # not just through cpp.
1972 cat > conftest.$ac_ext <<EOF
1973 #line 1974 "configure"
1974 #include "confdefs.h"
1978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1979 { (eval echo configure:1980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1980 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1981 if test -z "$ac_err"; then
1985 echo "configure: failed program was:" >&5
1986 cat conftest.$ac_ext >&5
1988 CPP="${CC-cc} -E -traditional-cpp"
1989 cat > conftest.$ac_ext <<EOF
1990 #line 1991 "configure"
1991 #include "confdefs.h"
1995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1996 { (eval echo configure:1997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1997 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1998 if test -z "$ac_err"; then
2002 echo "configure: failed program was:" >&5
2003 cat conftest.$ac_ext >&5
2005 CPP="${CC-cc} -nologo -E"
2006 cat > conftest.$ac_ext <<EOF
2007 #line 2008 "configure"
2008 #include "confdefs.h"
2012 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2013 { (eval echo configure:2014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2014 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2015 if test -z "$ac_err"; then
2019 echo "configure: failed program was:" >&5
2020 cat conftest.$ac_ext >&5
2029 ac_cv_prog_CPP="$CPP"
2031 CPP="$ac_cv_prog_CPP"
2033 ac_cv_prog_CPP="$CPP"
2035 echo "$ac_t""$CPP" 1>&6
2037 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2038 echo "configure:2039: checking for ANSI C header files" >&5
2039 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2040 echo $ac_n "(cached) $ac_c" 1>&6
2042 cat > conftest.$ac_ext <<EOF
2043 #line 2044 "configure"
2044 #include "confdefs.h"
2050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2051 { (eval echo configure:2052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2053 if test -z "$ac_err"; then
2055 ac_cv_header_stdc=yes
2058 echo "configure: failed program was:" >&5
2059 cat conftest.$ac_ext >&5
2061 ac_cv_header_stdc=no
2065 if test $ac_cv_header_stdc = yes; then
2066 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2067 cat > conftest.$ac_ext <<EOF
2068 #line 2069 "configure"
2069 #include "confdefs.h"
2072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2073 egrep "memchr" >/dev/null 2>&1; then
2077 ac_cv_header_stdc=no
2083 if test $ac_cv_header_stdc = yes; then
2084 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2085 cat > conftest.$ac_ext <<EOF
2086 #line 2087 "configure"
2087 #include "confdefs.h"
2090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2091 egrep "free" >/dev/null 2>&1; then
2095 ac_cv_header_stdc=no
2101 if test $ac_cv_header_stdc = yes; then
2102 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2103 if test "$cross_compiling" = yes; then
2106 cat > conftest.$ac_ext <<EOF
2107 #line 2108 "configure"
2108 #include "confdefs.h"
2110 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2111 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2112 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2113 int main () { int i; for (i = 0; i < 256; i++)
2114 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2118 if { (eval echo configure:2119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2122 echo "configure: failed program was:" >&5
2123 cat conftest.$ac_ext >&5
2125 ac_cv_header_stdc=no
2133 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2134 if test $ac_cv_header_stdc = yes; then
2135 cat >> confdefs.h <<\EOF
2136 #define STDC_HEADERS 1
2142 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2144 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2145 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2146 echo "configure:2147: checking for $ac_hdr that defines DIR" >&5
2147 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2148 echo $ac_n "(cached) $ac_c" 1>&6
2150 cat > conftest.$ac_ext <<EOF
2151 #line 2152 "configure"
2152 #include "confdefs.h"
2153 #include <sys/types.h>
2159 if { (eval echo configure:2160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2161 eval "ac_cv_header_dirent_$ac_safe=yes"
2163 echo "configure: failed program was:" >&5
2164 cat conftest.$ac_ext >&5
2166 eval "ac_cv_header_dirent_$ac_safe=no"
2170 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2171 echo "$ac_t""yes" 1>&6
2172 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2173 cat >> confdefs.h <<EOF
2174 #define $ac_tr_hdr 1
2176 ac_header_dirent=$ac_hdr; break
2178 echo "$ac_t""no" 1>&6
2181 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2182 if test $ac_header_dirent = dirent.h; then
2183 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2184 echo "configure:2185: checking for opendir in -ldir" >&5
2185 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2186 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2187 echo $ac_n "(cached) $ac_c" 1>&6
2189 ac_save_LIBS="$LIBS"
2191 cat > conftest.$ac_ext <<EOF
2192 #line 2193 "configure"
2193 #include "confdefs.h"
2194 /* Override any gcc2 internal prototype to avoid an error. */
2195 /* We use char because int might match the return type of a gcc2
2196 builtin and then its argument prototype would still apply. */
2203 if { (eval echo configure:2204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2205 eval "ac_cv_lib_$ac_lib_var=yes"
2207 echo "configure: failed program was:" >&5
2208 cat conftest.$ac_ext >&5
2210 eval "ac_cv_lib_$ac_lib_var=no"
2213 LIBS="$ac_save_LIBS"
2216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2217 echo "$ac_t""yes" 1>&6
2220 echo "$ac_t""no" 1>&6
2224 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2225 echo "configure:2226: checking for opendir in -lx" >&5
2226 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2227 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2228 echo $ac_n "(cached) $ac_c" 1>&6
2230 ac_save_LIBS="$LIBS"
2232 cat > conftest.$ac_ext <<EOF
2233 #line 2234 "configure"
2234 #include "confdefs.h"
2235 /* Override any gcc2 internal prototype to avoid an error. */
2236 /* We use char because int might match the return type of a gcc2
2237 builtin and then its argument prototype would still apply. */
2244 if { (eval echo configure:2245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2246 eval "ac_cv_lib_$ac_lib_var=yes"
2248 echo "configure: failed program was:" >&5
2249 cat conftest.$ac_ext >&5
2251 eval "ac_cv_lib_$ac_lib_var=no"
2254 LIBS="$ac_save_LIBS"
2257 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2258 echo "$ac_t""yes" 1>&6
2261 echo "$ac_t""no" 1>&6
2266 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2267 echo "configure:2268: checking whether time.h and sys/time.h may both be included" >&5
2268 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6
2271 cat > conftest.$ac_ext <<EOF
2272 #line 2273 "configure"
2273 #include "confdefs.h"
2274 #include <sys/types.h>
2275 #include <sys/time.h>
2281 if { (eval echo configure:2282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2283 ac_cv_header_time=yes
2285 echo "configure: failed program was:" >&5
2286 cat conftest.$ac_ext >&5
2288 ac_cv_header_time=no
2293 echo "$ac_t""$ac_cv_header_time" 1>&6
2294 if test $ac_cv_header_time = yes; then
2295 cat >> confdefs.h <<\EOF
2296 #define TIME_WITH_SYS_TIME 1
2301 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2302 echo "configure:2303: checking for sys/wait.h that is POSIX.1 compatible" >&5
2303 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2304 echo $ac_n "(cached) $ac_c" 1>&6
2306 cat > conftest.$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2309 #include <sys/types.h>
2310 #include <sys/wait.h>
2312 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2315 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2320 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2323 if { (eval echo configure:2324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2325 ac_cv_header_sys_wait_h=yes
2327 echo "configure: failed program was:" >&5
2328 cat conftest.$ac_ext >&5
2330 ac_cv_header_sys_wait_h=no
2335 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2336 if test $ac_cv_header_sys_wait_h = yes; then
2337 cat >> confdefs.h <<\EOF
2338 #define HAVE_SYS_WAIT_H 1
2343 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2345 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2346 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2347 echo "configure:2348: checking for $ac_hdr" >&5
2348 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2349 echo $ac_n "(cached) $ac_c" 1>&6
2351 cat > conftest.$ac_ext <<EOF
2352 #line 2353 "configure"
2353 #include "confdefs.h"
2356 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2357 { (eval echo configure:2358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2358 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2359 if test -z "$ac_err"; then
2361 eval "ac_cv_header_$ac_safe=yes"
2364 echo "configure: failed program was:" >&5
2365 cat conftest.$ac_ext >&5
2367 eval "ac_cv_header_$ac_safe=no"
2371 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2372 echo "$ac_t""yes" 1>&6
2373 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2374 cat >> confdefs.h <<EOF
2375 #define $ac_tr_hdr 1
2379 echo "$ac_t""no" 1>&6
2383 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2385 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2386 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2387 echo "configure:2388: checking for $ac_hdr" >&5
2388 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2389 echo $ac_n "(cached) $ac_c" 1>&6
2391 cat > conftest.$ac_ext <<EOF
2392 #line 2393 "configure"
2393 #include "confdefs.h"
2396 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2397 { (eval echo configure:2398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2398 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2399 if test -z "$ac_err"; then
2401 eval "ac_cv_header_$ac_safe=yes"
2404 echo "configure: failed program was:" >&5
2405 cat conftest.$ac_ext >&5
2407 eval "ac_cv_header_$ac_safe=no"
2411 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2412 echo "$ac_t""yes" 1>&6
2413 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2414 cat >> confdefs.h <<EOF
2415 #define $ac_tr_hdr 1
2419 echo "$ac_t""no" 1>&6
2423 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2425 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2426 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2427 echo "configure:2428: checking for $ac_hdr" >&5
2428 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2429 echo $ac_n "(cached) $ac_c" 1>&6
2431 cat > conftest.$ac_ext <<EOF
2432 #line 2433 "configure"
2433 #include "confdefs.h"
2436 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2437 { (eval echo configure:2438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2438 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2439 if test -z "$ac_err"; then
2441 eval "ac_cv_header_$ac_safe=yes"
2444 echo "configure: failed program was:" >&5
2445 cat conftest.$ac_ext >&5
2447 eval "ac_cv_header_$ac_safe=no"
2451 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2452 echo "$ac_t""yes" 1>&6
2453 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2454 cat >> confdefs.h <<EOF
2455 #define $ac_tr_hdr 1
2459 echo "$ac_t""no" 1>&6
2463 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
2465 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2466 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2467 echo "configure:2468: checking for $ac_hdr" >&5
2468 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2469 echo $ac_n "(cached) $ac_c" 1>&6
2471 cat > conftest.$ac_ext <<EOF
2472 #line 2473 "configure"
2473 #include "confdefs.h"
2476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2477 { (eval echo configure:2478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2479 if test -z "$ac_err"; then
2481 eval "ac_cv_header_$ac_safe=yes"
2484 echo "configure: failed program was:" >&5
2485 cat conftest.$ac_ext >&5
2487 eval "ac_cv_header_$ac_safe=no"
2491 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2492 echo "$ac_t""yes" 1>&6
2493 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2494 cat >> confdefs.h <<EOF
2495 #define $ac_tr_hdr 1
2499 echo "$ac_t""no" 1>&6
2503 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
2505 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2506 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2507 echo "configure:2508: checking for $ac_hdr" >&5
2508 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2509 echo $ac_n "(cached) $ac_c" 1>&6
2511 cat > conftest.$ac_ext <<EOF
2512 #line 2513 "configure"
2513 #include "confdefs.h"
2516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2517 { (eval echo configure:2518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2518 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2519 if test -z "$ac_err"; then
2521 eval "ac_cv_header_$ac_safe=yes"
2524 echo "configure: failed program was:" >&5
2525 cat conftest.$ac_ext >&5
2527 eval "ac_cv_header_$ac_safe=no"
2531 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2532 echo "$ac_t""yes" 1>&6
2533 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2534 cat >> confdefs.h <<EOF
2535 #define $ac_tr_hdr 1
2539 echo "$ac_t""no" 1>&6
2543 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2545 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2546 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2547 echo "configure:2548: checking for $ac_hdr" >&5
2548 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2549 echo $ac_n "(cached) $ac_c" 1>&6
2551 cat > conftest.$ac_ext <<EOF
2552 #line 2553 "configure"
2553 #include "confdefs.h"
2556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2557 { (eval echo configure:2558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2558 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2559 if test -z "$ac_err"; then
2561 eval "ac_cv_header_$ac_safe=yes"
2564 echo "configure: failed program was:" >&5
2565 cat conftest.$ac_ext >&5
2567 eval "ac_cv_header_$ac_safe=no"
2571 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2572 echo "$ac_t""yes" 1>&6
2573 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2574 cat >> confdefs.h <<EOF
2575 #define $ac_tr_hdr 1
2579 echo "$ac_t""no" 1>&6
2583 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2585 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2586 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2587 echo "configure:2588: checking for $ac_hdr" >&5
2588 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2589 echo $ac_n "(cached) $ac_c" 1>&6
2591 cat > conftest.$ac_ext <<EOF
2592 #line 2593 "configure"
2593 #include "confdefs.h"
2596 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2597 { (eval echo configure:2598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2598 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2599 if test -z "$ac_err"; then
2601 eval "ac_cv_header_$ac_safe=yes"
2604 echo "configure: failed program was:" >&5
2605 cat conftest.$ac_ext >&5
2607 eval "ac_cv_header_$ac_safe=no"
2611 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2612 echo "$ac_t""yes" 1>&6
2613 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2614 cat >> confdefs.h <<EOF
2615 #define $ac_tr_hdr 1
2619 echo "$ac_t""no" 1>&6
2623 for ac_hdr in security/pam_modules.h security/_pam_macros.h
2625 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2626 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2627 echo "configure:2628: checking for $ac_hdr" >&5
2628 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2629 echo $ac_n "(cached) $ac_c" 1>&6
2631 cat > conftest.$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2636 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2637 { (eval echo configure:2638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2638 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2639 if test -z "$ac_err"; then
2641 eval "ac_cv_header_$ac_safe=yes"
2644 echo "configure: failed program was:" >&5
2645 cat conftest.$ac_ext >&5
2647 eval "ac_cv_header_$ac_safe=no"
2651 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2652 echo "$ac_t""yes" 1>&6
2653 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2654 cat >> confdefs.h <<EOF
2655 #define $ac_tr_hdr 1
2659 echo "$ac_t""no" 1>&6
2665 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2666 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2670 cat > conftest.$ac_ext <<EOF
2671 #line 2672 "configure"
2672 #include "confdefs.h"
2678 if { (eval echo configure:2679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2680 ac_cv_header_shadow_h=yes
2682 echo "configure: failed program was:" >&5
2683 cat conftest.$ac_ext >&5
2685 ac_cv_header_shadow_h=no
2688 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2689 cat >> confdefs.h <<\EOF
2690 #define HAVE_SHADOW_H 1
2696 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2698 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2699 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2700 echo "configure:2701: checking for $ac_hdr" >&5
2701 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2702 echo $ac_n "(cached) $ac_c" 1>&6
2704 cat > conftest.$ac_ext <<EOF
2705 #line 2706 "configure"
2706 #include "confdefs.h"
2709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2710 { (eval echo configure:2711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2712 if test -z "$ac_err"; then
2714 eval "ac_cv_header_$ac_safe=yes"
2717 echo "configure: failed program was:" >&5
2718 cat conftest.$ac_ext >&5
2720 eval "ac_cv_header_$ac_safe=no"
2724 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2725 echo "$ac_t""yes" 1>&6
2726 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2727 cat >> confdefs.h <<EOF
2728 #define $ac_tr_hdr 1
2732 echo "$ac_t""no" 1>&6
2736 for ac_hdr in nss.h nss_common.h sys/security.h security/pam_appl.h security/pam_modules.h
2738 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2740 echo "configure:2741: checking for $ac_hdr" >&5
2741 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2742 echo $ac_n "(cached) $ac_c" 1>&6
2744 cat > conftest.$ac_ext <<EOF
2745 #line 2746 "configure"
2746 #include "confdefs.h"
2749 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2750 { (eval echo configure:2751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2751 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2752 if test -z "$ac_err"; then
2754 eval "ac_cv_header_$ac_safe=yes"
2757 echo "configure: failed program was:" >&5
2758 cat conftest.$ac_ext >&5
2760 eval "ac_cv_header_$ac_safe=no"
2764 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2765 echo "$ac_t""yes" 1>&6
2766 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2767 cat >> confdefs.h <<EOF
2768 #define $ac_tr_hdr 1
2772 echo "$ac_t""no" 1>&6
2776 for ac_hdr in stropts.h poll.h
2778 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2779 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2780 echo "configure:2781: checking for $ac_hdr" >&5
2781 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2782 echo $ac_n "(cached) $ac_c" 1>&6
2784 cat > conftest.$ac_ext <<EOF
2785 #line 2786 "configure"
2786 #include "confdefs.h"
2789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2790 { (eval echo configure:2791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2791 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2792 if test -z "$ac_err"; then
2794 eval "ac_cv_header_$ac_safe=yes"
2797 echo "configure: failed program was:" >&5
2798 cat conftest.$ac_ext >&5
2800 eval "ac_cv_header_$ac_safe=no"
2804 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2805 echo "$ac_t""yes" 1>&6
2806 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2807 cat >> confdefs.h <<EOF
2808 #define $ac_tr_hdr 1
2812 echo "$ac_t""no" 1>&6
2816 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2818 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2819 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2820 echo "configure:2821: checking for $ac_hdr" >&5
2821 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2822 echo $ac_n "(cached) $ac_c" 1>&6
2824 cat > conftest.$ac_ext <<EOF
2825 #line 2826 "configure"
2826 #include "confdefs.h"
2829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2830 { (eval echo configure:2831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2832 if test -z "$ac_err"; then
2834 eval "ac_cv_header_$ac_safe=yes"
2837 echo "configure: failed program was:" >&5
2838 cat conftest.$ac_ext >&5
2840 eval "ac_cv_header_$ac_safe=no"
2844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2845 echo "$ac_t""yes" 1>&6
2846 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2847 cat >> confdefs.h <<EOF
2848 #define $ac_tr_hdr 1
2852 echo "$ac_t""no" 1>&6
2856 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2858 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2859 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2860 echo "configure:2861: checking for $ac_hdr" >&5
2861 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2862 echo $ac_n "(cached) $ac_c" 1>&6
2864 cat > conftest.$ac_ext <<EOF
2865 #line 2866 "configure"
2866 #include "confdefs.h"
2869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2870 { (eval echo configure:2871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2872 if test -z "$ac_err"; then
2874 eval "ac_cv_header_$ac_safe=yes"
2877 echo "configure: failed program was:" >&5
2878 cat conftest.$ac_ext >&5
2880 eval "ac_cv_header_$ac_safe=no"
2884 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2885 echo "$ac_t""yes" 1>&6
2886 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2887 cat >> confdefs.h <<EOF
2888 #define $ac_tr_hdr 1
2892 echo "$ac_t""no" 1>&6
2897 # For experimental utmp support (lastlog on some BSD-like systems)
2898 for ac_hdr in utmp.h utmpx.h lastlog.h
2900 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2901 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2902 echo "configure:2903: checking for $ac_hdr" >&5
2903 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2904 echo $ac_n "(cached) $ac_c" 1>&6
2906 cat > conftest.$ac_ext <<EOF
2907 #line 2908 "configure"
2908 #include "confdefs.h"
2911 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2912 { (eval echo configure:2913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2913 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2914 if test -z "$ac_err"; then
2916 eval "ac_cv_header_$ac_safe=yes"
2919 echo "configure: failed program was:" >&5
2920 cat conftest.$ac_ext >&5
2922 eval "ac_cv_header_$ac_safe=no"
2926 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2927 echo "$ac_t""yes" 1>&6
2928 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2929 cat >> confdefs.h <<EOF
2930 #define $ac_tr_hdr 1
2934 echo "$ac_t""no" 1>&6
2939 # For quotas on Veritas VxFS filesystems
2940 for ac_hdr in sys/fs/vx_quota.h
2942 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2943 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2944 echo "configure:2945: checking for $ac_hdr" >&5
2945 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2946 echo $ac_n "(cached) $ac_c" 1>&6
2948 cat > conftest.$ac_ext <<EOF
2949 #line 2950 "configure"
2950 #include "confdefs.h"
2953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2954 { (eval echo configure:2955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2955 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2956 if test -z "$ac_err"; then
2958 eval "ac_cv_header_$ac_safe=yes"
2961 echo "configure: failed program was:" >&5
2962 cat conftest.$ac_ext >&5
2964 eval "ac_cv_header_$ac_safe=no"
2968 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2969 echo "$ac_t""yes" 1>&6
2970 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2971 cat >> confdefs.h <<EOF
2972 #define $ac_tr_hdr 1
2976 echo "$ac_t""no" 1>&6
2981 echo $ac_n "checking size of int""... $ac_c" 1>&6
2982 echo "configure:2983: checking size of int" >&5
2983 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2984 echo $ac_n "(cached) $ac_c" 1>&6
2986 if test "$cross_compiling" = yes; then
2987 ac_cv_sizeof_int=cross
2989 cat > conftest.$ac_ext <<EOF
2990 #line 2991 "configure"
2991 #include "confdefs.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"
3034 FILE *f=fopen("conftestval", "w");
3036 fprintf(f, "%d\n", sizeof(long));
3040 if { (eval echo configure:3041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3042 ac_cv_sizeof_long=`cat conftestval`
3044 echo "configure: failed program was:" >&5
3045 cat conftest.$ac_ext >&5
3053 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3054 cat >> confdefs.h <<EOF
3055 #define SIZEOF_LONG $ac_cv_sizeof_long
3059 echo $ac_n "checking size of short""... $ac_c" 1>&6
3060 echo "configure:3061: checking size of short" >&5
3061 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3062 echo $ac_n "(cached) $ac_c" 1>&6
3064 if test "$cross_compiling" = yes; then
3065 ac_cv_sizeof_short=cross
3067 cat > conftest.$ac_ext <<EOF
3068 #line 3069 "configure"
3069 #include "confdefs.h"
3073 FILE *f=fopen("conftestval", "w");
3075 fprintf(f, "%d\n", sizeof(short));
3079 if { (eval echo configure:3080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3081 ac_cv_sizeof_short=`cat conftestval`
3083 echo "configure: failed program was:" >&5
3084 cat conftest.$ac_ext >&5
3086 ac_cv_sizeof_short=0
3092 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3093 cat >> confdefs.h <<EOF
3094 #define SIZEOF_SHORT $ac_cv_sizeof_short
3099 echo $ac_n "checking for working const""... $ac_c" 1>&6
3100 echo "configure:3101: checking for working const" >&5
3101 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3102 echo $ac_n "(cached) $ac_c" 1>&6
3104 cat > conftest.$ac_ext <<EOF
3105 #line 3106 "configure"
3106 #include "confdefs.h"
3110 /* Ultrix mips cc rejects this. */
3111 typedef int charset[2]; const charset x;
3112 /* SunOS 4.1.1 cc rejects this. */
3113 char const *const *ccp;
3115 /* NEC SVR4.0.2 mips cc rejects this. */
3116 struct point {int x, y;};
3117 static struct point const zero = {0,0};
3118 /* AIX XL C 1.02.0.0 rejects this.
3119 It does not let you subtract one const X* pointer from another in an arm
3120 of an if-expression whose if-part is not a constant expression */
3121 const char *g = "string";
3122 ccp = &g + (g ? g-g : 0);
3123 /* HPUX 7.0 cc rejects these. */
3126 ccp = (char const *const *) p;
3127 { /* SCO 3.2v4 cc rejects this. */
3129 char const *s = 0 ? (char *) 0 : (char const *) 0;
3133 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3135 const int *foo = &x[0];
3138 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3139 typedef const int *iptr;
3143 { /* AIX XL C 1.02.0.0 rejects this saying
3144 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3145 struct s { int j; const int *ap[3]; };
3146 struct s *b; b->j = 5;
3148 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3154 if { (eval echo configure:3155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3158 echo "configure: failed program was:" >&5
3159 cat conftest.$ac_ext >&5
3166 echo "$ac_t""$ac_cv_c_const" 1>&6
3167 if test $ac_cv_c_const = no; then
3168 cat >> confdefs.h <<\EOF
3174 echo $ac_n "checking for inline""... $ac_c" 1>&6
3175 echo "configure:3176: checking for inline" >&5
3176 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3177 echo $ac_n "(cached) $ac_c" 1>&6
3180 for ac_kw in inline __inline__ __inline; do
3181 cat > conftest.$ac_ext <<EOF
3182 #line 3183 "configure"
3183 #include "confdefs.h"
3189 if { (eval echo configure:3190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3191 ac_cv_c_inline=$ac_kw; break
3193 echo "configure: failed program was:" >&5
3194 cat conftest.$ac_ext >&5
3201 echo "$ac_t""$ac_cv_c_inline" 1>&6
3202 case "$ac_cv_c_inline" in
3204 no) cat >> confdefs.h <<\EOF
3208 *) cat >> confdefs.h <<EOF
3209 #define inline $ac_cv_c_inline
3214 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3215 echo "configure:3216: checking whether byte ordering is bigendian" >&5
3216 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3217 echo $ac_n "(cached) $ac_c" 1>&6
3219 ac_cv_c_bigendian=unknown
3220 # See if sys/param.h defines the BYTE_ORDER macro.
3221 cat > conftest.$ac_ext <<EOF
3222 #line 3223 "configure"
3223 #include "confdefs.h"
3224 #include <sys/types.h>
3225 #include <sys/param.h>
3228 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3233 if { (eval echo configure:3234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3235 # It does; now see whether it defined to BIG_ENDIAN or not.
3236 cat > conftest.$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3239 #include <sys/types.h>
3240 #include <sys/param.h>
3243 #if BYTE_ORDER != BIG_ENDIAN
3248 if { (eval echo configure:3249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3250 ac_cv_c_bigendian=yes
3252 echo "configure: failed program was:" >&5
3253 cat conftest.$ac_ext >&5
3255 ac_cv_c_bigendian=no
3259 echo "configure: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3263 if test $ac_cv_c_bigendian = unknown; then
3264 if test "$cross_compiling" = yes; then
3265 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3267 cat > conftest.$ac_ext <<EOF
3268 #line 3269 "configure"
3269 #include "confdefs.h"
3271 /* Are we little or big endian? From Harbison&Steele. */
3275 char c[sizeof (long)];
3278 exit (u.c[sizeof (long) - 1] == 1);
3281 if { (eval echo configure:3282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3283 ac_cv_c_bigendian=no
3285 echo "configure: failed program was:" >&5
3286 cat conftest.$ac_ext >&5
3288 ac_cv_c_bigendian=yes
3296 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3297 if test $ac_cv_c_bigendian = yes; then
3298 cat >> confdefs.h <<\EOF
3299 #define WORDS_BIGENDIAN 1
3304 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3305 echo "configure:3306: checking whether char is unsigned" >&5
3306 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3307 echo $ac_n "(cached) $ac_c" 1>&6
3309 if test "$GCC" = yes; then
3310 # GCC predefines this symbol on systems where it applies.
3311 cat > conftest.$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3314 #ifdef __CHAR_UNSIGNED__
3319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3320 egrep "yes" >/dev/null 2>&1; then
3322 ac_cv_c_char_unsigned=yes
3325 ac_cv_c_char_unsigned=no
3330 if test "$cross_compiling" = yes; then
3331 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3333 cat > conftest.$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3336 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3337 #if !defined(__STDC__) || __STDC__ != 1
3341 volatile char c = 255; exit(c < 0);
3344 if { (eval echo configure:3345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3346 ac_cv_c_char_unsigned=yes
3348 echo "configure: failed program was:" >&5
3349 cat conftest.$ac_ext >&5
3351 ac_cv_c_char_unsigned=no
3359 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3360 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3361 cat >> confdefs.h <<\EOF
3362 #define __CHAR_UNSIGNED__ 1
3368 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3369 echo "configure:3370: checking return type of signal handlers" >&5
3370 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3371 echo $ac_n "(cached) $ac_c" 1>&6
3373 cat > conftest.$ac_ext <<EOF
3374 #line 3375 "configure"
3375 #include "confdefs.h"
3376 #include <sys/types.h>
3382 extern "C" void (*signal (int, void (*)(int)))(int);
3384 void (*signal ()) ();
3391 if { (eval echo configure:3392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3393 ac_cv_type_signal=void
3395 echo "configure: failed program was:" >&5
3396 cat conftest.$ac_ext >&5
3398 ac_cv_type_signal=int
3403 echo "$ac_t""$ac_cv_type_signal" 1>&6
3404 cat >> confdefs.h <<EOF
3405 #define RETSIGTYPE $ac_cv_type_signal
3409 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3410 echo "configure:3411: checking for uid_t in sys/types.h" >&5
3411 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3412 echo $ac_n "(cached) $ac_c" 1>&6
3414 cat > conftest.$ac_ext <<EOF
3415 #line 3416 "configure"
3416 #include "confdefs.h"
3417 #include <sys/types.h>
3419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3420 egrep "uid_t" >/dev/null 2>&1; then
3422 ac_cv_type_uid_t=yes
3431 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3432 if test $ac_cv_type_uid_t = no; then
3433 cat >> confdefs.h <<\EOF
3437 cat >> confdefs.h <<\EOF
3443 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3444 echo "configure:3445: checking for mode_t" >&5
3445 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3446 echo $ac_n "(cached) $ac_c" 1>&6
3448 cat > conftest.$ac_ext <<EOF
3449 #line 3450 "configure"
3450 #include "confdefs.h"
3451 #include <sys/types.h>
3457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3458 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3460 ac_cv_type_mode_t=yes
3463 ac_cv_type_mode_t=no
3468 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3469 if test $ac_cv_type_mode_t = no; then
3470 cat >> confdefs.h <<\EOF
3476 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3477 echo "configure:3478: checking for off_t" >&5
3478 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3479 echo $ac_n "(cached) $ac_c" 1>&6
3481 cat > conftest.$ac_ext <<EOF
3482 #line 3483 "configure"
3483 #include "confdefs.h"
3484 #include <sys/types.h>
3490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3491 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3493 ac_cv_type_off_t=yes
3501 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3502 if test $ac_cv_type_off_t = no; then
3503 cat >> confdefs.h <<\EOF
3509 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3510 echo "configure:3511: checking for size_t" >&5
3511 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3512 echo $ac_n "(cached) $ac_c" 1>&6
3514 cat > conftest.$ac_ext <<EOF
3515 #line 3516 "configure"
3516 #include "confdefs.h"
3517 #include <sys/types.h>
3523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3524 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3526 ac_cv_type_size_t=yes
3529 ac_cv_type_size_t=no
3534 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3535 if test $ac_cv_type_size_t = no; then
3536 cat >> confdefs.h <<\EOF
3537 #define size_t unsigned
3542 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3543 echo "configure:3544: checking for pid_t" >&5
3544 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3545 echo $ac_n "(cached) $ac_c" 1>&6
3547 cat > conftest.$ac_ext <<EOF
3548 #line 3549 "configure"
3549 #include "confdefs.h"
3550 #include <sys/types.h>
3556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3557 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3559 ac_cv_type_pid_t=yes
3567 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3568 if test $ac_cv_type_pid_t = no; then
3569 cat >> confdefs.h <<\EOF
3575 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3576 echo "configure:3577: checking for st_rdev in struct stat" >&5
3577 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3578 echo $ac_n "(cached) $ac_c" 1>&6
3580 cat > conftest.$ac_ext <<EOF
3581 #line 3582 "configure"
3582 #include "confdefs.h"
3583 #include <sys/types.h>
3584 #include <sys/stat.h>
3586 struct stat s; s.st_rdev;
3589 if { (eval echo configure:3590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3591 ac_cv_struct_st_rdev=yes
3593 echo "configure: failed program was:" >&5
3594 cat conftest.$ac_ext >&5
3596 ac_cv_struct_st_rdev=no
3601 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3602 if test $ac_cv_struct_st_rdev = yes; then
3603 cat >> confdefs.h <<\EOF
3604 #define HAVE_ST_RDEV 1
3609 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3610 echo "configure:3611: checking for d_off in dirent" >&5
3611 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3612 echo $ac_n "(cached) $ac_c" 1>&6
3614 cat > conftest.$ac_ext <<EOF
3615 #line 3616 "configure"
3616 #include "confdefs.h"
3619 #include <sys/types.h>
3622 struct dirent d; d.d_off;
3625 if { (eval echo configure:3626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3627 ac_cv_dirent_d_off=yes
3629 echo "configure: failed program was:" >&5
3630 cat conftest.$ac_ext >&5
3632 ac_cv_dirent_d_off=no
3637 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3638 if test $ac_cv_dirent_d_off = yes; then
3639 cat >> confdefs.h <<\EOF
3640 #define HAVE_DIRENT_D_OFF 1
3645 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3646 echo "configure:3647: checking for ino_t" >&5
3647 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3648 echo $ac_n "(cached) $ac_c" 1>&6
3650 cat > conftest.$ac_ext <<EOF
3651 #line 3652 "configure"
3652 #include "confdefs.h"
3653 #include <sys/types.h>
3659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3660 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3662 ac_cv_type_ino_t=yes
3670 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3671 if test $ac_cv_type_ino_t = no; then
3672 cat >> confdefs.h <<\EOF
3673 #define ino_t unsigned
3678 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3679 echo "configure:3680: checking for loff_t" >&5
3680 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3681 echo $ac_n "(cached) $ac_c" 1>&6
3683 cat > conftest.$ac_ext <<EOF
3684 #line 3685 "configure"
3685 #include "confdefs.h"
3686 #include <sys/types.h>
3692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3693 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3695 ac_cv_type_loff_t=yes
3698 ac_cv_type_loff_t=no
3703 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3704 if test $ac_cv_type_loff_t = no; then
3705 cat >> confdefs.h <<\EOF
3706 #define loff_t off_t
3711 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3712 echo "configure:3713: checking for offset_t" >&5
3713 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3714 echo $ac_n "(cached) $ac_c" 1>&6
3716 cat > conftest.$ac_ext <<EOF
3717 #line 3718 "configure"
3718 #include "confdefs.h"
3719 #include <sys/types.h>
3725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3726 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3728 ac_cv_type_offset_t=yes
3731 ac_cv_type_offset_t=no
3736 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3737 if test $ac_cv_type_offset_t = no; then
3738 cat >> confdefs.h <<\EOF
3739 #define offset_t loff_t
3744 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3745 echo "configure:3746: checking for ssize_t" >&5
3746 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3747 echo $ac_n "(cached) $ac_c" 1>&6
3749 cat > conftest.$ac_ext <<EOF
3750 #line 3751 "configure"
3751 #include "confdefs.h"
3752 #include <sys/types.h>
3758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3759 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3761 ac_cv_type_ssize_t=yes
3764 ac_cv_type_ssize_t=no
3769 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3770 if test $ac_cv_type_ssize_t = no; then
3771 cat >> confdefs.h <<\EOF
3777 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3778 echo "configure:3779: checking for wchar_t" >&5
3779 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3780 echo $ac_n "(cached) $ac_c" 1>&6
3782 cat > conftest.$ac_ext <<EOF
3783 #line 3784 "configure"
3784 #include "confdefs.h"
3785 #include <sys/types.h>
3791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3792 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3794 ac_cv_type_wchar_t=yes
3797 ac_cv_type_wchar_t=no
3802 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3803 if test $ac_cv_type_wchar_t = no; then
3804 cat >> confdefs.h <<\EOF
3805 #define wchar_t unsigned short
3811 # we need libcups for CUPS support...
3812 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3813 echo "configure:3814: checking for httpConnect in -lcups" >&5
3814 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3815 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3816 echo $ac_n "(cached) $ac_c" 1>&6
3818 ac_save_LIBS="$LIBS"
3820 cat > conftest.$ac_ext <<EOF
3821 #line 3822 "configure"
3822 #include "confdefs.h"
3823 /* Override any gcc2 internal prototype to avoid an error. */
3824 /* We use char because int might match the return type of a gcc2
3825 builtin and then its argument prototype would still apply. */
3832 if { (eval echo configure:3833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3834 eval "ac_cv_lib_$ac_lib_var=yes"
3836 echo "configure: failed program was:" >&5
3837 cat conftest.$ac_ext >&5
3839 eval "ac_cv_lib_$ac_lib_var=no"
3842 LIBS="$ac_save_LIBS"
3845 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3846 echo "$ac_t""yes" 1>&6
3847 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3848 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3849 cat >> confdefs.h <<EOF
3850 #define $ac_tr_lib 1
3856 echo "$ac_t""no" 1>&6
3860 # we need libdl for PAM and the new VFS code
3861 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3862 echo "configure:3863: checking for dlopen in -ldl" >&5
3863 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3864 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3865 echo $ac_n "(cached) $ac_c" 1>&6
3867 ac_save_LIBS="$LIBS"
3869 cat > conftest.$ac_ext <<EOF
3870 #line 3871 "configure"
3871 #include "confdefs.h"
3872 /* Override any gcc2 internal prototype to avoid an error. */
3873 /* We use char because int might match the return type of a gcc2
3874 builtin and then its argument prototype would still apply. */
3881 if { (eval echo configure:3882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3883 eval "ac_cv_lib_$ac_lib_var=yes"
3885 echo "configure: failed program was:" >&5
3886 cat conftest.$ac_ext >&5
3888 eval "ac_cv_lib_$ac_lib_var=no"
3891 LIBS="$ac_save_LIBS"
3894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3895 echo "$ac_t""yes" 1>&6
3897 cat >> confdefs.h <<\EOF
3898 #define HAVE_LIBDL 1
3902 echo "$ac_t""no" 1>&6
3906 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3907 echo "configure:3908: checking for socklen_t type" >&5
3908 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3909 echo $ac_n "(cached) $ac_c" 1>&6
3912 cat > conftest.$ac_ext <<EOF
3913 #line 3914 "configure"
3914 #include "confdefs.h"
3916 #include <sys/types.h>
3921 #include <sys/socket.h>
3926 if { (eval echo configure:3927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3928 samba_cv_socklen_t=yes
3930 echo "configure: failed program was:" >&5
3931 cat conftest.$ac_ext >&5
3933 samba_cv_socklen_t=no
3938 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3939 if test x"$samba_cv_socklen_t" = x"yes"; then
3940 cat >> confdefs.h <<\EOF
3941 #define HAVE_SOCKLEN_T_TYPE 1
3946 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3947 echo "configure:3948: checking for sig_atomic_t type" >&5
3948 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3949 echo $ac_n "(cached) $ac_c" 1>&6
3952 cat > conftest.$ac_ext <<EOF
3953 #line 3954 "configure"
3954 #include "confdefs.h"
3956 #include <sys/types.h>
3966 if { (eval echo configure:3967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3968 samba_cv_sig_atomic_t=yes
3970 echo "configure: failed program was:" >&5
3971 cat conftest.$ac_ext >&5
3973 samba_cv_sig_atomic_t=no
3978 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3979 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3980 cat >> confdefs.h <<\EOF
3981 #define HAVE_SIG_ATOMIC_T_TYPE 1
3986 # stupid headers have the functions but no declaration. grrrr.
3988 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3989 echo "configure:3990: checking for errno declaration" >&5
3990 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3991 echo $ac_n "(cached) $ac_c" 1>&6
3994 cat > conftest.$ac_ext <<EOF
3995 #line 3996 "configure"
3996 #include "confdefs.h"
4002 if { (eval echo configure:4003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4004 ac_cv_have_errno_decl=yes
4006 echo "configure: failed program was:" >&5
4007 cat conftest.$ac_ext >&5
4009 ac_cv_have_errno_decl=no
4014 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4015 if test x"$ac_cv_have_errno_decl" = x"yes"; then
4016 cat >> confdefs.h <<\EOF
4017 #define HAVE_ERRNO_DECL 1
4023 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4024 echo "configure:4025: checking for setresuid declaration" >&5
4025 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4026 echo $ac_n "(cached) $ac_c" 1>&6
4029 cat > conftest.$ac_ext <<EOF
4030 #line 4031 "configure"
4031 #include "confdefs.h"
4034 int i = (int)setresuid
4037 if { (eval echo configure:4038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4039 ac_cv_have_setresuid_decl=yes
4041 echo "configure: failed program was:" >&5
4042 cat conftest.$ac_ext >&5
4044 ac_cv_have_setresuid_decl=no
4049 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4050 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
4051 cat >> confdefs.h <<\EOF
4052 #define HAVE_SETRESUID_DECL 1
4058 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4059 echo "configure:4060: checking for setresgid declaration" >&5
4060 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4061 echo $ac_n "(cached) $ac_c" 1>&6
4064 cat > conftest.$ac_ext <<EOF
4065 #line 4066 "configure"
4066 #include "confdefs.h"
4069 int i = (int)setresgid
4072 if { (eval echo configure:4073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4074 ac_cv_have_setresgid_decl=yes
4076 echo "configure: failed program was:" >&5
4077 cat conftest.$ac_ext >&5
4079 ac_cv_have_setresgid_decl=no
4084 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4085 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
4086 cat >> confdefs.h <<\EOF
4087 #define HAVE_SETRESGID_DECL 1
4093 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4094 echo "configure:4095: checking for asprintf declaration" >&5
4095 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4096 echo $ac_n "(cached) $ac_c" 1>&6
4099 cat > conftest.$ac_ext <<EOF
4100 #line 4101 "configure"
4101 #include "confdefs.h"
4104 int i = (int)asprintf
4107 if { (eval echo configure:4108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4109 ac_cv_have_asprintf_decl=yes
4111 echo "configure: failed program was:" >&5
4112 cat conftest.$ac_ext >&5
4114 ac_cv_have_asprintf_decl=no
4119 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4120 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
4121 cat >> confdefs.h <<\EOF
4122 #define HAVE_ASPRINTF_DECL 1
4128 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4129 echo "configure:4130: checking for vasprintf declaration" >&5
4130 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4131 echo $ac_n "(cached) $ac_c" 1>&6
4134 cat > conftest.$ac_ext <<EOF
4135 #line 4136 "configure"
4136 #include "confdefs.h"
4139 int i = (int)vasprintf
4142 if { (eval echo configure:4143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4144 ac_cv_have_vasprintf_decl=yes
4146 echo "configure: failed program was:" >&5
4147 cat conftest.$ac_ext >&5
4149 ac_cv_have_vasprintf_decl=no
4154 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4155 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4156 cat >> confdefs.h <<\EOF
4157 #define HAVE_VASPRINTF_DECL 1
4163 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4164 echo "configure:4165: checking for vsnprintf declaration" >&5
4165 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4166 echo $ac_n "(cached) $ac_c" 1>&6
4169 cat > conftest.$ac_ext <<EOF
4170 #line 4171 "configure"
4171 #include "confdefs.h"
4174 int i = (int)vsnprintf
4177 if { (eval echo configure:4178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4179 ac_cv_have_vsnprintf_decl=yes
4181 echo "configure: failed program was:" >&5
4182 cat conftest.$ac_ext >&5
4184 ac_cv_have_vsnprintf_decl=no
4189 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4190 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4191 cat >> confdefs.h <<\EOF
4192 #define HAVE_VSNPRINTF_DECL 1
4198 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4199 echo "configure:4200: checking for snprintf declaration" >&5
4200 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4201 echo $ac_n "(cached) $ac_c" 1>&6
4204 cat > conftest.$ac_ext <<EOF
4205 #line 4206 "configure"
4206 #include "confdefs.h"
4209 int i = (int)snprintf
4212 if { (eval echo configure:4213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4214 ac_cv_have_snprintf_decl=yes
4216 echo "configure: failed program was:" >&5
4217 cat conftest.$ac_ext >&5
4219 ac_cv_have_snprintf_decl=no
4224 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4225 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4226 cat >> confdefs.h <<\EOF
4227 #define HAVE_SNPRINTF_DECL 1
4233 # and glibc has setresuid under linux but the function does
4234 # nothing until kernel 2.1.44! very dumb.
4235 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4236 echo "configure:4237: checking for real setresuid" >&5
4237 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4238 echo $ac_n "(cached) $ac_c" 1>&6
4241 if test "$cross_compiling" = yes; then
4242 samba_cv_have_setresuid=cross
4244 cat > conftest.$ac_ext <<EOF
4245 #line 4246 "configure"
4246 #include "confdefs.h"
4248 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4250 if { (eval echo configure:4251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4252 samba_cv_have_setresuid=yes
4254 echo "configure: failed program was:" >&5
4255 cat conftest.$ac_ext >&5
4257 samba_cv_have_setresuid=no
4264 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4265 if test x"$samba_cv_have_setresuid" = x"yes"; then
4266 cat >> confdefs.h <<\EOF
4267 #define HAVE_SETRESUID 1
4272 # Do the same check for setresguid...
4274 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4275 echo "configure:4276: checking for real setresgid" >&5
4276 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4277 echo $ac_n "(cached) $ac_c" 1>&6
4280 if test "$cross_compiling" = yes; then
4281 samba_cv_have_setresgid=cross
4283 cat > conftest.$ac_ext <<EOF
4284 #line 4285 "configure"
4285 #include "confdefs.h"
4288 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4290 if { (eval echo configure:4291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4292 samba_cv_have_setresgid=yes
4294 echo "configure: failed program was:" >&5
4295 cat conftest.$ac_ext >&5
4297 samba_cv_have_setresgid=no
4304 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4305 if test x"$samba_cv_have_setresgid" = x"yes"; then
4306 cat >> confdefs.h <<\EOF
4307 #define HAVE_SETRESGID 1
4312 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4313 echo "configure:4314: checking for 8-bit clean memcmp" >&5
4314 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4315 echo $ac_n "(cached) $ac_c" 1>&6
4317 if test "$cross_compiling" = yes; then
4318 ac_cv_func_memcmp_clean=no
4320 cat > conftest.$ac_ext <<EOF
4321 #line 4322 "configure"
4322 #include "confdefs.h"
4326 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4327 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4331 if { (eval echo configure:4332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4333 ac_cv_func_memcmp_clean=yes
4335 echo "configure: failed program was:" >&5
4336 cat conftest.$ac_ext >&5
4338 ac_cv_func_memcmp_clean=no
4345 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4346 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4349 ###############################################
4350 # test for where we get crypt() from
4351 for ac_func in crypt
4353 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4354 echo "configure:4355: checking for $ac_func" >&5
4355 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4356 echo $ac_n "(cached) $ac_c" 1>&6
4358 cat > conftest.$ac_ext <<EOF
4359 #line 4360 "configure"
4360 #include "confdefs.h"
4361 /* System header to define __stub macros and hopefully few prototypes,
4362 which can conflict with char $ac_func(); below. */
4364 /* Override any gcc2 internal prototype to avoid an error. */
4365 /* We use char because int might match the return type of a gcc2
4366 builtin and then its argument prototype would still apply. */
4371 /* The GNU C library defines this for functions which it implements
4372 to always fail with ENOSYS. Some functions are actually named
4373 something starting with __ and the normal name is an alias. */
4374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4382 if { (eval echo configure:4383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4384 eval "ac_cv_func_$ac_func=yes"
4386 echo "configure: failed program was:" >&5
4387 cat conftest.$ac_ext >&5
4389 eval "ac_cv_func_$ac_func=no"
4394 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4395 echo "$ac_t""yes" 1>&6
4396 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4397 cat >> confdefs.h <<EOF
4398 #define $ac_tr_func 1
4402 echo "$ac_t""no" 1>&6
4406 if test x"$ac_cv_func_crypt" = x"no"; then
4407 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4408 echo "configure:4409: checking for crypt in -lcrypt" >&5
4409 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4410 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4411 echo $ac_n "(cached) $ac_c" 1>&6
4413 ac_save_LIBS="$LIBS"
4414 LIBS="-lcrypt $LIBS"
4415 cat > conftest.$ac_ext <<EOF
4416 #line 4417 "configure"
4417 #include "confdefs.h"
4418 /* Override any gcc2 internal prototype to avoid an error. */
4419 /* We use char because int might match the return type of a gcc2
4420 builtin and then its argument prototype would still apply. */
4427 if { (eval echo configure:4428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4429 eval "ac_cv_lib_$ac_lib_var=yes"
4431 echo "configure: failed program was:" >&5
4432 cat conftest.$ac_ext >&5
4434 eval "ac_cv_lib_$ac_lib_var=no"
4437 LIBS="$ac_save_LIBS"
4440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4441 echo "$ac_t""yes" 1>&6
4442 LIBS="$LIBS -lcrypt";
4443 cat >> confdefs.h <<\EOF
4444 #define HAVE_CRYPT 1
4448 echo "$ac_t""no" 1>&6
4454 ###############################################
4455 # Readline included by default unless explicitly asked not to
4456 test "${with_readline+set}" != "set" && with_readline=yes
4458 # test for where we get readline() from
4459 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4460 echo "configure:4461: checking whether to use readline" >&5
4461 # Check whether --with-readline or --without-readline was given.
4462 if test "${with_readline+set}" = set; then
4463 withval="$with_readline"
4464 case "$with_readline" in
4466 echo "$ac_t""yes" 1>&6
4468 for ac_hdr in readline.h history.h readline/readline.h
4470 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4471 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4472 echo "configure:4473: checking for $ac_hdr" >&5
4473 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4474 echo $ac_n "(cached) $ac_c" 1>&6
4476 cat > conftest.$ac_ext <<EOF
4477 #line 4478 "configure"
4478 #include "confdefs.h"
4481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4482 { (eval echo configure:4483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4484 if test -z "$ac_err"; then
4486 eval "ac_cv_header_$ac_safe=yes"
4489 echo "configure: failed program was:" >&5
4490 cat conftest.$ac_ext >&5
4492 eval "ac_cv_header_$ac_safe=no"
4496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4497 echo "$ac_t""yes" 1>&6
4498 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4499 cat >> confdefs.h <<EOF
4500 #define $ac_tr_hdr 1
4504 echo "$ac_t""no" 1>&6
4508 for ac_hdr in readline/history.h
4510 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4511 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4512 echo "configure:4513: checking for $ac_hdr" >&5
4513 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4514 echo $ac_n "(cached) $ac_c" 1>&6
4516 cat > conftest.$ac_ext <<EOF
4517 #line 4518 "configure"
4518 #include "confdefs.h"
4521 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4522 { (eval echo configure:4523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4523 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4524 if test -z "$ac_err"; then
4526 eval "ac_cv_header_$ac_safe=yes"
4529 echo "configure: failed program was:" >&5
4530 cat conftest.$ac_ext >&5
4532 eval "ac_cv_header_$ac_safe=no"
4536 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4537 echo "$ac_t""yes" 1>&6
4538 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4539 cat >> confdefs.h <<EOF
4540 #define $ac_tr_hdr 1
4544 echo "$ac_t""no" 1>&6
4549 for ac_hdr in readline.h readline/readline.h
4551 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4552 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4553 echo "configure:4554: checking for $ac_hdr" >&5
4554 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4555 echo $ac_n "(cached) $ac_c" 1>&6
4557 cat > conftest.$ac_ext <<EOF
4558 #line 4559 "configure"
4559 #include "confdefs.h"
4562 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4563 { (eval echo configure:4564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4564 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4565 if test -z "$ac_err"; then
4567 eval "ac_cv_header_$ac_safe=yes"
4570 echo "configure: failed program was:" >&5
4571 cat conftest.$ac_ext >&5
4573 eval "ac_cv_header_$ac_safe=no"
4577 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4578 echo "$ac_t""yes" 1>&6
4579 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4580 cat >> confdefs.h <<EOF
4581 #define $ac_tr_hdr 1
4584 for termlib in ncurses curses termcap terminfo termlib; do
4585 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4586 echo "configure:4587: checking for tgetent in -l${termlib}" >&5
4587 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4588 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4589 echo $ac_n "(cached) $ac_c" 1>&6
4591 ac_save_LIBS="$LIBS"
4592 LIBS="-l${termlib} $LIBS"
4593 cat > conftest.$ac_ext <<EOF
4594 #line 4595 "configure"
4595 #include "confdefs.h"
4596 /* Override any gcc2 internal prototype to avoid an error. */
4597 /* We use char because int might match the return type of a gcc2
4598 builtin and then its argument prototype would still apply. */
4605 if { (eval echo configure:4606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4607 eval "ac_cv_lib_$ac_lib_var=yes"
4609 echo "configure: failed program was:" >&5
4610 cat conftest.$ac_ext >&5
4612 eval "ac_cv_lib_$ac_lib_var=no"
4615 LIBS="$ac_save_LIBS"
4618 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4619 echo "$ac_t""yes" 1>&6
4620 TERMLIBS="-l${termlib}"; break
4622 echo "$ac_t""no" 1>&6
4626 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4627 echo "configure:4628: checking for rl_callback_handler_install in -lreadline" >&5
4628 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4629 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4630 echo $ac_n "(cached) $ac_c" 1>&6
4632 ac_save_LIBS="$LIBS"
4633 LIBS="-lreadline $TERMLIBS $LIBS"
4634 cat > conftest.$ac_ext <<EOF
4635 #line 4636 "configure"
4636 #include "confdefs.h"
4637 /* Override any gcc2 internal prototype to avoid an error. */
4638 /* We use char because int might match the return type of a gcc2
4639 builtin and then its argument prototype would still apply. */
4640 char rl_callback_handler_install();
4643 rl_callback_handler_install()
4646 if { (eval echo configure:4647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4648 eval "ac_cv_lib_$ac_lib_var=yes"
4650 echo "configure: failed program was:" >&5
4651 cat conftest.$ac_ext >&5
4653 eval "ac_cv_lib_$ac_lib_var=no"
4656 LIBS="$ac_save_LIBS"
4659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4660 echo "$ac_t""yes" 1>&6
4661 TERMLIBS="-lreadline $TERMLIBS"
4662 cat >> confdefs.h <<\EOF
4663 #define HAVE_LIBREADLINE 1
4668 echo "$ac_t""no" 1>&6
4673 echo "$ac_t""no" 1>&6
4679 echo "$ac_t""no" 1>&6
4682 echo "$ac_t""yes" 1>&6
4684 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4685 # alternate readline path
4687 _cppflags=${CPPFLAGS}
4689 # Add additional search path
4690 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4691 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4693 for ac_hdr in readline.h history.h readline/readline.h
4695 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4696 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4697 echo "configure:4698: checking for $ac_hdr" >&5
4698 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4699 echo $ac_n "(cached) $ac_c" 1>&6
4701 cat > conftest.$ac_ext <<EOF
4702 #line 4703 "configure"
4703 #include "confdefs.h"
4706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4707 { (eval echo configure:4708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4709 if test -z "$ac_err"; then
4711 eval "ac_cv_header_$ac_safe=yes"
4714 echo "configure: failed program was:" >&5
4715 cat conftest.$ac_ext >&5
4717 eval "ac_cv_header_$ac_safe=no"
4721 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4722 echo "$ac_t""yes" 1>&6
4723 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4724 cat >> confdefs.h <<EOF
4725 #define $ac_tr_hdr 1
4729 echo "$ac_t""no" 1>&6
4733 for ac_hdr in readline/history.h
4735 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4737 echo "configure:4738: checking for $ac_hdr" >&5
4738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4739 echo $ac_n "(cached) $ac_c" 1>&6
4741 cat > conftest.$ac_ext <<EOF
4742 #line 4743 "configure"
4743 #include "confdefs.h"
4746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4747 { (eval echo configure:4748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4749 if test -z "$ac_err"; then
4751 eval "ac_cv_header_$ac_safe=yes"
4754 echo "configure: failed program was:" >&5
4755 cat conftest.$ac_ext >&5
4757 eval "ac_cv_header_$ac_safe=no"
4761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4762 echo "$ac_t""yes" 1>&6
4763 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4764 cat >> confdefs.h <<EOF
4765 #define $ac_tr_hdr 1
4769 echo "$ac_t""no" 1>&6
4774 for ac_hdr in readline.h readline/readline.h
4776 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4777 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4778 echo "configure:4779: checking for $ac_hdr" >&5
4779 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4780 echo $ac_n "(cached) $ac_c" 1>&6
4782 cat > conftest.$ac_ext <<EOF
4783 #line 4784 "configure"
4784 #include "confdefs.h"
4787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4788 { (eval echo configure:4789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4789 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4790 if test -z "$ac_err"; then
4792 eval "ac_cv_header_$ac_safe=yes"
4795 echo "configure: failed program was:" >&5
4796 cat conftest.$ac_ext >&5
4798 eval "ac_cv_header_$ac_safe=no"
4802 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4803 echo "$ac_t""yes" 1>&6
4804 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4805 cat >> confdefs.h <<EOF
4806 #define $ac_tr_hdr 1
4809 for termlib in ncurses curses termcap terminfo termlib; do
4810 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4811 echo "configure:4812: checking for tgetent in -l${termlib}" >&5
4812 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4813 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4814 echo $ac_n "(cached) $ac_c" 1>&6
4816 ac_save_LIBS="$LIBS"
4817 LIBS="-l${termlib} $LIBS"
4818 cat > conftest.$ac_ext <<EOF
4819 #line 4820 "configure"
4820 #include "confdefs.h"
4821 /* Override any gcc2 internal prototype to avoid an error. */
4822 /* We use char because int might match the return type of a gcc2
4823 builtin and then its argument prototype would still apply. */
4830 if { (eval echo configure:4831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4832 eval "ac_cv_lib_$ac_lib_var=yes"
4834 echo "configure: failed program was:" >&5
4835 cat conftest.$ac_ext >&5
4837 eval "ac_cv_lib_$ac_lib_var=no"
4840 LIBS="$ac_save_LIBS"
4843 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4844 echo "$ac_t""yes" 1>&6
4845 TERMLIBS="-l${termlib}"; break
4847 echo "$ac_t""no" 1>&6
4851 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4852 echo "configure:4853: checking for rl_callback_handler_install in -lreadline" >&5
4853 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4854 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4855 echo $ac_n "(cached) $ac_c" 1>&6
4857 ac_save_LIBS="$LIBS"
4858 LIBS="-lreadline $TERMLIBS $LIBS"
4859 cat > conftest.$ac_ext <<EOF
4860 #line 4861 "configure"
4861 #include "confdefs.h"
4862 /* Override any gcc2 internal prototype to avoid an error. */
4863 /* We use char because int might match the return type of a gcc2
4864 builtin and then its argument prototype would still apply. */
4865 char rl_callback_handler_install();
4868 rl_callback_handler_install()
4871 if { (eval echo configure:4872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4873 eval "ac_cv_lib_$ac_lib_var=yes"
4875 echo "configure: failed program was:" >&5
4876 cat conftest.$ac_ext >&5
4878 eval "ac_cv_lib_$ac_lib_var=no"
4881 LIBS="$ac_save_LIBS"
4884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4885 echo "$ac_t""yes" 1>&6
4886 TERMLDFLAGS="-L$with_readline/lib"
4887 TERMCPPFLAGS="-I$with_readline/include"
4888 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4889 TERMLIBS="-lreadline $TERMLIBS"
4890 cat >> confdefs.h <<\EOF
4891 #define HAVE_LIBREADLINE 1
4896 echo "$ac_t""no" 1>&6
4897 TERMLIBS= CPPFLAGS=$_cppflags
4901 echo "$ac_t""no" 1>&6
4910 echo "$ac_t""no" 1>&6
4917 # The following test taken from the cvs sources
4918 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4919 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4920 # libsocket.so which has a bad implementation of gethostbyname (it
4921 # only looks in /etc/hosts), so we only look for -lsocket if we need
4923 for ac_func in connect
4925 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4926 echo "configure:4927: checking for $ac_func" >&5
4927 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4928 echo $ac_n "(cached) $ac_c" 1>&6
4930 cat > conftest.$ac_ext <<EOF
4931 #line 4932 "configure"
4932 #include "confdefs.h"
4933 /* System header to define __stub macros and hopefully few prototypes,
4934 which can conflict with char $ac_func(); below. */
4936 /* Override any gcc2 internal prototype to avoid an error. */
4937 /* We use char because int might match the return type of a gcc2
4938 builtin and then its argument prototype would still apply. */
4943 /* The GNU C library defines this for functions which it implements
4944 to always fail with ENOSYS. Some functions are actually named
4945 something starting with __ and the normal name is an alias. */
4946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4954 if { (eval echo configure:4955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4956 eval "ac_cv_func_$ac_func=yes"
4958 echo "configure: failed program was:" >&5
4959 cat conftest.$ac_ext >&5
4961 eval "ac_cv_func_$ac_func=no"
4966 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4967 echo "$ac_t""yes" 1>&6
4968 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4969 cat >> confdefs.h <<EOF
4970 #define $ac_tr_func 1
4974 echo "$ac_t""no" 1>&6
4978 if test x"$ac_cv_func_connect" = x"no"; then
4981 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4982 echo "configure:4983: checking for printf in -lnsl_s" >&5
4983 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4984 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4985 echo $ac_n "(cached) $ac_c" 1>&6
4987 ac_save_LIBS="$LIBS"
4988 LIBS="-lnsl_s $LIBS"
4989 cat > conftest.$ac_ext <<EOF
4990 #line 4991 "configure"
4991 #include "confdefs.h"
4992 /* Override any gcc2 internal prototype to avoid an error. */
4993 /* We use char because int might match the return type of a gcc2
4994 builtin and then its argument prototype would still apply. */
5001 if { (eval echo configure:5002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5003 eval "ac_cv_lib_$ac_lib_var=yes"
5005 echo "configure: failed program was:" >&5
5006 cat conftest.$ac_ext >&5
5008 eval "ac_cv_lib_$ac_lib_var=no"
5011 LIBS="$ac_save_LIBS"
5014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5015 echo "$ac_t""yes" 1>&6
5016 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5017 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5018 cat >> confdefs.h <<EOF
5019 #define $ac_tr_lib 1
5022 LIBS="-lnsl_s $LIBS"
5025 echo "$ac_t""no" 1>&6
5031 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5032 echo "configure:5033: checking for printf in -lnsl" >&5
5033 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5034 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5035 echo $ac_n "(cached) $ac_c" 1>&6
5037 ac_save_LIBS="$LIBS"
5039 cat > conftest.$ac_ext <<EOF
5040 #line 5041 "configure"
5041 #include "confdefs.h"
5042 /* Override any gcc2 internal prototype to avoid an error. */
5043 /* We use char because int might match the return type of a gcc2
5044 builtin and then its argument prototype would still apply. */
5051 if { (eval echo configure:5052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5053 eval "ac_cv_lib_$ac_lib_var=yes"
5055 echo "configure: failed program was:" >&5
5056 cat conftest.$ac_ext >&5
5058 eval "ac_cv_lib_$ac_lib_var=no"
5061 LIBS="$ac_save_LIBS"
5064 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5065 echo "$ac_t""yes" 1>&6
5066 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5067 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5068 cat >> confdefs.h <<EOF
5069 #define $ac_tr_lib 1
5075 echo "$ac_t""no" 1>&6
5081 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5082 echo "configure:5083: checking for connect in -lsocket" >&5
5083 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5084 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5085 echo $ac_n "(cached) $ac_c" 1>&6
5087 ac_save_LIBS="$LIBS"
5088 LIBS="-lsocket $LIBS"
5089 cat > conftest.$ac_ext <<EOF
5090 #line 5091 "configure"
5091 #include "confdefs.h"
5092 /* Override any gcc2 internal prototype to avoid an error. */
5093 /* We use char because int might match the return type of a gcc2
5094 builtin and then its argument prototype would still apply. */
5101 if { (eval echo configure:5102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5103 eval "ac_cv_lib_$ac_lib_var=yes"
5105 echo "configure: failed program was:" >&5
5106 cat conftest.$ac_ext >&5
5108 eval "ac_cv_lib_$ac_lib_var=no"
5111 LIBS="$ac_save_LIBS"
5114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5115 echo "$ac_t""yes" 1>&6
5116 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5117 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5118 cat >> confdefs.h <<EOF
5119 #define $ac_tr_lib 1
5122 LIBS="-lsocket $LIBS"
5125 echo "$ac_t""no" 1>&6
5131 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5132 echo "configure:5133: checking for connect in -linet" >&5
5133 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5134 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5135 echo $ac_n "(cached) $ac_c" 1>&6
5137 ac_save_LIBS="$LIBS"
5139 cat > conftest.$ac_ext <<EOF
5140 #line 5141 "configure"
5141 #include "confdefs.h"
5142 /* Override any gcc2 internal prototype to avoid an error. */
5143 /* We use char because int might match the return type of a gcc2
5144 builtin and then its argument prototype would still apply. */
5151 if { (eval echo configure:5152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5153 eval "ac_cv_lib_$ac_lib_var=yes"
5155 echo "configure: failed program was:" >&5
5156 cat conftest.$ac_ext >&5
5158 eval "ac_cv_lib_$ac_lib_var=no"
5161 LIBS="$ac_save_LIBS"
5164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5165 echo "$ac_t""yes" 1>&6
5166 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5167 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5168 cat >> confdefs.h <<EOF
5169 #define $ac_tr_lib 1
5175 echo "$ac_t""no" 1>&6
5179 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5180 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5181 # ac_cv_func_connect=yes
5182 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5183 cat >> confdefs.h <<\EOF
5184 #define HAVE_CONNECT 1
5190 ###############################################
5191 # test for where we get get_yp_default_domain() from
5192 for ac_func in yp_get_default_domain
5194 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5195 echo "configure:5196: checking for $ac_func" >&5
5196 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5197 echo $ac_n "(cached) $ac_c" 1>&6
5199 cat > conftest.$ac_ext <<EOF
5200 #line 5201 "configure"
5201 #include "confdefs.h"
5202 /* System header to define __stub macros and hopefully few prototypes,
5203 which can conflict with char $ac_func(); below. */
5205 /* Override any gcc2 internal prototype to avoid an error. */
5206 /* We use char because int might match the return type of a gcc2
5207 builtin and then its argument prototype would still apply. */
5212 /* The GNU C library defines this for functions which it implements
5213 to always fail with ENOSYS. Some functions are actually named
5214 something starting with __ and the normal name is an alias. */
5215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5223 if { (eval echo configure:5224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5225 eval "ac_cv_func_$ac_func=yes"
5227 echo "configure: failed program was:" >&5
5228 cat conftest.$ac_ext >&5
5230 eval "ac_cv_func_$ac_func=no"
5235 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5236 echo "$ac_t""yes" 1>&6
5237 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5238 cat >> confdefs.h <<EOF
5239 #define $ac_tr_func 1
5243 echo "$ac_t""no" 1>&6
5247 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5248 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5249 echo "configure:5250: checking for yp_get_default_domain in -lnsl" >&5
5250 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5251 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5252 echo $ac_n "(cached) $ac_c" 1>&6
5254 ac_save_LIBS="$LIBS"
5256 cat > conftest.$ac_ext <<EOF
5257 #line 5258 "configure"
5258 #include "confdefs.h"
5259 /* Override any gcc2 internal prototype to avoid an error. */
5260 /* We use char because int might match the return type of a gcc2
5261 builtin and then its argument prototype would still apply. */
5262 char yp_get_default_domain();
5265 yp_get_default_domain()
5268 if { (eval echo configure:5269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5270 eval "ac_cv_lib_$ac_lib_var=yes"
5272 echo "configure: failed program was:" >&5
5273 cat conftest.$ac_ext >&5
5275 eval "ac_cv_lib_$ac_lib_var=no"
5278 LIBS="$ac_save_LIBS"
5281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5282 echo "$ac_t""yes" 1>&6
5284 cat >> confdefs.h <<\EOF
5285 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5289 echo "$ac_t""no" 1>&6
5294 # Check if we have execl, if not we need to compile smbrun.
5295 for ac_func in execl
5297 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5298 echo "configure:5299: checking for $ac_func" >&5
5299 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5300 echo $ac_n "(cached) $ac_c" 1>&6
5302 cat > conftest.$ac_ext <<EOF
5303 #line 5304 "configure"
5304 #include "confdefs.h"
5305 /* System header to define __stub macros and hopefully few prototypes,
5306 which can conflict with char $ac_func(); below. */
5308 /* Override any gcc2 internal prototype to avoid an error. */
5309 /* We use char because int might match the return type of a gcc2
5310 builtin and then its argument prototype would still apply. */
5315 /* The GNU C library defines this for functions which it implements
5316 to always fail with ENOSYS. Some functions are actually named
5317 something starting with __ and the normal name is an alias. */
5318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5326 if { (eval echo configure:5327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5328 eval "ac_cv_func_$ac_func=yes"
5330 echo "configure: failed program was:" >&5
5331 cat conftest.$ac_ext >&5
5333 eval "ac_cv_func_$ac_func=no"
5338 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5339 echo "$ac_t""yes" 1>&6
5340 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5341 cat >> confdefs.h <<EOF
5342 #define $ac_tr_func 1
5346 echo "$ac_t""no" 1>&6
5350 if test x"$ac_cv_func_execl" = x"no"; then
5351 RUNPROG="bin/smbrun"
5356 for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot
5358 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5359 echo "configure:5360: checking for $ac_func" >&5
5360 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5361 echo $ac_n "(cached) $ac_c" 1>&6
5363 cat > conftest.$ac_ext <<EOF
5364 #line 5365 "configure"
5365 #include "confdefs.h"
5366 /* System header to define __stub macros and hopefully few prototypes,
5367 which can conflict with char $ac_func(); below. */
5369 /* Override any gcc2 internal prototype to avoid an error. */
5370 /* We use char because int might match the return type of a gcc2
5371 builtin and then its argument prototype would still apply. */
5376 /* The GNU C library defines this for functions which it implements
5377 to always fail with ENOSYS. Some functions are actually named
5378 something starting with __ and the normal name is an alias. */
5379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5387 if { (eval echo configure:5388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5389 eval "ac_cv_func_$ac_func=yes"
5391 echo "configure: failed program was:" >&5
5392 cat conftest.$ac_ext >&5
5394 eval "ac_cv_func_$ac_func=no"
5399 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5400 echo "$ac_t""yes" 1>&6
5401 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5402 cat >> confdefs.h <<EOF
5403 #define $ac_tr_func 1
5407 echo "$ac_t""no" 1>&6
5411 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
5413 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5414 echo "configure:5415: checking for $ac_func" >&5
5415 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5416 echo $ac_n "(cached) $ac_c" 1>&6
5418 cat > conftest.$ac_ext <<EOF
5419 #line 5420 "configure"
5420 #include "confdefs.h"
5421 /* System header to define __stub macros and hopefully few prototypes,
5422 which can conflict with char $ac_func(); below. */
5424 /* Override any gcc2 internal prototype to avoid an error. */
5425 /* We use char because int might match the return type of a gcc2
5426 builtin and then its argument prototype would still apply. */
5431 /* The GNU C library defines this for functions which it implements
5432 to always fail with ENOSYS. Some functions are actually named
5433 something starting with __ and the normal name is an alias. */
5434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5442 if { (eval echo configure:5443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5444 eval "ac_cv_func_$ac_func=yes"
5446 echo "configure: failed program was:" >&5
5447 cat conftest.$ac_ext >&5
5449 eval "ac_cv_func_$ac_func=no"
5454 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5455 echo "$ac_t""yes" 1>&6
5456 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5457 cat >> confdefs.h <<EOF
5458 #define $ac_tr_func 1
5462 echo "$ac_t""no" 1>&6
5466 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5468 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5469 echo "configure:5470: checking for $ac_func" >&5
5470 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5471 echo $ac_n "(cached) $ac_c" 1>&6
5473 cat > conftest.$ac_ext <<EOF
5474 #line 5475 "configure"
5475 #include "confdefs.h"
5476 /* System header to define __stub macros and hopefully few prototypes,
5477 which can conflict with char $ac_func(); below. */
5479 /* Override any gcc2 internal prototype to avoid an error. */
5480 /* We use char because int might match the return type of a gcc2
5481 builtin and then its argument prototype would still apply. */
5486 /* The GNU C library defines this for functions which it implements
5487 to always fail with ENOSYS. Some functions are actually named
5488 something starting with __ and the normal name is an alias. */
5489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5497 if { (eval echo configure:5498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5499 eval "ac_cv_func_$ac_func=yes"
5501 echo "configure: failed program was:" >&5
5502 cat conftest.$ac_ext >&5
5504 eval "ac_cv_func_$ac_func=no"
5509 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5510 echo "$ac_t""yes" 1>&6
5511 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5512 cat >> confdefs.h <<EOF
5513 #define $ac_tr_func 1
5517 echo "$ac_t""no" 1>&6
5521 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
5523 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5524 echo "configure:5525: checking for $ac_func" >&5
5525 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5526 echo $ac_n "(cached) $ac_c" 1>&6
5528 cat > conftest.$ac_ext <<EOF
5529 #line 5530 "configure"
5530 #include "confdefs.h"
5531 /* System header to define __stub macros and hopefully few prototypes,
5532 which can conflict with char $ac_func(); below. */
5534 /* Override any gcc2 internal prototype to avoid an error. */
5535 /* We use char because int might match the return type of a gcc2
5536 builtin and then its argument prototype would still apply. */
5541 /* The GNU C library defines this for functions which it implements
5542 to always fail with ENOSYS. Some functions are actually named
5543 something starting with __ and the normal name is an alias. */
5544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5552 if { (eval echo configure:5553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5554 eval "ac_cv_func_$ac_func=yes"
5556 echo "configure: failed program was:" >&5
5557 cat conftest.$ac_ext >&5
5559 eval "ac_cv_func_$ac_func=no"
5564 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5565 echo "$ac_t""yes" 1>&6
5566 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5567 cat >> confdefs.h <<EOF
5568 #define $ac_tr_func 1
5572 echo "$ac_t""no" 1>&6
5576 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
5578 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5579 echo "configure:5580: checking for $ac_func" >&5
5580 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5581 echo $ac_n "(cached) $ac_c" 1>&6
5583 cat > conftest.$ac_ext <<EOF
5584 #line 5585 "configure"
5585 #include "confdefs.h"
5586 /* System header to define __stub macros and hopefully few prototypes,
5587 which can conflict with char $ac_func(); below. */
5589 /* Override any gcc2 internal prototype to avoid an error. */
5590 /* We use char because int might match the return type of a gcc2
5591 builtin and then its argument prototype would still apply. */
5596 /* The GNU C library defines this for functions which it implements
5597 to always fail with ENOSYS. Some functions are actually named
5598 something starting with __ and the normal name is an alias. */
5599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5607 if { (eval echo configure:5608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5609 eval "ac_cv_func_$ac_func=yes"
5611 echo "configure: failed program was:" >&5
5612 cat conftest.$ac_ext >&5
5614 eval "ac_cv_func_$ac_func=no"
5619 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5620 echo "$ac_t""yes" 1>&6
5621 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5622 cat >> confdefs.h <<EOF
5623 #define $ac_tr_func 1
5627 echo "$ac_t""no" 1>&6
5631 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5633 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5634 echo "configure:5635: checking for $ac_func" >&5
5635 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5636 echo $ac_n "(cached) $ac_c" 1>&6
5638 cat > conftest.$ac_ext <<EOF
5639 #line 5640 "configure"
5640 #include "confdefs.h"
5641 /* System header to define __stub macros and hopefully few prototypes,
5642 which can conflict with char $ac_func(); below. */
5644 /* Override any gcc2 internal prototype to avoid an error. */
5645 /* We use char because int might match the return type of a gcc2
5646 builtin and then its argument prototype would still apply. */
5651 /* The GNU C library defines this for functions which it implements
5652 to always fail with ENOSYS. Some functions are actually named
5653 something starting with __ and the normal name is an alias. */
5654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5662 if { (eval echo configure:5663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5664 eval "ac_cv_func_$ac_func=yes"
5666 echo "configure: failed program was:" >&5
5667 cat conftest.$ac_ext >&5
5669 eval "ac_cv_func_$ac_func=no"
5674 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5675 echo "$ac_t""yes" 1>&6
5676 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5677 cat >> confdefs.h <<EOF
5678 #define $ac_tr_func 1
5682 echo "$ac_t""no" 1>&6
5686 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5688 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5689 echo "configure:5690: checking for $ac_func" >&5
5690 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5691 echo $ac_n "(cached) $ac_c" 1>&6
5693 cat > conftest.$ac_ext <<EOF
5694 #line 5695 "configure"
5695 #include "confdefs.h"
5696 /* System header to define __stub macros and hopefully few prototypes,
5697 which can conflict with char $ac_func(); below. */
5699 /* Override any gcc2 internal prototype to avoid an error. */
5700 /* We use char because int might match the return type of a gcc2
5701 builtin and then its argument prototype would still apply. */
5706 /* The GNU C library defines this for functions which it implements
5707 to always fail with ENOSYS. Some functions are actually named
5708 something starting with __ and the normal name is an alias. */
5709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5717 if { (eval echo configure:5718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5719 eval "ac_cv_func_$ac_func=yes"
5721 echo "configure: failed program was:" >&5
5722 cat conftest.$ac_ext >&5
5724 eval "ac_cv_func_$ac_func=no"
5729 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5730 echo "$ac_t""yes" 1>&6
5731 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5732 cat >> confdefs.h <<EOF
5733 #define $ac_tr_func 1
5737 echo "$ac_t""no" 1>&6
5741 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5743 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5744 echo "configure:5745: checking for $ac_func" >&5
5745 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5746 echo $ac_n "(cached) $ac_c" 1>&6
5748 cat > conftest.$ac_ext <<EOF
5749 #line 5750 "configure"
5750 #include "confdefs.h"
5751 /* System header to define __stub macros and hopefully few prototypes,
5752 which can conflict with char $ac_func(); below. */
5754 /* Override any gcc2 internal prototype to avoid an error. */
5755 /* We use char because int might match the return type of a gcc2
5756 builtin and then its argument prototype would still apply. */
5761 /* The GNU C library defines this for functions which it implements
5762 to always fail with ENOSYS. Some functions are actually named
5763 something starting with __ and the normal name is an alias. */
5764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5772 if { (eval echo configure:5773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5774 eval "ac_cv_func_$ac_func=yes"
5776 echo "configure: failed program was:" >&5
5777 cat conftest.$ac_ext >&5
5779 eval "ac_cv_func_$ac_func=no"
5784 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5785 echo "$ac_t""yes" 1>&6
5786 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5787 cat >> confdefs.h <<EOF
5788 #define $ac_tr_func 1
5792 echo "$ac_t""no" 1>&6
5796 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5799 echo "configure:5800: checking for $ac_func" >&5
5800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5801 echo $ac_n "(cached) $ac_c" 1>&6
5803 cat > conftest.$ac_ext <<EOF
5804 #line 5805 "configure"
5805 #include "confdefs.h"
5806 /* System header to define __stub macros and hopefully few prototypes,
5807 which can conflict with char $ac_func(); below. */
5809 /* Override any gcc2 internal prototype to avoid an error. */
5810 /* We use char because int might match the return type of a gcc2
5811 builtin and then its argument prototype would still apply. */
5816 /* The GNU C library defines this for functions which it implements
5817 to always fail with ENOSYS. Some functions are actually named
5818 something starting with __ and the normal name is an alias. */
5819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5827 if { (eval echo configure:5828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5829 eval "ac_cv_func_$ac_func=yes"
5831 echo "configure: failed program was:" >&5
5832 cat conftest.$ac_ext >&5
5834 eval "ac_cv_func_$ac_func=no"
5839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5840 echo "$ac_t""yes" 1>&6
5841 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5842 cat >> confdefs.h <<EOF
5843 #define $ac_tr_func 1
5847 echo "$ac_t""no" 1>&6
5851 # setbuffer is needed for smbtorture
5852 for ac_func in setbuffer
5854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5855 echo "configure:5856: checking for $ac_func" >&5
5856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5857 echo $ac_n "(cached) $ac_c" 1>&6
5859 cat > conftest.$ac_ext <<EOF
5860 #line 5861 "configure"
5861 #include "confdefs.h"
5862 /* System header to define __stub macros and hopefully few prototypes,
5863 which can conflict with char $ac_func(); below. */
5865 /* Override any gcc2 internal prototype to avoid an error. */
5866 /* We use char because int might match the return type of a gcc2
5867 builtin and then its argument prototype would still apply. */
5872 /* The GNU C library defines this for functions which it implements
5873 to always fail with ENOSYS. Some functions are actually named
5874 something starting with __ and the normal name is an alias. */
5875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5883 if { (eval echo configure:5884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5885 eval "ac_cv_func_$ac_func=yes"
5887 echo "configure: failed program was:" >&5
5888 cat conftest.$ac_ext >&5
5890 eval "ac_cv_func_$ac_func=no"
5895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5896 echo "$ac_t""yes" 1>&6
5897 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5898 cat >> confdefs.h <<EOF
5899 #define $ac_tr_func 1
5903 echo "$ac_t""no" 1>&6
5908 # syscall() is needed for smbwrapper.
5909 for ac_func in syscall
5911 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5912 echo "configure:5913: checking for $ac_func" >&5
5913 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5914 echo $ac_n "(cached) $ac_c" 1>&6
5916 cat > conftest.$ac_ext <<EOF
5917 #line 5918 "configure"
5918 #include "confdefs.h"
5919 /* System header to define __stub macros and hopefully few prototypes,
5920 which can conflict with char $ac_func(); below. */
5922 /* Override any gcc2 internal prototype to avoid an error. */
5923 /* We use char because int might match the return type of a gcc2
5924 builtin and then its argument prototype would still apply. */
5929 /* The GNU C library defines this for functions which it implements
5930 to always fail with ENOSYS. Some functions are actually named
5931 something starting with __ and the normal name is an alias. */
5932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5940 if { (eval echo configure:5941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5942 eval "ac_cv_func_$ac_func=yes"
5944 echo "configure: failed program was:" >&5
5945 cat conftest.$ac_ext >&5
5947 eval "ac_cv_func_$ac_func=no"
5952 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5953 echo "$ac_t""yes" 1>&6
5954 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5955 cat >> confdefs.h <<EOF
5956 #define $ac_tr_func 1
5960 echo "$ac_t""no" 1>&6
5965 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5967 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5968 echo "configure:5969: checking for $ac_func" >&5
5969 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5970 echo $ac_n "(cached) $ac_c" 1>&6
5972 cat > conftest.$ac_ext <<EOF
5973 #line 5974 "configure"
5974 #include "confdefs.h"
5975 /* System header to define __stub macros and hopefully few prototypes,
5976 which can conflict with char $ac_func(); below. */
5978 /* Override any gcc2 internal prototype to avoid an error. */
5979 /* We use char because int might match the return type of a gcc2
5980 builtin and then its argument prototype would still apply. */
5985 /* The GNU C library defines this for functions which it implements
5986 to always fail with ENOSYS. Some functions are actually named
5987 something starting with __ and the normal name is an alias. */
5988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5996 if { (eval echo configure:5997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5998 eval "ac_cv_func_$ac_func=yes"
6000 echo "configure: failed program was:" >&5
6001 cat conftest.$ac_ext >&5
6003 eval "ac_cv_func_$ac_func=no"
6008 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6009 echo "$ac_t""yes" 1>&6
6010 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6011 cat >> confdefs.h <<EOF
6012 #define $ac_tr_func 1
6016 echo "$ac_t""no" 1>&6
6020 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6022 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6023 echo "configure:6024: checking for $ac_func" >&5
6024 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6025 echo $ac_n "(cached) $ac_c" 1>&6
6027 cat > conftest.$ac_ext <<EOF
6028 #line 6029 "configure"
6029 #include "confdefs.h"
6030 /* System header to define __stub macros and hopefully few prototypes,
6031 which can conflict with char $ac_func(); below. */
6033 /* Override any gcc2 internal prototype to avoid an error. */
6034 /* We use char because int might match the return type of a gcc2
6035 builtin and then its argument prototype would still apply. */
6040 /* The GNU C library defines this for functions which it implements
6041 to always fail with ENOSYS. Some functions are actually named
6042 something starting with __ and the normal name is an alias. */
6043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6051 if { (eval echo configure:6052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6053 eval "ac_cv_func_$ac_func=yes"
6055 echo "configure: failed program was:" >&5
6056 cat conftest.$ac_ext >&5
6058 eval "ac_cv_func_$ac_func=no"
6063 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6064 echo "$ac_t""yes" 1>&6
6065 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6066 cat >> confdefs.h <<EOF
6067 #define $ac_tr_func 1
6071 echo "$ac_t""no" 1>&6
6075 for ac_func in __getcwd _getcwd
6077 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6078 echo "configure:6079: checking for $ac_func" >&5
6079 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6080 echo $ac_n "(cached) $ac_c" 1>&6
6082 cat > conftest.$ac_ext <<EOF
6083 #line 6084 "configure"
6084 #include "confdefs.h"
6085 /* System header to define __stub macros and hopefully few prototypes,
6086 which can conflict with char $ac_func(); below. */
6088 /* Override any gcc2 internal prototype to avoid an error. */
6089 /* We use char because int might match the return type of a gcc2
6090 builtin and then its argument prototype would still apply. */
6095 /* The GNU C library defines this for functions which it implements
6096 to always fail with ENOSYS. Some functions are actually named
6097 something starting with __ and the normal name is an alias. */
6098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6106 if { (eval echo configure:6107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6108 eval "ac_cv_func_$ac_func=yes"
6110 echo "configure: failed program was:" >&5
6111 cat conftest.$ac_ext >&5
6113 eval "ac_cv_func_$ac_func=no"
6118 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6119 echo "$ac_t""yes" 1>&6
6120 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6121 cat >> confdefs.h <<EOF
6122 #define $ac_tr_func 1
6126 echo "$ac_t""no" 1>&6
6130 for ac_func in __xstat __fxstat __lxstat
6132 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6133 echo "configure:6134: checking for $ac_func" >&5
6134 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6135 echo $ac_n "(cached) $ac_c" 1>&6
6137 cat > conftest.$ac_ext <<EOF
6138 #line 6139 "configure"
6139 #include "confdefs.h"
6140 /* System header to define __stub macros and hopefully few prototypes,
6141 which can conflict with char $ac_func(); below. */
6143 /* Override any gcc2 internal prototype to avoid an error. */
6144 /* We use char because int might match the return type of a gcc2
6145 builtin and then its argument prototype would still apply. */
6150 /* The GNU C library defines this for functions which it implements
6151 to always fail with ENOSYS. Some functions are actually named
6152 something starting with __ and the normal name is an alias. */
6153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6161 if { (eval echo configure:6162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6163 eval "ac_cv_func_$ac_func=yes"
6165 echo "configure: failed program was:" >&5
6166 cat conftest.$ac_ext >&5
6168 eval "ac_cv_func_$ac_func=no"
6173 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6174 echo "$ac_t""yes" 1>&6
6175 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6176 cat >> confdefs.h <<EOF
6177 #define $ac_tr_func 1
6181 echo "$ac_t""no" 1>&6
6185 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6187 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6188 echo "configure:6189: checking for $ac_func" >&5
6189 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6190 echo $ac_n "(cached) $ac_c" 1>&6
6192 cat > conftest.$ac_ext <<EOF
6193 #line 6194 "configure"
6194 #include "confdefs.h"
6195 /* System header to define __stub macros and hopefully few prototypes,
6196 which can conflict with char $ac_func(); below. */
6198 /* Override any gcc2 internal prototype to avoid an error. */
6199 /* We use char because int might match the return type of a gcc2
6200 builtin and then its argument prototype would still apply. */
6205 /* The GNU C library defines this for functions which it implements
6206 to always fail with ENOSYS. Some functions are actually named
6207 something starting with __ and the normal name is an alias. */
6208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6216 if { (eval echo configure:6217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6218 eval "ac_cv_func_$ac_func=yes"
6220 echo "configure: failed program was:" >&5
6221 cat conftest.$ac_ext >&5
6223 eval "ac_cv_func_$ac_func=no"
6228 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6229 echo "$ac_t""yes" 1>&6
6230 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6231 cat >> confdefs.h <<EOF
6232 #define $ac_tr_func 1
6236 echo "$ac_t""no" 1>&6
6240 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6242 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6243 echo "configure:6244: checking for $ac_func" >&5
6244 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6245 echo $ac_n "(cached) $ac_c" 1>&6
6247 cat > conftest.$ac_ext <<EOF
6248 #line 6249 "configure"
6249 #include "confdefs.h"
6250 /* System header to define __stub macros and hopefully few prototypes,
6251 which can conflict with char $ac_func(); below. */
6253 /* Override any gcc2 internal prototype to avoid an error. */
6254 /* We use char because int might match the return type of a gcc2
6255 builtin and then its argument prototype would still apply. */
6260 /* The GNU C library defines this for functions which it implements
6261 to always fail with ENOSYS. Some functions are actually named
6262 something starting with __ and the normal name is an alias. */
6263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6271 if { (eval echo configure:6272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6273 eval "ac_cv_func_$ac_func=yes"
6275 echo "configure: failed program was:" >&5
6276 cat conftest.$ac_ext >&5
6278 eval "ac_cv_func_$ac_func=no"
6283 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6284 echo "$ac_t""yes" 1>&6
6285 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6286 cat >> confdefs.h <<EOF
6287 #define $ac_tr_func 1
6291 echo "$ac_t""no" 1>&6
6295 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6297 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6298 echo "configure:6299: checking for $ac_func" >&5
6299 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6300 echo $ac_n "(cached) $ac_c" 1>&6
6302 cat > conftest.$ac_ext <<EOF
6303 #line 6304 "configure"
6304 #include "confdefs.h"
6305 /* System header to define __stub macros and hopefully few prototypes,
6306 which can conflict with char $ac_func(); below. */
6308 /* Override any gcc2 internal prototype to avoid an error. */
6309 /* We use char because int might match the return type of a gcc2
6310 builtin and then its argument prototype would still apply. */
6315 /* The GNU C library defines this for functions which it implements
6316 to always fail with ENOSYS. Some functions are actually named
6317 something starting with __ and the normal name is an alias. */
6318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6326 if { (eval echo configure:6327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6328 eval "ac_cv_func_$ac_func=yes"
6330 echo "configure: failed program was:" >&5
6331 cat conftest.$ac_ext >&5
6333 eval "ac_cv_func_$ac_func=no"
6338 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6339 echo "$ac_t""yes" 1>&6
6340 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6341 cat >> confdefs.h <<EOF
6342 #define $ac_tr_func 1
6346 echo "$ac_t""no" 1>&6
6350 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6353 echo "configure:6354: checking for $ac_func" >&5
6354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6355 echo $ac_n "(cached) $ac_c" 1>&6
6357 cat > conftest.$ac_ext <<EOF
6358 #line 6359 "configure"
6359 #include "confdefs.h"
6360 /* System header to define __stub macros and hopefully few prototypes,
6361 which can conflict with char $ac_func(); below. */
6363 /* Override any gcc2 internal prototype to avoid an error. */
6364 /* We use char because int might match the return type of a gcc2
6365 builtin and then its argument prototype would still apply. */
6370 /* The GNU C library defines this for functions which it implements
6371 to always fail with ENOSYS. Some functions are actually named
6372 something starting with __ and the normal name is an alias. */
6373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6381 if { (eval echo configure:6382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6383 eval "ac_cv_func_$ac_func=yes"
6385 echo "configure: failed program was:" >&5
6386 cat conftest.$ac_ext >&5
6388 eval "ac_cv_func_$ac_func=no"
6393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6394 echo "$ac_t""yes" 1>&6
6395 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6396 cat >> confdefs.h <<EOF
6397 #define $ac_tr_func 1
6401 echo "$ac_t""no" 1>&6
6405 for ac_func in _write __write _fork __fork
6407 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6408 echo "configure:6409: checking for $ac_func" >&5
6409 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6410 echo $ac_n "(cached) $ac_c" 1>&6
6412 cat > conftest.$ac_ext <<EOF
6413 #line 6414 "configure"
6414 #include "confdefs.h"
6415 /* System header to define __stub macros and hopefully few prototypes,
6416 which can conflict with char $ac_func(); below. */
6418 /* Override any gcc2 internal prototype to avoid an error. */
6419 /* We use char because int might match the return type of a gcc2
6420 builtin and then its argument prototype would still apply. */
6425 /* The GNU C library defines this for functions which it implements
6426 to always fail with ENOSYS. Some functions are actually named
6427 something starting with __ and the normal name is an alias. */
6428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6436 if { (eval echo configure:6437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6438 eval "ac_cv_func_$ac_func=yes"
6440 echo "configure: failed program was:" >&5
6441 cat conftest.$ac_ext >&5
6443 eval "ac_cv_func_$ac_func=no"
6448 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6449 echo "$ac_t""yes" 1>&6
6450 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6451 cat >> confdefs.h <<EOF
6452 #define $ac_tr_func 1
6456 echo "$ac_t""no" 1>&6
6460 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6462 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6463 echo "configure:6464: checking for $ac_func" >&5
6464 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6465 echo $ac_n "(cached) $ac_c" 1>&6
6467 cat > conftest.$ac_ext <<EOF
6468 #line 6469 "configure"
6469 #include "confdefs.h"
6470 /* System header to define __stub macros and hopefully few prototypes,
6471 which can conflict with char $ac_func(); below. */
6473 /* Override any gcc2 internal prototype to avoid an error. */
6474 /* We use char because int might match the return type of a gcc2
6475 builtin and then its argument prototype would still apply. */
6480 /* The GNU C library defines this for functions which it implements
6481 to always fail with ENOSYS. Some functions are actually named
6482 something starting with __ and the normal name is an alias. */
6483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6491 if { (eval echo configure:6492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6493 eval "ac_cv_func_$ac_func=yes"
6495 echo "configure: failed program was:" >&5
6496 cat conftest.$ac_ext >&5
6498 eval "ac_cv_func_$ac_func=no"
6503 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6504 echo "$ac_t""yes" 1>&6
6505 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6506 cat >> confdefs.h <<EOF
6507 #define $ac_tr_func 1
6511 echo "$ac_t""no" 1>&6
6515 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6517 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6518 echo "configure:6519: checking for $ac_func" >&5
6519 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6520 echo $ac_n "(cached) $ac_c" 1>&6
6522 cat > conftest.$ac_ext <<EOF
6523 #line 6524 "configure"
6524 #include "confdefs.h"
6525 /* System header to define __stub macros and hopefully few prototypes,
6526 which can conflict with char $ac_func(); below. */
6528 /* Override any gcc2 internal prototype to avoid an error. */
6529 /* We use char because int might match the return type of a gcc2
6530 builtin and then its argument prototype would still apply. */
6535 /* The GNU C library defines this for functions which it implements
6536 to always fail with ENOSYS. Some functions are actually named
6537 something starting with __ and the normal name is an alias. */
6538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6546 if { (eval echo configure:6547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6548 eval "ac_cv_func_$ac_func=yes"
6550 echo "configure: failed program was:" >&5
6551 cat conftest.$ac_ext >&5
6553 eval "ac_cv_func_$ac_func=no"
6558 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6559 echo "$ac_t""yes" 1>&6
6560 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6561 cat >> confdefs.h <<EOF
6562 #define $ac_tr_func 1
6566 echo "$ac_t""no" 1>&6
6570 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6573 echo "configure:6574: checking for $ac_func" >&5
6574 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6575 echo $ac_n "(cached) $ac_c" 1>&6
6577 cat > conftest.$ac_ext <<EOF
6578 #line 6579 "configure"
6579 #include "confdefs.h"
6580 /* System header to define __stub macros and hopefully few prototypes,
6581 which can conflict with char $ac_func(); below. */
6583 /* Override any gcc2 internal prototype to avoid an error. */
6584 /* We use char because int might match the return type of a gcc2
6585 builtin and then its argument prototype would still apply. */
6590 /* The GNU C library defines this for functions which it implements
6591 to always fail with ENOSYS. Some functions are actually named
6592 something starting with __ and the normal name is an alias. */
6593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6601 if { (eval echo configure:6602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6603 eval "ac_cv_func_$ac_func=yes"
6605 echo "configure: failed program was:" >&5
6606 cat conftest.$ac_ext >&5
6608 eval "ac_cv_func_$ac_func=no"
6613 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6614 echo "$ac_t""yes" 1>&6
6615 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6616 cat >> confdefs.h <<EOF
6617 #define $ac_tr_func 1
6621 echo "$ac_t""no" 1>&6
6625 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6627 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6628 echo "configure:6629: checking for $ac_func" >&5
6629 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6630 echo $ac_n "(cached) $ac_c" 1>&6
6632 cat > conftest.$ac_ext <<EOF
6633 #line 6634 "configure"
6634 #include "confdefs.h"
6635 /* System header to define __stub macros and hopefully few prototypes,
6636 which can conflict with char $ac_func(); below. */
6638 /* Override any gcc2 internal prototype to avoid an error. */
6639 /* We use char because int might match the return type of a gcc2
6640 builtin and then its argument prototype would still apply. */
6645 /* The GNU C library defines this for functions which it implements
6646 to always fail with ENOSYS. Some functions are actually named
6647 something starting with __ and the normal name is an alias. */
6648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6656 if { (eval echo configure:6657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6658 eval "ac_cv_func_$ac_func=yes"
6660 echo "configure: failed program was:" >&5
6661 cat conftest.$ac_ext >&5
6663 eval "ac_cv_func_$ac_func=no"
6668 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6669 echo "$ac_t""yes" 1>&6
6670 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6671 cat >> confdefs.h <<EOF
6672 #define $ac_tr_func 1
6676 echo "$ac_t""no" 1>&6
6680 for ac_func in open64 _open64 __open64 creat64
6682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6683 echo "configure:6684: checking for $ac_func" >&5
6684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6685 echo $ac_n "(cached) $ac_c" 1>&6
6687 cat > conftest.$ac_ext <<EOF
6688 #line 6689 "configure"
6689 #include "confdefs.h"
6690 /* System header to define __stub macros and hopefully few prototypes,
6691 which can conflict with char $ac_func(); below. */
6693 /* Override any gcc2 internal prototype to avoid an error. */
6694 /* We use char because int might match the return type of a gcc2
6695 builtin and then its argument prototype would still apply. */
6700 /* The GNU C library defines this for functions which it implements
6701 to always fail with ENOSYS. Some functions are actually named
6702 something starting with __ and the normal name is an alias. */
6703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6711 if { (eval echo configure:6712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6713 eval "ac_cv_func_$ac_func=yes"
6715 echo "configure: failed program was:" >&5
6716 cat conftest.$ac_ext >&5
6718 eval "ac_cv_func_$ac_func=no"
6723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6724 echo "$ac_t""yes" 1>&6
6725 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6726 cat >> confdefs.h <<EOF
6727 #define $ac_tr_func 1
6731 echo "$ac_t""no" 1>&6
6737 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6740 if test x$ac_cv_func_stat64 = xno ; then
6741 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6742 echo "configure:6743: checking for stat64 in <sys/stat.h>" >&5
6743 cat > conftest.$ac_ext <<EOF
6744 #line 6745 "configure"
6745 #include "confdefs.h"
6747 #if defined(HAVE_UNISTD_H)
6750 #include <sys/stat.h>
6753 struct stat64 st64; exit(stat64(".",&st64));
6756 if { (eval echo configure:6757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6758 ac_cv_func_stat64=yes
6760 echo "configure: failed program was:" >&5
6761 cat conftest.$ac_ext >&5
6764 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6765 if test x$ac_cv_func_stat64 = xyes ; then
6766 cat >> confdefs.h <<\EOF
6767 #define HAVE_STAT64 1
6773 if test x$ac_cv_func_lstat64 = xno ; then
6774 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6775 echo "configure:6776: checking for lstat64 in <sys/stat.h>" >&5
6776 cat > conftest.$ac_ext <<EOF
6777 #line 6778 "configure"
6778 #include "confdefs.h"
6780 #if defined(HAVE_UNISTD_H)
6783 #include <sys/stat.h>
6786 struct stat64 st64; exit(lstat64(".",&st64));
6789 if { (eval echo configure:6790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6791 ac_cv_func_lstat64=yes
6793 echo "configure: failed program was:" >&5
6794 cat conftest.$ac_ext >&5
6797 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6798 if test x$ac_cv_func_lstat64 = xyes ; then
6799 cat >> confdefs.h <<\EOF
6800 #define HAVE_LSTAT64 1
6806 if test x$ac_cv_func_fstat64 = xno ; then
6807 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6808 echo "configure:6809: checking for fstat64 in <sys/stat.h>" >&5
6809 cat > conftest.$ac_ext <<EOF
6810 #line 6811 "configure"
6811 #include "confdefs.h"
6813 #if defined(HAVE_UNISTD_H)
6816 #include <sys/stat.h>
6819 struct stat64 st64; exit(fstat64(0,&st64));
6822 if { (eval echo configure:6823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6824 ac_cv_func_fstat64=yes
6826 echo "configure: failed program was:" >&5
6827 cat conftest.$ac_ext >&5
6830 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6831 if test x$ac_cv_func_fstat64 = xyes ; then
6832 cat >> confdefs.h <<\EOF
6833 #define HAVE_FSTAT64 1
6840 # If no strcasecmp, check for it in some known places
6841 # It is in -lresolv on ReliantUNIX and UnixWare
6842 # -lresolve *must* follow -lnsl for name resolution to work properly
6845 if test x$ac_cv_func_strcasecmp = xno ; then
6846 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6847 echo "configure:6848: checking for strcasecmp in -lresolv" >&5
6848 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6849 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6850 echo $ac_n "(cached) $ac_c" 1>&6
6852 ac_save_LIBS="$LIBS"
6853 LIBS="-lresolv $LIBS"
6854 cat > conftest.$ac_ext <<EOF
6855 #line 6856 "configure"
6856 #include "confdefs.h"
6857 /* Override any gcc2 internal prototype to avoid an error. */
6858 /* We use char because int might match the return type of a gcc2
6859 builtin and then its argument prototype would still apply. */
6866 if { (eval echo configure:6867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6868 eval "ac_cv_lib_$ac_lib_var=yes"
6870 echo "configure: failed program was:" >&5
6871 cat conftest.$ac_ext >&5
6873 eval "ac_cv_lib_$ac_lib_var=no"
6876 LIBS="$ac_save_LIBS"
6879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6880 echo "$ac_t""yes" 1>&6
6881 LIBS="$LIBS -lresolv"
6882 cat >> confdefs.h <<\EOF
6883 #define HAVE_STRCASECMP 1
6887 echo "$ac_t""no" 1>&6
6893 # Check for the functions putprpwnam, set_auth_parameters,
6894 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6895 # Needed for OSF1 and HPUX.
6899 *-lsecurity*) for ac_func in putprpwnam
6901 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6902 echo "configure:6903: checking for $ac_func" >&5
6903 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6904 echo $ac_n "(cached) $ac_c" 1>&6
6906 cat > conftest.$ac_ext <<EOF
6907 #line 6908 "configure"
6908 #include "confdefs.h"
6909 /* System header to define __stub macros and hopefully few prototypes,
6910 which can conflict with char $ac_func(); below. */
6912 /* Override any gcc2 internal prototype to avoid an error. */
6913 /* We use char because int might match the return type of a gcc2
6914 builtin and then its argument prototype would still apply. */
6919 /* The GNU C library defines this for functions which it implements
6920 to always fail with ENOSYS. Some functions are actually named
6921 something starting with __ and the normal name is an alias. */
6922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6930 if { (eval echo configure:6931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6932 eval "ac_cv_func_$ac_func=yes"
6934 echo "configure: failed program was:" >&5
6935 cat conftest.$ac_ext >&5
6937 eval "ac_cv_func_$ac_func=no"
6942 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6943 echo "$ac_t""yes" 1>&6
6944 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6945 cat >> confdefs.h <<EOF
6946 #define $ac_tr_func 1
6950 echo "$ac_t""no" 1>&6
6954 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6955 echo "configure:6956: checking for putprpwnam in -lsecurity" >&5
6956 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6957 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6958 echo $ac_n "(cached) $ac_c" 1>&6
6960 ac_save_LIBS="$LIBS"
6961 LIBS="-lsecurity $LIBS"
6962 cat > conftest.$ac_ext <<EOF
6963 #line 6964 "configure"
6964 #include "confdefs.h"
6965 /* Override any gcc2 internal prototype to avoid an error. */
6966 /* We use char because int might match the return type of a gcc2
6967 builtin and then its argument prototype would still apply. */
6974 if { (eval echo configure:6975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6976 eval "ac_cv_lib_$ac_lib_var=yes"
6978 echo "configure: failed program was:" >&5
6979 cat conftest.$ac_ext >&5
6981 eval "ac_cv_lib_$ac_lib_var=no"
6984 LIBS="$ac_save_LIBS"
6987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6988 echo "$ac_t""yes" 1>&6
6989 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6990 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6991 cat >> confdefs.h <<EOF
6992 #define $ac_tr_lib 1
6995 LIBS="-lsecurity $LIBS"
6998 echo "$ac_t""no" 1>&6
7001 for ac_func in putprpwnam
7003 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7004 echo "configure:7005: checking for $ac_func" >&5
7005 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7006 echo $ac_n "(cached) $ac_c" 1>&6
7008 cat > conftest.$ac_ext <<EOF
7009 #line 7010 "configure"
7010 #include "confdefs.h"
7011 /* System header to define __stub macros and hopefully few prototypes,
7012 which can conflict with char $ac_func(); below. */
7014 /* Override any gcc2 internal prototype to avoid an error. */
7015 /* We use char because int might match the return type of a gcc2
7016 builtin and then its argument prototype would still apply. */
7021 /* The GNU C library defines this for functions which it implements
7022 to always fail with ENOSYS. Some functions are actually named
7023 something starting with __ and the normal name is an alias. */
7024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7032 if { (eval echo configure:7033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7034 eval "ac_cv_func_$ac_func=yes"
7036 echo "configure: failed program was:" >&5
7037 cat conftest.$ac_ext >&5
7039 eval "ac_cv_func_$ac_func=no"
7044 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7045 echo "$ac_t""yes" 1>&6
7046 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7047 cat >> confdefs.h <<EOF
7048 #define $ac_tr_func 1
7052 echo "$ac_t""no" 1>&6
7060 *-lsec*) for ac_func in putprpwnam
7062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7063 echo "configure:7064: checking for $ac_func" >&5
7064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7065 echo $ac_n "(cached) $ac_c" 1>&6
7067 cat > conftest.$ac_ext <<EOF
7068 #line 7069 "configure"
7069 #include "confdefs.h"
7070 /* System header to define __stub macros and hopefully few prototypes,
7071 which can conflict with char $ac_func(); below. */
7073 /* Override any gcc2 internal prototype to avoid an error. */
7074 /* We use char because int might match the return type of a gcc2
7075 builtin and then its argument prototype would still apply. */
7080 /* The GNU C library defines this for functions which it implements
7081 to always fail with ENOSYS. Some functions are actually named
7082 something starting with __ and the normal name is an alias. */
7083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7091 if { (eval echo configure:7092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7093 eval "ac_cv_func_$ac_func=yes"
7095 echo "configure: failed program was:" >&5
7096 cat conftest.$ac_ext >&5
7098 eval "ac_cv_func_$ac_func=no"
7103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7104 echo "$ac_t""yes" 1>&6
7105 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7106 cat >> confdefs.h <<EOF
7107 #define $ac_tr_func 1
7111 echo "$ac_t""no" 1>&6
7115 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7116 echo "configure:7117: checking for putprpwnam in -lsec" >&5
7117 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7118 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7119 echo $ac_n "(cached) $ac_c" 1>&6
7121 ac_save_LIBS="$LIBS"
7123 cat > conftest.$ac_ext <<EOF
7124 #line 7125 "configure"
7125 #include "confdefs.h"
7126 /* Override any gcc2 internal prototype to avoid an error. */
7127 /* We use char because int might match the return type of a gcc2
7128 builtin and then its argument prototype would still apply. */
7135 if { (eval echo configure:7136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7137 eval "ac_cv_lib_$ac_lib_var=yes"
7139 echo "configure: failed program was:" >&5
7140 cat conftest.$ac_ext >&5
7142 eval "ac_cv_lib_$ac_lib_var=no"
7145 LIBS="$ac_save_LIBS"
7148 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7149 echo "$ac_t""yes" 1>&6
7150 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7151 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7152 cat >> confdefs.h <<EOF
7153 #define $ac_tr_lib 1
7159 echo "$ac_t""no" 1>&6
7162 for ac_func in putprpwnam
7164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7165 echo "configure:7166: checking for $ac_func" >&5
7166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7167 echo $ac_n "(cached) $ac_c" 1>&6
7169 cat > conftest.$ac_ext <<EOF
7170 #line 7171 "configure"
7171 #include "confdefs.h"
7172 /* System header to define __stub macros and hopefully few prototypes,
7173 which can conflict with char $ac_func(); below. */
7175 /* Override any gcc2 internal prototype to avoid an error. */
7176 /* We use char because int might match the return type of a gcc2
7177 builtin and then its argument prototype would still apply. */
7182 /* The GNU C library defines this for functions which it implements
7183 to always fail with ENOSYS. Some functions are actually named
7184 something starting with __ and the normal name is an alias. */
7185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7193 if { (eval echo configure:7194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7195 eval "ac_cv_func_$ac_func=yes"
7197 echo "configure: failed program was:" >&5
7198 cat conftest.$ac_ext >&5
7200 eval "ac_cv_func_$ac_func=no"
7205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7206 echo "$ac_t""yes" 1>&6
7207 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7208 cat >> confdefs.h <<EOF
7209 #define $ac_tr_func 1
7213 echo "$ac_t""no" 1>&6
7222 *-lsecurity*) for ac_func in set_auth_parameters
7224 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7225 echo "configure:7226: checking for $ac_func" >&5
7226 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7227 echo $ac_n "(cached) $ac_c" 1>&6
7229 cat > conftest.$ac_ext <<EOF
7230 #line 7231 "configure"
7231 #include "confdefs.h"
7232 /* System header to define __stub macros and hopefully few prototypes,
7233 which can conflict with char $ac_func(); below. */
7235 /* Override any gcc2 internal prototype to avoid an error. */
7236 /* We use char because int might match the return type of a gcc2
7237 builtin and then its argument prototype would still apply. */
7242 /* The GNU C library defines this for functions which it implements
7243 to always fail with ENOSYS. Some functions are actually named
7244 something starting with __ and the normal name is an alias. */
7245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7253 if { (eval echo configure:7254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7255 eval "ac_cv_func_$ac_func=yes"
7257 echo "configure: failed program was:" >&5
7258 cat conftest.$ac_ext >&5
7260 eval "ac_cv_func_$ac_func=no"
7265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7266 echo "$ac_t""yes" 1>&6
7267 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7268 cat >> confdefs.h <<EOF
7269 #define $ac_tr_func 1
7273 echo "$ac_t""no" 1>&6
7277 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7278 echo "configure:7279: checking for set_auth_parameters in -lsecurity" >&5
7279 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7280 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7281 echo $ac_n "(cached) $ac_c" 1>&6
7283 ac_save_LIBS="$LIBS"
7284 LIBS="-lsecurity $LIBS"
7285 cat > conftest.$ac_ext <<EOF
7286 #line 7287 "configure"
7287 #include "confdefs.h"
7288 /* Override any gcc2 internal prototype to avoid an error. */
7289 /* We use char because int might match the return type of a gcc2
7290 builtin and then its argument prototype would still apply. */
7291 char set_auth_parameters();
7294 set_auth_parameters()
7297 if { (eval echo configure:7298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7299 eval "ac_cv_lib_$ac_lib_var=yes"
7301 echo "configure: failed program was:" >&5
7302 cat conftest.$ac_ext >&5
7304 eval "ac_cv_lib_$ac_lib_var=no"
7307 LIBS="$ac_save_LIBS"
7310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7311 echo "$ac_t""yes" 1>&6
7312 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7313 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7314 cat >> confdefs.h <<EOF
7315 #define $ac_tr_lib 1
7318 LIBS="-lsecurity $LIBS"
7321 echo "$ac_t""no" 1>&6
7324 for ac_func in set_auth_parameters
7326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7327 echo "configure:7328: checking for $ac_func" >&5
7328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7329 echo $ac_n "(cached) $ac_c" 1>&6
7331 cat > conftest.$ac_ext <<EOF
7332 #line 7333 "configure"
7333 #include "confdefs.h"
7334 /* System header to define __stub macros and hopefully few prototypes,
7335 which can conflict with char $ac_func(); below. */
7337 /* Override any gcc2 internal prototype to avoid an error. */
7338 /* We use char because int might match the return type of a gcc2
7339 builtin and then its argument prototype would still apply. */
7344 /* The GNU C library defines this for functions which it implements
7345 to always fail with ENOSYS. Some functions are actually named
7346 something starting with __ and the normal name is an alias. */
7347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7355 if { (eval echo configure:7356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7357 eval "ac_cv_func_$ac_func=yes"
7359 echo "configure: failed program was:" >&5
7360 cat conftest.$ac_ext >&5
7362 eval "ac_cv_func_$ac_func=no"
7367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7368 echo "$ac_t""yes" 1>&6
7369 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7370 cat >> confdefs.h <<EOF
7371 #define $ac_tr_func 1
7375 echo "$ac_t""no" 1>&6
7383 *-lsec*) for ac_func in set_auth_parameters
7385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7386 echo "configure:7387: checking for $ac_func" >&5
7387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7388 echo $ac_n "(cached) $ac_c" 1>&6
7390 cat > conftest.$ac_ext <<EOF
7391 #line 7392 "configure"
7392 #include "confdefs.h"
7393 /* System header to define __stub macros and hopefully few prototypes,
7394 which can conflict with char $ac_func(); below. */
7396 /* Override any gcc2 internal prototype to avoid an error. */
7397 /* We use char because int might match the return type of a gcc2
7398 builtin and then its argument prototype would still apply. */
7403 /* The GNU C library defines this for functions which it implements
7404 to always fail with ENOSYS. Some functions are actually named
7405 something starting with __ and the normal name is an alias. */
7406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7414 if { (eval echo configure:7415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7416 eval "ac_cv_func_$ac_func=yes"
7418 echo "configure: failed program was:" >&5
7419 cat conftest.$ac_ext >&5
7421 eval "ac_cv_func_$ac_func=no"
7426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7427 echo "$ac_t""yes" 1>&6
7428 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7429 cat >> confdefs.h <<EOF
7430 #define $ac_tr_func 1
7434 echo "$ac_t""no" 1>&6
7438 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7439 echo "configure:7440: checking for set_auth_parameters in -lsec" >&5
7440 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7441 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7442 echo $ac_n "(cached) $ac_c" 1>&6
7444 ac_save_LIBS="$LIBS"
7446 cat > conftest.$ac_ext <<EOF
7447 #line 7448 "configure"
7448 #include "confdefs.h"
7449 /* Override any gcc2 internal prototype to avoid an error. */
7450 /* We use char because int might match the return type of a gcc2
7451 builtin and then its argument prototype would still apply. */
7452 char set_auth_parameters();
7455 set_auth_parameters()
7458 if { (eval echo configure:7459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7460 eval "ac_cv_lib_$ac_lib_var=yes"
7462 echo "configure: failed program was:" >&5
7463 cat conftest.$ac_ext >&5
7465 eval "ac_cv_lib_$ac_lib_var=no"
7468 LIBS="$ac_save_LIBS"
7471 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7472 echo "$ac_t""yes" 1>&6
7473 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7474 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7475 cat >> confdefs.h <<EOF
7476 #define $ac_tr_lib 1
7482 echo "$ac_t""no" 1>&6
7485 for ac_func in set_auth_parameters
7487 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7488 echo "configure:7489: checking for $ac_func" >&5
7489 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7490 echo $ac_n "(cached) $ac_c" 1>&6
7492 cat > conftest.$ac_ext <<EOF
7493 #line 7494 "configure"
7494 #include "confdefs.h"
7495 /* System header to define __stub macros and hopefully few prototypes,
7496 which can conflict with char $ac_func(); below. */
7498 /* Override any gcc2 internal prototype to avoid an error. */
7499 /* We use char because int might match the return type of a gcc2
7500 builtin and then its argument prototype would still apply. */
7505 /* The GNU C library defines this for functions which it implements
7506 to always fail with ENOSYS. Some functions are actually named
7507 something starting with __ and the normal name is an alias. */
7508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7516 if { (eval echo configure:7517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7518 eval "ac_cv_func_$ac_func=yes"
7520 echo "configure: failed program was:" >&5
7521 cat conftest.$ac_ext >&5
7523 eval "ac_cv_func_$ac_func=no"
7528 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7529 echo "$ac_t""yes" 1>&6
7530 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7531 cat >> confdefs.h <<EOF
7532 #define $ac_tr_func 1
7536 echo "$ac_t""no" 1>&6
7544 # UnixWare 7.x has its getspnam in -lgen
7546 *-lgen*) for ac_func in getspnam
7548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7549 echo "configure:7550: checking for $ac_func" >&5
7550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7551 echo $ac_n "(cached) $ac_c" 1>&6
7553 cat > conftest.$ac_ext <<EOF
7554 #line 7555 "configure"
7555 #include "confdefs.h"
7556 /* System header to define __stub macros and hopefully few prototypes,
7557 which can conflict with char $ac_func(); below. */
7559 /* Override any gcc2 internal prototype to avoid an error. */
7560 /* We use char because int might match the return type of a gcc2
7561 builtin and then its argument prototype would still apply. */
7566 /* The GNU C library defines this for functions which it implements
7567 to always fail with ENOSYS. Some functions are actually named
7568 something starting with __ and the normal name is an alias. */
7569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7577 if { (eval echo configure:7578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7579 eval "ac_cv_func_$ac_func=yes"
7581 echo "configure: failed program was:" >&5
7582 cat conftest.$ac_ext >&5
7584 eval "ac_cv_func_$ac_func=no"
7589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7590 echo "$ac_t""yes" 1>&6
7591 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7592 cat >> confdefs.h <<EOF
7593 #define $ac_tr_func 1
7597 echo "$ac_t""no" 1>&6
7601 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7602 echo "configure:7603: checking for getspnam in -lgen" >&5
7603 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7604 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7605 echo $ac_n "(cached) $ac_c" 1>&6
7607 ac_save_LIBS="$LIBS"
7609 cat > conftest.$ac_ext <<EOF
7610 #line 7611 "configure"
7611 #include "confdefs.h"
7612 /* Override any gcc2 internal prototype to avoid an error. */
7613 /* We use char because int might match the return type of a gcc2
7614 builtin and then its argument prototype would still apply. */
7621 if { (eval echo configure:7622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7623 eval "ac_cv_lib_$ac_lib_var=yes"
7625 echo "configure: failed program was:" >&5
7626 cat conftest.$ac_ext >&5
7628 eval "ac_cv_lib_$ac_lib_var=no"
7631 LIBS="$ac_save_LIBS"
7634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7635 echo "$ac_t""yes" 1>&6
7636 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7637 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7638 cat >> confdefs.h <<EOF
7639 #define $ac_tr_lib 1
7645 echo "$ac_t""no" 1>&6
7648 for ac_func in getspnam
7650 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7651 echo "configure:7652: checking for $ac_func" >&5
7652 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7653 echo $ac_n "(cached) $ac_c" 1>&6
7655 cat > conftest.$ac_ext <<EOF
7656 #line 7657 "configure"
7657 #include "confdefs.h"
7658 /* System header to define __stub macros and hopefully few prototypes,
7659 which can conflict with char $ac_func(); below. */
7661 /* Override any gcc2 internal prototype to avoid an error. */
7662 /* We use char because int might match the return type of a gcc2
7663 builtin and then its argument prototype would still apply. */
7668 /* The GNU C library defines this for functions which it implements
7669 to always fail with ENOSYS. Some functions are actually named
7670 something starting with __ and the normal name is an alias. */
7671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7679 if { (eval echo configure:7680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7681 eval "ac_cv_func_$ac_func=yes"
7683 echo "configure: failed program was:" >&5
7684 cat conftest.$ac_ext >&5
7686 eval "ac_cv_func_$ac_func=no"
7691 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7692 echo "$ac_t""yes" 1>&6
7693 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7694 cat >> confdefs.h <<EOF
7695 #define $ac_tr_func 1
7699 echo "$ac_t""no" 1>&6
7708 *-lsecurity*) for ac_func in getspnam
7710 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7711 echo "configure:7712: checking for $ac_func" >&5
7712 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7713 echo $ac_n "(cached) $ac_c" 1>&6
7715 cat > conftest.$ac_ext <<EOF
7716 #line 7717 "configure"
7717 #include "confdefs.h"
7718 /* System header to define __stub macros and hopefully few prototypes,
7719 which can conflict with char $ac_func(); below. */
7721 /* Override any gcc2 internal prototype to avoid an error. */
7722 /* We use char because int might match the return type of a gcc2
7723 builtin and then its argument prototype would still apply. */
7728 /* The GNU C library defines this for functions which it implements
7729 to always fail with ENOSYS. Some functions are actually named
7730 something starting with __ and the normal name is an alias. */
7731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7739 if { (eval echo configure:7740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7741 eval "ac_cv_func_$ac_func=yes"
7743 echo "configure: failed program was:" >&5
7744 cat conftest.$ac_ext >&5
7746 eval "ac_cv_func_$ac_func=no"
7751 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7752 echo "$ac_t""yes" 1>&6
7753 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7754 cat >> confdefs.h <<EOF
7755 #define $ac_tr_func 1
7759 echo "$ac_t""no" 1>&6
7763 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7764 echo "configure:7765: checking for getspnam in -lsecurity" >&5
7765 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7766 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7767 echo $ac_n "(cached) $ac_c" 1>&6
7769 ac_save_LIBS="$LIBS"
7770 LIBS="-lsecurity $LIBS"
7771 cat > conftest.$ac_ext <<EOF
7772 #line 7773 "configure"
7773 #include "confdefs.h"
7774 /* Override any gcc2 internal prototype to avoid an error. */
7775 /* We use char because int might match the return type of a gcc2
7776 builtin and then its argument prototype would still apply. */
7783 if { (eval echo configure:7784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7785 eval "ac_cv_lib_$ac_lib_var=yes"
7787 echo "configure: failed program was:" >&5
7788 cat conftest.$ac_ext >&5
7790 eval "ac_cv_lib_$ac_lib_var=no"
7793 LIBS="$ac_save_LIBS"
7796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7797 echo "$ac_t""yes" 1>&6
7798 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7799 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7800 cat >> confdefs.h <<EOF
7801 #define $ac_tr_lib 1
7804 LIBS="-lsecurity $LIBS"
7807 echo "$ac_t""no" 1>&6
7810 for ac_func in getspnam
7812 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7813 echo "configure:7814: checking for $ac_func" >&5
7814 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7815 echo $ac_n "(cached) $ac_c" 1>&6
7817 cat > conftest.$ac_ext <<EOF
7818 #line 7819 "configure"
7819 #include "confdefs.h"
7820 /* System header to define __stub macros and hopefully few prototypes,
7821 which can conflict with char $ac_func(); below. */
7823 /* Override any gcc2 internal prototype to avoid an error. */
7824 /* We use char because int might match the return type of a gcc2
7825 builtin and then its argument prototype would still apply. */
7830 /* The GNU C library defines this for functions which it implements
7831 to always fail with ENOSYS. Some functions are actually named
7832 something starting with __ and the normal name is an alias. */
7833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7841 if { (eval echo configure:7842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7843 eval "ac_cv_func_$ac_func=yes"
7845 echo "configure: failed program was:" >&5
7846 cat conftest.$ac_ext >&5
7848 eval "ac_cv_func_$ac_func=no"
7853 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7854 echo "$ac_t""yes" 1>&6
7855 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7856 cat >> confdefs.h <<EOF
7857 #define $ac_tr_func 1
7861 echo "$ac_t""no" 1>&6
7869 *-lsec*) for ac_func in getspnam
7871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7872 echo "configure:7873: checking for $ac_func" >&5
7873 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7874 echo $ac_n "(cached) $ac_c" 1>&6
7876 cat > conftest.$ac_ext <<EOF
7877 #line 7878 "configure"
7878 #include "confdefs.h"
7879 /* System header to define __stub macros and hopefully few prototypes,
7880 which can conflict with char $ac_func(); below. */
7882 /* Override any gcc2 internal prototype to avoid an error. */
7883 /* We use char because int might match the return type of a gcc2
7884 builtin and then its argument prototype would still apply. */
7889 /* The GNU C library defines this for functions which it implements
7890 to always fail with ENOSYS. Some functions are actually named
7891 something starting with __ and the normal name is an alias. */
7892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7900 if { (eval echo configure:7901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7902 eval "ac_cv_func_$ac_func=yes"
7904 echo "configure: failed program was:" >&5
7905 cat conftest.$ac_ext >&5
7907 eval "ac_cv_func_$ac_func=no"
7912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7913 echo "$ac_t""yes" 1>&6
7914 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7915 cat >> confdefs.h <<EOF
7916 #define $ac_tr_func 1
7920 echo "$ac_t""no" 1>&6
7924 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7925 echo "configure:7926: checking for getspnam in -lsec" >&5
7926 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7927 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7928 echo $ac_n "(cached) $ac_c" 1>&6
7930 ac_save_LIBS="$LIBS"
7932 cat > conftest.$ac_ext <<EOF
7933 #line 7934 "configure"
7934 #include "confdefs.h"
7935 /* Override any gcc2 internal prototype to avoid an error. */
7936 /* We use char because int might match the return type of a gcc2
7937 builtin and then its argument prototype would still apply. */
7944 if { (eval echo configure:7945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7946 eval "ac_cv_lib_$ac_lib_var=yes"
7948 echo "configure: failed program was:" >&5
7949 cat conftest.$ac_ext >&5
7951 eval "ac_cv_lib_$ac_lib_var=no"
7954 LIBS="$ac_save_LIBS"
7957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7958 echo "$ac_t""yes" 1>&6
7959 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7960 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7961 cat >> confdefs.h <<EOF
7962 #define $ac_tr_lib 1
7968 echo "$ac_t""no" 1>&6
7971 for ac_func in getspnam
7973 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7974 echo "configure:7975: checking for $ac_func" >&5
7975 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7976 echo $ac_n "(cached) $ac_c" 1>&6
7978 cat > conftest.$ac_ext <<EOF
7979 #line 7980 "configure"
7980 #include "confdefs.h"
7981 /* System header to define __stub macros and hopefully few prototypes,
7982 which can conflict with char $ac_func(); below. */
7984 /* Override any gcc2 internal prototype to avoid an error. */
7985 /* We use char because int might match the return type of a gcc2
7986 builtin and then its argument prototype would still apply. */
7991 /* The GNU C library defines this for functions which it implements
7992 to always fail with ENOSYS. Some functions are actually named
7993 something starting with __ and the normal name is an alias. */
7994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8002 if { (eval echo configure:8003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8004 eval "ac_cv_func_$ac_func=yes"
8006 echo "configure: failed program was:" >&5
8007 cat conftest.$ac_ext >&5
8009 eval "ac_cv_func_$ac_func=no"
8014 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8015 echo "$ac_t""yes" 1>&6
8016 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8017 cat >> confdefs.h <<EOF
8018 #define $ac_tr_func 1
8022 echo "$ac_t""no" 1>&6
8031 *-lsecurity*) for ac_func in bigcrypt
8033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8034 echo "configure:8035: checking for $ac_func" >&5
8035 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8036 echo $ac_n "(cached) $ac_c" 1>&6
8038 cat > conftest.$ac_ext <<EOF
8039 #line 8040 "configure"
8040 #include "confdefs.h"
8041 /* System header to define __stub macros and hopefully few prototypes,
8042 which can conflict with char $ac_func(); below. */
8044 /* Override any gcc2 internal prototype to avoid an error. */
8045 /* We use char because int might match the return type of a gcc2
8046 builtin and then its argument prototype would still apply. */
8051 /* The GNU C library defines this for functions which it implements
8052 to always fail with ENOSYS. Some functions are actually named
8053 something starting with __ and the normal name is an alias. */
8054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8062 if { (eval echo configure:8063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8064 eval "ac_cv_func_$ac_func=yes"
8066 echo "configure: failed program was:" >&5
8067 cat conftest.$ac_ext >&5
8069 eval "ac_cv_func_$ac_func=no"
8074 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8075 echo "$ac_t""yes" 1>&6
8076 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8077 cat >> confdefs.h <<EOF
8078 #define $ac_tr_func 1
8082 echo "$ac_t""no" 1>&6
8086 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8087 echo "configure:8088: checking for bigcrypt in -lsecurity" >&5
8088 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8089 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8090 echo $ac_n "(cached) $ac_c" 1>&6
8092 ac_save_LIBS="$LIBS"
8093 LIBS="-lsecurity $LIBS"
8094 cat > conftest.$ac_ext <<EOF
8095 #line 8096 "configure"
8096 #include "confdefs.h"
8097 /* Override any gcc2 internal prototype to avoid an error. */
8098 /* We use char because int might match the return type of a gcc2
8099 builtin and then its argument prototype would still apply. */
8106 if { (eval echo configure:8107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8108 eval "ac_cv_lib_$ac_lib_var=yes"
8110 echo "configure: failed program was:" >&5
8111 cat conftest.$ac_ext >&5
8113 eval "ac_cv_lib_$ac_lib_var=no"
8116 LIBS="$ac_save_LIBS"
8119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8120 echo "$ac_t""yes" 1>&6
8121 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8122 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8123 cat >> confdefs.h <<EOF
8124 #define $ac_tr_lib 1
8127 LIBS="-lsecurity $LIBS"
8130 echo "$ac_t""no" 1>&6
8133 for ac_func in bigcrypt
8135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8136 echo "configure:8137: checking for $ac_func" >&5
8137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8138 echo $ac_n "(cached) $ac_c" 1>&6
8140 cat > conftest.$ac_ext <<EOF
8141 #line 8142 "configure"
8142 #include "confdefs.h"
8143 /* System header to define __stub macros and hopefully few prototypes,
8144 which can conflict with char $ac_func(); below. */
8146 /* Override any gcc2 internal prototype to avoid an error. */
8147 /* We use char because int might match the return type of a gcc2
8148 builtin and then its argument prototype would still apply. */
8153 /* The GNU C library defines this for functions which it implements
8154 to always fail with ENOSYS. Some functions are actually named
8155 something starting with __ and the normal name is an alias. */
8156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8164 if { (eval echo configure:8165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8166 eval "ac_cv_func_$ac_func=yes"
8168 echo "configure: failed program was:" >&5
8169 cat conftest.$ac_ext >&5
8171 eval "ac_cv_func_$ac_func=no"
8176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8177 echo "$ac_t""yes" 1>&6
8178 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8179 cat >> confdefs.h <<EOF
8180 #define $ac_tr_func 1
8184 echo "$ac_t""no" 1>&6
8192 *-lsec*) for ac_func in bigcrypt
8194 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8195 echo "configure:8196: checking for $ac_func" >&5
8196 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8197 echo $ac_n "(cached) $ac_c" 1>&6
8199 cat > conftest.$ac_ext <<EOF
8200 #line 8201 "configure"
8201 #include "confdefs.h"
8202 /* System header to define __stub macros and hopefully few prototypes,
8203 which can conflict with char $ac_func(); below. */
8205 /* Override any gcc2 internal prototype to avoid an error. */
8206 /* We use char because int might match the return type of a gcc2
8207 builtin and then its argument prototype would still apply. */
8212 /* The GNU C library defines this for functions which it implements
8213 to always fail with ENOSYS. Some functions are actually named
8214 something starting with __ and the normal name is an alias. */
8215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8223 if { (eval echo configure:8224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8225 eval "ac_cv_func_$ac_func=yes"
8227 echo "configure: failed program was:" >&5
8228 cat conftest.$ac_ext >&5
8230 eval "ac_cv_func_$ac_func=no"
8235 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8236 echo "$ac_t""yes" 1>&6
8237 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8238 cat >> confdefs.h <<EOF
8239 #define $ac_tr_func 1
8243 echo "$ac_t""no" 1>&6
8247 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8248 echo "configure:8249: checking for bigcrypt in -lsec" >&5
8249 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8250 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8251 echo $ac_n "(cached) $ac_c" 1>&6
8253 ac_save_LIBS="$LIBS"
8255 cat > conftest.$ac_ext <<EOF
8256 #line 8257 "configure"
8257 #include "confdefs.h"
8258 /* Override any gcc2 internal prototype to avoid an error. */
8259 /* We use char because int might match the return type of a gcc2
8260 builtin and then its argument prototype would still apply. */
8267 if { (eval echo configure:8268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8269 eval "ac_cv_lib_$ac_lib_var=yes"
8271 echo "configure: failed program was:" >&5
8272 cat conftest.$ac_ext >&5
8274 eval "ac_cv_lib_$ac_lib_var=no"
8277 LIBS="$ac_save_LIBS"
8280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8281 echo "$ac_t""yes" 1>&6
8282 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8283 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8284 cat >> confdefs.h <<EOF
8285 #define $ac_tr_lib 1
8291 echo "$ac_t""no" 1>&6
8294 for ac_func in bigcrypt
8296 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8297 echo "configure:8298: checking for $ac_func" >&5
8298 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8299 echo $ac_n "(cached) $ac_c" 1>&6
8301 cat > conftest.$ac_ext <<EOF
8302 #line 8303 "configure"
8303 #include "confdefs.h"
8304 /* System header to define __stub macros and hopefully few prototypes,
8305 which can conflict with char $ac_func(); below. */
8307 /* Override any gcc2 internal prototype to avoid an error. */
8308 /* We use char because int might match the return type of a gcc2
8309 builtin and then its argument prototype would still apply. */
8314 /* The GNU C library defines this for functions which it implements
8315 to always fail with ENOSYS. Some functions are actually named
8316 something starting with __ and the normal name is an alias. */
8317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8325 if { (eval echo configure:8326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8327 eval "ac_cv_func_$ac_func=yes"
8329 echo "configure: failed program was:" >&5
8330 cat conftest.$ac_ext >&5
8332 eval "ac_cv_func_$ac_func=no"
8337 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8338 echo "$ac_t""yes" 1>&6
8339 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8340 cat >> confdefs.h <<EOF
8341 #define $ac_tr_func 1
8345 echo "$ac_t""no" 1>&6
8354 *-lsecurity*) for ac_func in getprpwnam
8356 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8357 echo "configure:8358: checking for $ac_func" >&5
8358 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8359 echo $ac_n "(cached) $ac_c" 1>&6
8361 cat > conftest.$ac_ext <<EOF
8362 #line 8363 "configure"
8363 #include "confdefs.h"
8364 /* System header to define __stub macros and hopefully few prototypes,
8365 which can conflict with char $ac_func(); below. */
8367 /* Override any gcc2 internal prototype to avoid an error. */
8368 /* We use char because int might match the return type of a gcc2
8369 builtin and then its argument prototype would still apply. */
8374 /* The GNU C library defines this for functions which it implements
8375 to always fail with ENOSYS. Some functions are actually named
8376 something starting with __ and the normal name is an alias. */
8377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8385 if { (eval echo configure:8386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8387 eval "ac_cv_func_$ac_func=yes"
8389 echo "configure: failed program was:" >&5
8390 cat conftest.$ac_ext >&5
8392 eval "ac_cv_func_$ac_func=no"
8397 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8398 echo "$ac_t""yes" 1>&6
8399 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8400 cat >> confdefs.h <<EOF
8401 #define $ac_tr_func 1
8405 echo "$ac_t""no" 1>&6
8409 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8410 echo "configure:8411: checking for getprpwnam in -lsecurity" >&5
8411 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8413 echo $ac_n "(cached) $ac_c" 1>&6
8415 ac_save_LIBS="$LIBS"
8416 LIBS="-lsecurity $LIBS"
8417 cat > conftest.$ac_ext <<EOF
8418 #line 8419 "configure"
8419 #include "confdefs.h"
8420 /* Override any gcc2 internal prototype to avoid an error. */
8421 /* We use char because int might match the return type of a gcc2
8422 builtin and then its argument prototype would still apply. */
8429 if { (eval echo configure:8430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8431 eval "ac_cv_lib_$ac_lib_var=yes"
8433 echo "configure: failed program was:" >&5
8434 cat conftest.$ac_ext >&5
8436 eval "ac_cv_lib_$ac_lib_var=no"
8439 LIBS="$ac_save_LIBS"
8442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8443 echo "$ac_t""yes" 1>&6
8444 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8445 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8446 cat >> confdefs.h <<EOF
8447 #define $ac_tr_lib 1
8450 LIBS="-lsecurity $LIBS"
8453 echo "$ac_t""no" 1>&6
8456 for ac_func in getprpwnam
8458 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8459 echo "configure:8460: checking for $ac_func" >&5
8460 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8461 echo $ac_n "(cached) $ac_c" 1>&6
8463 cat > conftest.$ac_ext <<EOF
8464 #line 8465 "configure"
8465 #include "confdefs.h"
8466 /* System header to define __stub macros and hopefully few prototypes,
8467 which can conflict with char $ac_func(); below. */
8469 /* Override any gcc2 internal prototype to avoid an error. */
8470 /* We use char because int might match the return type of a gcc2
8471 builtin and then its argument prototype would still apply. */
8476 /* The GNU C library defines this for functions which it implements
8477 to always fail with ENOSYS. Some functions are actually named
8478 something starting with __ and the normal name is an alias. */
8479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8487 if { (eval echo configure:8488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8489 eval "ac_cv_func_$ac_func=yes"
8491 echo "configure: failed program was:" >&5
8492 cat conftest.$ac_ext >&5
8494 eval "ac_cv_func_$ac_func=no"
8499 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8500 echo "$ac_t""yes" 1>&6
8501 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8502 cat >> confdefs.h <<EOF
8503 #define $ac_tr_func 1
8507 echo "$ac_t""no" 1>&6
8515 *-lsec*) for ac_func in getprpwnam
8517 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8518 echo "configure:8519: checking for $ac_func" >&5
8519 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8520 echo $ac_n "(cached) $ac_c" 1>&6
8522 cat > conftest.$ac_ext <<EOF
8523 #line 8524 "configure"
8524 #include "confdefs.h"
8525 /* System header to define __stub macros and hopefully few prototypes,
8526 which can conflict with char $ac_func(); below. */
8528 /* Override any gcc2 internal prototype to avoid an error. */
8529 /* We use char because int might match the return type of a gcc2
8530 builtin and then its argument prototype would still apply. */
8535 /* The GNU C library defines this for functions which it implements
8536 to always fail with ENOSYS. Some functions are actually named
8537 something starting with __ and the normal name is an alias. */
8538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8546 if { (eval echo configure:8547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8548 eval "ac_cv_func_$ac_func=yes"
8550 echo "configure: failed program was:" >&5
8551 cat conftest.$ac_ext >&5
8553 eval "ac_cv_func_$ac_func=no"
8558 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8559 echo "$ac_t""yes" 1>&6
8560 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8561 cat >> confdefs.h <<EOF
8562 #define $ac_tr_func 1
8566 echo "$ac_t""no" 1>&6
8570 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8571 echo "configure:8572: checking for getprpwnam in -lsec" >&5
8572 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8573 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8574 echo $ac_n "(cached) $ac_c" 1>&6
8576 ac_save_LIBS="$LIBS"
8578 cat > conftest.$ac_ext <<EOF
8579 #line 8580 "configure"
8580 #include "confdefs.h"
8581 /* Override any gcc2 internal prototype to avoid an error. */
8582 /* We use char because int might match the return type of a gcc2
8583 builtin and then its argument prototype would still apply. */
8590 if { (eval echo configure:8591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8592 eval "ac_cv_lib_$ac_lib_var=yes"
8594 echo "configure: failed program was:" >&5
8595 cat conftest.$ac_ext >&5
8597 eval "ac_cv_lib_$ac_lib_var=no"
8600 LIBS="$ac_save_LIBS"
8603 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8604 echo "$ac_t""yes" 1>&6
8605 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8606 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8607 cat >> confdefs.h <<EOF
8608 #define $ac_tr_lib 1
8614 echo "$ac_t""no" 1>&6
8617 for ac_func in getprpwnam
8619 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8620 echo "configure:8621: checking for $ac_func" >&5
8621 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8622 echo $ac_n "(cached) $ac_c" 1>&6
8624 cat > conftest.$ac_ext <<EOF
8625 #line 8626 "configure"
8626 #include "confdefs.h"
8627 /* System header to define __stub macros and hopefully few prototypes,
8628 which can conflict with char $ac_func(); below. */
8630 /* Override any gcc2 internal prototype to avoid an error. */
8631 /* We use char because int might match the return type of a gcc2
8632 builtin and then its argument prototype would still apply. */
8637 /* The GNU C library defines this for functions which it implements
8638 to always fail with ENOSYS. Some functions are actually named
8639 something starting with __ and the normal name is an alias. */
8640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8648 if { (eval echo configure:8649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8650 eval "ac_cv_func_$ac_func=yes"
8652 echo "configure: failed program was:" >&5
8653 cat conftest.$ac_ext >&5
8655 eval "ac_cv_func_$ac_func=no"
8660 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8661 echo "$ac_t""yes" 1>&6
8662 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8663 cat >> confdefs.h <<EOF
8664 #define $ac_tr_func 1
8668 echo "$ac_t""no" 1>&6
8676 # this bit needs to be modified for each OS that is suported by
8677 # smbwrapper. You need to specify how to created a shared library and
8678 # how to compile C code to produce PIC object files
8680 # these are the defaults, good for lots of systems
8687 # and these are for particular systems
8689 *linux*) cat >> confdefs.h <<\EOF
8695 *solaris*) cat >> confdefs.h <<\EOF
8702 *sunos*) cat >> confdefs.h <<\EOF
8708 *bsd*) LDSHFLAGS="-shared -Bshareable"
8711 *irix*) cat >> confdefs.h <<\EOF
8716 *irix6*) cat >> confdefs.h <<\EOF
8722 ATTEMPT_WRAP32_BUILD=yes
8724 *aix*) cat >> confdefs.h <<\EOF
8728 *hpux*) cat >> confdefs.h <<\EOF
8733 # Use special PIC flags for the native HP-UX compiler.
8734 if test $ac_cv_prog_cc_Ae = yes; then
8739 *qnx*) cat >> confdefs.h <<\EOF
8743 *osf*) cat >> confdefs.h <<\EOF
8747 *sco*) cat >> confdefs.h <<\EOF
8751 *next2*) cat >> confdefs.h <<\EOF
8755 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8756 set dummy groff; ac_word=$2
8757 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8758 echo "configure:8759: checking for $ac_word" >&5
8759 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8760 echo $ac_n "(cached) $ac_c" 1>&6
8762 if test -n "$ROFF"; then
8763 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8767 for ac_dir in $ac_dummy; do
8768 test -z "$ac_dir" && ac_dir=.
8769 if test -f $ac_dir/$ac_word; then
8770 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8777 ROFF="$ac_cv_prog_ROFF"
8778 if test -n "$ROFF"; then
8779 echo "$ac_t""$ROFF" 1>&6
8781 echo "$ac_t""no" 1>&6
8786 *-univel-*) if test "$GCC" != yes ; then
8787 cat >> confdefs.h <<\EOF
8788 #define HAVE_MEMSET 1
8794 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8795 #define RELIANTUNIX 1
8801 if test "$GCC" != yes ; then
8802 cat >> confdefs.h <<\EOF
8803 #define HAVE_MEMSET 1
8811 # try to work out how to produce PIC code with this compiler
8812 echo $ac_n "checking whether ${CC-cc} accepts -fPIC""... $ac_c" 1>&6
8813 echo "configure:8814: checking whether ${CC-cc} accepts -fPIC" >&5
8814 if eval "test \"`echo '$''{'ac_cv_prog_cc_fPIC'+set}'`\" = set"; then
8815 echo $ac_n "(cached) $ac_c" 1>&6
8817 echo 'void f(){}' > conftest.c
8818 if test -z "`${CC-cc} -fPIC -c conftest.c 2>&1`"; then
8819 ac_cv_prog_cc_fPIC=yes
8821 ac_cv_prog_cc_fPIC=no
8827 echo "$ac_t""$ac_cv_prog_cc_fPIC" 1>&6
8828 if test $ac_cv_prog_cc_fPIC = yes; then
8831 if test x$PICFLAG = x; then
8832 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8833 echo "configure:8834: checking whether ${CC-cc} accepts -KPIC" >&5
8834 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8835 echo $ac_n "(cached) $ac_c" 1>&6
8837 echo 'void f(){}' > conftest.c
8838 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8839 ac_cv_prog_cc_KPIC=yes
8841 ac_cv_prog_cc_KPIC=no
8847 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8848 if test $ac_cv_prog_cc_KPIC = yes; then
8852 if test x$PICFLAG = x; then
8853 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8854 echo "configure:8855: checking whether ${CC-cc} accepts -Kpic" >&5
8855 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8856 echo $ac_n "(cached) $ac_c" 1>&6
8858 echo 'void f(){}' > conftest.c
8859 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8860 ac_cv_prog_cc_Kpic=yes
8862 ac_cv_prog_cc_Kpic=no
8868 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8869 if test $ac_cv_prog_cc_Kpic = yes; then
8876 echo $ac_n "checking for long long""... $ac_c" 1>&6
8877 echo "configure:8878: checking for long long" >&5
8878 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8879 echo $ac_n "(cached) $ac_c" 1>&6
8882 if test "$cross_compiling" = yes; then
8883 samba_cv_have_longlong=cross
8885 cat > conftest.$ac_ext <<EOF
8886 #line 8887 "configure"
8887 #include "confdefs.h"
8889 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8891 if { (eval echo configure:8892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8893 samba_cv_have_longlong=yes
8895 echo "configure: failed program was:" >&5
8896 cat conftest.$ac_ext >&5
8898 samba_cv_have_longlong=no
8905 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8906 if test x"$samba_cv_have_longlong" = x"yes"; then
8907 cat >> confdefs.h <<\EOF
8908 #define HAVE_LONGLONG 1
8914 # Check if the compiler supports the LL prefix on long long integers.
8917 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8918 echo "configure:8919: checking for LL suffix on long long integers" >&5
8919 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8920 echo $ac_n "(cached) $ac_c" 1>&6
8923 cat > conftest.$ac_ext <<EOF
8924 #line 8925 "configure"
8925 #include "confdefs.h"
8928 long long i = 0x8000000000LL
8931 if { (eval echo configure:8932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8933 samba_cv_compiler_supports_ll=yes
8935 echo "configure: failed program was:" >&5
8936 cat conftest.$ac_ext >&5
8938 samba_cv_compiler_supports_ll=no
8943 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8944 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8945 cat >> confdefs.h <<\EOF
8946 #define COMPILER_SUPPORTS_LL 1
8952 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8953 echo "configure:8954: checking for 64 bit off_t" >&5
8954 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8955 echo $ac_n "(cached) $ac_c" 1>&6
8958 if test "$cross_compiling" = yes; then
8959 samba_cv_SIZEOF_OFF_T=cross
8961 cat > conftest.$ac_ext <<EOF
8962 #line 8963 "configure"
8963 #include "confdefs.h"
8965 #include <sys/stat.h>
8966 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8968 if { (eval echo configure:8969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8970 samba_cv_SIZEOF_OFF_T=yes
8972 echo "configure: failed program was:" >&5
8973 cat conftest.$ac_ext >&5
8975 samba_cv_SIZEOF_OFF_T=no
8982 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8983 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8984 cat >> confdefs.h <<\EOF
8985 #define SIZEOF_OFF_T 8
8990 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8991 echo "configure:8992: checking for off64_t" >&5
8992 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8993 echo $ac_n "(cached) $ac_c" 1>&6
8996 if test "$cross_compiling" = yes; then
8997 samba_cv_HAVE_OFF64_T=cross
8999 cat > conftest.$ac_ext <<EOF
9000 #line 9001 "configure"
9001 #include "confdefs.h"
9003 #if defined(HAVE_UNISTD_H)
9007 #include <sys/stat.h>
9008 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9010 if { (eval echo configure:9011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9012 samba_cv_HAVE_OFF64_T=yes
9014 echo "configure: failed program was:" >&5
9015 cat conftest.$ac_ext >&5
9017 samba_cv_HAVE_OFF64_T=no
9024 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9025 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
9026 cat >> confdefs.h <<\EOF
9027 #define HAVE_OFF64_T 1
9032 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9033 echo "configure:9034: checking for 64 bit ino_t" >&5
9034 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9035 echo $ac_n "(cached) $ac_c" 1>&6
9038 if test "$cross_compiling" = yes; then
9039 samba_cv_SIZEOF_INO_T=cross
9041 cat > conftest.$ac_ext <<EOF
9042 #line 9043 "configure"
9043 #include "confdefs.h"
9045 #include <sys/stat.h>
9046 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9048 if { (eval echo configure:9049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9050 samba_cv_SIZEOF_INO_T=yes
9052 echo "configure: failed program was:" >&5
9053 cat conftest.$ac_ext >&5
9055 samba_cv_SIZEOF_INO_T=no
9062 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9063 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
9064 cat >> confdefs.h <<\EOF
9065 #define SIZEOF_INO_T 8
9070 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9071 echo "configure:9072: checking for ino64_t" >&5
9072 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9073 echo $ac_n "(cached) $ac_c" 1>&6
9076 if test "$cross_compiling" = yes; then
9077 samba_cv_HAVE_INO64_T=cross
9079 cat > conftest.$ac_ext <<EOF
9080 #line 9081 "configure"
9081 #include "confdefs.h"
9083 #if defined(HAVE_UNISTD_H)
9087 #include <sys/stat.h>
9088 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9090 if { (eval echo configure:9091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9092 samba_cv_HAVE_INO64_T=yes
9094 echo "configure: failed program was:" >&5
9095 cat conftest.$ac_ext >&5
9097 samba_cv_HAVE_INO64_T=no
9104 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9105 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9106 cat >> confdefs.h <<\EOF
9107 #define HAVE_INO64_T 1
9112 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9113 echo "configure:9114: checking for struct dirent64" >&5
9114 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9115 echo $ac_n "(cached) $ac_c" 1>&6
9118 cat > conftest.$ac_ext <<EOF
9119 #line 9120 "configure"
9120 #include "confdefs.h"
9122 #if defined(HAVE_UNISTD_H)
9125 #include <sys/types.h>
9131 if { (eval echo configure:9132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9133 samba_cv_HAVE_STRUCT_DIRENT64=yes
9135 echo "configure: failed program was:" >&5
9136 cat conftest.$ac_ext >&5
9138 samba_cv_HAVE_STRUCT_DIRENT64=no
9143 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9144 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
9145 cat >> confdefs.h <<\EOF
9146 #define HAVE_STRUCT_DIRENT64 1
9151 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9152 echo "configure:9153: checking for unsigned char" >&5
9153 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9154 echo $ac_n "(cached) $ac_c" 1>&6
9157 if test "$cross_compiling" = yes; then
9158 samba_cv_HAVE_UNSIGNED_CHAR=cross
9160 cat > conftest.$ac_ext <<EOF
9161 #line 9162 "configure"
9162 #include "confdefs.h"
9164 main() { char c; c=250; exit((c > 0)?0:1); }
9166 if { (eval echo configure:9167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9168 samba_cv_HAVE_UNSIGNED_CHAR=yes
9170 echo "configure: failed program was:" >&5
9171 cat conftest.$ac_ext >&5
9173 samba_cv_HAVE_UNSIGNED_CHAR=no
9180 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9181 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9182 cat >> confdefs.h <<\EOF
9183 #define HAVE_UNSIGNED_CHAR 1
9188 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9189 echo "configure:9190: checking for sin_len in sock" >&5
9190 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9191 echo $ac_n "(cached) $ac_c" 1>&6
9194 cat > conftest.$ac_ext <<EOF
9195 #line 9196 "configure"
9196 #include "confdefs.h"
9197 #include <sys/types.h>
9198 #include <sys/socket.h>
9199 #include <netinet/in.h>
9201 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9204 if { (eval echo configure:9205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9206 samba_cv_HAVE_SOCK_SIN_LEN=yes
9208 echo "configure: failed program was:" >&5
9209 cat conftest.$ac_ext >&5
9211 samba_cv_HAVE_SOCK_SIN_LEN=no
9216 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9217 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9218 cat >> confdefs.h <<\EOF
9219 #define HAVE_SOCK_SIN_LEN 1
9224 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9225 echo "configure:9226: checking whether seekdir returns void" >&5
9226 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9227 echo $ac_n "(cached) $ac_c" 1>&6
9230 cat > conftest.$ac_ext <<EOF
9231 #line 9232 "configure"
9232 #include "confdefs.h"
9233 #include <sys/types.h>
9235 void seekdir(DIR *d, long loc) { return; }
9240 if { (eval echo configure:9241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9242 samba_cv_SEEKDIR_RETURNS_VOID=yes
9244 echo "configure: failed program was:" >&5
9245 cat conftest.$ac_ext >&5
9247 samba_cv_SEEKDIR_RETURNS_VOID=no
9252 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9253 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9254 cat >> confdefs.h <<\EOF
9255 #define SEEKDIR_RETURNS_VOID 1
9260 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9261 echo "configure:9262: checking for __FILE__ macro" >&5
9262 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9263 echo $ac_n "(cached) $ac_c" 1>&6
9266 cat > conftest.$ac_ext <<EOF
9267 #line 9268 "configure"
9268 #include "confdefs.h"
9271 printf("%s\n", __FILE__);
9274 if { (eval echo configure:9275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9276 samba_cv_HAVE_FILE_MACRO=yes
9278 echo "configure: failed program was:" >&5
9279 cat conftest.$ac_ext >&5
9281 samba_cv_HAVE_FILE_MACRO=no
9286 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9287 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9288 cat >> confdefs.h <<\EOF
9289 #define HAVE_FILE_MACRO 1
9294 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9295 echo "configure:9296: checking for __FUNCTION__ macro" >&5
9296 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9297 echo $ac_n "(cached) $ac_c" 1>&6
9300 cat > conftest.$ac_ext <<EOF
9301 #line 9302 "configure"
9302 #include "confdefs.h"
9305 printf("%s\n", __FUNCTION__);
9308 if { (eval echo configure:9309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9310 samba_cv_HAVE_FUNCTION_MACRO=yes
9312 echo "configure: failed program was:" >&5
9313 cat conftest.$ac_ext >&5
9315 samba_cv_HAVE_FUNCTION_MACRO=no
9320 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9321 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9322 cat >> confdefs.h <<\EOF
9323 #define HAVE_FUNCTION_MACRO 1
9328 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9329 echo "configure:9330: checking if gettimeofday takes tz argument" >&5
9330 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9331 echo $ac_n "(cached) $ac_c" 1>&6
9334 if test "$cross_compiling" = yes; then
9335 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9337 cat > conftest.$ac_ext <<EOF
9338 #line 9339 "configure"
9339 #include "confdefs.h"
9341 #include <sys/time.h>
9343 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9345 if { (eval echo configure:9346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9347 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9349 echo "configure: failed program was:" >&5
9350 cat conftest.$ac_ext >&5
9352 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9359 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9360 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9361 cat >> confdefs.h <<\EOF
9362 #define HAVE_GETTIMEOFDAY_TZ 1
9367 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9368 echo "configure:9369: checking for C99 vsnprintf" >&5
9369 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9370 echo $ac_n "(cached) $ac_c" 1>&6
9373 if test "$cross_compiling" = yes; then
9374 samba_cv_HAVE_C99_VSNPRINTF=cross
9376 cat > conftest.$ac_ext <<EOF
9377 #line 9378 "configure"
9378 #include "confdefs.h"
9380 #include <sys/types.h>
9382 void foo(const char *format, ...) {
9387 va_start(ap, format);
9388 len = vsnprintf(0, 0, format, ap);
9390 if (len != 5) exit(1);
9392 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9396 main() { foo("hello"); }
9399 if { (eval echo configure:9400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9401 samba_cv_HAVE_C99_VSNPRINTF=yes
9403 echo "configure: failed program was:" >&5
9404 cat conftest.$ac_ext >&5
9406 samba_cv_HAVE_C99_VSNPRINTF=no
9413 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9414 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9415 cat >> confdefs.h <<\EOF
9416 #define HAVE_C99_VSNPRINTF 1
9421 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9422 echo "configure:9423: checking for broken readdir" >&5
9423 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9424 echo $ac_n "(cached) $ac_c" 1>&6
9427 if test "$cross_compiling" = yes; then
9428 samba_cv_HAVE_BROKEN_READDIR=cross
9430 cat > conftest.$ac_ext <<EOF
9431 #line 9432 "configure"
9432 #include "confdefs.h"
9433 #include <sys/types.h>
9435 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9436 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9437 di->d_name[0] == 0) exit(0); exit(1);}
9439 if { (eval echo configure:9440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9441 samba_cv_HAVE_BROKEN_READDIR=yes
9443 echo "configure: failed program was:" >&5
9444 cat conftest.$ac_ext >&5
9446 samba_cv_HAVE_BROKEN_READDIR=no
9453 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9454 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9455 cat >> confdefs.h <<\EOF
9456 #define HAVE_BROKEN_READDIR 1
9461 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9462 echo "configure:9463: checking for utimbuf" >&5
9463 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9464 echo $ac_n "(cached) $ac_c" 1>&6
9467 cat > conftest.$ac_ext <<EOF
9468 #line 9469 "configure"
9469 #include "confdefs.h"
9470 #include <sys/types.h>
9473 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9476 if { (eval echo configure:9477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9478 samba_cv_HAVE_UTIMBUF=yes
9480 echo "configure: failed program was:" >&5
9481 cat conftest.$ac_ext >&5
9483 samba_cv_HAVE_UTIMBUF=no
9488 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9489 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9490 cat >> confdefs.h <<\EOF
9491 #define HAVE_UTIMBUF 1
9497 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9499 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9500 echo "configure:9501: checking for $ac_func" >&5
9501 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9502 echo $ac_n "(cached) $ac_c" 1>&6
9504 cat > conftest.$ac_ext <<EOF
9505 #line 9506 "configure"
9506 #include "confdefs.h"
9507 /* System header to define __stub macros and hopefully few prototypes,
9508 which can conflict with char $ac_func(); below. */
9510 /* Override any gcc2 internal prototype to avoid an error. */
9511 /* We use char because int might match the return type of a gcc2
9512 builtin and then its argument prototype would still apply. */
9517 /* The GNU C library defines this for functions which it implements
9518 to always fail with ENOSYS. Some functions are actually named
9519 something starting with __ and the normal name is an alias. */
9520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9528 if { (eval echo configure:9529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9530 eval "ac_cv_func_$ac_func=yes"
9532 echo "configure: failed program was:" >&5
9533 cat conftest.$ac_ext >&5
9535 eval "ac_cv_func_$ac_func=no"
9540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9541 echo "$ac_t""yes" 1>&6
9542 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9543 cat >> confdefs.h <<EOF
9544 #define $ac_tr_func 1
9548 echo "$ac_t""no" 1>&6
9553 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9554 echo "configure:9555: checking for ut_name in utmp" >&5
9555 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9556 echo $ac_n "(cached) $ac_c" 1>&6
9559 cat > conftest.$ac_ext <<EOF
9560 #line 9561 "configure"
9561 #include "confdefs.h"
9562 #include <sys/types.h>
9565 struct utmp ut; ut.ut_name[0] = 'a';
9568 if { (eval echo configure:9569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9570 samba_cv_HAVE_UT_UT_NAME=yes
9572 echo "configure: failed program was:" >&5
9573 cat conftest.$ac_ext >&5
9575 samba_cv_HAVE_UT_UT_NAME=no
9580 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9581 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9582 cat >> confdefs.h <<\EOF
9583 #define HAVE_UT_UT_NAME 1
9588 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9589 echo "configure:9590: checking for ut_user in utmp" >&5
9590 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9591 echo $ac_n "(cached) $ac_c" 1>&6
9594 cat > conftest.$ac_ext <<EOF
9595 #line 9596 "configure"
9596 #include "confdefs.h"
9597 #include <sys/types.h>
9600 struct utmp ut; ut.ut_user[0] = 'a';
9603 if { (eval echo configure:9604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9605 samba_cv_HAVE_UT_UT_USER=yes
9607 echo "configure: failed program was:" >&5
9608 cat conftest.$ac_ext >&5
9610 samba_cv_HAVE_UT_UT_USER=no
9615 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9616 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9617 cat >> confdefs.h <<\EOF
9618 #define HAVE_UT_UT_USER 1
9623 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9624 echo "configure:9625: checking for ut_id in utmp" >&5
9625 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9626 echo $ac_n "(cached) $ac_c" 1>&6
9629 cat > conftest.$ac_ext <<EOF
9630 #line 9631 "configure"
9631 #include "confdefs.h"
9632 #include <sys/types.h>
9635 struct utmp ut; ut.ut_id[0] = 'a';
9638 if { (eval echo configure:9639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9640 samba_cv_HAVE_UT_UT_ID=yes
9642 echo "configure: failed program was:" >&5
9643 cat conftest.$ac_ext >&5
9645 samba_cv_HAVE_UT_UT_ID=no
9650 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9651 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9652 cat >> confdefs.h <<\EOF
9653 #define HAVE_UT_UT_ID 1
9658 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9659 echo "configure:9660: checking for ut_host in utmp" >&5
9660 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9661 echo $ac_n "(cached) $ac_c" 1>&6
9664 cat > conftest.$ac_ext <<EOF
9665 #line 9666 "configure"
9666 #include "confdefs.h"
9667 #include <sys/types.h>
9670 struct utmp ut; ut.ut_host[0] = 'a';
9673 if { (eval echo configure:9674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9675 samba_cv_HAVE_UT_UT_HOST=yes
9677 echo "configure: failed program was:" >&5
9678 cat conftest.$ac_ext >&5
9680 samba_cv_HAVE_UT_UT_HOST=no
9685 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9686 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9687 cat >> confdefs.h <<\EOF
9688 #define HAVE_UT_UT_HOST 1
9693 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9694 echo "configure:9695: checking for ut_time in utmp" >&5
9695 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9696 echo $ac_n "(cached) $ac_c" 1>&6
9699 cat > conftest.$ac_ext <<EOF
9700 #line 9701 "configure"
9701 #include "confdefs.h"
9702 #include <sys/types.h>
9705 struct utmp ut; time_t t; ut.ut_time = t;
9708 if { (eval echo configure:9709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9710 samba_cv_HAVE_UT_UT_TIME=yes
9712 echo "configure: failed program was:" >&5
9713 cat conftest.$ac_ext >&5
9715 samba_cv_HAVE_UT_UT_TIME=no
9720 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9721 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9722 cat >> confdefs.h <<\EOF
9723 #define HAVE_UT_UT_TIME 1
9728 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9729 echo "configure:9730: checking for ut_tv in utmp" >&5
9730 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9731 echo $ac_n "(cached) $ac_c" 1>&6
9734 cat > conftest.$ac_ext <<EOF
9735 #line 9736 "configure"
9736 #include "confdefs.h"
9737 #include <sys/types.h>
9740 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9743 if { (eval echo configure:9744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9745 samba_cv_HAVE_UT_UT_TV=yes
9747 echo "configure: failed program was:" >&5
9748 cat conftest.$ac_ext >&5
9750 samba_cv_HAVE_UT_UT_TV=no
9755 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9756 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9757 cat >> confdefs.h <<\EOF
9758 #define HAVE_UT_UT_TV 1
9763 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9764 echo "configure:9765: checking for ut_type in utmp" >&5
9765 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9766 echo $ac_n "(cached) $ac_c" 1>&6
9769 cat > conftest.$ac_ext <<EOF
9770 #line 9771 "configure"
9771 #include "confdefs.h"
9772 #include <sys/types.h>
9775 struct utmp ut; ut.ut_type = 0;
9778 if { (eval echo configure:9779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9780 samba_cv_HAVE_UT_UT_TYPE=yes
9782 echo "configure: failed program was:" >&5
9783 cat conftest.$ac_ext >&5
9785 samba_cv_HAVE_UT_UT_TYPE=no
9790 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9791 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9792 cat >> confdefs.h <<\EOF
9793 #define HAVE_UT_UT_TYPE 1
9798 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9799 echo "configure:9800: checking for ut_pid in utmp" >&5
9800 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9801 echo $ac_n "(cached) $ac_c" 1>&6
9804 cat > conftest.$ac_ext <<EOF
9805 #line 9806 "configure"
9806 #include "confdefs.h"
9807 #include <sys/types.h>
9810 struct utmp ut; ut.ut_pid = 0;
9813 if { (eval echo configure:9814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9815 samba_cv_HAVE_UT_UT_PID=yes
9817 echo "configure: failed program was:" >&5
9818 cat conftest.$ac_ext >&5
9820 samba_cv_HAVE_UT_UT_PID=no
9825 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9826 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9827 cat >> confdefs.h <<\EOF
9828 #define HAVE_UT_UT_PID 1
9833 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9834 echo "configure:9835: checking for ut_exit in utmp" >&5
9835 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9836 echo $ac_n "(cached) $ac_c" 1>&6
9839 cat > conftest.$ac_ext <<EOF
9840 #line 9841 "configure"
9841 #include "confdefs.h"
9842 #include <sys/types.h>
9845 struct utmp ut; ut.ut_exit.e_exit = 0;
9848 if { (eval echo configure:9849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9850 samba_cv_HAVE_UT_UT_EXIT=yes
9852 echo "configure: failed program was:" >&5
9853 cat conftest.$ac_ext >&5
9855 samba_cv_HAVE_UT_UT_EXIT=no
9860 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9861 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9862 cat >> confdefs.h <<\EOF
9863 #define HAVE_UT_UT_EXIT 1
9868 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9869 echo "configure:9870: checking for ut_addr in utmp" >&5
9870 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9871 echo $ac_n "(cached) $ac_c" 1>&6
9874 cat > conftest.$ac_ext <<EOF
9875 #line 9876 "configure"
9876 #include "confdefs.h"
9877 #include <sys/types.h>
9880 struct utmp ut; ut.ut_addr = 0;
9883 if { (eval echo configure:9884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9885 samba_cv_HAVE_UT_UT_ADDR=yes
9887 echo "configure: failed program was:" >&5
9888 cat conftest.$ac_ext >&5
9890 samba_cv_HAVE_UT_UT_ADDR=no
9895 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9896 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9897 cat >> confdefs.h <<\EOF
9898 #define HAVE_UT_UT_ADDR 1
9903 if test x$ac_cv_func_pututline = xyes ; then
9904 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9905 echo "configure:9906: checking whether pututline returns pointer" >&5
9906 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9907 echo $ac_n "(cached) $ac_c" 1>&6
9910 cat > conftest.$ac_ext <<EOF
9911 #line 9912 "configure"
9912 #include "confdefs.h"
9913 #include <sys/types.h>
9916 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9919 if { (eval echo configure:9920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9921 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9923 echo "configure: failed program was:" >&5
9924 cat conftest.$ac_ext >&5
9926 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9931 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9932 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9933 cat >> confdefs.h <<\EOF
9934 #define PUTUTLINE_RETURNS_UTMP 1
9940 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9941 echo "configure:9942: checking for ut_syslen in utmpx" >&5
9942 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9943 echo $ac_n "(cached) $ac_c" 1>&6
9946 cat > conftest.$ac_ext <<EOF
9947 #line 9948 "configure"
9948 #include "confdefs.h"
9949 #include <sys/types.h>
9952 struct utmpx ux; ux.ut_syslen = 0;
9955 if { (eval echo configure:9956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9957 samba_cv_HAVE_UX_UT_SYSLEN=yes
9959 echo "configure: failed program was:" >&5
9960 cat conftest.$ac_ext >&5
9962 samba_cv_HAVE_UX_UT_SYSLEN=no
9967 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9968 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9969 cat >> confdefs.h <<\EOF
9970 #define HAVE_UX_UT_SYSLEN 1
9975 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9976 echo "configure:9977: checking for Linux kernel oplocks" >&5
9977 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9978 echo $ac_n "(cached) $ac_c" 1>&6
9981 if test "$cross_compiling" = yes; then
9982 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9984 cat > conftest.$ac_ext <<EOF
9985 #line 9986 "configure"
9986 #include "confdefs.h"
9988 #include <sys/types.h>
9991 #define F_GETLEASE 1025
9994 int fd = open("/dev/null", O_RDONLY);
9995 return fcntl(fd, F_GETLEASE, 0) == -1;
9999 if { (eval echo configure:10000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10001 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10003 echo "configure: failed program was:" >&5
10004 cat conftest.$ac_ext >&5
10006 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10013 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10014 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10015 cat >> confdefs.h <<\EOF
10016 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10021 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10022 echo "configure:10023: checking for kernel change notify support" >&5
10023 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10024 echo $ac_n "(cached) $ac_c" 1>&6
10027 if test "$cross_compiling" = yes; then
10028 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10030 cat > conftest.$ac_ext <<EOF
10031 #line 10032 "configure"
10032 #include "confdefs.h"
10034 #include <sys/types.h>
10036 #include <signal.h>
10038 #define F_NOTIFY 1026
10041 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10045 if { (eval echo configure:10046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10047 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10049 echo "configure: failed program was:" >&5
10050 cat conftest.$ac_ext >&5
10052 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10059 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10060 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
10061 cat >> confdefs.h <<\EOF
10062 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10067 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10068 echo "configure:10069: checking for kernel share modes" >&5
10069 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10070 echo $ac_n "(cached) $ac_c" 1>&6
10073 if test "$cross_compiling" = yes; then
10074 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10076 cat > conftest.$ac_ext <<EOF
10077 #line 10078 "configure"
10078 #include "confdefs.h"
10080 #include <sys/types.h>
10082 #include <signal.h>
10083 #include <sys/file.h>
10085 #define LOCK_MAND 32
10086 #define LOCK_READ 64
10089 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10093 if { (eval echo configure:10094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10095 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10097 echo "configure: failed program was:" >&5
10098 cat conftest.$ac_ext >&5
10100 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10107 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10108 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10109 cat >> confdefs.h <<\EOF
10110 #define HAVE_KERNEL_SHARE_MODES 1
10118 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10119 echo "configure:10120: checking for IRIX kernel oplock type definitions" >&5
10120 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10121 echo $ac_n "(cached) $ac_c" 1>&6
10124 cat > conftest.$ac_ext <<EOF
10125 #line 10126 "configure"
10126 #include "confdefs.h"
10127 #include <sys/types.h>
10130 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10133 if { (eval echo configure:10134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10135 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10137 echo "configure: failed program was:" >&5
10138 cat conftest.$ac_ext >&5
10140 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10145 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10146 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10147 cat >> confdefs.h <<\EOF
10148 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10153 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10154 echo "configure:10155: checking for irix specific capabilities" >&5
10155 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10156 echo $ac_n "(cached) $ac_c" 1>&6
10159 if test "$cross_compiling" = yes; then
10160 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10162 cat > conftest.$ac_ext <<EOF
10163 #line 10164 "configure"
10164 #include "confdefs.h"
10165 #include <sys/types.h>
10166 #include <sys/capability.h>
10169 if ((cap = cap_get_proc()) == NULL)
10171 cap->cap_effective |= CAP_NETWORK_MGT;
10172 cap->cap_inheritable |= CAP_NETWORK_MGT;
10178 if { (eval echo configure:10179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10180 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10182 echo "configure: failed program was:" >&5
10183 cat conftest.$ac_ext >&5
10185 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10192 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10193 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10194 cat >> confdefs.h <<\EOF
10195 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10201 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10202 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10205 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10206 echo "configure:10207: checking for int16 typedef included by rpc/rpc.h" >&5
10207 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10208 echo $ac_n "(cached) $ac_c" 1>&6
10211 cat > conftest.$ac_ext <<EOF
10212 #line 10213 "configure"
10213 #include "confdefs.h"
10214 #include <sys/types.h>
10215 #if defined(HAVE_RPC_RPC_H)
10216 #include <rpc/rpc.h>
10222 if { (eval echo configure:10223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10224 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10226 echo "configure: failed program was:" >&5
10227 cat conftest.$ac_ext >&5
10229 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10234 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10235 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10236 cat >> confdefs.h <<\EOF
10237 #define HAVE_INT16_FROM_RPC_RPC_H 1
10242 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10243 echo "configure:10244: checking for uint16 typedef included by rpc/rpc.h" >&5
10244 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10245 echo $ac_n "(cached) $ac_c" 1>&6
10248 cat > conftest.$ac_ext <<EOF
10249 #line 10250 "configure"
10250 #include "confdefs.h"
10251 #include <sys/types.h>
10252 #if defined(HAVE_RPC_RPC_H)
10253 #include <rpc/rpc.h>
10259 if { (eval echo configure:10260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10261 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10263 echo "configure: failed program was:" >&5
10264 cat conftest.$ac_ext >&5
10266 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10271 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10272 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10273 cat >> confdefs.h <<\EOF
10274 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10279 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10280 echo "configure:10281: checking for int32 typedef included by rpc/rpc.h" >&5
10281 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10282 echo $ac_n "(cached) $ac_c" 1>&6
10285 cat > conftest.$ac_ext <<EOF
10286 #line 10287 "configure"
10287 #include "confdefs.h"
10288 #include <sys/types.h>
10289 #if defined(HAVE_RPC_RPC_H)
10290 #include <rpc/rpc.h>
10296 if { (eval echo configure:10297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10298 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10300 echo "configure: failed program was:" >&5
10301 cat conftest.$ac_ext >&5
10303 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10308 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10309 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10310 cat >> confdefs.h <<\EOF
10311 #define HAVE_INT32_FROM_RPC_RPC_H 1
10316 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10317 echo "configure:10318: checking for uint32 typedef included by rpc/rpc.h" >&5
10318 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10319 echo $ac_n "(cached) $ac_c" 1>&6
10322 cat > conftest.$ac_ext <<EOF
10323 #line 10324 "configure"
10324 #include "confdefs.h"
10325 #include <sys/types.h>
10326 #if defined(HAVE_RPC_RPC_H)
10327 #include <rpc/rpc.h>
10333 if { (eval echo configure:10334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10335 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10337 echo "configure: failed program was:" >&5
10338 cat conftest.$ac_ext >&5
10340 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10345 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10346 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10347 cat >> confdefs.h <<\EOF
10348 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10354 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10355 echo "configure:10356: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10356 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10357 echo $ac_n "(cached) $ac_c" 1>&6
10360 cat > conftest.$ac_ext <<EOF
10361 #line 10362 "configure"
10362 #include "confdefs.h"
10363 #include <sys/types.h>
10364 #ifdef HAVE_SYS_SECURITY_H
10365 #include <sys/security.h>
10367 #endif /* HAVE_SYS_SECURITY_H */
10368 #if defined(HAVE_RPC_RPC_H)
10369 #include <rpc/rpc.h>
10375 if { (eval echo configure:10376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10377 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10379 echo "configure: failed program was:" >&5
10380 cat conftest.$ac_ext >&5
10382 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10387 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10388 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10389 cat >> confdefs.h <<\EOF
10390 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10395 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10396 echo "configure:10397: checking for test routines" >&5
10397 if test "$cross_compiling" = yes; then
10398 echo "configure: warning: cannot run when cross-compiling" 1>&2
10400 cat > conftest.$ac_ext <<EOF
10401 #line 10402 "configure"
10402 #include "confdefs.h"
10403 #include "${srcdir-.}/tests/trivial.c"
10405 if { (eval echo configure:10406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10407 echo "$ac_t""yes" 1>&6
10409 echo "configure: failed program was:" >&5
10410 cat conftest.$ac_ext >&5
10412 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10418 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10419 echo "configure:10420: checking for ftruncate extend" >&5
10420 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10421 echo $ac_n "(cached) $ac_c" 1>&6
10424 if test "$cross_compiling" = yes; then
10425 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10427 cat > conftest.$ac_ext <<EOF
10428 #line 10429 "configure"
10429 #include "confdefs.h"
10430 #include "${srcdir-.}/tests/ftruncate.c"
10432 if { (eval echo configure:10433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10434 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10436 echo "configure: failed program was:" >&5
10437 cat conftest.$ac_ext >&5
10439 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10446 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10447 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10448 cat >> confdefs.h <<\EOF
10449 #define HAVE_FTRUNCATE_EXTEND 1
10454 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10455 echo "configure:10456: checking for AF_LOCAL socket support" >&5
10456 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10457 echo $ac_n "(cached) $ac_c" 1>&6
10460 if test "$cross_compiling" = yes; then
10461 samba_cv_HAVE_WORKING_AF_LOCAL=cross
10463 cat > conftest.$ac_ext <<EOF
10464 #line 10465 "configure"
10465 #include "confdefs.h"
10466 #include "${srcdir-.}/tests/unixsock.c"
10468 if { (eval echo configure:10469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10470 samba_cv_HAVE_WORKING_AF_LOCAL=yes
10472 echo "configure: failed program was:" >&5
10473 cat conftest.$ac_ext >&5
10475 samba_cv_HAVE_WORKING_AF_LOCAL=no
10482 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
10483 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
10485 cat >> confdefs.h <<\EOF
10486 #define HAVE_WORKING_AF_LOCAL 1
10491 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10492 echo "configure:10493: checking for broken getgroups" >&5
10493 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10494 echo $ac_n "(cached) $ac_c" 1>&6
10497 if test "$cross_compiling" = yes; then
10498 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10500 cat > conftest.$ac_ext <<EOF
10501 #line 10502 "configure"
10502 #include "confdefs.h"
10503 #include "${srcdir-.}/tests/getgroups.c"
10505 if { (eval echo configure:10506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10507 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10509 echo "configure: failed program was:" >&5
10510 cat conftest.$ac_ext >&5
10512 samba_cv_HAVE_BROKEN_GETGROUPS=no
10519 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10520 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10521 cat >> confdefs.h <<\EOF
10522 #define HAVE_BROKEN_GETGROUPS 1
10527 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10528 echo "configure:10529: checking whether getpass should be replaced" >&5
10529 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10530 echo $ac_n "(cached) $ac_c" 1>&6
10533 SAVE_CPPFLAGS="$CPPFLAGS"
10534 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10535 cat > conftest.$ac_ext <<EOF
10536 #line 10537 "configure"
10537 #include "confdefs.h"
10539 #define REPLACE_GETPASS 1
10540 #define NO_CONFIG_H 1
10541 #define main dont_declare_main
10542 #include "${srcdir-.}/lib/getsmbpass.c"
10549 if { (eval echo configure:10550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10551 samba_cv_REPLACE_GETPASS=yes
10553 echo "configure: failed program was:" >&5
10554 cat conftest.$ac_ext >&5
10556 samba_cv_REPLACE_GETPASS=no
10559 CPPFLAGS="$SAVE_CPPFLAGS"
10563 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10564 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10565 cat >> confdefs.h <<\EOF
10566 #define REPLACE_GETPASS 1
10571 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10572 echo "configure:10573: checking for broken inet_ntoa" >&5
10573 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10574 echo $ac_n "(cached) $ac_c" 1>&6
10577 if test "$cross_compiling" = yes; then
10578 samba_cv_REPLACE_INET_NTOA=cross
10580 cat > conftest.$ac_ext <<EOF
10581 #line 10582 "configure"
10582 #include "confdefs.h"
10585 #include <sys/types.h>
10586 #include <netinet/in.h>
10587 #ifdef HAVE_ARPA_INET_H
10588 #include <arpa/inet.h>
10590 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10591 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10592 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10595 if { (eval echo configure:10596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10597 samba_cv_REPLACE_INET_NTOA=yes
10599 echo "configure: failed program was:" >&5
10600 cat conftest.$ac_ext >&5
10602 samba_cv_REPLACE_INET_NTOA=no
10609 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10610 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10611 cat >> confdefs.h <<\EOF
10612 #define REPLACE_INET_NTOA 1
10617 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10618 echo "configure:10619: checking for secure mkstemp" >&5
10619 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10620 echo $ac_n "(cached) $ac_c" 1>&6
10623 if test "$cross_compiling" = yes; then
10624 samba_cv_HAVE_SECURE_MKSTEMP=cross
10626 cat > conftest.$ac_ext <<EOF
10627 #line 10628 "configure"
10628 #include "confdefs.h"
10629 #include <stdlib.h>
10630 #include <sys/types.h>
10631 #include <sys/stat.h>
10632 #include <unistd.h>
10635 char tpl[20]="/tmp/test.XXXXXX";
10636 int fd = mkstemp(tpl);
10637 if (fd == -1) exit(1);
10639 if (fstat(fd, &st) != 0) exit(1);
10640 if ((st.st_mode & 0777) != 0600) exit(1);
10644 if { (eval echo configure:10645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10646 samba_cv_HAVE_SECURE_MKSTEMP=yes
10648 echo "configure: failed program was:" >&5
10649 cat conftest.$ac_ext >&5
10651 samba_cv_HAVE_SECURE_MKSTEMP=no
10658 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10659 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10660 cat >> confdefs.h <<\EOF
10661 #define HAVE_SECURE_MKSTEMP 1
10666 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10667 echo "configure:10668: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10668 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10669 echo $ac_n "(cached) $ac_c" 1>&6
10672 if test "$cross_compiling" = yes; then
10673 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10675 cat > conftest.$ac_ext <<EOF
10676 #line 10677 "configure"
10677 #include "confdefs.h"
10678 #include <unistd.h>
10679 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10681 if { (eval echo configure:10682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10683 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10685 echo "configure: failed program was:" >&5
10686 cat conftest.$ac_ext >&5
10688 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10695 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10696 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10697 cat >> confdefs.h <<\EOF
10698 #define SYSCONF_SC_NGROUPS_MAX 1
10703 echo $ac_n "checking for root""... $ac_c" 1>&6
10704 echo "configure:10705: checking for root" >&5
10705 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10706 echo $ac_n "(cached) $ac_c" 1>&6
10709 if test "$cross_compiling" = yes; then
10710 samba_cv_HAVE_ROOT=cross
10712 cat > conftest.$ac_ext <<EOF
10713 #line 10714 "configure"
10714 #include "confdefs.h"
10715 main() { exit(getuid() != 0); }
10717 if { (eval echo configure:10718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10719 samba_cv_HAVE_ROOT=yes
10721 echo "configure: failed program was:" >&5
10722 cat conftest.$ac_ext >&5
10724 samba_cv_HAVE_ROOT=no
10731 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10732 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10733 cat >> confdefs.h <<\EOF
10734 #define HAVE_ROOT 1
10738 echo "configure: warning: running as non-root will disable some tests" 1>&2
10742 # look for a method of finding the list of network interfaces
10744 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10745 echo "configure:10746: checking for iface AIX" >&5
10746 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10747 echo $ac_n "(cached) $ac_c" 1>&6
10750 if test "$cross_compiling" = yes; then
10751 samba_cv_HAVE_IFACE_AIX=cross
10753 cat > conftest.$ac_ext <<EOF
10754 #line 10755 "configure"
10755 #include "confdefs.h"
10757 #define HAVE_IFACE_AIX 1
10758 #define AUTOCONF_TEST 1
10759 #include "confdefs.h"
10760 #include "${srcdir-.}/lib/interfaces.c"
10762 if { (eval echo configure:10763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10764 samba_cv_HAVE_IFACE_AIX=yes
10766 echo "configure: failed program was:" >&5
10767 cat conftest.$ac_ext >&5
10769 samba_cv_HAVE_IFACE_AIX=no
10776 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10777 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10778 iface=yes;cat >> confdefs.h <<\EOF
10779 #define HAVE_IFACE_AIX 1
10784 if test $iface = no; then
10785 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10786 echo "configure:10787: checking for iface ifconf" >&5
10787 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10788 echo $ac_n "(cached) $ac_c" 1>&6
10791 if test "$cross_compiling" = yes; then
10792 samba_cv_HAVE_IFACE_IFCONF=cross
10794 cat > conftest.$ac_ext <<EOF
10795 #line 10796 "configure"
10796 #include "confdefs.h"
10798 #define HAVE_IFACE_IFCONF 1
10799 #define AUTOCONF_TEST 1
10800 #include "confdefs.h"
10801 #include "${srcdir-.}/lib/interfaces.c"
10803 if { (eval echo configure:10804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10805 samba_cv_HAVE_IFACE_IFCONF=yes
10807 echo "configure: failed program was:" >&5
10808 cat conftest.$ac_ext >&5
10810 samba_cv_HAVE_IFACE_IFCONF=no
10817 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10818 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
10819 iface=yes;cat >> confdefs.h <<\EOF
10820 #define HAVE_IFACE_IFCONF 1
10826 if test $iface = no; then
10827 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10828 echo "configure:10829: checking for iface ifreq" >&5
10829 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10830 echo $ac_n "(cached) $ac_c" 1>&6
10833 if test "$cross_compiling" = yes; then
10834 samba_cv_HAVE_IFACE_IFREQ=cross
10836 cat > conftest.$ac_ext <<EOF
10837 #line 10838 "configure"
10838 #include "confdefs.h"
10840 #define HAVE_IFACE_IFREQ 1
10841 #define AUTOCONF_TEST 1
10842 #include "confdefs.h"
10843 #include "${srcdir-.}/lib/interfaces.c"
10845 if { (eval echo configure:10846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10847 samba_cv_HAVE_IFACE_IFREQ=yes
10849 echo "configure: failed program was:" >&5
10850 cat conftest.$ac_ext >&5
10852 samba_cv_HAVE_IFACE_IFREQ=no
10859 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10860 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
10861 iface=yes;cat >> confdefs.h <<\EOF
10862 #define HAVE_IFACE_IFREQ 1
10869 ################################################
10870 # look for a method of setting the effective uid
10872 if test $seteuid = no; then
10873 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10874 echo "configure:10875: checking for setresuid" >&5
10875 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10876 echo $ac_n "(cached) $ac_c" 1>&6
10879 if test "$cross_compiling" = yes; then
10880 samba_cv_USE_SETRESUID=cross
10882 cat > conftest.$ac_ext <<EOF
10883 #line 10884 "configure"
10884 #include "confdefs.h"
10886 #define AUTOCONF_TEST 1
10887 #define USE_SETRESUID 1
10888 #include "confdefs.h"
10889 #include "${srcdir-.}/lib/util_sec.c"
10891 if { (eval echo configure:10892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10893 samba_cv_USE_SETRESUID=yes
10895 echo "configure: failed program was:" >&5
10896 cat conftest.$ac_ext >&5
10898 samba_cv_USE_SETRESUID=no
10905 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10906 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
10907 seteuid=yes;cat >> confdefs.h <<\EOF
10908 #define USE_SETRESUID 1
10915 if test $seteuid = no; then
10916 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10917 echo "configure:10918: checking for setreuid" >&5
10918 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10919 echo $ac_n "(cached) $ac_c" 1>&6
10922 if test "$cross_compiling" = yes; then
10923 samba_cv_USE_SETREUID=cross
10925 cat > conftest.$ac_ext <<EOF
10926 #line 10927 "configure"
10927 #include "confdefs.h"
10929 #define AUTOCONF_TEST 1
10930 #define USE_SETREUID 1
10931 #include "confdefs.h"
10932 #include "${srcdir-.}/lib/util_sec.c"
10934 if { (eval echo configure:10935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10936 samba_cv_USE_SETREUID=yes
10938 echo "configure: failed program was:" >&5
10939 cat conftest.$ac_ext >&5
10941 samba_cv_USE_SETREUID=no
10948 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10949 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
10950 seteuid=yes;cat >> confdefs.h <<\EOF
10951 #define USE_SETREUID 1
10957 if test $seteuid = no; then
10958 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10959 echo "configure:10960: checking for seteuid" >&5
10960 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10961 echo $ac_n "(cached) $ac_c" 1>&6
10964 if test "$cross_compiling" = yes; then
10965 samba_cv_USE_SETEUID=cross
10967 cat > conftest.$ac_ext <<EOF
10968 #line 10969 "configure"
10969 #include "confdefs.h"
10971 #define AUTOCONF_TEST 1
10972 #define USE_SETEUID 1
10973 #include "confdefs.h"
10974 #include "${srcdir-.}/lib/util_sec.c"
10976 if { (eval echo configure:10977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10978 samba_cv_USE_SETEUID=yes
10980 echo "configure: failed program was:" >&5
10981 cat conftest.$ac_ext >&5
10983 samba_cv_USE_SETEUID=no
10990 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10991 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
10992 seteuid=yes;cat >> confdefs.h <<\EOF
10993 #define USE_SETEUID 1
10999 if test $seteuid = no; then
11000 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11001 echo "configure:11002: checking for setuidx" >&5
11002 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11003 echo $ac_n "(cached) $ac_c" 1>&6
11006 if test "$cross_compiling" = yes; then
11007 samba_cv_USE_SETUIDX=cross
11009 cat > conftest.$ac_ext <<EOF
11010 #line 11011 "configure"
11011 #include "confdefs.h"
11013 #define AUTOCONF_TEST 1
11014 #define USE_SETUIDX 1
11015 #include "confdefs.h"
11016 #include "${srcdir-.}/lib/util_sec.c"
11018 if { (eval echo configure:11019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11020 samba_cv_USE_SETUIDX=yes
11022 echo "configure: failed program was:" >&5
11023 cat conftest.$ac_ext >&5
11025 samba_cv_USE_SETUIDX=no
11032 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11033 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11034 seteuid=yes;cat >> confdefs.h <<\EOF
11035 #define USE_SETUIDX 1
11042 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11043 echo "configure:11044: checking for working mmap" >&5
11044 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11045 echo $ac_n "(cached) $ac_c" 1>&6
11048 if test "$cross_compiling" = yes; then
11049 samba_cv_HAVE_MMAP=cross
11051 cat > conftest.$ac_ext <<EOF
11052 #line 11053 "configure"
11053 #include "confdefs.h"
11054 #include "${srcdir-.}/tests/shared_mmap.c"
11056 if { (eval echo configure:11057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11058 samba_cv_HAVE_MMAP=yes
11060 echo "configure: failed program was:" >&5
11061 cat conftest.$ac_ext >&5
11063 samba_cv_HAVE_MMAP=no
11070 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11071 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11072 cat >> confdefs.h <<\EOF
11073 #define HAVE_MMAP 1
11078 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11079 echo "configure:11080: checking for ftruncate needs root" >&5
11080 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11081 echo $ac_n "(cached) $ac_c" 1>&6
11084 if test "$cross_compiling" = yes; then
11085 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11087 cat > conftest.$ac_ext <<EOF
11088 #line 11089 "configure"
11089 #include "confdefs.h"
11090 #include "${srcdir-.}/tests/ftruncroot.c"
11092 if { (eval echo configure:11093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11094 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11096 echo "configure: failed program was:" >&5
11097 cat conftest.$ac_ext >&5
11099 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11106 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11107 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11108 cat >> confdefs.h <<\EOF
11109 #define FTRUNCATE_NEEDS_ROOT 1
11114 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11115 echo "configure:11116: checking for fcntl locking" >&5
11116 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11117 echo $ac_n "(cached) $ac_c" 1>&6
11120 if test "$cross_compiling" = yes; then
11121 samba_cv_HAVE_FCNTL_LOCK=cross
11123 cat > conftest.$ac_ext <<EOF
11124 #line 11125 "configure"
11125 #include "confdefs.h"
11126 #include "${srcdir-.}/tests/fcntl_lock.c"
11128 if { (eval echo configure:11129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11130 samba_cv_HAVE_FCNTL_LOCK=yes
11132 echo "configure: failed program was:" >&5
11133 cat conftest.$ac_ext >&5
11135 samba_cv_HAVE_FCNTL_LOCK=no
11142 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11143 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11144 cat >> confdefs.h <<\EOF
11145 #define HAVE_FCNTL_LOCK 1
11150 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11151 echo "configure:11152: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11152 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11153 echo $ac_n "(cached) $ac_c" 1>&6
11156 if test "$cross_compiling" = yes; then
11157 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11159 cat > conftest.$ac_ext <<EOF
11160 #line 11161 "configure"
11161 #include "confdefs.h"
11162 #include "${srcdir-.}/tests/fcntl_lock64.c"
11164 if { (eval echo configure:11165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11166 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11168 echo "configure: failed program was:" >&5
11169 cat conftest.$ac_ext >&5
11171 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11178 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11179 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11180 cat >> confdefs.h <<\EOF
11181 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11188 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11189 echo "configure:11190: checking for 64 bit fcntl locking" >&5
11190 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11191 echo $ac_n "(cached) $ac_c" 1>&6
11194 if test "$cross_compiling" = yes; then
11195 samba_cv_HAVE_STRUCT_FLOCK64=cross
11197 cat > conftest.$ac_ext <<EOF
11198 #line 11199 "configure"
11199 #include "confdefs.h"
11201 #if defined(HAVE_UNISTD_H)
11202 #include <unistd.h>
11205 #include <stdlib.h>
11207 #ifdef HAVE_FCNTL_H
11211 #ifdef HAVE_SYS_FCNTL_H
11212 #include <sys/fcntl.h>
11214 main() { struct flock64 fl64;
11215 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11222 if { (eval echo configure:11223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11224 samba_cv_HAVE_STRUCT_FLOCK64=yes
11226 echo "configure: failed program was:" >&5
11227 cat conftest.$ac_ext >&5
11229 samba_cv_HAVE_STRUCT_FLOCK64=no
11236 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11238 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11239 cat >> confdefs.h <<\EOF
11240 #define HAVE_STRUCT_FLOCK64 1
11246 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
11247 echo "configure:11248: checking for a crypt that needs truncated salt" >&5
11248 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
11249 echo $ac_n "(cached) $ac_c" 1>&6
11252 if test "$cross_compiling" = yes; then
11253 samba_cv_HAVE_TRUNCATED_SALT=cross
11255 cat > conftest.$ac_ext <<EOF
11256 #line 11257 "configure"
11257 #include "confdefs.h"
11258 #include "${srcdir-.}/tests/crypttest.c"
11260 if { (eval echo configure:11261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11262 samba_cv_HAVE_TRUNCATED_SALT=no
11264 echo "configure: failed program was:" >&5
11265 cat conftest.$ac_ext >&5
11267 samba_cv_HAVE_TRUNCATED_SALT=yes
11274 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
11275 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
11276 cat >> confdefs.h <<\EOF
11277 #define HAVE_TRUNCATED_SALT 1
11282 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11283 echo "configure:11284: checking for broken nisplus include files" >&5
11284 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11285 echo $ac_n "(cached) $ac_c" 1>&6
11288 cat > conftest.$ac_ext <<EOF
11289 #line 11290 "configure"
11290 #include "confdefs.h"
11291 #include <sys/acl.h>
11292 #if defined(HAVE_RPCSVC_NIS_H)
11293 #include <rpcsvc/nis.h>
11299 if { (eval echo configure:11300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11301 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11303 echo "configure: failed program was:" >&5
11304 cat conftest.$ac_ext >&5
11306 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11311 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11312 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11313 cat >> confdefs.h <<\EOF
11314 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11320 #################################################
11321 # check for smbwrapper support
11322 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11323 echo "configure:11324: checking whether to use smbwrapper" >&5
11324 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11325 if test "${with_smbwrapper+set}" = set; then
11326 withval="$with_smbwrapper"
11329 echo "$ac_t""yes" 1>&6
11330 cat >> confdefs.h <<\EOF
11331 #define WITH_SMBWRAPPER 1
11334 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11336 if test x$ATTEMPT_WRAP32_BUILD = x; then
11339 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11342 # Conditions under which smbwrapper should not be built.
11344 if test x$PICFLAG = x; then
11345 echo No support for PIC code - disabling smbwrapper and smbsh
11348 elif test x$ac_cv_func_syscall = xno; then
11349 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11355 echo "$ac_t""no" 1>&6
11359 echo "$ac_t""no" 1>&6
11364 #################################################
11365 # check for the AFS filesystem
11366 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11367 echo "configure:11368: checking whether to use AFS" >&5
11368 # Check whether --with-afs or --without-afs was given.
11369 if test "${with_afs+set}" = set; then
11370 withval="$with_afs"
11373 echo "$ac_t""yes" 1>&6
11374 cat >> confdefs.h <<\EOF
11380 echo "$ac_t""no" 1>&6
11384 echo "$ac_t""no" 1>&6
11390 #################################################
11391 # check for the DFS auth system
11392 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
11393 echo "configure:11394: checking whether to use DFS auth" >&5
11394 # Check whether --with-dfs or --without-dfs was given.
11395 if test "${with_dfs+set}" = set; then
11396 withval="$with_dfs"
11399 echo "$ac_t""yes" 1>&6
11400 cat >> confdefs.h <<\EOF
11406 echo "$ac_t""no" 1>&6
11410 echo "$ac_t""no" 1>&6
11415 #################################################
11416 # check for Kerberos IV auth system
11417 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11418 echo "configure:11419: checking whether to use Kerberos IV" >&5
11419 # Check whether --with-krb4 or --without-krb4 was given.
11420 if test "${with_krb4+set}" = set; then
11421 withval="$with_krb4"
11422 echo "$ac_t""yes" 1>&6
11423 cat >> confdefs.h <<\EOF
11424 #define KRB4_AUTH 1
11427 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11428 echo "configure:11429: checking for dn_expand in -lresolv" >&5
11429 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11430 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11431 echo $ac_n "(cached) $ac_c" 1>&6
11433 ac_save_LIBS="$LIBS"
11434 LIBS="-lresolv $LIBS"
11435 cat > conftest.$ac_ext <<EOF
11436 #line 11437 "configure"
11437 #include "confdefs.h"
11438 /* Override any gcc2 internal prototype to avoid an error. */
11439 /* We use char because int might match the return type of a gcc2
11440 builtin and then its argument prototype would still apply. */
11447 if { (eval echo configure:11448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11449 eval "ac_cv_lib_$ac_lib_var=yes"
11451 echo "configure: failed program was:" >&5
11452 cat conftest.$ac_ext >&5
11454 eval "ac_cv_lib_$ac_lib_var=no"
11457 LIBS="$ac_save_LIBS"
11460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11461 echo "$ac_t""yes" 1>&6
11462 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11463 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11464 cat >> confdefs.h <<EOF
11465 #define $ac_tr_lib 1
11468 LIBS="-lresolv $LIBS"
11471 echo "$ac_t""no" 1>&6
11474 LIBS="$LIBS -lkrb -ldes"
11475 CFLAGS="$CFLAGS -I$withval/include"
11476 LDFLAGS="$LDFLAGS -L$withval/lib"
11478 echo "$ac_t""no" 1>&6
11483 #################################################
11484 # check for Kerberos 5 auth system
11485 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11486 echo "configure:11487: checking whether to use Kerberos 5" >&5
11487 # Check whether --with-krb5 or --without-krb5 was given.
11488 if test "${with_krb5+set}" = set; then
11489 withval="$with_krb5"
11490 echo "$ac_t""yes" 1>&6
11491 cat >> confdefs.h <<\EOF
11492 #define KRB5_AUTH 1
11495 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11496 CFLAGS="$CFLAGS -I$withval/include"
11497 LDFLAGS="$LDFLAGS -L$withval/lib"
11499 echo "$ac_t""no" 1>&6
11504 #################################################
11505 # check for automount support
11506 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11507 echo "configure:11508: checking whether to use AUTOMOUNT" >&5
11508 # Check whether --with-automount or --without-automount was given.
11509 if test "${with_automount+set}" = set; then
11510 withval="$with_automount"
11513 echo "$ac_t""yes" 1>&6
11514 cat >> confdefs.h <<\EOF
11515 #define WITH_AUTOMOUNT 1
11520 echo "$ac_t""no" 1>&6
11524 echo "$ac_t""no" 1>&6
11529 #################################################
11530 # check for smbmount support
11531 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11532 echo "configure:11533: checking whether to use SMBMOUNT" >&5
11533 # Check whether --with-smbmount or --without-smbmount was given.
11534 if test "${with_smbmount+set}" = set; then
11535 withval="$with_smbmount"
11538 echo "$ac_t""yes" 1>&6
11539 cat >> confdefs.h <<\EOF
11540 #define WITH_SMBMOUNT 1
11543 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11546 echo "$ac_t""no" 1>&6
11551 echo "$ac_t""no" 1>&6
11558 #################################################
11559 # check for a PAM password database
11561 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11562 echo "configure:11563: checking whether to use PAM password database" >&5
11563 # Check whether --with-pam or --without-pam was given.
11564 if test "${with_pam+set}" = set; then
11565 withval="$with_pam"
11568 echo "$ac_t""yes" 1>&6
11569 cat >> confdefs.h <<\EOF
11576 echo "$ac_t""no" 1>&6
11580 echo "$ac_t""no" 1>&6
11585 # we can't build a pam module if we don't have pam.
11586 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11587 echo "configure:11588: checking for pam_get_data in -lpam" >&5
11588 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11589 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11590 echo $ac_n "(cached) $ac_c" 1>&6
11592 ac_save_LIBS="$LIBS"
11594 cat > conftest.$ac_ext <<EOF
11595 #line 11596 "configure"
11596 #include "confdefs.h"
11597 /* Override any gcc2 internal prototype to avoid an error. */
11598 /* We use char because int might match the return type of a gcc2
11599 builtin and then its argument prototype would still apply. */
11600 char pam_get_data();
11606 if { (eval echo configure:11607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11608 eval "ac_cv_lib_$ac_lib_var=yes"
11610 echo "configure: failed program was:" >&5
11611 cat conftest.$ac_ext >&5
11613 eval "ac_cv_lib_$ac_lib_var=no"
11616 LIBS="$ac_save_LIBS"
11619 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11620 echo "$ac_t""yes" 1>&6
11621 cat >> confdefs.h <<\EOF
11622 #define HAVE_LIBPAM 1
11626 echo "$ac_t""no" 1>&6
11630 #################################################
11631 # check for pam_smbpass support
11632 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11633 echo "configure:11634: checking whether to use pam_smbpass" >&5
11634 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11635 if test "${with_pam_smbpass+set}" = set; then
11636 withval="$with_pam_smbpass"
11639 echo "$ac_t""yes" 1>&6
11641 # Conditions under which pam_smbpass should not be built.
11643 if test x$PICFLAG = x; then
11644 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11646 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
11647 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11650 cat >> confdefs.h <<\EOF
11651 #define WITH_PAM_SMBPASS 1
11654 PAM_MOD="bin/pam_smbpass.so"
11658 echo "$ac_t""no" 1>&6
11662 echo "$ac_t""no" 1>&6
11668 ###############################################
11669 # test for where we get crypt() from, but only
11671 if test "$with_pam" != yes; then
11672 for ac_func in crypt
11674 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11675 echo "configure:11676: checking for $ac_func" >&5
11676 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11677 echo $ac_n "(cached) $ac_c" 1>&6
11679 cat > conftest.$ac_ext <<EOF
11680 #line 11681 "configure"
11681 #include "confdefs.h"
11682 /* System header to define __stub macros and hopefully few prototypes,
11683 which can conflict with char $ac_func(); below. */
11684 #include <assert.h>
11685 /* Override any gcc2 internal prototype to avoid an error. */
11686 /* We use char because int might match the return type of a gcc2
11687 builtin and then its argument prototype would still apply. */
11692 /* The GNU C library defines this for functions which it implements
11693 to always fail with ENOSYS. Some functions are actually named
11694 something starting with __ and the normal name is an alias. */
11695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11703 if { (eval echo configure:11704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11705 eval "ac_cv_func_$ac_func=yes"
11707 echo "configure: failed program was:" >&5
11708 cat conftest.$ac_ext >&5
11710 eval "ac_cv_func_$ac_func=no"
11715 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11716 echo "$ac_t""yes" 1>&6
11717 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11718 cat >> confdefs.h <<EOF
11719 #define $ac_tr_func 1
11723 echo "$ac_t""no" 1>&6
11727 if test x"$ac_cv_func_crypt" = x"no"; then
11728 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11729 echo "configure:11730: checking for crypt in -lcrypt" >&5
11730 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11731 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11732 echo $ac_n "(cached) $ac_c" 1>&6
11734 ac_save_LIBS="$LIBS"
11735 LIBS="-lcrypt $LIBS"
11736 cat > conftest.$ac_ext <<EOF
11737 #line 11738 "configure"
11738 #include "confdefs.h"
11739 /* Override any gcc2 internal prototype to avoid an error. */
11740 /* We use char because int might match the return type of a gcc2
11741 builtin and then its argument prototype would still apply. */
11748 if { (eval echo configure:11749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11750 eval "ac_cv_lib_$ac_lib_var=yes"
11752 echo "configure: failed program was:" >&5
11753 cat conftest.$ac_ext >&5
11755 eval "ac_cv_lib_$ac_lib_var=no"
11758 LIBS="$ac_save_LIBS"
11761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11762 echo "$ac_t""yes" 1>&6
11763 LIBS="$LIBS -lcrypt";
11764 cat >> confdefs.h <<\EOF
11765 #define HAVE_CRYPT 1
11769 echo "$ac_t""no" 1>&6
11776 #################################################
11777 # check for a TDB password database
11778 echo $ac_n "checking whether to use TDB password database""... $ac_c" 1>&6
11779 echo "configure:11780: checking whether to use TDB password database" >&5
11780 # Check whether --with-tdbsam or --without-tdbsam was given.
11781 if test "${with_tdbsam+set}" = set; then
11782 withval="$with_tdbsam"
11785 echo "$ac_t""yes" 1>&6
11786 cat >> confdefs.h <<\EOF
11787 #define WITH_TDBPWD 1
11790 # AC_MSG_ERROR([TDB password database not supported in this version.])
11793 echo "$ac_t""no" 1>&6
11797 echo "$ac_t""no" 1>&6
11802 #################################################
11803 # check for a LDAP password database
11804 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
11805 echo "configure:11806: checking whether to use LDAP password database" >&5
11806 # Check whether --with-ldap or --without-ldap was given.
11807 if test "${with_ldap+set}" = set; then
11808 withval="$with_ldap"
11811 echo "$ac_t""yes" 1>&6
11812 cat >> confdefs.h <<\EOF
11813 #define WITH_LDAP 1
11816 { echo "configure: error: LDAP password database not supported in this version." 1>&2; exit 1; }
11819 echo "$ac_t""no" 1>&6
11823 echo "$ac_t""no" 1>&6
11828 #################################################
11829 # check for a NISPLUS password database
11830 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
11831 echo "configure:11832: checking whether to use NISPLUS password database" >&5
11832 # Check whether --with-nisplus or --without-nisplus was given.
11833 if test "${with_nisplus+set}" = set; then
11834 withval="$with_nisplus"
11837 echo "$ac_t""yes" 1>&6
11838 cat >> confdefs.h <<\EOF
11839 #define WITH_NISPLUS 1
11844 echo "$ac_t""no" 1>&6
11848 echo "$ac_t""no" 1>&6
11853 #################################################
11854 # check for a NISPLUS_HOME support
11855 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11856 echo "configure:11857: checking whether to use NISPLUS_HOME" >&5
11857 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11858 if test "${with_nisplus_home+set}" = set; then
11859 withval="$with_nisplus_home"
11862 echo "$ac_t""yes" 1>&6
11863 cat >> confdefs.h <<\EOF
11864 #define WITH_NISPLUS_HOME 1
11869 echo "$ac_t""no" 1>&6
11873 echo "$ac_t""no" 1>&6
11878 #################################################
11879 # check for the secure socket layer
11880 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11881 echo "configure:11882: checking whether to use SSL" >&5
11882 # Check whether --with-ssl or --without-ssl was given.
11883 if test "${with_ssl+set}" = set; then
11884 withval="$with_ssl"
11887 echo "$ac_t""yes" 1>&6
11888 cat >> confdefs.h <<\EOF
11892 withval="/usr/local/ssl" # default
11894 if test "${with_sslinc+set}" = set; then
11896 withval="$with_sslinc"
11899 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11900 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11901 LIBS="-lssl -lcrypto $LIBS"
11902 LDFLAGS="=L/usr/local/ssl/lib $LDFLAGS"
11905 CFLAGS="-I${withval} $CFLAGS"
11906 LIBS="-lssl -lcrypto $LIBS"
11907 LDFLAGS="-L${withval}/lib $LDFLAGS"
11913 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11914 LIBS="-lssl -lcrypto $LIBS"
11915 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
11919 if test ! -d ${withval}; then
11920 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11924 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11928 echo "$ac_t""no" 1>&6
11932 echo "$ac_t""no" 1>&6
11937 #################################################
11938 # check for syslog logging
11939 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11940 echo "configure:11941: checking whether to use syslog logging" >&5
11941 # Check whether --with-syslog or --without-syslog was given.
11942 if test "${with_syslog+set}" = set; then
11943 withval="$with_syslog"
11946 echo "$ac_t""yes" 1>&6
11947 cat >> confdefs.h <<\EOF
11948 #define WITH_SYSLOG 1
11953 echo "$ac_t""no" 1>&6
11957 echo "$ac_t""no" 1>&6
11962 #################################################
11963 # check for a shared memory profiling support
11964 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11965 echo "configure:11966: checking whether to use profiling" >&5
11966 # Check whether --with-profile or --without-profile was given.
11967 if test "${with_profile+set}" = set; then
11968 withval="$with_profile"
11971 echo "$ac_t""yes" 1>&6
11972 cat >> confdefs.h <<\EOF
11973 #define WITH_PROFILE 1
11978 echo "$ac_t""no" 1>&6
11982 echo "$ac_t""no" 1>&6
11988 #################################################
11989 # check for experimental netatalk resource fork support
11990 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
11991 echo "configure:11992: checking whether to support netatalk" >&5
11992 # Check whether --with-netatalk or --without-netatalk was given.
11993 if test "${with_netatalk+set}" = set; then
11994 withval="$with_netatalk"
11997 echo "$ac_t""yes" 1>&6
11998 cat >> confdefs.h <<\EOF
11999 #define WITH_NETATALK 1
12004 echo "$ac_t""no" 1>&6
12008 echo "$ac_t""no" 1>&6
12013 #################################################
12014 # check for experimental disk-quotas support
12015 QUOTAOBJS=smbd/noquotas.o
12017 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12018 echo "configure:12019: checking whether to support disk-quotas" >&5
12019 # Check whether --with-quotas or --without-quotas was given.
12020 if test "${with_quotas+set}" = set; then
12021 withval="$with_quotas"
12024 echo "$ac_t""yes" 1>&6
12025 QUOTAOBJS=smbd/quotas.o
12028 echo "$ac_t""no" 1>&6
12032 echo "$ac_t""no" 1>&6
12038 #################################################
12039 # check for experimental utmp accounting
12041 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12042 echo "configure:12043: checking whether to support utmp accounting" >&5
12043 # Check whether --with-utmp or --without-utmp was given.
12044 if test "${with_utmp+set}" = set; then
12045 withval="$with_utmp"
12048 echo "$ac_t""yes" 1>&6
12049 cat >> confdefs.h <<\EOF
12050 #define WITH_UTMP 1
12055 echo "$ac_t""no" 1>&6
12059 echo "$ac_t""no" 1>&6
12064 #################################################
12065 # check for MS Dfs support
12067 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
12068 echo "configure:12069: checking whether to support Microsoft Dfs" >&5
12069 # Check whether --with-msdfs or --without-msdfs was given.
12070 if test "${with_msdfs+set}" = set; then
12071 withval="$with_msdfs"
12074 echo "$ac_t""yes" 1>&6
12075 cat >> confdefs.h <<\EOF
12076 #define WITH_MSDFS 1
12081 echo "$ac_t""no" 1>&6
12085 echo "$ac_t""no" 1>&6
12090 #################################################
12091 # set private directory location
12092 # Check whether --with-privatedir or --without-privatedir was given.
12093 if test "${with_privatedir+set}" = set; then
12094 withval="$with_privatedir"
12098 # Just in case anybody calls it without argument
12100 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
12101 privatedir='${prefix}/private'
12104 privatedir="$withval"
12109 privatedir='${prefix}/private'
12115 #################################################
12116 # set lock directory location
12117 # Check whether --with-lockdir or --without-lockdir was given.
12118 if test "${with_lockdir+set}" = set; then
12119 withval="$with_lockdir"
12123 # Just in case anybody calls it without argument
12125 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
12126 lockdir='$(VARDIR)/locks'
12134 lockdir='$(VARDIR)/locks'
12140 #################################################
12141 # set SWAT directory location
12142 # Check whether --with-swatdir or --without-swatdir was given.
12143 if test "${with_swatdir+set}" = set; then
12144 withval="$with_swatdir"
12148 # Just in case anybody does it
12150 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
12151 swatdir='${prefix}/swat'
12159 swatdir='${prefix}/swat'
12165 #################################################
12166 # these tests are taken from the GNU fileutils package
12167 echo "checking how to get filesystem space usage" 1>&6
12168 echo "configure:12169: checking how to get filesystem space usage" >&5
12171 # Test for statvfs64.
12172 if test $space = no; then
12174 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12175 echo "configure:12176: checking statvfs64 function (SVR4)" >&5
12176 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12177 echo $ac_n "(cached) $ac_c" 1>&6
12179 if test "$cross_compiling" = yes; then
12180 fu_cv_sys_stat_statvfs64=cross
12182 cat > conftest.$ac_ext <<EOF
12183 #line 12184 "configure"
12184 #include "confdefs.h"
12186 #if defined(HAVE_UNISTD_H)
12187 #include <unistd.h>
12189 #include <sys/types.h>
12190 #include <sys/statvfs.h>
12193 struct statvfs64 fsd;
12194 exit (statvfs64 (".", &fsd));
12197 if { (eval echo configure:12198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12199 fu_cv_sys_stat_statvfs64=yes
12201 echo "configure: failed program was:" >&5
12202 cat conftest.$ac_ext >&5
12204 fu_cv_sys_stat_statvfs64=no
12211 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12212 if test $fu_cv_sys_stat_statvfs64 = yes; then
12214 cat >> confdefs.h <<\EOF
12215 #define STAT_STATVFS64 1
12221 # Perform only the link test since it seems there are no variants of the
12222 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12223 # because that got a false positive on SCO OSR5. Adding the declaration
12224 # of a `struct statvfs' causes this test to fail (as it should) on such
12225 # systems. That system is reported to work fine with STAT_STATFS4 which
12226 # is what it gets when this test fails.
12227 if test $space = no; then
12229 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12230 echo "configure:12231: checking statvfs function (SVR4)" >&5
12231 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12232 echo $ac_n "(cached) $ac_c" 1>&6
12234 cat > conftest.$ac_ext <<EOF
12235 #line 12236 "configure"
12236 #include "confdefs.h"
12237 #include <sys/types.h>
12238 #include <sys/statvfs.h>
12240 struct statvfs fsd; statvfs (0, &fsd);
12243 if { (eval echo configure:12244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12245 fu_cv_sys_stat_statvfs=yes
12247 echo "configure: failed program was:" >&5
12248 cat conftest.$ac_ext >&5
12250 fu_cv_sys_stat_statvfs=no
12255 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12256 if test $fu_cv_sys_stat_statvfs = yes; then
12258 cat >> confdefs.h <<\EOF
12259 #define STAT_STATVFS 1
12265 if test $space = no; then
12266 # DEC Alpha running OSF/1
12267 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12268 echo "configure:12269: checking for 3-argument statfs function (DEC OSF/1)" >&5
12269 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12270 echo $ac_n "(cached) $ac_c" 1>&6
12272 if test "$cross_compiling" = yes; then
12273 fu_cv_sys_stat_statfs3_osf1=no
12275 cat > conftest.$ac_ext <<EOF
12276 #line 12277 "configure"
12277 #include "confdefs.h"
12279 #include <sys/param.h>
12280 #include <sys/types.h>
12281 #include <sys/mount.h>
12286 exit (statfs (".", &fsd, sizeof (struct statfs)));
12289 if { (eval echo configure:12290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12291 fu_cv_sys_stat_statfs3_osf1=yes
12293 echo "configure: failed program was:" >&5
12294 cat conftest.$ac_ext >&5
12296 fu_cv_sys_stat_statfs3_osf1=no
12303 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12304 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12306 cat >> confdefs.h <<\EOF
12307 #define STAT_STATFS3_OSF1 1
12313 if test $space = no; then
12315 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12316 echo "configure:12317: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12317 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12318 echo $ac_n "(cached) $ac_c" 1>&6
12320 if test "$cross_compiling" = yes; then
12321 fu_cv_sys_stat_statfs2_bsize=no
12323 cat > conftest.$ac_ext <<EOF
12324 #line 12325 "configure"
12325 #include "confdefs.h"
12327 #ifdef HAVE_SYS_PARAM_H
12328 #include <sys/param.h>
12330 #ifdef HAVE_SYS_MOUNT_H
12331 #include <sys/mount.h>
12333 #ifdef HAVE_SYS_VFS_H
12334 #include <sys/vfs.h>
12340 exit (statfs (".", &fsd));
12343 if { (eval echo configure:12344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12345 fu_cv_sys_stat_statfs2_bsize=yes
12347 echo "configure: failed program was:" >&5
12348 cat conftest.$ac_ext >&5
12350 fu_cv_sys_stat_statfs2_bsize=no
12357 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12358 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12360 cat >> confdefs.h <<\EOF
12361 #define STAT_STATFS2_BSIZE 1
12367 if test $space = no; then
12369 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12370 echo "configure:12371: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12371 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12372 echo $ac_n "(cached) $ac_c" 1>&6
12374 if test "$cross_compiling" = yes; then
12375 fu_cv_sys_stat_statfs4=no
12377 cat > conftest.$ac_ext <<EOF
12378 #line 12379 "configure"
12379 #include "confdefs.h"
12380 #include <sys/types.h>
12381 #include <sys/statfs.h>
12385 exit (statfs (".", &fsd, sizeof fsd, 0));
12388 if { (eval echo configure:12389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12390 fu_cv_sys_stat_statfs4=yes
12392 echo "configure: failed program was:" >&5
12393 cat conftest.$ac_ext >&5
12395 fu_cv_sys_stat_statfs4=no
12402 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12403 if test $fu_cv_sys_stat_statfs4 = yes; then
12405 cat >> confdefs.h <<\EOF
12406 #define STAT_STATFS4 1
12412 if test $space = no; then
12413 # 4.4BSD and NetBSD
12414 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12415 echo "configure:12416: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12416 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12417 echo $ac_n "(cached) $ac_c" 1>&6
12419 if test "$cross_compiling" = yes; then
12420 fu_cv_sys_stat_statfs2_fsize=no
12422 cat > conftest.$ac_ext <<EOF
12423 #line 12424 "configure"
12424 #include "confdefs.h"
12425 #include <sys/types.h>
12426 #ifdef HAVE_SYS_PARAM_H
12427 #include <sys/param.h>
12429 #ifdef HAVE_SYS_MOUNT_H
12430 #include <sys/mount.h>
12436 exit (statfs (".", &fsd));
12439 if { (eval echo configure:12440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12441 fu_cv_sys_stat_statfs2_fsize=yes
12443 echo "configure: failed program was:" >&5
12444 cat conftest.$ac_ext >&5
12446 fu_cv_sys_stat_statfs2_fsize=no
12453 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12454 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12456 cat >> confdefs.h <<\EOF
12457 #define STAT_STATFS2_FSIZE 1
12463 if test $space = no; then
12465 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12466 echo "configure:12467: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12467 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12468 echo $ac_n "(cached) $ac_c" 1>&6
12470 if test "$cross_compiling" = yes; then
12471 fu_cv_sys_stat_fs_data=no
12473 cat > conftest.$ac_ext <<EOF
12474 #line 12475 "configure"
12475 #include "confdefs.h"
12476 #include <sys/types.h>
12477 #ifdef HAVE_SYS_PARAM_H
12478 #include <sys/param.h>
12480 #ifdef HAVE_SYS_MOUNT_H
12481 #include <sys/mount.h>
12483 #ifdef HAVE_SYS_FS_TYPES_H
12484 #include <sys/fs_types.h>
12488 struct fs_data fsd;
12489 /* Ultrix's statfs returns 1 for success,
12490 0 for not mounted, -1 for failure. */
12491 exit (statfs (".", &fsd) != 1);
12494 if { (eval echo configure:12495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12496 fu_cv_sys_stat_fs_data=yes
12498 echo "configure: failed program was:" >&5
12499 cat conftest.$ac_ext >&5
12501 fu_cv_sys_stat_fs_data=no
12508 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12509 if test $fu_cv_sys_stat_fs_data = yes; then
12511 cat >> confdefs.h <<\EOF
12512 #define STAT_STATFS2_FS_DATA 1
12519 # As a gating factor for large file support, in order to
12520 # use <4GB files we must have the following minimal support
12522 # long long, and a 64 bit off_t or off64_t.
12523 # If we don't have all of these then disable large
12526 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12527 echo "configure:12528: checking if large file support can be enabled" >&5
12528 cat > conftest.$ac_ext <<EOF
12529 #line 12530 "configure"
12530 #include "confdefs.h"
12532 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12533 #include <sys/types.h>
12542 if { (eval echo configure:12543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12544 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
12546 echo "configure: failed program was:" >&5
12547 cat conftest.$ac_ext >&5
12549 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
12552 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
12553 cat >> confdefs.h <<\EOF
12554 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12558 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
12560 # Check whether --with-spinlocks or --without-spinlocks was given.
12561 if test "${with_spinlocks+set}" = set; then
12562 withval="$with_spinlocks"
12566 if test "x$with_spinlocks" = "xyes"; then
12567 cat >> confdefs.h <<\EOF
12568 #define USE_SPINLOCKS 1
12572 case "$host_cpu" in
12574 cat >> confdefs.h <<\EOF
12575 #define SPARC_SPINLOCKS 1
12580 i386|i486|i586|i686)
12581 cat >> confdefs.h <<\EOF
12582 #define INTEL_SPINLOCKS 1
12588 cat >> confdefs.h <<\EOF
12589 #define MIPS_SPINLOCKS 1
12595 cat >> confdefs.h <<\EOF
12596 #define POWERPC_SPINLOCKS 1
12603 #################################################
12604 # check for ACL support
12606 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12607 echo "configure:12608: checking whether to support ACLs" >&5
12608 # Check whether --with-acl-support or --without-acl-support was given.
12609 if test "${with_acl_support+set}" = set; then
12610 withval="$with_acl_support"
12616 echo "$ac_t""Using UnixWare ACLs" 1>&6
12617 cat >> confdefs.h <<\EOF
12618 #define HAVE_UNIXWARE_ACLS 1
12623 echo "$ac_t""Using solaris ACLs" 1>&6
12624 cat >> confdefs.h <<\EOF
12625 #define HAVE_SOLARIS_ACLS 1
12630 echo "$ac_t""Using IRIX ACLs" 1>&6
12631 cat >> confdefs.h <<\EOF
12632 #define HAVE_IRIX_ACLS 1
12637 echo "$ac_t""Using AIX ACLs" 1>&6
12638 cat >> confdefs.h <<\EOF
12639 #define HAVE_AIX_ACLS 1
12644 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12645 echo "configure:12646: checking for acl_get_file in -lacl" >&5
12646 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12648 echo $ac_n "(cached) $ac_c" 1>&6
12650 ac_save_LIBS="$LIBS"
12652 cat > conftest.$ac_ext <<EOF
12653 #line 12654 "configure"
12654 #include "confdefs.h"
12655 /* Override any gcc2 internal prototype to avoid an error. */
12656 /* We use char because int might match the return type of a gcc2
12657 builtin and then its argument prototype would still apply. */
12658 char acl_get_file();
12664 if { (eval echo configure:12665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12666 eval "ac_cv_lib_$ac_lib_var=yes"
12668 echo "configure: failed program was:" >&5
12669 cat conftest.$ac_ext >&5
12671 eval "ac_cv_lib_$ac_lib_var=no"
12674 LIBS="$ac_save_LIBS"
12677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12678 echo "$ac_t""yes" 1>&6
12679 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12680 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12681 cat >> confdefs.h <<EOF
12682 #define $ac_tr_lib 1
12688 echo "$ac_t""no" 1>&6
12691 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12692 echo "configure:12693: checking for ACL support" >&5
12693 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12694 echo $ac_n "(cached) $ac_c" 1>&6
12697 cat > conftest.$ac_ext <<EOF
12698 #line 12699 "configure"
12699 #include "confdefs.h"
12700 #include <sys/types.h>
12701 #include <sys/acl.h>
12703 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12706 if { (eval echo configure:12707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12708 samba_cv_HAVE_POSIX_ACLS=yes
12710 echo "configure: failed program was:" >&5
12711 cat conftest.$ac_ext >&5
12713 samba_cv_HAVE_POSIX_ACLS=no
12718 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12719 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
12720 echo "$ac_t""Using posix ACLs" 1>&6
12721 cat >> confdefs.h <<\EOF
12722 #define HAVE_POSIX_ACLS 1
12725 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12726 echo "configure:12727: checking for acl_get_perm_np" >&5
12727 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12728 echo $ac_n "(cached) $ac_c" 1>&6
12731 cat > conftest.$ac_ext <<EOF
12732 #line 12733 "configure"
12733 #include "confdefs.h"
12734 #include <sys/types.h>
12735 #include <sys/acl.h>
12737 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12740 if { (eval echo configure:12741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12742 samba_cv_HAVE_ACL_GET_PERM_NP=yes
12744 echo "configure: failed program was:" >&5
12745 cat conftest.$ac_ext >&5
12747 samba_cv_HAVE_ACL_GET_PERM_NP=no
12752 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12753 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
12754 cat >> confdefs.h <<\EOF
12755 #define HAVE_ACL_GET_PERM_NP 1
12764 echo "$ac_t""no" 1>&6
12765 cat >> confdefs.h <<\EOF
12766 #define HAVE_NO_ACLS 1
12772 cat >> confdefs.h <<\EOF
12773 #define HAVE_NO_ACLS 1
12776 echo "$ac_t""no" 1>&6
12781 #################################################
12782 # check whether winbind is supported on this platform
12784 echo $ac_n "checking whether to compile winbind""... $ac_c" 1>&6
12785 echo "configure:12786: checking whether to compile winbind" >&5
12789 WINBIND_TARGETS="$WINBIND_TARGETS \$(WINBIND_PROGS)"
12790 case "$with_pam" in
12792 WINBIND_TARGETS="$WINBIND_TARGETS \$(WINBIND_PAM_PROGS)"
12798 winbind_no_reason=", unsupported on $host_os"
12802 # Check whether --with-winbind or --without-winbind was given.
12803 if test "${with_winbind+set}" = set; then
12804 withval="$with_winbind"
12815 if test x"$WINBIND_TARGETS" = x; then
12816 echo "$ac_t""no$winbind_no_reason" 1>&6
12818 echo "$ac_t""yes" 1>&6
12823 #################################################
12824 # final configure stuff
12826 echo "checking configure summary"
12827 if test "$cross_compiling" = yes; then
12830 cat > conftest.$ac_ext <<EOF
12831 #line 12832 "configure"
12832 #include "confdefs.h"
12833 #include "${srcdir-.}/tests/summary.c"
12835 if { (eval echo configure:12836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12837 echo "configure OK";
12839 echo "configure: failed program was:" >&5
12840 cat conftest.$ac_ext >&5
12842 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12852 cat > confcache <<\EOF
12853 # This file is a shell script that caches the results of configure
12854 # tests run on this system so they can be shared between configure
12855 # scripts and configure runs. It is not useful on other systems.
12856 # If it contains results you don't want to keep, you may remove or edit it.
12858 # By default, configure uses ./config.cache as the cache file,
12859 # creating it if it does not exist already. You can give configure
12860 # the --cache-file=FILE option to use a different cache file; that is
12861 # what configure does when it calls configure scripts in
12862 # subdirectories, so they share the cache.
12863 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12864 # config.status only pays attention to the cache file if you give it the
12865 # --recheck option to rerun configure.
12868 # The following way of writing the cache mishandles newlines in values,
12869 # but we know of no workaround that is simple, portable, and efficient.
12870 # So, don't put newlines in cache variables' values.
12871 # Ultrix sh set writes to stderr and can't be redirected directly,
12872 # and sets the high bit in the cache file unless we assign to the vars.
12874 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12876 # `set' does not quote correctly, so add quotes (double-quote substitution
12877 # turns \\\\ into \\, and sed turns \\ into \).
12879 -e "s/'/'\\\\''/g" \
12880 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12883 # `set' quotes correctly as required by POSIX, so do not add quotes.
12884 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12887 if cmp -s $cache_file confcache; then
12890 if test -w $cache_file; then
12891 echo "updating cache $cache_file"
12892 cat confcache > $cache_file
12894 echo "not updating unwritable cache $cache_file"
12899 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12901 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12902 # Let make expand exec_prefix.
12903 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12905 # Any assignment to VPATH causes Sun make to only execute
12906 # the first set of double-colon rules, so remove it if not needed.
12907 # If there is a colon in the path, we need to keep it.
12908 if test "x$srcdir" = x.; then
12909 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12912 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12914 DEFS=-DHAVE_CONFIG_H
12916 # Without the "./", some shells look in PATH for config.status.
12917 : ${CONFIG_STATUS=./config.status}
12919 echo creating $CONFIG_STATUS
12920 rm -f $CONFIG_STATUS
12921 cat > $CONFIG_STATUS <<EOF
12923 # Generated automatically by configure.
12924 # Run this file to recreate the current configuration.
12925 # This directory was configured as follows,
12926 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12928 # $0 $ac_configure_args
12930 # Compiler output produced by configure, useful for debugging
12931 # configure, is in ./config.log if it exists.
12933 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12936 case "\$ac_option" in
12937 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12938 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12939 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12940 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12941 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12943 -help | --help | --hel | --he | --h)
12944 echo "\$ac_cs_usage"; exit 0 ;;
12945 *) echo "\$ac_cs_usage"; exit 1 ;;
12949 ac_given_srcdir=$srcdir
12950 ac_given_INSTALL="$INSTALL"
12952 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12954 cat >> $CONFIG_STATUS <<EOF
12956 # Protect against being on the right side of a sed subst in config.status.
12957 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12958 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12962 s%@CFLAGS@%$CFLAGS%g
12963 s%@CPPFLAGS@%$CPPFLAGS%g
12964 s%@CXXFLAGS@%$CXXFLAGS%g
12965 s%@FFLAGS@%$FFLAGS%g
12967 s%@LDFLAGS@%$LDFLAGS%g
12969 s%@exec_prefix@%$exec_prefix%g
12970 s%@prefix@%$prefix%g
12971 s%@program_transform_name@%$program_transform_name%g
12972 s%@bindir@%$bindir%g
12973 s%@sbindir@%$sbindir%g
12974 s%@libexecdir@%$libexecdir%g
12975 s%@datadir@%$datadir%g
12976 s%@sysconfdir@%$sysconfdir%g
12977 s%@sharedstatedir@%$sharedstatedir%g
12978 s%@localstatedir@%$localstatedir%g
12979 s%@libdir@%$libdir%g
12980 s%@includedir@%$includedir%g
12981 s%@oldincludedir@%$oldincludedir%g
12982 s%@infodir@%$infodir%g
12983 s%@mandir@%$mandir%g
12984 s%@RUNPROG@%$RUNPROG%g
12985 s%@MPROGS@%$MPROGS%g
12986 s%@LDSHFLAGS@%$LDSHFLAGS%g
12987 s%@HOST_OS@%$HOST_OS%g
12988 s%@PAM_MOD@%$PAM_MOD%g
12990 s%@WRAP32@%$WRAP32%g
12991 s%@PICFLAG@%$PICFLAG%g
12992 s%@SHLIBEXT@%$SHLIBEXT%g
12993 s%@BLDSHARED@%$BLDSHARED%g
12995 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12996 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12997 s%@INSTALL_DATA@%$INSTALL_DATA%g
13000 s%@host_alias@%$host_alias%g
13001 s%@host_cpu@%$host_cpu%g
13002 s%@host_vendor@%$host_vendor%g
13003 s%@host_os@%$host_os%g
13005 s%@build_alias@%$build_alias%g
13006 s%@build_cpu@%$build_cpu%g
13007 s%@build_vendor@%$build_vendor%g
13008 s%@build_os@%$build_os%g
13009 s%@RANLIB@%$RANLIB%g
13011 s%@LIBTOOL@%$LIBTOOL%g
13012 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
13013 s%@BROKEN_CC@%$BROKEN_CC%g
13014 s%@target@%$target%g
13015 s%@target_alias@%$target_alias%g
13016 s%@target_cpu@%$target_cpu%g
13017 s%@target_vendor@%$target_vendor%g
13018 s%@target_os@%$target_os%g
13020 s%@LIBOBJS@%$LIBOBJS%g
13021 s%@TERMLIBS@%$TERMLIBS%g
13022 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13024 s%@QUOTAOBJS@%$QUOTAOBJS%g
13025 s%@privatedir@%$privatedir%g
13026 s%@lockdir@%$lockdir%g
13027 s%@swatdir@%$swatdir%g
13028 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13029 s%@builddir@%$builddir%g
13034 cat >> $CONFIG_STATUS <<\EOF
13036 # Split the substitutions into bite-sized pieces for seds with
13037 # small command number limits, like on Digital OSF/1 and HP-UX.
13038 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13039 ac_file=1 # Number of current file.
13040 ac_beg=1 # First line for current file.
13041 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13044 while $ac_more_lines; do
13045 if test $ac_beg -gt 1; then
13046 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13048 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13050 if test ! -s conftest.s$ac_file; then
13051 ac_more_lines=false
13052 rm -f conftest.s$ac_file
13054 if test -z "$ac_sed_cmds"; then
13055 ac_sed_cmds="sed -f conftest.s$ac_file"
13057 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13059 ac_file=`expr $ac_file + 1`
13061 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13064 if test -z "$ac_sed_cmds"; then
13069 cat >> $CONFIG_STATUS <<EOF
13071 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
13073 cat >> $CONFIG_STATUS <<\EOF
13074 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13075 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13077 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13078 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13079 *) ac_file_in="${ac_file}.in" ;;
13082 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13084 # Remove last slash and all that follows it. Not all systems have dirname.
13085 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13086 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13087 # The file is in a subdirectory.
13088 test ! -d "$ac_dir" && mkdir "$ac_dir"
13089 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13090 # A "../" for each directory in $ac_dir_suffix.
13091 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13093 ac_dir_suffix= ac_dots=
13096 case "$ac_given_srcdir" in
13098 if test -z "$ac_dots"; then top_srcdir=.
13099 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13100 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13101 *) # Relative path.
13102 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13103 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13106 case "$ac_given_INSTALL" in
13107 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13108 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13111 echo creating "$ac_file"
13113 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13115 *Makefile*) ac_comsub="1i\\
13116 # $configure_input" ;;
13120 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13122 s%@configure_input@%$configure_input%g
13123 s%@srcdir@%$srcdir%g
13124 s%@top_srcdir@%$top_srcdir%g
13125 s%@INSTALL@%$INSTALL%g
13126 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13130 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13131 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13133 # ac_d sets the value in "#define NAME VALUE" lines.
13134 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13135 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13138 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13139 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13140 ac_uB='\([ ]\)%\1#\2define\3'
13143 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13144 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13145 ac_eB='$%\1#\2define\3'
13149 if test "${CONFIG_HEADERS+set}" != set; then
13151 cat >> $CONFIG_STATUS <<EOF
13152 CONFIG_HEADERS="include/config.h"
13154 cat >> $CONFIG_STATUS <<\EOF
13156 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13157 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13159 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13160 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13161 *) ac_file_in="${ac_file}.in" ;;
13164 echo creating $ac_file
13166 rm -f conftest.frag conftest.in conftest.out
13167 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13168 cat $ac_file_inputs > conftest.in
13172 # Transform confdefs.h into a sed script conftest.vals that substitutes
13173 # the proper values into config.h.in to produce config.h. And first:
13174 # Protect against being on the right side of a sed subst in config.status.
13175 # Protect against being in an unquoted here document in config.status.
13176 rm -f conftest.vals
13177 cat > conftest.hdr <<\EOF
13180 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13184 sed -n -f conftest.hdr confdefs.h > conftest.vals
13187 # This sed command replaces #undef with comments. This is necessary, for
13188 # example, in the case of _POSIX_SOURCE, which is predefined and required
13189 # on some systems where configure will not decide to define it.
13190 cat >> conftest.vals <<\EOF
13191 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13194 # Break up conftest.vals because some shells have a limit on
13195 # the size of here documents, and old seds have small limits too.
13197 rm -f conftest.tail
13200 ac_lines=`grep -c . conftest.vals`
13201 # grep -c gives empty output for an empty file on some AIX systems.
13202 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13203 # Write a limited-size here document to conftest.frag.
13204 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13205 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13207 sed -f conftest.frag conftest.in > conftest.out
13209 mv conftest.out conftest.in
13210 ' >> $CONFIG_STATUS
13211 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13212 rm -f conftest.vals
13213 mv conftest.tail conftest.vals
13215 rm -f conftest.vals
13217 cat >> $CONFIG_STATUS <<\EOF
13218 rm -f conftest.frag conftest.h
13219 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13220 cat conftest.in >> conftest.h
13222 if cmp -s $ac_file conftest.h 2>/dev/null; then
13223 echo "$ac_file is unchanged"
13226 # Remove last slash and all that follows it. Not all systems have dirname.
13227 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13228 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13229 # The file is in a subdirectory.
13230 test ! -d "$ac_dir" && mkdir "$ac_dir"
13233 mv conftest.h $ac_file
13238 cat >> $CONFIG_STATUS <<EOF
13241 cat >> $CONFIG_STATUS <<\EOF
13245 chmod +x $CONFIG_STATUS
13246 rm -fr confdefs* $ac_clean_files
13247 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1