3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/samba
16 --enable-debug turn on debugging [default=no]"
18 --enable-shared[=PKGS] build shared libraries [default=yes]"
20 --enable-static[=PKGS] build static libraries [default=yes]"
22 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
24 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
26 --disable-libtool-lock avoid locking (might break parallel builds)"
28 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
30 --with-readline[=DIR] Look for readline include/libs in DIR
31 --without-readline Don't include readline support"
33 --with-smbwrapper Include SMB wrapper support
34 --without-smbwrapper Don't include SMB wrapper support (default)"
36 --with-afs Include AFS support
37 --without-afs Don't include AFS support (default)"
39 --with-dfs Include DFS support
40 --without-dfs Don't include DFS support (default)"
42 --with-krb4=base-dir Include Kerberos IV support
43 --without-krb4 Don't include Kerberos IV support (default)"
45 --with-krb5=base-dir Include Kerberos 5 support
46 --without-krb5 Don't include Kerberos 5 support (default)"
48 --with-automount Include AUTOMOUNT support
49 --without-automount Don't include AUTOMOUNT support (default)"
51 --with-smbmount Include SMBMOUNT (Linux only) support
52 --without-smbmount Don't include SMBMOUNT support (default)"
54 --with-pam Include PAM password database support
55 --without-pam Don't include PAM password database support (default)"
57 --with-pam_smbpass Include the smbpass PAM module
58 --without-pam_smbpass Don't include the smbpass PAM module (default)"
60 --with-tdbsam Include experimental TDB password database
61 --without-tdbsam Don't include experimental TDB password database (default)"
63 --with-ldap Include LDAP support
64 --without-ldap Don't include LDAP support (default)"
66 --with-nisplus Include NISPLUS password database support
67 --without-nisplus Don't include NISPLUS password database support (default)"
69 --with-nisplus-home Include NISPLUS_HOME support
70 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
72 --with-ssl Include SSL support
73 --without-ssl Don't include SSL support (default)
74 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
76 --with-syslog Include experimental SYSLOG support
77 --without-syslog Don't include SYSLOG support (default)"
79 --with-profile Include profile support
80 --without-profile Don't include profile support (default)"
82 --with-netatalk Include experimental Netatalk support
83 --without-netatalk Don't include experimental Netatalk support (default)"
85 --with-quotas Include experimental disk-quota support
86 --without-quotas Don't include experimental disk-quota support (default)"
88 --with-utmp Include experimental utmp accounting
89 --without-utmp Don't include experimental utmp accounting (default)"
91 --with-msdfs Include MS Dfs support
92 --without-msdfs Don't include MS Dfs support (default)"
94 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
96 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
98 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
100 --with-spinlocks use spin locks instead of fcntl locks "
102 --with-acl-support Include ACL support
103 --without-acl-support Don't include ACL support (default)"
105 --with-winbind Build winbind library (default, if supported by OS)
106 --without-winbind Don't build winbind library"
108 # Initialize some variables set by options.
109 # The variables have the same names as the options, with
110 # dashes changed to underlines.
112 cache_file=./config.cache
121 program_transform_name=s,x,x,
129 bindir='${exec_prefix}/bin'
130 sbindir='${exec_prefix}/sbin'
131 libexecdir='${exec_prefix}/libexec'
132 datadir='${prefix}/share'
133 sysconfdir='${prefix}/etc'
134 sharedstatedir='${prefix}/com'
135 localstatedir='${prefix}/var'
136 libdir='${exec_prefix}/lib'
137 includedir='${prefix}/include'
138 oldincludedir='/usr/include'
139 infodir='${prefix}/info'
140 mandir='${prefix}/man'
142 # Initialize some other variables.
145 SHELL=${CONFIG_SHELL-/bin/sh}
146 # Maximum number of lines to put in a shell here document.
153 # If the previous option needs an argument, assign it.
154 if test -n "$ac_prev"; then
155 eval "$ac_prev=\$ac_option"
161 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
165 # Accept the important Cygnus configure options, so we can diagnose typos.
169 -bindir | --bindir | --bindi | --bind | --bin | --bi)
171 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
172 bindir="$ac_optarg" ;;
174 -build | --build | --buil | --bui | --bu)
176 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
177 build="$ac_optarg" ;;
179 -cache-file | --cache-file | --cache-fil | --cache-fi \
180 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
181 ac_prev=cache_file ;;
182 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
183 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
184 cache_file="$ac_optarg" ;;
186 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
188 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
190 datadir="$ac_optarg" ;;
192 -disable-* | --disable-*)
193 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
194 # Reject names that are not valid shell variable names.
195 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
196 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
198 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
199 eval "enable_${ac_feature}=no" ;;
201 -enable-* | --enable-*)
202 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
203 # Reject names that are not valid shell variable names.
204 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
205 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
207 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
212 eval "enable_${ac_feature}='$ac_optarg'" ;;
214 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
215 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
216 | --exec | --exe | --ex)
217 ac_prev=exec_prefix ;;
218 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
219 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
220 | --exec=* | --exe=* | --ex=*)
221 exec_prefix="$ac_optarg" ;;
223 -gas | --gas | --ga | --g)
224 # Obsolete; use --with-gas.
227 -help | --help | --hel | --he)
228 # Omit some internal or obsolete options to make the list less imposing.
229 # This message is too long to be a string in the A/UX 3.1 sh.
231 Usage: configure [options] [host]
232 Options: [defaults in brackets after descriptions]
234 --cache-file=FILE cache test results in FILE
235 --help print this message
236 --no-create do not create output files
237 --quiet, --silent do not print \`checking...' messages
238 --version print the version of autoconf that created configure
239 Directory and file names:
240 --prefix=PREFIX install architecture-independent files in PREFIX
242 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
244 --bindir=DIR user executables in DIR [EPREFIX/bin]
245 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
246 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
247 --datadir=DIR read-only architecture-independent data in DIR
249 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
250 --sharedstatedir=DIR modifiable architecture-independent data in DIR
252 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
253 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
254 --includedir=DIR C header files in DIR [PREFIX/include]
255 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
256 --infodir=DIR info documentation in DIR [PREFIX/info]
257 --mandir=DIR man documentation in DIR [PREFIX/man]
258 --srcdir=DIR find the sources in DIR [configure dir or ..]
259 --program-prefix=PREFIX prepend PREFIX to installed program names
260 --program-suffix=SUFFIX append SUFFIX to installed program names
261 --program-transform-name=PROGRAM
262 run sed PROGRAM on installed program names
266 --build=BUILD configure for building on BUILD [BUILD=HOST]
267 --host=HOST configure for HOST [guessed]
268 --target=TARGET configure for TARGET [TARGET=HOST]
269 Features and packages:
270 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
271 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
272 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
273 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
274 --x-includes=DIR X include files are in DIR
275 --x-libraries=DIR X library files are in DIR
277 if test -n "$ac_help"; then
278 echo "--enable and --with options recognized:$ac_help"
282 -host | --host | --hos | --ho)
284 -host=* | --host=* | --hos=* | --ho=*)
287 -includedir | --includedir | --includedi | --included | --include \
288 | --includ | --inclu | --incl | --inc)
289 ac_prev=includedir ;;
290 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
291 | --includ=* | --inclu=* | --incl=* | --inc=*)
292 includedir="$ac_optarg" ;;
294 -infodir | --infodir | --infodi | --infod | --info | --inf)
296 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
297 infodir="$ac_optarg" ;;
299 -libdir | --libdir | --libdi | --libd)
301 -libdir=* | --libdir=* | --libdi=* | --libd=*)
302 libdir="$ac_optarg" ;;
304 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
305 | --libexe | --libex | --libe)
306 ac_prev=libexecdir ;;
307 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
308 | --libexe=* | --libex=* | --libe=*)
309 libexecdir="$ac_optarg" ;;
311 -localstatedir | --localstatedir | --localstatedi | --localstated \
312 | --localstate | --localstat | --localsta | --localst \
313 | --locals | --local | --loca | --loc | --lo)
314 ac_prev=localstatedir ;;
315 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
316 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
317 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
318 localstatedir="$ac_optarg" ;;
320 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
322 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
323 mandir="$ac_optarg" ;;
326 # Obsolete; use --without-fp.
329 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
333 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
334 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
337 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
338 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
339 | --oldin | --oldi | --old | --ol | --o)
340 ac_prev=oldincludedir ;;
341 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
342 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
343 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
344 oldincludedir="$ac_optarg" ;;
346 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
348 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
349 prefix="$ac_optarg" ;;
351 -program-prefix | --program-prefix | --program-prefi | --program-pref \
352 | --program-pre | --program-pr | --program-p)
353 ac_prev=program_prefix ;;
354 -program-prefix=* | --program-prefix=* | --program-prefi=* \
355 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
356 program_prefix="$ac_optarg" ;;
358 -program-suffix | --program-suffix | --program-suffi | --program-suff \
359 | --program-suf | --program-su | --program-s)
360 ac_prev=program_suffix ;;
361 -program-suffix=* | --program-suffix=* | --program-suffi=* \
362 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
363 program_suffix="$ac_optarg" ;;
365 -program-transform-name | --program-transform-name \
366 | --program-transform-nam | --program-transform-na \
367 | --program-transform-n | --program-transform- \
368 | --program-transform | --program-transfor \
369 | --program-transfo | --program-transf \
370 | --program-trans | --program-tran \
371 | --progr-tra | --program-tr | --program-t)
372 ac_prev=program_transform_name ;;
373 -program-transform-name=* | --program-transform-name=* \
374 | --program-transform-nam=* | --program-transform-na=* \
375 | --program-transform-n=* | --program-transform-=* \
376 | --program-transform=* | --program-transfor=* \
377 | --program-transfo=* | --program-transf=* \
378 | --program-trans=* | --program-tran=* \
379 | --progr-tra=* | --program-tr=* | --program-t=*)
380 program_transform_name="$ac_optarg" ;;
382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
383 | -silent | --silent | --silen | --sile | --sil)
386 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
388 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
390 sbindir="$ac_optarg" ;;
392 -sharedstatedir | --sharedstatedir | --sharedstatedi \
393 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
394 | --sharedst | --shareds | --shared | --share | --shar \
396 ac_prev=sharedstatedir ;;
397 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
398 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
399 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
401 sharedstatedir="$ac_optarg" ;;
403 -site | --site | --sit)
405 -site=* | --site=* | --sit=*)
408 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
410 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
411 srcdir="$ac_optarg" ;;
413 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
414 | --syscon | --sysco | --sysc | --sys | --sy)
415 ac_prev=sysconfdir ;;
416 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
417 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
418 sysconfdir="$ac_optarg" ;;
420 -target | --target | --targe | --targ | --tar | --ta | --t)
422 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
423 target="$ac_optarg" ;;
425 -v | -verbose | --verbose | --verbos | --verbo | --verb)
428 -version | --version | --versio | --versi | --vers)
429 echo "configure generated by autoconf version 2.13"
433 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
434 # Reject names that are not valid shell variable names.
435 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
436 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
438 ac_package=`echo $ac_package| sed 's/-/_/g'`
443 eval "with_${ac_package}='$ac_optarg'" ;;
445 -without-* | --without-*)
446 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
447 # Reject names that are not valid shell variable names.
448 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
449 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
451 ac_package=`echo $ac_package| sed 's/-/_/g'`
452 eval "with_${ac_package}=no" ;;
455 # Obsolete; use --with-x.
458 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
459 | --x-incl | --x-inc | --x-in | --x-i)
460 ac_prev=x_includes ;;
461 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
462 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
463 x_includes="$ac_optarg" ;;
465 -x-libraries | --x-libraries | --x-librarie | --x-librari \
466 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
467 ac_prev=x_libraries ;;
468 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
469 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
470 x_libraries="$ac_optarg" ;;
472 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
476 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
477 echo "configure: warning: $ac_option: invalid host type" 1>&2
479 if test "x$nonopt" != xNONE; then
480 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
488 if test -n "$ac_prev"; then
489 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
492 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
494 # File descriptor usage:
497 # 2 errors and warnings
498 # 3 some systems may open it to /dev/tty
499 # 4 used on the Kubota Titan
500 # 6 checking for... messages and results
501 # 5 compiler messages saved in config.log
502 if test "$silent" = yes; then
510 This file contains any messages produced by compilers while
511 running configure, to aid debugging if configure makes a mistake.
514 # Strip out --no-create and --no-recursion so they do not pile up.
515 # Also quote any args containing shell metacharacters.
520 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
521 | --no-cr | --no-c) ;;
522 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
523 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
524 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
525 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
526 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
531 # Only set these to C if already set. These must not be set unconditionally
532 # because not all systems understand e.g. LANG=C (notably SCO).
533 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
534 # Non-C LC_CTYPE values break the ctype check.
535 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
536 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
537 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
538 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
540 # confdefs.h avoids OS command line length limits that DEFS can exceed.
541 rm -rf conftest* confdefs.h
542 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
545 # A filename unique to this package, relative to the directory that
546 # configure is in, which we can look for to find out if srcdir is correct.
547 ac_unique_file=include/includes.h
549 # Find the source files, if location was not specified.
550 if test -z "$srcdir"; then
551 ac_srcdir_defaulted=yes
552 # Try the directory containing this script, then its parent.
554 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
555 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
557 if test ! -r $srcdir/$ac_unique_file; then
561 ac_srcdir_defaulted=no
563 if test ! -r $srcdir/$ac_unique_file; then
564 if test "$ac_srcdir_defaulted" = yes; then
565 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
567 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
570 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
572 # Prefer explicitly selected file to automatically selected ones.
573 if test -z "$CONFIG_SITE"; then
574 if test "x$prefix" != xNONE; then
575 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
577 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
580 for ac_site_file in $CONFIG_SITE; do
581 if test -r "$ac_site_file"; then
582 echo "loading site script $ac_site_file"
587 if test -r "$cache_file"; then
588 echo "loading cache $cache_file"
591 echo "creating cache $cache_file"
596 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
597 ac_cpp='$CPP $CPPFLAGS'
598 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
599 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
600 cross_compiling=$ac_cv_prog_cc_cross
604 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
605 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
606 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
613 ac_n= ac_c='\c' ac_t=
618 # we want to be compatibe with older versions of Samba
632 # compile with optimisation and without debugging by default
633 CFLAGS="-O ${CFLAGS}"
635 # Check whether --enable-debug or --disable-debug was given.
636 if test "${enable_debug+set}" = set; then
637 enableval="$enable_debug"
638 if eval "test x$enable_debug = xyes"; then
639 CFLAGS="${CFLAGS} -g"
645 # Extract the first word of "gcc", so it can be a program name with args.
646 set dummy gcc; ac_word=$2
647 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
648 echo "configure:649: checking for $ac_word" >&5
649 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
650 echo $ac_n "(cached) $ac_c" 1>&6
652 if test -n "$CC"; then
653 ac_cv_prog_CC="$CC" # Let the user override the test.
655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
657 for ac_dir in $ac_dummy; do
658 test -z "$ac_dir" && ac_dir=.
659 if test -f $ac_dir/$ac_word; then
668 if test -n "$CC"; then
669 echo "$ac_t""$CC" 1>&6
671 echo "$ac_t""no" 1>&6
674 if test -z "$CC"; then
675 # Extract the first word of "cc", so it can be a program name with args.
676 set dummy cc; ac_word=$2
677 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
678 echo "configure:679: checking for $ac_word" >&5
679 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
680 echo $ac_n "(cached) $ac_c" 1>&6
682 if test -n "$CC"; then
683 ac_cv_prog_CC="$CC" # Let the user override the test.
685 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
688 for ac_dir in $ac_dummy; do
689 test -z "$ac_dir" && ac_dir=.
690 if test -f $ac_dir/$ac_word; then
691 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
700 if test $ac_prog_rejected = yes; then
701 # We found a bogon in the path, so make sure we never use it.
702 set dummy $ac_cv_prog_CC
704 if test $# -gt 0; then
705 # We chose a different compiler from the bogus one.
706 # However, it has the same basename, so the bogon will be chosen
707 # first if we set CC to just the basename; use the full file name.
709 set dummy "$ac_dir/$ac_word" "$@"
717 if test -n "$CC"; then
718 echo "$ac_t""$CC" 1>&6
720 echo "$ac_t""no" 1>&6
723 if test -z "$CC"; then
726 # Extract the first word of "cl", so it can be a program name with args.
727 set dummy cl; ac_word=$2
728 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
729 echo "configure:730: checking for $ac_word" >&5
730 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
731 echo $ac_n "(cached) $ac_c" 1>&6
733 if test -n "$CC"; then
734 ac_cv_prog_CC="$CC" # Let the user override the test.
736 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
738 for ac_dir in $ac_dummy; do
739 test -z "$ac_dir" && ac_dir=.
740 if test -f $ac_dir/$ac_word; then
749 if test -n "$CC"; then
750 echo "$ac_t""$CC" 1>&6
752 echo "$ac_t""no" 1>&6
757 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
760 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
761 echo "configure:762: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
764 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
765 ac_cpp='$CPP $CPPFLAGS'
766 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
767 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
768 cross_compiling=$ac_cv_prog_cc_cross
770 cat > conftest.$ac_ext << EOF
772 #line 773 "configure"
773 #include "confdefs.h"
777 if { (eval echo configure:778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
778 ac_cv_prog_cc_works=yes
779 # If we can't run a trivial program, we are probably using a cross compiler.
780 if (./conftest; exit) 2>/dev/null; then
781 ac_cv_prog_cc_cross=no
783 ac_cv_prog_cc_cross=yes
786 echo "configure: failed program was:" >&5
787 cat conftest.$ac_ext >&5
788 ac_cv_prog_cc_works=no
792 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
793 ac_cpp='$CPP $CPPFLAGS'
794 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
795 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
796 cross_compiling=$ac_cv_prog_cc_cross
798 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
799 if test $ac_cv_prog_cc_works = no; then
800 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
802 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
803 echo "configure:804: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
804 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
805 cross_compiling=$ac_cv_prog_cc_cross
807 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
808 echo "configure:809: checking whether we are using GNU C" >&5
809 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
810 echo $ac_n "(cached) $ac_c" 1>&6
812 cat > conftest.c <<EOF
817 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
824 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
826 if test $ac_cv_prog_gcc = yes; then
832 ac_test_CFLAGS="${CFLAGS+set}"
833 ac_save_CFLAGS="$CFLAGS"
835 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
836 echo "configure:837: checking whether ${CC-cc} accepts -g" >&5
837 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
838 echo $ac_n "(cached) $ac_c" 1>&6
840 echo 'void f(){}' > conftest.c
841 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
850 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
851 if test "$ac_test_CFLAGS" = set; then
852 CFLAGS="$ac_save_CFLAGS"
853 elif test $ac_cv_prog_cc_g = yes; then
854 if test "$GCC" = yes; then
860 if test "$GCC" = yes; then
868 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
869 if test -f $ac_dir/install-sh; then
871 ac_install_sh="$ac_aux_dir/install-sh -c"
873 elif test -f $ac_dir/install.sh; then
875 ac_install_sh="$ac_aux_dir/install.sh -c"
879 if test -z "$ac_aux_dir"; then
880 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
882 ac_config_guess=$ac_aux_dir/config.guess
883 ac_config_sub=$ac_aux_dir/config.sub
884 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
886 # Find a good install program. We prefer a C program (faster),
887 # so one script is as good as another. But avoid the broken or
888 # incompatible versions:
889 # SysV /etc/install, /usr/sbin/install
890 # SunOS /usr/etc/install
893 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
894 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
895 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
896 # ./install, which can be erroneously created by make from ./install.sh.
897 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
898 echo "configure:899: checking for a BSD compatible install" >&5
899 if test -z "$INSTALL"; then
900 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
901 echo $ac_n "(cached) $ac_c" 1>&6
903 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
904 for ac_dir in $PATH; do
905 # Account for people who put trailing slashes in PATH elements.
907 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
909 # OSF1 and SCO ODT 3.0 have their own names for install.
910 # Don't use installbsd from OSF since it installs stuff as root
912 for ac_prog in ginstall scoinst install; do
913 if test -f $ac_dir/$ac_prog; then
914 if test $ac_prog = install &&
915 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
916 # AIX install. It has an incompatible calling convention.
919 ac_cv_path_install="$ac_dir/$ac_prog -c"
930 if test "${ac_cv_path_install+set}" = set; then
931 INSTALL="$ac_cv_path_install"
933 # As a last resort, use the slow shell script. We don't cache a
934 # path for INSTALL within a source directory, because that will
935 # break other packages using the cache if that directory is
936 # removed, or if the path is relative.
937 INSTALL="$ac_install_sh"
940 echo "$ac_t""$INSTALL" 1>&6
942 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
943 # It thinks the first close brace ends the variable substitution.
944 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
946 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
948 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
950 for ac_prog in gawk mawk nawk awk
952 # Extract the first word of "$ac_prog", so it can be a program name with args.
953 set dummy $ac_prog; ac_word=$2
954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
955 echo "configure:956: checking for $ac_word" >&5
956 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
957 echo $ac_n "(cached) $ac_c" 1>&6
959 if test -n "$AWK"; then
960 ac_cv_prog_AWK="$AWK" # Let the user override the test.
962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
964 for ac_dir in $ac_dummy; do
965 test -z "$ac_dir" && ac_dir=.
966 if test -f $ac_dir/$ac_word; then
967 ac_cv_prog_AWK="$ac_prog"
974 AWK="$ac_cv_prog_AWK"
975 if test -n "$AWK"; then
976 echo "$ac_t""$AWK" 1>&6
978 echo "$ac_t""no" 1>&6
981 test -n "$AWK" && break
984 # Check whether --enable-shared or --disable-shared was given.
985 if test "${enable_shared+set}" = set; then
986 enableval="$enable_shared"
989 yes) enable_shared=yes ;;
990 no) enable_shared=no ;;
993 # Look at the argument we got. We use all the common list separators.
994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
995 for pkg in $enableval; do
996 if test "X$pkg" = "X$p"; then
1007 # Check whether --enable-static or --disable-static was given.
1008 if test "${enable_static+set}" = set; then
1009 enableval="$enable_static"
1010 p=${PACKAGE-default}
1011 case "$enableval" in
1012 yes) enable_static=yes ;;
1013 no) enable_static=no ;;
1016 # Look at the argument we got. We use all the common list separators.
1017 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1018 for pkg in $enableval; do
1019 if test "X$pkg" = "X$p"; then
1030 # Check whether --enable-fast-install or --disable-fast-install was given.
1031 if test "${enable_fast_install+set}" = set; then
1032 enableval="$enable_fast_install"
1033 p=${PACKAGE-default}
1034 case "$enableval" in
1035 yes) enable_fast_install=yes ;;
1036 no) enable_fast_install=no ;;
1038 enable_fast_install=no
1039 # Look at the argument we got. We use all the common list separators.
1040 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1041 for pkg in $enableval; do
1042 if test "X$pkg" = "X$p"; then
1043 enable_fast_install=yes
1050 enable_fast_install=yes
1054 # Make sure we can run config.sub.
1055 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1056 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1059 echo $ac_n "checking host system type""... $ac_c" 1>&6
1060 echo "configure:1061: checking host system type" >&5
1063 case "$host_alias" in
1067 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1068 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1070 *) host_alias=$nonopt ;;
1074 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1075 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1076 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1077 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1078 echo "$ac_t""$host" 1>&6
1080 echo $ac_n "checking build system type""... $ac_c" 1>&6
1081 echo "configure:1082: checking build system type" >&5
1084 case "$build_alias" in
1087 NONE) build_alias=$host_alias ;;
1088 *) build_alias=$nonopt ;;
1092 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1093 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1094 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1095 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1096 echo "$ac_t""$build" 1>&6
1098 # Extract the first word of "ranlib", so it can be a program name with args.
1099 set dummy ranlib; ac_word=$2
1100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1101 echo "configure:1102: checking for $ac_word" >&5
1102 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1103 echo $ac_n "(cached) $ac_c" 1>&6
1105 if test -n "$RANLIB"; then
1106 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1110 for ac_dir in $ac_dummy; do
1111 test -z "$ac_dir" && ac_dir=.
1112 if test -f $ac_dir/$ac_word; then
1113 ac_cv_prog_RANLIB="ranlib"
1118 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1121 RANLIB="$ac_cv_prog_RANLIB"
1122 if test -n "$RANLIB"; then
1123 echo "$ac_t""$RANLIB" 1>&6
1125 echo "$ac_t""no" 1>&6
1128 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1129 if test "${with_gnu_ld+set}" = set; then
1130 withval="$with_gnu_ld"
1131 test "$withval" = no || with_gnu_ld=yes
1137 if test "$ac_cv_prog_gcc" = yes; then
1138 # Check if gcc -print-prog-name=ld gives a path.
1139 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1140 echo "configure:1141: checking for ld used by GCC" >&5
1141 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1143 # Accept absolute paths.
1144 [\\/]* | [A-Za-z]:[\\/]*)
1145 re_direlt='/[^/][^/]*/\.\./'
1146 # Canonicalize the path of ld
1147 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1148 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1149 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1151 test -z "$LD" && LD="$ac_prog"
1154 # If it fails, then pretend we aren't using GCC.
1158 # If it is relative, then search for the first ld in PATH.
1162 elif test "$with_gnu_ld" = yes; then
1163 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1164 echo "configure:1165: checking for GNU ld" >&5
1166 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1167 echo "configure:1168: checking for non-GNU ld" >&5
1169 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1172 if test -z "$LD"; then
1173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1174 for ac_dir in $PATH; do
1175 test -z "$ac_dir" && ac_dir=.
1176 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1177 ac_cv_path_LD="$ac_dir/$ac_prog"
1178 # Check to see if the program is GNU ld. I'd rather use --version,
1179 # but apparently some GNU ld's only accept -v.
1180 # Break only if it was the GNU/non-GNU ld that we prefer.
1181 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1182 test "$with_gnu_ld" != no && break
1184 test "$with_gnu_ld" != yes && break
1190 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1195 if test -n "$LD"; then
1196 echo "$ac_t""$LD" 1>&6
1198 echo "$ac_t""no" 1>&6
1200 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1201 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1202 echo "configure:1203: checking if the linker ($LD) is GNU ld" >&5
1203 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1204 echo $ac_n "(cached) $ac_c" 1>&6
1206 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1207 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1208 ac_cv_prog_gnu_ld=yes
1210 ac_cv_prog_gnu_ld=no
1214 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1217 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1218 echo "configure:1219: checking for BSD-compatible nm" >&5
1219 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1220 echo $ac_n "(cached) $ac_c" 1>&6
1222 if test -n "$NM"; then
1223 # Let the user override the test.
1226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1227 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1228 test -z "$ac_dir" && ac_dir=.
1229 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1230 # Check to see if the nm accepts a BSD-compat flag.
1231 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1232 # nm: unknown option "B" ignored
1233 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1234 ac_cv_path_NM="$ac_dir/nm -B"
1236 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1237 ac_cv_path_NM="$ac_dir/nm -p"
1240 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1241 continue # so that we can try to find one that supports BSD flags
1246 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1251 echo "$ac_t""$NM" 1>&6
1253 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1254 echo "configure:1255: checking whether ln -s works" >&5
1255 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1256 echo $ac_n "(cached) $ac_c" 1>&6
1259 if ln -s X conftestdata 2>/dev/null
1262 ac_cv_prog_LN_S="ln -s"
1267 LN_S="$ac_cv_prog_LN_S"
1268 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1269 echo "$ac_t""yes" 1>&6
1271 echo "$ac_t""no" 1>&6
1276 NONE) lt_target="$host" ;;
1277 *) lt_target="$target" ;;
1280 # Check for any special flags to pass to ltconfig.
1281 libtool_flags="--cache-file=$cache_file"
1282 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1283 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1284 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1285 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1286 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1289 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1290 if test "${enable_libtool_lock+set}" = set; then
1291 enableval="$enable_libtool_lock"
1295 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1296 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1298 # Some flags need to be propagated to the compiler or linker for good
1300 case "$lt_target" in
1302 # Find out which ABI we are using.
1303 echo '#line 1304 "configure"' > conftest.$ac_ext
1304 if { (eval echo configure:1305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1305 case "`/usr/bin/file conftest.o`" in
1321 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1322 SAVE_CFLAGS="$CFLAGS"
1323 CFLAGS="$CFLAGS -belf"
1324 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1325 echo "configure:1326: checking whether the C compiler needs -belf" >&5
1326 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1327 echo $ac_n "(cached) $ac_c" 1>&6
1329 cat > conftest.$ac_ext <<EOF
1330 #line 1331 "configure"
1331 #include "confdefs.h"
1337 if { (eval echo configure:1338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1339 lt_cv_cc_needs_belf=yes
1341 echo "configure: failed program was:" >&5
1342 cat conftest.$ac_ext >&5
1344 lt_cv_cc_needs_belf=no
1349 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1350 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1351 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1352 CFLAGS="$SAVE_CFLAGS"
1360 # Save cache, so that ltconfig can load it
1361 cat > confcache <<\EOF
1362 # This file is a shell script that caches the results of configure
1363 # tests run on this system so they can be shared between configure
1364 # scripts and configure runs. It is not useful on other systems.
1365 # If it contains results you don't want to keep, you may remove or edit it.
1367 # By default, configure uses ./config.cache as the cache file,
1368 # creating it if it does not exist already. You can give configure
1369 # the --cache-file=FILE option to use a different cache file; that is
1370 # what configure does when it calls configure scripts in
1371 # subdirectories, so they share the cache.
1372 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1373 # config.status only pays attention to the cache file if you give it the
1374 # --recheck option to rerun configure.
1377 # The following way of writing the cache mishandles newlines in values,
1378 # but we know of no workaround that is simple, portable, and efficient.
1379 # So, don't put newlines in cache variables' values.
1380 # Ultrix sh set writes to stderr and can't be redirected directly,
1381 # and sets the high bit in the cache file unless we assign to the vars.
1383 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1385 # `set' does not quote correctly, so add quotes (double-quote substitution
1386 # turns \\\\ into \\, and sed turns \\ into \).
1388 -e "s/'/'\\\\''/g" \
1389 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1392 # `set' quotes correctly as required by POSIX, so do not add quotes.
1393 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1396 if cmp -s $cache_file confcache; then
1399 if test -w $cache_file; then
1400 echo "updating cache $cache_file"
1401 cat confcache > $cache_file
1403 echo "not updating unwritable cache $cache_file"
1409 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1410 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1411 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1412 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1413 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1414 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1415 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1416 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1418 # Reload cache, that may have been modified by ltconfig
1419 if test -r "$cache_file"; then
1420 echo "loading cache $cache_file"
1423 echo "creating cache $cache_file"
1428 # This can be used to rebuild libtool when needed
1429 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1431 # Always use our own libtool.
1432 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1434 # Redirect the config.log output again, so that the ltconfig log is not
1435 # clobbered by the next message.
1436 exec 5>>./config.log
1440 if test "x$CC" != xcc; then
1441 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1442 echo "configure:1443: checking whether $CC and cc understand -c and -o together" >&5
1444 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1445 echo "configure:1446: checking whether cc understands -c and -o together" >&5
1447 set dummy $CC; ac_cc="`echo $2 |
1448 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1449 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1450 echo $ac_n "(cached) $ac_c" 1>&6
1452 echo 'foo(){}' > conftest.c
1453 # Make sure it works both with $CC and with simple cc.
1454 # We do the test twice because some compilers refuse to overwrite an
1455 # existing .o file with -o, though they will create one.
1456 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1457 if { (eval echo configure:1458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1458 test -f conftest.o && { (eval echo configure:1459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1460 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1461 if test "x$CC" != xcc; then
1462 # Test first that cc exists at all.
1463 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1464 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1465 if { (eval echo configure:1466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1466 test -f conftest.o && { (eval echo configure:1467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1471 # cc exists but doesn't like -o.
1472 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1477 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1482 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1483 echo "$ac_t""yes" 1>&6
1485 echo "$ac_t""no" 1>&6
1486 cat >> confdefs.h <<\EOF
1487 #define NO_MINUS_C_MINUS_O 1
1492 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1499 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1500 echo "configure:1501: checking that the C compiler understands volatile" >&5
1501 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1502 echo $ac_n "(cached) $ac_c" 1>&6
1505 cat > conftest.$ac_ext <<EOF
1506 #line 1507 "configure"
1507 #include "confdefs.h"
1508 #include <sys/types.h>
1513 if { (eval echo configure:1514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1515 samba_cv_volatile=yes
1517 echo "configure: failed program was:" >&5
1518 cat conftest.$ac_ext >&5
1520 samba_cv_volatile=no
1525 echo "$ac_t""$samba_cv_volatile" 1>&6
1526 if test x"$samba_cv_volatile" = x"yes"; then
1527 cat >> confdefs.h <<\EOF
1528 #define HAVE_VOLATILE 1
1534 #################################################
1535 # set codepage directory location
1536 # Check whether --with-codepagedir or --without-codepagedir was given.
1537 if test "${with_codepagedir+set}" = set; then
1538 withval="$with_codepagedir"
1542 # Just in case anybody does it
1544 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
1547 codepagedir="$withval"
1555 # Do some error checking and defaulting for the host and target type.
1557 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1560 # 1. You are not allowed to specify --host, --target, and nonopt at the
1562 # 2. Host defaults to nonopt.
1563 # 3. If nonopt is not specified, then host defaults to the current host,
1564 # as determined by config.guess.
1565 # 4. Target and build default to nonopt.
1566 # 5. If nonopt is not specified, then target and build default to host.
1568 # The aliases save the names the user supplied, while $host etc.
1569 # will get canonicalized.
1570 case $host---$target---$nonopt in
1571 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1572 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1576 # Make sure we can run config.sub.
1577 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1578 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1581 echo $ac_n "checking host system type""... $ac_c" 1>&6
1582 echo "configure:1583: checking host system type" >&5
1585 case "$host_alias" in
1589 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1590 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1592 *) host_alias=$nonopt ;;
1596 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1597 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1598 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1599 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600 echo "$ac_t""$host" 1>&6
1602 echo $ac_n "checking target system type""... $ac_c" 1>&6
1603 echo "configure:1604: checking target system type" >&5
1605 target_alias=$target
1606 case "$target_alias" in
1609 NONE) target_alias=$host_alias ;;
1610 *) target_alias=$nonopt ;;
1614 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1615 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1616 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1617 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1618 echo "$ac_t""$target" 1>&6
1620 echo $ac_n "checking build system type""... $ac_c" 1>&6
1621 echo "configure:1622: checking build system type" >&5
1624 case "$build_alias" in
1627 NONE) build_alias=$host_alias ;;
1628 *) build_alias=$nonopt ;;
1632 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1633 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1634 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1635 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1636 echo "$ac_t""$build" 1>&6
1638 test "$host_alias" != "$target_alias" &&
1639 test "$program_prefix$program_suffix$program_transform_name" = \
1641 program_prefix=${target_alias}-
1645 *irix6*) cat >> confdefs.h <<\EOF
1646 #include <standards.h>
1654 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1655 echo "configure:1656: checking config.cache system type" >&5
1656 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1657 test x"$ac_cv_host_system_type" != x"$host"; } ||
1658 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1659 test x"$ac_cv_build_system_type" != x"$build"; } ||
1660 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1661 test x"$ac_cv_target_system_type" != x"$target"; }; then
1662 echo "$ac_t""different" 1>&6
1663 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1665 echo "$ac_t""same" 1>&6
1667 ac_cv_host_system_type="$host"
1668 ac_cv_build_system_type="$build"
1669 ac_cv_target_system_type="$target"
1673 # Config CPPFLAG settings for strange OS's that must be set
1674 # before other tests.
1677 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1679 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1680 echo "configure:1681: checking whether ${CC-cc} accepts -Ae" >&5
1681 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1684 echo 'void f(){}' > conftest.c
1685 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1686 ac_cv_prog_cc_Ae=yes
1694 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1695 if test $ac_cv_prog_cc_Ae = yes; then
1696 CPPFLAGS="$CPPFLAGS -Ae"
1699 # Defines needed for HPUX support.
1700 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1701 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1705 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1706 cat >> confdefs.h <<\EOF
1707 #define USE_BOTH_CRYPT_CALLS 1
1712 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1713 cat >> confdefs.h <<\EOF
1714 #define USE_BOTH_CRYPT_CALLS 1
1721 # AIX4.x doesn't even admit to having large
1722 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1725 echo "$ac_t""enabling large file support" 1>&6
1726 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1729 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1730 # to the existance of large files..
1731 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1732 # recommendations on large file support, however it makes the
1733 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1734 # recommendation makes the compile fail on gcc2.7. JRA.
1739 echo "$ac_t""enabling large file support" 1>&6
1740 if test "$ac_cv_prog_gcc" = yes; then
1741 ${CC-cc} -v >conftest.c 2>&1
1742 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1744 case "$ac_cv_gcc_compiler_version_number" in
1745 *"gcc version 2.6"*|*"gcc version 2.7"*)
1746 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1749 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1753 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1759 # Tests needed for SINIX large file support.
1762 if test $host = mips-sni-sysv4 ; then
1763 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1764 echo "configure:1765: checking for LFS support" >&5
1765 old_CPPFLAGS="$CPPFLAGS"
1766 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1767 if test "$cross_compiling" = yes; then
1768 SINIX_LFS_SUPPORT=cross
1770 cat > conftest.$ac_ext <<EOF
1771 #line 1772 "configure"
1772 #include "confdefs.h"
1776 #if _LFS64_LARGEFILE == 1
1783 if { (eval echo configure:1784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1785 SINIX_LFS_SUPPORT=yes
1787 echo "configure: failed program was:" >&5
1788 cat conftest.$ac_ext >&5
1790 SINIX_LFS_SUPPORT=no
1795 CPPFLAGS="$old_CPPFLAGS"
1796 if test x$SINIX_LFS_SUPPORT = xyes ; then
1797 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1798 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1799 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1800 LIBS="`getconf LFS64_LIBS` $LIBS"
1802 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1806 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1809 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1810 echo "configure:1811: checking for LFS support" >&5
1811 old_CPPFLAGS="$CPPFLAGS"
1812 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1813 if test "$cross_compiling" = yes; then
1814 LINUX_LFS_SUPPORT=cross
1816 cat > conftest.$ac_ext <<EOF
1817 #line 1818 "configure"
1818 #include "confdefs.h"
1821 #include <sys/utsname.h>
1823 #if _LFS64_LARGEFILE == 1
1828 /* Ensure this is glibc 2.2 or higher */
1829 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1830 int libc_major = __GLIBC__;
1831 int libc_minor = __GLIBC_MINOR__;
1839 /* Ensure this is kernel 2.4 or higher */
1842 release = uts.release;
1843 major = atoi(strsep(&release, "."));
1844 minor = atoi(strsep(&release, "."));
1846 if (major > 2 || (major == 2 && minor > 3))
1855 if { (eval echo configure:1856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1857 LINUX_LFS_SUPPORT=yes
1859 echo "configure: failed program was:" >&5
1860 cat conftest.$ac_ext >&5
1862 LINUX_LFS_SUPPORT=no
1867 CPPFLAGS="$old_CPPFLAGS"
1868 if test x$LINUX_LFS_SUPPORT = xyes ; then
1869 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1871 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1875 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1876 echo "configure:1877: checking for LFS support" >&5
1877 old_CPPFLAGS="$CPPFLAGS"
1878 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1879 if test "$cross_compiling" = yes; then
1880 GLIBC_LFS_SUPPORT=cross
1882 cat > conftest.$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1888 #if _LFS64_LARGEFILE == 1
1895 if { (eval echo configure:1896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1897 GLIBC_LFS_SUPPORT=yes
1899 echo "configure: failed program was:" >&5
1900 cat conftest.$ac_ext >&5
1902 GLIBC_LFS_SUPPORT=no
1907 CPPFLAGS="$old_CPPFLAGS"
1908 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1909 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1911 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1916 echo $ac_n "checking for inline""... $ac_c" 1>&6
1917 echo "configure:1918: checking for inline" >&5
1918 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
1922 for ac_kw in inline __inline__ __inline; do
1923 cat > conftest.$ac_ext <<EOF
1924 #line 1925 "configure"
1925 #include "confdefs.h"
1931 if { (eval echo configure:1932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1933 ac_cv_c_inline=$ac_kw; break
1935 echo "configure: failed program was:" >&5
1936 cat conftest.$ac_ext >&5
1943 echo "$ac_t""$ac_cv_c_inline" 1>&6
1944 case "$ac_cv_c_inline" in
1946 no) cat >> confdefs.h <<\EOF
1950 *) cat >> confdefs.h <<EOF
1951 #define inline $ac_cv_c_inline
1956 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1957 echo "configure:1958: checking how to run the C preprocessor" >&5
1958 # On Suns, sometimes $CPP names a directory.
1959 if test -n "$CPP" && test -d "$CPP"; then
1962 if test -z "$CPP"; then
1963 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1966 # This must be in double quotes, not single quotes, because CPP may get
1967 # substituted into the Makefile and "${CC-cc}" will confuse make.
1969 # On the NeXT, cc -E runs the code through the compiler's parser,
1970 # not just through cpp.
1971 cat > conftest.$ac_ext <<EOF
1972 #line 1973 "configure"
1973 #include "confdefs.h"
1977 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1978 { (eval echo configure:1979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1979 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1980 if test -z "$ac_err"; then
1984 echo "configure: failed program was:" >&5
1985 cat conftest.$ac_ext >&5
1987 CPP="${CC-cc} -E -traditional-cpp"
1988 cat > conftest.$ac_ext <<EOF
1989 #line 1990 "configure"
1990 #include "confdefs.h"
1994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1995 { (eval echo configure:1996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1997 if test -z "$ac_err"; then
2001 echo "configure: failed program was:" >&5
2002 cat conftest.$ac_ext >&5
2004 CPP="${CC-cc} -nologo -E"
2005 cat > conftest.$ac_ext <<EOF
2006 #line 2007 "configure"
2007 #include "confdefs.h"
2011 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2012 { (eval echo configure:2013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2013 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2014 if test -z "$ac_err"; then
2018 echo "configure: failed program was:" >&5
2019 cat conftest.$ac_ext >&5
2028 ac_cv_prog_CPP="$CPP"
2030 CPP="$ac_cv_prog_CPP"
2032 ac_cv_prog_CPP="$CPP"
2034 echo "$ac_t""$CPP" 1>&6
2036 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2037 echo "configure:2038: checking for ANSI C header files" >&5
2038 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2041 cat > conftest.$ac_ext <<EOF
2042 #line 2043 "configure"
2043 #include "confdefs.h"
2049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2050 { (eval echo configure:2051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2052 if test -z "$ac_err"; then
2054 ac_cv_header_stdc=yes
2057 echo "configure: failed program was:" >&5
2058 cat conftest.$ac_ext >&5
2060 ac_cv_header_stdc=no
2064 if test $ac_cv_header_stdc = yes; then
2065 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2066 cat > conftest.$ac_ext <<EOF
2067 #line 2068 "configure"
2068 #include "confdefs.h"
2071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2072 egrep "memchr" >/dev/null 2>&1; then
2076 ac_cv_header_stdc=no
2082 if test $ac_cv_header_stdc = yes; then
2083 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2084 cat > conftest.$ac_ext <<EOF
2085 #line 2086 "configure"
2086 #include "confdefs.h"
2089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2090 egrep "free" >/dev/null 2>&1; then
2094 ac_cv_header_stdc=no
2100 if test $ac_cv_header_stdc = yes; then
2101 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2102 if test "$cross_compiling" = yes; then
2105 cat > conftest.$ac_ext <<EOF
2106 #line 2107 "configure"
2107 #include "confdefs.h"
2109 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2110 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2111 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2112 int main () { int i; for (i = 0; i < 256; i++)
2113 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2117 if { (eval echo configure:2118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2121 echo "configure: failed program was:" >&5
2122 cat conftest.$ac_ext >&5
2124 ac_cv_header_stdc=no
2132 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2133 if test $ac_cv_header_stdc = yes; then
2134 cat >> confdefs.h <<\EOF
2135 #define STDC_HEADERS 1
2141 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2143 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2144 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2145 echo "configure:2146: checking for $ac_hdr that defines DIR" >&5
2146 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2147 echo $ac_n "(cached) $ac_c" 1>&6
2149 cat > conftest.$ac_ext <<EOF
2150 #line 2151 "configure"
2151 #include "confdefs.h"
2152 #include <sys/types.h>
2158 if { (eval echo configure:2159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2160 eval "ac_cv_header_dirent_$ac_safe=yes"
2162 echo "configure: failed program was:" >&5
2163 cat conftest.$ac_ext >&5
2165 eval "ac_cv_header_dirent_$ac_safe=no"
2169 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2170 echo "$ac_t""yes" 1>&6
2171 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2172 cat >> confdefs.h <<EOF
2173 #define $ac_tr_hdr 1
2175 ac_header_dirent=$ac_hdr; break
2177 echo "$ac_t""no" 1>&6
2180 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2181 if test $ac_header_dirent = dirent.h; then
2182 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2183 echo "configure:2184: checking for opendir in -ldir" >&5
2184 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2186 echo $ac_n "(cached) $ac_c" 1>&6
2188 ac_save_LIBS="$LIBS"
2190 cat > conftest.$ac_ext <<EOF
2191 #line 2192 "configure"
2192 #include "confdefs.h"
2193 /* Override any gcc2 internal prototype to avoid an error. */
2194 /* We use char because int might match the return type of a gcc2
2195 builtin and then its argument prototype would still apply. */
2202 if { (eval echo configure:2203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2204 eval "ac_cv_lib_$ac_lib_var=yes"
2206 echo "configure: failed program was:" >&5
2207 cat conftest.$ac_ext >&5
2209 eval "ac_cv_lib_$ac_lib_var=no"
2212 LIBS="$ac_save_LIBS"
2215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2216 echo "$ac_t""yes" 1>&6
2219 echo "$ac_t""no" 1>&6
2223 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2224 echo "configure:2225: checking for opendir in -lx" >&5
2225 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2226 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2227 echo $ac_n "(cached) $ac_c" 1>&6
2229 ac_save_LIBS="$LIBS"
2231 cat > conftest.$ac_ext <<EOF
2232 #line 2233 "configure"
2233 #include "confdefs.h"
2234 /* Override any gcc2 internal prototype to avoid an error. */
2235 /* We use char because int might match the return type of a gcc2
2236 builtin and then its argument prototype would still apply. */
2243 if { (eval echo configure:2244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2245 eval "ac_cv_lib_$ac_lib_var=yes"
2247 echo "configure: failed program was:" >&5
2248 cat conftest.$ac_ext >&5
2250 eval "ac_cv_lib_$ac_lib_var=no"
2253 LIBS="$ac_save_LIBS"
2256 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2257 echo "$ac_t""yes" 1>&6
2260 echo "$ac_t""no" 1>&6
2265 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2266 echo "configure:2267: checking whether time.h and sys/time.h may both be included" >&5
2267 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2268 echo $ac_n "(cached) $ac_c" 1>&6
2270 cat > conftest.$ac_ext <<EOF
2271 #line 2272 "configure"
2272 #include "confdefs.h"
2273 #include <sys/types.h>
2274 #include <sys/time.h>
2280 if { (eval echo configure:2281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2282 ac_cv_header_time=yes
2284 echo "configure: failed program was:" >&5
2285 cat conftest.$ac_ext >&5
2287 ac_cv_header_time=no
2292 echo "$ac_t""$ac_cv_header_time" 1>&6
2293 if test $ac_cv_header_time = yes; then
2294 cat >> confdefs.h <<\EOF
2295 #define TIME_WITH_SYS_TIME 1
2300 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2301 echo "configure:2302: checking for sys/wait.h that is POSIX.1 compatible" >&5
2302 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2305 cat > conftest.$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2308 #include <sys/types.h>
2309 #include <sys/wait.h>
2311 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2314 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2319 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2322 if { (eval echo configure:2323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2324 ac_cv_header_sys_wait_h=yes
2326 echo "configure: failed program was:" >&5
2327 cat conftest.$ac_ext >&5
2329 ac_cv_header_sys_wait_h=no
2334 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2335 if test $ac_cv_header_sys_wait_h = yes; then
2336 cat >> confdefs.h <<\EOF
2337 #define HAVE_SYS_WAIT_H 1
2342 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2344 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2345 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2346 echo "configure:2347: checking for $ac_hdr" >&5
2347 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2350 cat > conftest.$ac_ext <<EOF
2351 #line 2352 "configure"
2352 #include "confdefs.h"
2355 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2356 { (eval echo configure:2357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2357 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2358 if test -z "$ac_err"; then
2360 eval "ac_cv_header_$ac_safe=yes"
2363 echo "configure: failed program was:" >&5
2364 cat conftest.$ac_ext >&5
2366 eval "ac_cv_header_$ac_safe=no"
2370 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2371 echo "$ac_t""yes" 1>&6
2372 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2373 cat >> confdefs.h <<EOF
2374 #define $ac_tr_hdr 1
2378 echo "$ac_t""no" 1>&6
2382 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2384 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2385 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2386 echo "configure:2387: checking for $ac_hdr" >&5
2387 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2388 echo $ac_n "(cached) $ac_c" 1>&6
2390 cat > conftest.$ac_ext <<EOF
2391 #line 2392 "configure"
2392 #include "confdefs.h"
2395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2396 { (eval echo configure:2397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2398 if test -z "$ac_err"; then
2400 eval "ac_cv_header_$ac_safe=yes"
2403 echo "configure: failed program was:" >&5
2404 cat conftest.$ac_ext >&5
2406 eval "ac_cv_header_$ac_safe=no"
2410 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2411 echo "$ac_t""yes" 1>&6
2412 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2413 cat >> confdefs.h <<EOF
2414 #define $ac_tr_hdr 1
2418 echo "$ac_t""no" 1>&6
2422 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2424 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2425 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2426 echo "configure:2427: checking for $ac_hdr" >&5
2427 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2430 cat > conftest.$ac_ext <<EOF
2431 #line 2432 "configure"
2432 #include "confdefs.h"
2435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2436 { (eval echo configure:2437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2437 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2438 if test -z "$ac_err"; then
2440 eval "ac_cv_header_$ac_safe=yes"
2443 echo "configure: failed program was:" >&5
2444 cat conftest.$ac_ext >&5
2446 eval "ac_cv_header_$ac_safe=no"
2450 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2451 echo "$ac_t""yes" 1>&6
2452 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2453 cat >> confdefs.h <<EOF
2454 #define $ac_tr_hdr 1
2458 echo "$ac_t""no" 1>&6
2462 for ac_hdr in sys/param.h ctype.h sys/un.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2464 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2465 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2466 echo "configure:2467: checking for $ac_hdr" >&5
2467 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2470 cat > conftest.$ac_ext <<EOF
2471 #line 2472 "configure"
2472 #include "confdefs.h"
2475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2476 { (eval echo configure:2477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2478 if test -z "$ac_err"; then
2480 eval "ac_cv_header_$ac_safe=yes"
2483 echo "configure: failed program was:" >&5
2484 cat conftest.$ac_ext >&5
2486 eval "ac_cv_header_$ac_safe=no"
2490 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2491 echo "$ac_t""yes" 1>&6
2492 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2493 cat >> confdefs.h <<EOF
2494 #define $ac_tr_hdr 1
2498 echo "$ac_t""no" 1>&6
2502 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h
2504 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2505 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2506 echo "configure:2507: checking for $ac_hdr" >&5
2507 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2508 echo $ac_n "(cached) $ac_c" 1>&6
2510 cat > conftest.$ac_ext <<EOF
2511 #line 2512 "configure"
2512 #include "confdefs.h"
2515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2516 { (eval echo configure:2517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2518 if test -z "$ac_err"; then
2520 eval "ac_cv_header_$ac_safe=yes"
2523 echo "configure: failed program was:" >&5
2524 cat conftest.$ac_ext >&5
2526 eval "ac_cv_header_$ac_safe=no"
2530 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2531 echo "$ac_t""yes" 1>&6
2532 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2533 cat >> confdefs.h <<EOF
2534 #define $ac_tr_hdr 1
2538 echo "$ac_t""no" 1>&6
2542 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2544 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2545 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2546 echo "configure:2547: checking for $ac_hdr" >&5
2547 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2548 echo $ac_n "(cached) $ac_c" 1>&6
2550 cat > conftest.$ac_ext <<EOF
2551 #line 2552 "configure"
2552 #include "confdefs.h"
2555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2556 { (eval echo configure:2557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2558 if test -z "$ac_err"; then
2560 eval "ac_cv_header_$ac_safe=yes"
2563 echo "configure: failed program was:" >&5
2564 cat conftest.$ac_ext >&5
2566 eval "ac_cv_header_$ac_safe=no"
2570 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2571 echo "$ac_t""yes" 1>&6
2572 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2573 cat >> confdefs.h <<EOF
2574 #define $ac_tr_hdr 1
2578 echo "$ac_t""no" 1>&6
2582 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2584 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2585 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2586 echo "configure:2587: checking for $ac_hdr" >&5
2587 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2590 cat > conftest.$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2596 { (eval echo configure:2597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2597 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2598 if test -z "$ac_err"; then
2600 eval "ac_cv_header_$ac_safe=yes"
2603 echo "configure: failed program was:" >&5
2604 cat conftest.$ac_ext >&5
2606 eval "ac_cv_header_$ac_safe=no"
2610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2611 echo "$ac_t""yes" 1>&6
2612 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2613 cat >> confdefs.h <<EOF
2614 #define $ac_tr_hdr 1
2618 echo "$ac_t""no" 1>&6
2622 for ac_hdr in security/pam_modules.h security/_pam_macros.h
2624 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2625 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2626 echo "configure:2627: checking for $ac_hdr" >&5
2627 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2628 echo $ac_n "(cached) $ac_c" 1>&6
2630 cat > conftest.$ac_ext <<EOF
2631 #line 2632 "configure"
2632 #include "confdefs.h"
2635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2636 { (eval echo configure:2637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2637 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2638 if test -z "$ac_err"; then
2640 eval "ac_cv_header_$ac_safe=yes"
2643 echo "configure: failed program was:" >&5
2644 cat conftest.$ac_ext >&5
2646 eval "ac_cv_header_$ac_safe=no"
2650 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2651 echo "$ac_t""yes" 1>&6
2652 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2653 cat >> confdefs.h <<EOF
2654 #define $ac_tr_hdr 1
2658 echo "$ac_t""no" 1>&6
2664 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2665 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2669 cat > conftest.$ac_ext <<EOF
2670 #line 2671 "configure"
2671 #include "confdefs.h"
2677 if { (eval echo configure:2678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2679 ac_cv_header_shadow_h=yes
2681 echo "configure: failed program was:" >&5
2682 cat conftest.$ac_ext >&5
2684 ac_cv_header_shadow_h=no
2687 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2688 cat >> confdefs.h <<\EOF
2689 #define HAVE_SHADOW_H 1
2695 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2697 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2698 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2699 echo "configure:2700: checking for $ac_hdr" >&5
2700 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2701 echo $ac_n "(cached) $ac_c" 1>&6
2703 cat > conftest.$ac_ext <<EOF
2704 #line 2705 "configure"
2705 #include "confdefs.h"
2708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2709 { (eval echo configure:2710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2711 if test -z "$ac_err"; then
2713 eval "ac_cv_header_$ac_safe=yes"
2716 echo "configure: failed program was:" >&5
2717 cat conftest.$ac_ext >&5
2719 eval "ac_cv_header_$ac_safe=no"
2723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2724 echo "$ac_t""yes" 1>&6
2725 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2726 cat >> confdefs.h <<EOF
2727 #define $ac_tr_hdr 1
2731 echo "$ac_t""no" 1>&6
2735 for ac_hdr in nss.h nss_common.h sys/security.h security/pam_appl.h security/pam_modules.h
2737 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2738 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2739 echo "configure:2740: checking for $ac_hdr" >&5
2740 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2741 echo $ac_n "(cached) $ac_c" 1>&6
2743 cat > conftest.$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2749 { (eval echo configure:2750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2751 if test -z "$ac_err"; then
2753 eval "ac_cv_header_$ac_safe=yes"
2756 echo "configure: failed program was:" >&5
2757 cat conftest.$ac_ext >&5
2759 eval "ac_cv_header_$ac_safe=no"
2763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2764 echo "$ac_t""yes" 1>&6
2765 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2766 cat >> confdefs.h <<EOF
2767 #define $ac_tr_hdr 1
2771 echo "$ac_t""no" 1>&6
2775 for ac_hdr in stropts.h poll.h
2777 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2778 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2779 echo "configure:2780: checking for $ac_hdr" >&5
2780 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2781 echo $ac_n "(cached) $ac_c" 1>&6
2783 cat > conftest.$ac_ext <<EOF
2784 #line 2785 "configure"
2785 #include "confdefs.h"
2788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2789 { (eval echo configure:2790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2790 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2791 if test -z "$ac_err"; then
2793 eval "ac_cv_header_$ac_safe=yes"
2796 echo "configure: failed program was:" >&5
2797 cat conftest.$ac_ext >&5
2799 eval "ac_cv_header_$ac_safe=no"
2803 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2804 echo "$ac_t""yes" 1>&6
2805 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2806 cat >> confdefs.h <<EOF
2807 #define $ac_tr_hdr 1
2811 echo "$ac_t""no" 1>&6
2815 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2817 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2818 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2819 echo "configure:2820: checking for $ac_hdr" >&5
2820 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2821 echo $ac_n "(cached) $ac_c" 1>&6
2823 cat > conftest.$ac_ext <<EOF
2824 #line 2825 "configure"
2825 #include "confdefs.h"
2828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2829 { (eval echo configure:2830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2830 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2831 if test -z "$ac_err"; then
2833 eval "ac_cv_header_$ac_safe=yes"
2836 echo "configure: failed program was:" >&5
2837 cat conftest.$ac_ext >&5
2839 eval "ac_cv_header_$ac_safe=no"
2843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2844 echo "$ac_t""yes" 1>&6
2845 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2846 cat >> confdefs.h <<EOF
2847 #define $ac_tr_hdr 1
2851 echo "$ac_t""no" 1>&6
2855 for ac_hdr in sys/acl.h sys/cdefs.h glob.h acl/acl.h
2857 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2858 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2859 echo "configure:2860: checking for $ac_hdr" >&5
2860 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2861 echo $ac_n "(cached) $ac_c" 1>&6
2863 cat > conftest.$ac_ext <<EOF
2864 #line 2865 "configure"
2865 #include "confdefs.h"
2868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2869 { (eval echo configure:2870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2871 if test -z "$ac_err"; then
2873 eval "ac_cv_header_$ac_safe=yes"
2876 echo "configure: failed program was:" >&5
2877 cat conftest.$ac_ext >&5
2879 eval "ac_cv_header_$ac_safe=no"
2883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2884 echo "$ac_t""yes" 1>&6
2885 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2886 cat >> confdefs.h <<EOF
2887 #define $ac_tr_hdr 1
2891 echo "$ac_t""no" 1>&6
2896 # For experimental utmp support (lastlog on some BSD-like systems)
2897 for ac_hdr in utmp.h utmpx.h lastlog.h
2899 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2900 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2901 echo "configure:2902: checking for $ac_hdr" >&5
2902 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2903 echo $ac_n "(cached) $ac_c" 1>&6
2905 cat > conftest.$ac_ext <<EOF
2906 #line 2907 "configure"
2907 #include "confdefs.h"
2910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2911 { (eval echo configure:2912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2913 if test -z "$ac_err"; then
2915 eval "ac_cv_header_$ac_safe=yes"
2918 echo "configure: failed program was:" >&5
2919 cat conftest.$ac_ext >&5
2921 eval "ac_cv_header_$ac_safe=no"
2925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2926 echo "$ac_t""yes" 1>&6
2927 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2928 cat >> confdefs.h <<EOF
2929 #define $ac_tr_hdr 1
2933 echo "$ac_t""no" 1>&6
2938 # For quotas on Veritas VxFS filesystems
2939 for ac_hdr in sys/fs/vx_quota.h
2941 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2942 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2943 echo "configure:2944: checking for $ac_hdr" >&5
2944 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2947 cat > conftest.$ac_ext <<EOF
2948 #line 2949 "configure"
2949 #include "confdefs.h"
2952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2953 { (eval echo configure:2954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2955 if test -z "$ac_err"; then
2957 eval "ac_cv_header_$ac_safe=yes"
2960 echo "configure: failed program was:" >&5
2961 cat conftest.$ac_ext >&5
2963 eval "ac_cv_header_$ac_safe=no"
2967 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2968 echo "$ac_t""yes" 1>&6
2969 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2970 cat >> confdefs.h <<EOF
2971 #define $ac_tr_hdr 1
2975 echo "$ac_t""no" 1>&6
2980 echo $ac_n "checking size of int""... $ac_c" 1>&6
2981 echo "configure:2982: checking size of int" >&5
2982 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2985 if test "$cross_compiling" = yes; then
2986 ac_cv_sizeof_int=cross
2988 cat > conftest.$ac_ext <<EOF
2989 #line 2990 "configure"
2990 #include "confdefs.h"
2994 FILE *f=fopen("conftestval", "w");
2996 fprintf(f, "%d\n", sizeof(int));
3000 if { (eval echo configure:3001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3002 ac_cv_sizeof_int=`cat conftestval`
3004 echo "configure: failed program was:" >&5
3005 cat conftest.$ac_ext >&5
3013 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3014 cat >> confdefs.h <<EOF
3015 #define SIZEOF_INT $ac_cv_sizeof_int
3019 echo $ac_n "checking size of long""... $ac_c" 1>&6
3020 echo "configure:3021: checking size of long" >&5
3021 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3022 echo $ac_n "(cached) $ac_c" 1>&6
3024 if test "$cross_compiling" = yes; then
3025 ac_cv_sizeof_long=cross
3027 cat > conftest.$ac_ext <<EOF
3028 #line 3029 "configure"
3029 #include "confdefs.h"
3033 FILE *f=fopen("conftestval", "w");
3035 fprintf(f, "%d\n", sizeof(long));
3039 if { (eval echo configure:3040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3041 ac_cv_sizeof_long=`cat conftestval`
3043 echo "configure: failed program was:" >&5
3044 cat conftest.$ac_ext >&5
3052 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3053 cat >> confdefs.h <<EOF
3054 #define SIZEOF_LONG $ac_cv_sizeof_long
3058 echo $ac_n "checking size of short""... $ac_c" 1>&6
3059 echo "configure:3060: checking size of short" >&5
3060 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3061 echo $ac_n "(cached) $ac_c" 1>&6
3063 if test "$cross_compiling" = yes; then
3064 ac_cv_sizeof_short=cross
3066 cat > conftest.$ac_ext <<EOF
3067 #line 3068 "configure"
3068 #include "confdefs.h"
3072 FILE *f=fopen("conftestval", "w");
3074 fprintf(f, "%d\n", sizeof(short));
3078 if { (eval echo configure:3079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3080 ac_cv_sizeof_short=`cat conftestval`
3082 echo "configure: failed program was:" >&5
3083 cat conftest.$ac_ext >&5
3085 ac_cv_sizeof_short=0
3091 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3092 cat >> confdefs.h <<EOF
3093 #define SIZEOF_SHORT $ac_cv_sizeof_short
3098 echo $ac_n "checking for working const""... $ac_c" 1>&6
3099 echo "configure:3100: checking for working const" >&5
3100 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3101 echo $ac_n "(cached) $ac_c" 1>&6
3103 cat > conftest.$ac_ext <<EOF
3104 #line 3105 "configure"
3105 #include "confdefs.h"
3109 /* Ultrix mips cc rejects this. */
3110 typedef int charset[2]; const charset x;
3111 /* SunOS 4.1.1 cc rejects this. */
3112 char const *const *ccp;
3114 /* NEC SVR4.0.2 mips cc rejects this. */
3115 struct point {int x, y;};
3116 static struct point const zero = {0,0};
3117 /* AIX XL C 1.02.0.0 rejects this.
3118 It does not let you subtract one const X* pointer from another in an arm
3119 of an if-expression whose if-part is not a constant expression */
3120 const char *g = "string";
3121 ccp = &g + (g ? g-g : 0);
3122 /* HPUX 7.0 cc rejects these. */
3125 ccp = (char const *const *) p;
3126 { /* SCO 3.2v4 cc rejects this. */
3128 char const *s = 0 ? (char *) 0 : (char const *) 0;
3132 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3134 const int *foo = &x[0];
3137 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3138 typedef const int *iptr;
3142 { /* AIX XL C 1.02.0.0 rejects this saying
3143 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3144 struct s { int j; const int *ap[3]; };
3145 struct s *b; b->j = 5;
3147 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3153 if { (eval echo configure:3154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3157 echo "configure: failed program was:" >&5
3158 cat conftest.$ac_ext >&5
3165 echo "$ac_t""$ac_cv_c_const" 1>&6
3166 if test $ac_cv_c_const = no; then
3167 cat >> confdefs.h <<\EOF
3173 echo $ac_n "checking for inline""... $ac_c" 1>&6
3174 echo "configure:3175: checking for inline" >&5
3175 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3176 echo $ac_n "(cached) $ac_c" 1>&6
3179 for ac_kw in inline __inline__ __inline; do
3180 cat > conftest.$ac_ext <<EOF
3181 #line 3182 "configure"
3182 #include "confdefs.h"
3188 if { (eval echo configure:3189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3190 ac_cv_c_inline=$ac_kw; break
3192 echo "configure: failed program was:" >&5
3193 cat conftest.$ac_ext >&5
3200 echo "$ac_t""$ac_cv_c_inline" 1>&6
3201 case "$ac_cv_c_inline" in
3203 no) cat >> confdefs.h <<\EOF
3207 *) cat >> confdefs.h <<EOF
3208 #define inline $ac_cv_c_inline
3213 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3214 echo "configure:3215: checking whether byte ordering is bigendian" >&5
3215 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3216 echo $ac_n "(cached) $ac_c" 1>&6
3218 ac_cv_c_bigendian=unknown
3219 # See if sys/param.h defines the BYTE_ORDER macro.
3220 cat > conftest.$ac_ext <<EOF
3221 #line 3222 "configure"
3222 #include "confdefs.h"
3223 #include <sys/types.h>
3224 #include <sys/param.h>
3227 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3232 if { (eval echo configure:3233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3234 # It does; now see whether it defined to BIG_ENDIAN or not.
3235 cat > conftest.$ac_ext <<EOF
3236 #line 3237 "configure"
3237 #include "confdefs.h"
3238 #include <sys/types.h>
3239 #include <sys/param.h>
3242 #if BYTE_ORDER != BIG_ENDIAN
3247 if { (eval echo configure:3248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3249 ac_cv_c_bigendian=yes
3251 echo "configure: failed program was:" >&5
3252 cat conftest.$ac_ext >&5
3254 ac_cv_c_bigendian=no
3258 echo "configure: failed program was:" >&5
3259 cat conftest.$ac_ext >&5
3262 if test $ac_cv_c_bigendian = unknown; then
3263 if test "$cross_compiling" = yes; then
3264 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3266 cat > conftest.$ac_ext <<EOF
3267 #line 3268 "configure"
3268 #include "confdefs.h"
3270 /* Are we little or big endian? From Harbison&Steele. */
3274 char c[sizeof (long)];
3277 exit (u.c[sizeof (long) - 1] == 1);
3280 if { (eval echo configure:3281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3282 ac_cv_c_bigendian=no
3284 echo "configure: failed program was:" >&5
3285 cat conftest.$ac_ext >&5
3287 ac_cv_c_bigendian=yes
3295 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3296 if test $ac_cv_c_bigendian = yes; then
3297 cat >> confdefs.h <<\EOF
3298 #define WORDS_BIGENDIAN 1
3303 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3304 echo "configure:3305: checking whether char is unsigned" >&5
3305 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3306 echo $ac_n "(cached) $ac_c" 1>&6
3308 if test "$GCC" = yes; then
3309 # GCC predefines this symbol on systems where it applies.
3310 cat > conftest.$ac_ext <<EOF
3311 #line 3312 "configure"
3312 #include "confdefs.h"
3313 #ifdef __CHAR_UNSIGNED__
3318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3319 egrep "yes" >/dev/null 2>&1; then
3321 ac_cv_c_char_unsigned=yes
3324 ac_cv_c_char_unsigned=no
3329 if test "$cross_compiling" = yes; then
3330 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3332 cat > conftest.$ac_ext <<EOF
3333 #line 3334 "configure"
3334 #include "confdefs.h"
3335 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3336 #if !defined(__STDC__) || __STDC__ != 1
3340 volatile char c = 255; exit(c < 0);
3343 if { (eval echo configure:3344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3345 ac_cv_c_char_unsigned=yes
3347 echo "configure: failed program was:" >&5
3348 cat conftest.$ac_ext >&5
3350 ac_cv_c_char_unsigned=no
3358 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3359 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3360 cat >> confdefs.h <<\EOF
3361 #define __CHAR_UNSIGNED__ 1
3367 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3368 echo "configure:3369: checking return type of signal handlers" >&5
3369 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3370 echo $ac_n "(cached) $ac_c" 1>&6
3372 cat > conftest.$ac_ext <<EOF
3373 #line 3374 "configure"
3374 #include "confdefs.h"
3375 #include <sys/types.h>
3381 extern "C" void (*signal (int, void (*)(int)))(int);
3383 void (*signal ()) ();
3390 if { (eval echo configure:3391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3392 ac_cv_type_signal=void
3394 echo "configure: failed program was:" >&5
3395 cat conftest.$ac_ext >&5
3397 ac_cv_type_signal=int
3402 echo "$ac_t""$ac_cv_type_signal" 1>&6
3403 cat >> confdefs.h <<EOF
3404 #define RETSIGTYPE $ac_cv_type_signal
3408 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3409 echo "configure:3410: checking for uid_t in sys/types.h" >&5
3410 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3411 echo $ac_n "(cached) $ac_c" 1>&6
3413 cat > conftest.$ac_ext <<EOF
3414 #line 3415 "configure"
3415 #include "confdefs.h"
3416 #include <sys/types.h>
3418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3419 egrep "uid_t" >/dev/null 2>&1; then
3421 ac_cv_type_uid_t=yes
3430 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3431 if test $ac_cv_type_uid_t = no; then
3432 cat >> confdefs.h <<\EOF
3436 cat >> confdefs.h <<\EOF
3442 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3443 echo "configure:3444: checking for mode_t" >&5
3444 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3445 echo $ac_n "(cached) $ac_c" 1>&6
3447 cat > conftest.$ac_ext <<EOF
3448 #line 3449 "configure"
3449 #include "confdefs.h"
3450 #include <sys/types.h>
3456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3457 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3459 ac_cv_type_mode_t=yes
3462 ac_cv_type_mode_t=no
3467 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3468 if test $ac_cv_type_mode_t = no; then
3469 cat >> confdefs.h <<\EOF
3475 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3476 echo "configure:3477: checking for off_t" >&5
3477 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3478 echo $ac_n "(cached) $ac_c" 1>&6
3480 cat > conftest.$ac_ext <<EOF
3481 #line 3482 "configure"
3482 #include "confdefs.h"
3483 #include <sys/types.h>
3489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3490 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3492 ac_cv_type_off_t=yes
3500 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3501 if test $ac_cv_type_off_t = no; then
3502 cat >> confdefs.h <<\EOF
3508 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3509 echo "configure:3510: checking for size_t" >&5
3510 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3511 echo $ac_n "(cached) $ac_c" 1>&6
3513 cat > conftest.$ac_ext <<EOF
3514 #line 3515 "configure"
3515 #include "confdefs.h"
3516 #include <sys/types.h>
3522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3523 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3525 ac_cv_type_size_t=yes
3528 ac_cv_type_size_t=no
3533 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3534 if test $ac_cv_type_size_t = no; then
3535 cat >> confdefs.h <<\EOF
3536 #define size_t unsigned
3541 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3542 echo "configure:3543: checking for pid_t" >&5
3543 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3546 cat > conftest.$ac_ext <<EOF
3547 #line 3548 "configure"
3548 #include "confdefs.h"
3549 #include <sys/types.h>
3555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3556 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3558 ac_cv_type_pid_t=yes
3566 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3567 if test $ac_cv_type_pid_t = no; then
3568 cat >> confdefs.h <<\EOF
3574 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3575 echo "configure:3576: checking for st_rdev in struct stat" >&5
3576 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3577 echo $ac_n "(cached) $ac_c" 1>&6
3579 cat > conftest.$ac_ext <<EOF
3580 #line 3581 "configure"
3581 #include "confdefs.h"
3582 #include <sys/types.h>
3583 #include <sys/stat.h>
3585 struct stat s; s.st_rdev;
3588 if { (eval echo configure:3589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3590 ac_cv_struct_st_rdev=yes
3592 echo "configure: failed program was:" >&5
3593 cat conftest.$ac_ext >&5
3595 ac_cv_struct_st_rdev=no
3600 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3601 if test $ac_cv_struct_st_rdev = yes; then
3602 cat >> confdefs.h <<\EOF
3603 #define HAVE_ST_RDEV 1
3608 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3609 echo "configure:3610: checking for d_off in dirent" >&5
3610 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3611 echo $ac_n "(cached) $ac_c" 1>&6
3613 cat > conftest.$ac_ext <<EOF
3614 #line 3615 "configure"
3615 #include "confdefs.h"
3618 #include <sys/types.h>
3621 struct dirent d; d.d_off;
3624 if { (eval echo configure:3625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3626 ac_cv_dirent_d_off=yes
3628 echo "configure: failed program was:" >&5
3629 cat conftest.$ac_ext >&5
3631 ac_cv_dirent_d_off=no
3636 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3637 if test $ac_cv_dirent_d_off = yes; then
3638 cat >> confdefs.h <<\EOF
3639 #define HAVE_DIRENT_D_OFF 1
3644 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3645 echo "configure:3646: checking for ino_t" >&5
3646 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3647 echo $ac_n "(cached) $ac_c" 1>&6
3649 cat > conftest.$ac_ext <<EOF
3650 #line 3651 "configure"
3651 #include "confdefs.h"
3652 #include <sys/types.h>
3658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3659 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3661 ac_cv_type_ino_t=yes
3669 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3670 if test $ac_cv_type_ino_t = no; then
3671 cat >> confdefs.h <<\EOF
3672 #define ino_t unsigned
3677 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3678 echo "configure:3679: checking for loff_t" >&5
3679 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3680 echo $ac_n "(cached) $ac_c" 1>&6
3682 cat > conftest.$ac_ext <<EOF
3683 #line 3684 "configure"
3684 #include "confdefs.h"
3685 #include <sys/types.h>
3691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3692 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3694 ac_cv_type_loff_t=yes
3697 ac_cv_type_loff_t=no
3702 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3703 if test $ac_cv_type_loff_t = no; then
3704 cat >> confdefs.h <<\EOF
3705 #define loff_t off_t
3710 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3711 echo "configure:3712: checking for offset_t" >&5
3712 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3713 echo $ac_n "(cached) $ac_c" 1>&6
3715 cat > conftest.$ac_ext <<EOF
3716 #line 3717 "configure"
3717 #include "confdefs.h"
3718 #include <sys/types.h>
3724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3725 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3727 ac_cv_type_offset_t=yes
3730 ac_cv_type_offset_t=no
3735 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3736 if test $ac_cv_type_offset_t = no; then
3737 cat >> confdefs.h <<\EOF
3738 #define offset_t loff_t
3743 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3744 echo "configure:3745: checking for ssize_t" >&5
3745 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3746 echo $ac_n "(cached) $ac_c" 1>&6
3748 cat > conftest.$ac_ext <<EOF
3749 #line 3750 "configure"
3750 #include "confdefs.h"
3751 #include <sys/types.h>
3757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3758 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3760 ac_cv_type_ssize_t=yes
3763 ac_cv_type_ssize_t=no
3768 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3769 if test $ac_cv_type_ssize_t = no; then
3770 cat >> confdefs.h <<\EOF
3776 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3777 echo "configure:3778: checking for wchar_t" >&5
3778 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3779 echo $ac_n "(cached) $ac_c" 1>&6
3781 cat > conftest.$ac_ext <<EOF
3782 #line 3783 "configure"
3783 #include "confdefs.h"
3784 #include <sys/types.h>
3790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3791 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3793 ac_cv_type_wchar_t=yes
3796 ac_cv_type_wchar_t=no
3801 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3802 if test $ac_cv_type_wchar_t = no; then
3803 cat >> confdefs.h <<\EOF
3804 #define wchar_t unsigned short
3810 # we need libcups for CUPS support...
3811 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3812 echo "configure:3813: checking for httpConnect in -lcups" >&5
3813 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3814 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3815 echo $ac_n "(cached) $ac_c" 1>&6
3817 ac_save_LIBS="$LIBS"
3819 cat > conftest.$ac_ext <<EOF
3820 #line 3821 "configure"
3821 #include "confdefs.h"
3822 /* Override any gcc2 internal prototype to avoid an error. */
3823 /* We use char because int might match the return type of a gcc2
3824 builtin and then its argument prototype would still apply. */
3831 if { (eval echo configure:3832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3833 eval "ac_cv_lib_$ac_lib_var=yes"
3835 echo "configure: failed program was:" >&5
3836 cat conftest.$ac_ext >&5
3838 eval "ac_cv_lib_$ac_lib_var=no"
3841 LIBS="$ac_save_LIBS"
3844 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3845 echo "$ac_t""yes" 1>&6
3846 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3847 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3848 cat >> confdefs.h <<EOF
3849 #define $ac_tr_lib 1
3855 echo "$ac_t""no" 1>&6
3859 # we need libdl for PAM and the new VFS code
3860 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3861 echo "configure:3862: checking for dlopen in -ldl" >&5
3862 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3863 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3864 echo $ac_n "(cached) $ac_c" 1>&6
3866 ac_save_LIBS="$LIBS"
3868 cat > conftest.$ac_ext <<EOF
3869 #line 3870 "configure"
3870 #include "confdefs.h"
3871 /* Override any gcc2 internal prototype to avoid an error. */
3872 /* We use char because int might match the return type of a gcc2
3873 builtin and then its argument prototype would still apply. */
3880 if { (eval echo configure:3881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3882 eval "ac_cv_lib_$ac_lib_var=yes"
3884 echo "configure: failed program was:" >&5
3885 cat conftest.$ac_ext >&5
3887 eval "ac_cv_lib_$ac_lib_var=no"
3890 LIBS="$ac_save_LIBS"
3893 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3894 echo "$ac_t""yes" 1>&6
3896 cat >> confdefs.h <<\EOF
3897 #define HAVE_LIBDL 1
3901 echo "$ac_t""no" 1>&6
3905 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3906 echo "configure:3907: checking for sig_atomic_t type" >&5
3907 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3908 echo $ac_n "(cached) $ac_c" 1>&6
3911 cat > conftest.$ac_ext <<EOF
3912 #line 3913 "configure"
3913 #include "confdefs.h"
3915 #include <sys/types.h>
3925 if { (eval echo configure:3926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3927 samba_cv_sig_atomic_t=yes
3929 echo "configure: failed program was:" >&5
3930 cat conftest.$ac_ext >&5
3932 samba_cv_sig_atomic_t=no
3937 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3938 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3939 cat >> confdefs.h <<\EOF
3940 #define HAVE_SIG_ATOMIC_T_TYPE 1
3945 # stupid headers have the functions but no declaration. grrrr.
3947 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3948 echo "configure:3949: checking for errno declaration" >&5
3949 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3950 echo $ac_n "(cached) $ac_c" 1>&6
3953 cat > conftest.$ac_ext <<EOF
3954 #line 3955 "configure"
3955 #include "confdefs.h"
3961 if { (eval echo configure:3962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3963 ac_cv_have_errno_decl=yes
3965 echo "configure: failed program was:" >&5
3966 cat conftest.$ac_ext >&5
3968 ac_cv_have_errno_decl=no
3973 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3974 if test x"$ac_cv_have_errno_decl" = x"yes"; then
3975 cat >> confdefs.h <<\EOF
3976 #define HAVE_ERRNO_DECL 1
3982 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3983 echo "configure:3984: checking for setresuid declaration" >&5
3984 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3985 echo $ac_n "(cached) $ac_c" 1>&6
3988 cat > conftest.$ac_ext <<EOF
3989 #line 3990 "configure"
3990 #include "confdefs.h"
3993 int i = (int)setresuid
3996 if { (eval echo configure:3997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3998 ac_cv_have_setresuid_decl=yes
4000 echo "configure: failed program was:" >&5
4001 cat conftest.$ac_ext >&5
4003 ac_cv_have_setresuid_decl=no
4008 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4009 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
4010 cat >> confdefs.h <<\EOF
4011 #define HAVE_SETRESUID_DECL 1
4017 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4018 echo "configure:4019: checking for setresgid declaration" >&5
4019 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4020 echo $ac_n "(cached) $ac_c" 1>&6
4023 cat > conftest.$ac_ext <<EOF
4024 #line 4025 "configure"
4025 #include "confdefs.h"
4028 int i = (int)setresgid
4031 if { (eval echo configure:4032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4033 ac_cv_have_setresgid_decl=yes
4035 echo "configure: failed program was:" >&5
4036 cat conftest.$ac_ext >&5
4038 ac_cv_have_setresgid_decl=no
4043 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4044 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
4045 cat >> confdefs.h <<\EOF
4046 #define HAVE_SETRESGID_DECL 1
4052 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4053 echo "configure:4054: checking for asprintf declaration" >&5
4054 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4055 echo $ac_n "(cached) $ac_c" 1>&6
4058 cat > conftest.$ac_ext <<EOF
4059 #line 4060 "configure"
4060 #include "confdefs.h"
4063 int i = (int)asprintf
4066 if { (eval echo configure:4067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4068 ac_cv_have_asprintf_decl=yes
4070 echo "configure: failed program was:" >&5
4071 cat conftest.$ac_ext >&5
4073 ac_cv_have_asprintf_decl=no
4078 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4079 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
4080 cat >> confdefs.h <<\EOF
4081 #define HAVE_ASPRINTF_DECL 1
4087 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4088 echo "configure:4089: checking for vasprintf declaration" >&5
4089 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4090 echo $ac_n "(cached) $ac_c" 1>&6
4093 cat > conftest.$ac_ext <<EOF
4094 #line 4095 "configure"
4095 #include "confdefs.h"
4098 int i = (int)vasprintf
4101 if { (eval echo configure:4102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4103 ac_cv_have_vasprintf_decl=yes
4105 echo "configure: failed program was:" >&5
4106 cat conftest.$ac_ext >&5
4108 ac_cv_have_vasprintf_decl=no
4113 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4114 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4115 cat >> confdefs.h <<\EOF
4116 #define HAVE_VASPRINTF_DECL 1
4122 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4123 echo "configure:4124: checking for vsnprintf declaration" >&5
4124 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4125 echo $ac_n "(cached) $ac_c" 1>&6
4128 cat > conftest.$ac_ext <<EOF
4129 #line 4130 "configure"
4130 #include "confdefs.h"
4133 int i = (int)vsnprintf
4136 if { (eval echo configure:4137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4138 ac_cv_have_vsnprintf_decl=yes
4140 echo "configure: failed program was:" >&5
4141 cat conftest.$ac_ext >&5
4143 ac_cv_have_vsnprintf_decl=no
4148 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4149 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4150 cat >> confdefs.h <<\EOF
4151 #define HAVE_VSNPRINTF_DECL 1
4157 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4158 echo "configure:4159: checking for snprintf declaration" >&5
4159 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4160 echo $ac_n "(cached) $ac_c" 1>&6
4163 cat > conftest.$ac_ext <<EOF
4164 #line 4165 "configure"
4165 #include "confdefs.h"
4168 int i = (int)snprintf
4171 if { (eval echo configure:4172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4173 ac_cv_have_snprintf_decl=yes
4175 echo "configure: failed program was:" >&5
4176 cat conftest.$ac_ext >&5
4178 ac_cv_have_snprintf_decl=no
4183 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4184 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4185 cat >> confdefs.h <<\EOF
4186 #define HAVE_SNPRINTF_DECL 1
4192 # and glibc has setresuid under linux but the function does
4193 # nothing until kernel 2.1.44! very dumb.
4194 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4195 echo "configure:4196: checking for real setresuid" >&5
4196 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4197 echo $ac_n "(cached) $ac_c" 1>&6
4200 if test "$cross_compiling" = yes; then
4201 samba_cv_have_setresuid=cross
4203 cat > conftest.$ac_ext <<EOF
4204 #line 4205 "configure"
4205 #include "confdefs.h"
4207 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4209 if { (eval echo configure:4210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4211 samba_cv_have_setresuid=yes
4213 echo "configure: failed program was:" >&5
4214 cat conftest.$ac_ext >&5
4216 samba_cv_have_setresuid=no
4223 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4224 if test x"$samba_cv_have_setresuid" = x"yes"; then
4225 cat >> confdefs.h <<\EOF
4226 #define HAVE_SETRESUID 1
4231 # Do the same check for setresguid...
4233 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4234 echo "configure:4235: checking for real setresgid" >&5
4235 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4236 echo $ac_n "(cached) $ac_c" 1>&6
4239 if test "$cross_compiling" = yes; then
4240 samba_cv_have_setresgid=cross
4242 cat > conftest.$ac_ext <<EOF
4243 #line 4244 "configure"
4244 #include "confdefs.h"
4247 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4249 if { (eval echo configure:4250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4251 samba_cv_have_setresgid=yes
4253 echo "configure: failed program was:" >&5
4254 cat conftest.$ac_ext >&5
4256 samba_cv_have_setresgid=no
4263 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4264 if test x"$samba_cv_have_setresgid" = x"yes"; then
4265 cat >> confdefs.h <<\EOF
4266 #define HAVE_SETRESGID 1
4271 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4272 echo "configure:4273: checking for 8-bit clean memcmp" >&5
4273 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4274 echo $ac_n "(cached) $ac_c" 1>&6
4276 if test "$cross_compiling" = yes; then
4277 ac_cv_func_memcmp_clean=no
4279 cat > conftest.$ac_ext <<EOF
4280 #line 4281 "configure"
4281 #include "confdefs.h"
4285 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4286 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
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 ac_cv_func_memcmp_clean=yes
4294 echo "configure: failed program was:" >&5
4295 cat conftest.$ac_ext >&5
4297 ac_cv_func_memcmp_clean=no
4304 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4305 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4308 ###############################################
4309 # test for where we get crypt() from
4310 for ac_func in crypt
4312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4313 echo "configure:4314: checking for $ac_func" >&5
4314 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4315 echo $ac_n "(cached) $ac_c" 1>&6
4317 cat > conftest.$ac_ext <<EOF
4318 #line 4319 "configure"
4319 #include "confdefs.h"
4320 /* System header to define __stub macros and hopefully few prototypes,
4321 which can conflict with char $ac_func(); below. */
4323 /* Override any gcc2 internal prototype to avoid an error. */
4324 /* We use char because int might match the return type of a gcc2
4325 builtin and then its argument prototype would still apply. */
4330 /* The GNU C library defines this for functions which it implements
4331 to always fail with ENOSYS. Some functions are actually named
4332 something starting with __ and the normal name is an alias. */
4333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4341 if { (eval echo configure:4342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4343 eval "ac_cv_func_$ac_func=yes"
4345 echo "configure: failed program was:" >&5
4346 cat conftest.$ac_ext >&5
4348 eval "ac_cv_func_$ac_func=no"
4353 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4354 echo "$ac_t""yes" 1>&6
4355 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4356 cat >> confdefs.h <<EOF
4357 #define $ac_tr_func 1
4361 echo "$ac_t""no" 1>&6
4365 if test x"$ac_cv_func_crypt" = x"no"; then
4366 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4367 echo "configure:4368: checking for crypt in -lcrypt" >&5
4368 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4369 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4370 echo $ac_n "(cached) $ac_c" 1>&6
4372 ac_save_LIBS="$LIBS"
4373 LIBS="-lcrypt $LIBS"
4374 cat > conftest.$ac_ext <<EOF
4375 #line 4376 "configure"
4376 #include "confdefs.h"
4377 /* Override any gcc2 internal prototype to avoid an error. */
4378 /* We use char because int might match the return type of a gcc2
4379 builtin and then its argument prototype would still apply. */
4386 if { (eval echo configure:4387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4388 eval "ac_cv_lib_$ac_lib_var=yes"
4390 echo "configure: failed program was:" >&5
4391 cat conftest.$ac_ext >&5
4393 eval "ac_cv_lib_$ac_lib_var=no"
4396 LIBS="$ac_save_LIBS"
4399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4400 echo "$ac_t""yes" 1>&6
4401 LIBS="$LIBS -lcrypt";
4402 cat >> confdefs.h <<\EOF
4403 #define HAVE_CRYPT 1
4407 echo "$ac_t""no" 1>&6
4413 ###############################################
4414 # Readline included by default unless explicitly asked not to
4415 test "${with_readline+set}" != "set" && with_readline=yes
4417 # test for where we get readline() from
4418 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4419 echo "configure:4420: checking whether to use readline" >&5
4420 # Check whether --with-readline or --without-readline was given.
4421 if test "${with_readline+set}" = set; then
4422 withval="$with_readline"
4423 case "$with_readline" in
4425 echo "$ac_t""yes" 1>&6
4427 for ac_hdr in readline.h history.h readline/readline.h
4429 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4430 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4431 echo "configure:4432: checking for $ac_hdr" >&5
4432 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4433 echo $ac_n "(cached) $ac_c" 1>&6
4435 cat > conftest.$ac_ext <<EOF
4436 #line 4437 "configure"
4437 #include "confdefs.h"
4440 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4441 { (eval echo configure:4442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4442 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4443 if test -z "$ac_err"; then
4445 eval "ac_cv_header_$ac_safe=yes"
4448 echo "configure: failed program was:" >&5
4449 cat conftest.$ac_ext >&5
4451 eval "ac_cv_header_$ac_safe=no"
4455 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4456 echo "$ac_t""yes" 1>&6
4457 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4458 cat >> confdefs.h <<EOF
4459 #define $ac_tr_hdr 1
4463 echo "$ac_t""no" 1>&6
4467 for ac_hdr in readline/history.h
4469 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4470 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4471 echo "configure:4472: checking for $ac_hdr" >&5
4472 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4473 echo $ac_n "(cached) $ac_c" 1>&6
4475 cat > conftest.$ac_ext <<EOF
4476 #line 4477 "configure"
4477 #include "confdefs.h"
4480 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4481 { (eval echo configure:4482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4482 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4483 if test -z "$ac_err"; then
4485 eval "ac_cv_header_$ac_safe=yes"
4488 echo "configure: failed program was:" >&5
4489 cat conftest.$ac_ext >&5
4491 eval "ac_cv_header_$ac_safe=no"
4495 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4496 echo "$ac_t""yes" 1>&6
4497 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4498 cat >> confdefs.h <<EOF
4499 #define $ac_tr_hdr 1
4503 echo "$ac_t""no" 1>&6
4508 for ac_hdr in readline.h readline/readline.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
4543 for termlib in ncurses curses termcap terminfo termlib; do
4544 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4545 echo "configure:4546: checking for tgetent in -l${termlib}" >&5
4546 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4547 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4548 echo $ac_n "(cached) $ac_c" 1>&6
4550 ac_save_LIBS="$LIBS"
4551 LIBS="-l${termlib} $LIBS"
4552 cat > conftest.$ac_ext <<EOF
4553 #line 4554 "configure"
4554 #include "confdefs.h"
4555 /* Override any gcc2 internal prototype to avoid an error. */
4556 /* We use char because int might match the return type of a gcc2
4557 builtin and then its argument prototype would still apply. */
4564 if { (eval echo configure:4565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4566 eval "ac_cv_lib_$ac_lib_var=yes"
4568 echo "configure: failed program was:" >&5
4569 cat conftest.$ac_ext >&5
4571 eval "ac_cv_lib_$ac_lib_var=no"
4574 LIBS="$ac_save_LIBS"
4577 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4578 echo "$ac_t""yes" 1>&6
4579 TERMLIBS="-l${termlib}"; break
4581 echo "$ac_t""no" 1>&6
4585 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4586 echo "configure:4587: checking for rl_callback_handler_install in -lreadline" >&5
4587 ac_lib_var=`echo readline'_'rl_callback_handler_install | 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="-lreadline $TERMLIBS $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. */
4599 char rl_callback_handler_install();
4602 rl_callback_handler_install()
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="-lreadline $TERMLIBS"
4621 cat >> confdefs.h <<\EOF
4622 #define HAVE_LIBREADLINE 1
4627 echo "$ac_t""no" 1>&6
4632 echo "$ac_t""no" 1>&6
4638 echo "$ac_t""no" 1>&6
4641 echo "$ac_t""yes" 1>&6
4643 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4644 # alternate readline path
4646 _cppflags=${CPPFLAGS}
4648 # Add additional search path
4649 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4650 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4652 for ac_hdr in readline.h history.h readline/readline.h
4654 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4655 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4656 echo "configure:4657: checking for $ac_hdr" >&5
4657 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4658 echo $ac_n "(cached) $ac_c" 1>&6
4660 cat > conftest.$ac_ext <<EOF
4661 #line 4662 "configure"
4662 #include "confdefs.h"
4665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4666 { (eval echo configure:4667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4668 if test -z "$ac_err"; then
4670 eval "ac_cv_header_$ac_safe=yes"
4673 echo "configure: failed program was:" >&5
4674 cat conftest.$ac_ext >&5
4676 eval "ac_cv_header_$ac_safe=no"
4680 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4681 echo "$ac_t""yes" 1>&6
4682 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4683 cat >> confdefs.h <<EOF
4684 #define $ac_tr_hdr 1
4688 echo "$ac_t""no" 1>&6
4692 for ac_hdr in readline/history.h
4694 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4695 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4696 echo "configure:4697: checking for $ac_hdr" >&5
4697 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4698 echo $ac_n "(cached) $ac_c" 1>&6
4700 cat > conftest.$ac_ext <<EOF
4701 #line 4702 "configure"
4702 #include "confdefs.h"
4705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4706 { (eval echo configure:4707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4708 if test -z "$ac_err"; then
4710 eval "ac_cv_header_$ac_safe=yes"
4713 echo "configure: failed program was:" >&5
4714 cat conftest.$ac_ext >&5
4716 eval "ac_cv_header_$ac_safe=no"
4720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4721 echo "$ac_t""yes" 1>&6
4722 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4723 cat >> confdefs.h <<EOF
4724 #define $ac_tr_hdr 1
4728 echo "$ac_t""no" 1>&6
4733 for ac_hdr in readline.h readline/readline.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
4768 for termlib in ncurses curses termcap terminfo termlib; do
4769 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4770 echo "configure:4771: checking for tgetent in -l${termlib}" >&5
4771 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4772 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4773 echo $ac_n "(cached) $ac_c" 1>&6
4775 ac_save_LIBS="$LIBS"
4776 LIBS="-l${termlib} $LIBS"
4777 cat > conftest.$ac_ext <<EOF
4778 #line 4779 "configure"
4779 #include "confdefs.h"
4780 /* Override any gcc2 internal prototype to avoid an error. */
4781 /* We use char because int might match the return type of a gcc2
4782 builtin and then its argument prototype would still apply. */
4789 if { (eval echo configure:4790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4791 eval "ac_cv_lib_$ac_lib_var=yes"
4793 echo "configure: failed program was:" >&5
4794 cat conftest.$ac_ext >&5
4796 eval "ac_cv_lib_$ac_lib_var=no"
4799 LIBS="$ac_save_LIBS"
4802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4803 echo "$ac_t""yes" 1>&6
4804 TERMLIBS="-l${termlib}"; break
4806 echo "$ac_t""no" 1>&6
4810 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4811 echo "configure:4812: checking for rl_callback_handler_install in -lreadline" >&5
4812 ac_lib_var=`echo readline'_'rl_callback_handler_install | 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="-lreadline $TERMLIBS $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. */
4824 char rl_callback_handler_install();
4827 rl_callback_handler_install()
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 TERMLDFLAGS="-L$with_readline/lib"
4846 TERMCPPFLAGS="-I$with_readline/include"
4847 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4848 TERMLIBS="-lreadline $TERMLIBS"
4849 cat >> confdefs.h <<\EOF
4850 #define HAVE_LIBREADLINE 1
4855 echo "$ac_t""no" 1>&6
4856 TERMLIBS= CPPFLAGS=$_cppflags
4860 echo "$ac_t""no" 1>&6
4869 echo "$ac_t""no" 1>&6
4876 # The following test taken from the cvs sources
4877 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4878 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4879 # libsocket.so which has a bad implementation of gethostbyname (it
4880 # only looks in /etc/hosts), so we only look for -lsocket if we need
4882 for ac_func in connect
4884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4885 echo "configure:4886: checking for $ac_func" >&5
4886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4887 echo $ac_n "(cached) $ac_c" 1>&6
4889 cat > conftest.$ac_ext <<EOF
4890 #line 4891 "configure"
4891 #include "confdefs.h"
4892 /* System header to define __stub macros and hopefully few prototypes,
4893 which can conflict with char $ac_func(); below. */
4895 /* Override any gcc2 internal prototype to avoid an error. */
4896 /* We use char because int might match the return type of a gcc2
4897 builtin and then its argument prototype would still apply. */
4902 /* The GNU C library defines this for functions which it implements
4903 to always fail with ENOSYS. Some functions are actually named
4904 something starting with __ and the normal name is an alias. */
4905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4913 if { (eval echo configure:4914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4915 eval "ac_cv_func_$ac_func=yes"
4917 echo "configure: failed program was:" >&5
4918 cat conftest.$ac_ext >&5
4920 eval "ac_cv_func_$ac_func=no"
4925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4926 echo "$ac_t""yes" 1>&6
4927 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4928 cat >> confdefs.h <<EOF
4929 #define $ac_tr_func 1
4933 echo "$ac_t""no" 1>&6
4937 if test x"$ac_cv_func_connect" = x"no"; then
4940 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4941 echo "configure:4942: checking for printf in -lnsl_s" >&5
4942 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4943 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4944 echo $ac_n "(cached) $ac_c" 1>&6
4946 ac_save_LIBS="$LIBS"
4947 LIBS="-lnsl_s $LIBS"
4948 cat > conftest.$ac_ext <<EOF
4949 #line 4950 "configure"
4950 #include "confdefs.h"
4951 /* Override any gcc2 internal prototype to avoid an error. */
4952 /* We use char because int might match the return type of a gcc2
4953 builtin and then its argument prototype would still apply. */
4960 if { (eval echo configure:4961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4962 eval "ac_cv_lib_$ac_lib_var=yes"
4964 echo "configure: failed program was:" >&5
4965 cat conftest.$ac_ext >&5
4967 eval "ac_cv_lib_$ac_lib_var=no"
4970 LIBS="$ac_save_LIBS"
4973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4974 echo "$ac_t""yes" 1>&6
4975 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4976 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4977 cat >> confdefs.h <<EOF
4978 #define $ac_tr_lib 1
4981 LIBS="-lnsl_s $LIBS"
4984 echo "$ac_t""no" 1>&6
4990 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4991 echo "configure:4992: checking for printf in -lnsl" >&5
4992 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4993 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4994 echo $ac_n "(cached) $ac_c" 1>&6
4996 ac_save_LIBS="$LIBS"
4998 cat > conftest.$ac_ext <<EOF
4999 #line 5000 "configure"
5000 #include "confdefs.h"
5001 /* Override any gcc2 internal prototype to avoid an error. */
5002 /* We use char because int might match the return type of a gcc2
5003 builtin and then its argument prototype would still apply. */
5010 if { (eval echo configure:5011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5012 eval "ac_cv_lib_$ac_lib_var=yes"
5014 echo "configure: failed program was:" >&5
5015 cat conftest.$ac_ext >&5
5017 eval "ac_cv_lib_$ac_lib_var=no"
5020 LIBS="$ac_save_LIBS"
5023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5024 echo "$ac_t""yes" 1>&6
5025 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5026 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5027 cat >> confdefs.h <<EOF
5028 #define $ac_tr_lib 1
5034 echo "$ac_t""no" 1>&6
5040 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5041 echo "configure:5042: checking for connect in -lsocket" >&5
5042 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5043 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5044 echo $ac_n "(cached) $ac_c" 1>&6
5046 ac_save_LIBS="$LIBS"
5047 LIBS="-lsocket $LIBS"
5048 cat > conftest.$ac_ext <<EOF
5049 #line 5050 "configure"
5050 #include "confdefs.h"
5051 /* Override any gcc2 internal prototype to avoid an error. */
5052 /* We use char because int might match the return type of a gcc2
5053 builtin and then its argument prototype would still apply. */
5060 if { (eval echo configure:5061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5062 eval "ac_cv_lib_$ac_lib_var=yes"
5064 echo "configure: failed program was:" >&5
5065 cat conftest.$ac_ext >&5
5067 eval "ac_cv_lib_$ac_lib_var=no"
5070 LIBS="$ac_save_LIBS"
5073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5074 echo "$ac_t""yes" 1>&6
5075 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5076 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5077 cat >> confdefs.h <<EOF
5078 #define $ac_tr_lib 1
5081 LIBS="-lsocket $LIBS"
5084 echo "$ac_t""no" 1>&6
5090 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5091 echo "configure:5092: checking for connect in -linet" >&5
5092 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5093 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5094 echo $ac_n "(cached) $ac_c" 1>&6
5096 ac_save_LIBS="$LIBS"
5098 cat > conftest.$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5101 /* Override any gcc2 internal prototype to avoid an error. */
5102 /* We use char because int might match the return type of a gcc2
5103 builtin and then its argument prototype would still apply. */
5110 if { (eval echo configure:5111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5112 eval "ac_cv_lib_$ac_lib_var=yes"
5114 echo "configure: failed program was:" >&5
5115 cat conftest.$ac_ext >&5
5117 eval "ac_cv_lib_$ac_lib_var=no"
5120 LIBS="$ac_save_LIBS"
5123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5124 echo "$ac_t""yes" 1>&6
5125 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5126 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5127 cat >> confdefs.h <<EOF
5128 #define $ac_tr_lib 1
5134 echo "$ac_t""no" 1>&6
5138 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5139 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5140 # ac_cv_func_connect=yes
5141 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5142 cat >> confdefs.h <<\EOF
5143 #define HAVE_CONNECT 1
5149 ###############################################
5150 # test for where we get get_yp_default_domain() from
5151 for ac_func in yp_get_default_domain
5153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5154 echo "configure:5155: checking for $ac_func" >&5
5155 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5156 echo $ac_n "(cached) $ac_c" 1>&6
5158 cat > conftest.$ac_ext <<EOF
5159 #line 5160 "configure"
5160 #include "confdefs.h"
5161 /* System header to define __stub macros and hopefully few prototypes,
5162 which can conflict with char $ac_func(); below. */
5164 /* Override any gcc2 internal prototype to avoid an error. */
5165 /* We use char because int might match the return type of a gcc2
5166 builtin and then its argument prototype would still apply. */
5171 /* The GNU C library defines this for functions which it implements
5172 to always fail with ENOSYS. Some functions are actually named
5173 something starting with __ and the normal name is an alias. */
5174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5182 if { (eval echo configure:5183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5184 eval "ac_cv_func_$ac_func=yes"
5186 echo "configure: failed program was:" >&5
5187 cat conftest.$ac_ext >&5
5189 eval "ac_cv_func_$ac_func=no"
5194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5195 echo "$ac_t""yes" 1>&6
5196 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5197 cat >> confdefs.h <<EOF
5198 #define $ac_tr_func 1
5202 echo "$ac_t""no" 1>&6
5206 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5207 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5208 echo "configure:5209: checking for yp_get_default_domain in -lnsl" >&5
5209 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5210 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5211 echo $ac_n "(cached) $ac_c" 1>&6
5213 ac_save_LIBS="$LIBS"
5215 cat > conftest.$ac_ext <<EOF
5216 #line 5217 "configure"
5217 #include "confdefs.h"
5218 /* Override any gcc2 internal prototype to avoid an error. */
5219 /* We use char because int might match the return type of a gcc2
5220 builtin and then its argument prototype would still apply. */
5221 char yp_get_default_domain();
5224 yp_get_default_domain()
5227 if { (eval echo configure:5228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5229 eval "ac_cv_lib_$ac_lib_var=yes"
5231 echo "configure: failed program was:" >&5
5232 cat conftest.$ac_ext >&5
5234 eval "ac_cv_lib_$ac_lib_var=no"
5237 LIBS="$ac_save_LIBS"
5240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5241 echo "$ac_t""yes" 1>&6
5243 cat >> confdefs.h <<\EOF
5244 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5248 echo "$ac_t""no" 1>&6
5253 # Check if we have execl, if not we need to compile smbrun.
5254 for ac_func in execl
5256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5257 echo "configure:5258: checking for $ac_func" >&5
5258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5259 echo $ac_n "(cached) $ac_c" 1>&6
5261 cat > conftest.$ac_ext <<EOF
5262 #line 5263 "configure"
5263 #include "confdefs.h"
5264 /* System header to define __stub macros and hopefully few prototypes,
5265 which can conflict with char $ac_func(); below. */
5267 /* Override any gcc2 internal prototype to avoid an error. */
5268 /* We use char because int might match the return type of a gcc2
5269 builtin and then its argument prototype would still apply. */
5274 /* The GNU C library defines this for functions which it implements
5275 to always fail with ENOSYS. Some functions are actually named
5276 something starting with __ and the normal name is an alias. */
5277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5285 if { (eval echo configure:5286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5287 eval "ac_cv_func_$ac_func=yes"
5289 echo "configure: failed program was:" >&5
5290 cat conftest.$ac_ext >&5
5292 eval "ac_cv_func_$ac_func=no"
5297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5298 echo "$ac_t""yes" 1>&6
5299 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5300 cat >> confdefs.h <<EOF
5301 #define $ac_tr_func 1
5305 echo "$ac_t""no" 1>&6
5309 if test x"$ac_cv_func_execl" = x"no"; then
5310 RUNPROG="bin/smbrun"
5315 for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot
5317 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5318 echo "configure:5319: checking for $ac_func" >&5
5319 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5320 echo $ac_n "(cached) $ac_c" 1>&6
5322 cat > conftest.$ac_ext <<EOF
5323 #line 5324 "configure"
5324 #include "confdefs.h"
5325 /* System header to define __stub macros and hopefully few prototypes,
5326 which can conflict with char $ac_func(); below. */
5328 /* Override any gcc2 internal prototype to avoid an error. */
5329 /* We use char because int might match the return type of a gcc2
5330 builtin and then its argument prototype would still apply. */
5335 /* The GNU C library defines this for functions which it implements
5336 to always fail with ENOSYS. Some functions are actually named
5337 something starting with __ and the normal name is an alias. */
5338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5346 if { (eval echo configure:5347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5348 eval "ac_cv_func_$ac_func=yes"
5350 echo "configure: failed program was:" >&5
5351 cat conftest.$ac_ext >&5
5353 eval "ac_cv_func_$ac_func=no"
5358 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5359 echo "$ac_t""yes" 1>&6
5360 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5361 cat >> confdefs.h <<EOF
5362 #define $ac_tr_func 1
5366 echo "$ac_t""no" 1>&6
5370 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
5372 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5373 echo "configure:5374: checking for $ac_func" >&5
5374 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5375 echo $ac_n "(cached) $ac_c" 1>&6
5377 cat > conftest.$ac_ext <<EOF
5378 #line 5379 "configure"
5379 #include "confdefs.h"
5380 /* System header to define __stub macros and hopefully few prototypes,
5381 which can conflict with char $ac_func(); below. */
5383 /* Override any gcc2 internal prototype to avoid an error. */
5384 /* We use char because int might match the return type of a gcc2
5385 builtin and then its argument prototype would still apply. */
5390 /* The GNU C library defines this for functions which it implements
5391 to always fail with ENOSYS. Some functions are actually named
5392 something starting with __ and the normal name is an alias. */
5393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5401 if { (eval echo configure:5402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5403 eval "ac_cv_func_$ac_func=yes"
5405 echo "configure: failed program was:" >&5
5406 cat conftest.$ac_ext >&5
5408 eval "ac_cv_func_$ac_func=no"
5413 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5414 echo "$ac_t""yes" 1>&6
5415 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5416 cat >> confdefs.h <<EOF
5417 #define $ac_tr_func 1
5421 echo "$ac_t""no" 1>&6
5425 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5427 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5428 echo "configure:5429: checking for $ac_func" >&5
5429 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5430 echo $ac_n "(cached) $ac_c" 1>&6
5432 cat > conftest.$ac_ext <<EOF
5433 #line 5434 "configure"
5434 #include "confdefs.h"
5435 /* System header to define __stub macros and hopefully few prototypes,
5436 which can conflict with char $ac_func(); below. */
5438 /* Override any gcc2 internal prototype to avoid an error. */
5439 /* We use char because int might match the return type of a gcc2
5440 builtin and then its argument prototype would still apply. */
5445 /* The GNU C library defines this for functions which it implements
5446 to always fail with ENOSYS. Some functions are actually named
5447 something starting with __ and the normal name is an alias. */
5448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5456 if { (eval echo configure:5457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5458 eval "ac_cv_func_$ac_func=yes"
5460 echo "configure: failed program was:" >&5
5461 cat conftest.$ac_ext >&5
5463 eval "ac_cv_func_$ac_func=no"
5468 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5469 echo "$ac_t""yes" 1>&6
5470 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5471 cat >> confdefs.h <<EOF
5472 #define $ac_tr_func 1
5476 echo "$ac_t""no" 1>&6
5480 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
5482 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5483 echo "configure:5484: checking for $ac_func" >&5
5484 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5485 echo $ac_n "(cached) $ac_c" 1>&6
5487 cat > conftest.$ac_ext <<EOF
5488 #line 5489 "configure"
5489 #include "confdefs.h"
5490 /* System header to define __stub macros and hopefully few prototypes,
5491 which can conflict with char $ac_func(); below. */
5493 /* Override any gcc2 internal prototype to avoid an error. */
5494 /* We use char because int might match the return type of a gcc2
5495 builtin and then its argument prototype would still apply. */
5500 /* The GNU C library defines this for functions which it implements
5501 to always fail with ENOSYS. Some functions are actually named
5502 something starting with __ and the normal name is an alias. */
5503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5511 if { (eval echo configure:5512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5513 eval "ac_cv_func_$ac_func=yes"
5515 echo "configure: failed program was:" >&5
5516 cat conftest.$ac_ext >&5
5518 eval "ac_cv_func_$ac_func=no"
5523 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5524 echo "$ac_t""yes" 1>&6
5525 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5526 cat >> confdefs.h <<EOF
5527 #define $ac_tr_func 1
5531 echo "$ac_t""no" 1>&6
5535 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
5537 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5538 echo "configure:5539: checking for $ac_func" >&5
5539 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5540 echo $ac_n "(cached) $ac_c" 1>&6
5542 cat > conftest.$ac_ext <<EOF
5543 #line 5544 "configure"
5544 #include "confdefs.h"
5545 /* System header to define __stub macros and hopefully few prototypes,
5546 which can conflict with char $ac_func(); below. */
5548 /* Override any gcc2 internal prototype to avoid an error. */
5549 /* We use char because int might match the return type of a gcc2
5550 builtin and then its argument prototype would still apply. */
5555 /* The GNU C library defines this for functions which it implements
5556 to always fail with ENOSYS. Some functions are actually named
5557 something starting with __ and the normal name is an alias. */
5558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5566 if { (eval echo configure:5567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5568 eval "ac_cv_func_$ac_func=yes"
5570 echo "configure: failed program was:" >&5
5571 cat conftest.$ac_ext >&5
5573 eval "ac_cv_func_$ac_func=no"
5578 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5579 echo "$ac_t""yes" 1>&6
5580 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5581 cat >> confdefs.h <<EOF
5582 #define $ac_tr_func 1
5586 echo "$ac_t""no" 1>&6
5590 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5593 echo "configure:5594: checking for $ac_func" >&5
5594 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5595 echo $ac_n "(cached) $ac_c" 1>&6
5597 cat > conftest.$ac_ext <<EOF
5598 #line 5599 "configure"
5599 #include "confdefs.h"
5600 /* System header to define __stub macros and hopefully few prototypes,
5601 which can conflict with char $ac_func(); below. */
5603 /* Override any gcc2 internal prototype to avoid an error. */
5604 /* We use char because int might match the return type of a gcc2
5605 builtin and then its argument prototype would still apply. */
5610 /* The GNU C library defines this for functions which it implements
5611 to always fail with ENOSYS. Some functions are actually named
5612 something starting with __ and the normal name is an alias. */
5613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5621 if { (eval echo configure:5622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5623 eval "ac_cv_func_$ac_func=yes"
5625 echo "configure: failed program was:" >&5
5626 cat conftest.$ac_ext >&5
5628 eval "ac_cv_func_$ac_func=no"
5633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5634 echo "$ac_t""yes" 1>&6
5635 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5636 cat >> confdefs.h <<EOF
5637 #define $ac_tr_func 1
5641 echo "$ac_t""no" 1>&6
5645 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5647 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5648 echo "configure:5649: checking for $ac_func" >&5
5649 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5650 echo $ac_n "(cached) $ac_c" 1>&6
5652 cat > conftest.$ac_ext <<EOF
5653 #line 5654 "configure"
5654 #include "confdefs.h"
5655 /* System header to define __stub macros and hopefully few prototypes,
5656 which can conflict with char $ac_func(); below. */
5658 /* Override any gcc2 internal prototype to avoid an error. */
5659 /* We use char because int might match the return type of a gcc2
5660 builtin and then its argument prototype would still apply. */
5665 /* The GNU C library defines this for functions which it implements
5666 to always fail with ENOSYS. Some functions are actually named
5667 something starting with __ and the normal name is an alias. */
5668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5676 if { (eval echo configure:5677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5678 eval "ac_cv_func_$ac_func=yes"
5680 echo "configure: failed program was:" >&5
5681 cat conftest.$ac_ext >&5
5683 eval "ac_cv_func_$ac_func=no"
5688 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5689 echo "$ac_t""yes" 1>&6
5690 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5691 cat >> confdefs.h <<EOF
5692 #define $ac_tr_func 1
5696 echo "$ac_t""no" 1>&6
5700 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5703 echo "configure:5704: checking for $ac_func" >&5
5704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5705 echo $ac_n "(cached) $ac_c" 1>&6
5707 cat > conftest.$ac_ext <<EOF
5708 #line 5709 "configure"
5709 #include "confdefs.h"
5710 /* System header to define __stub macros and hopefully few prototypes,
5711 which can conflict with char $ac_func(); below. */
5713 /* Override any gcc2 internal prototype to avoid an error. */
5714 /* We use char because int might match the return type of a gcc2
5715 builtin and then its argument prototype would still apply. */
5720 /* The GNU C library defines this for functions which it implements
5721 to always fail with ENOSYS. Some functions are actually named
5722 something starting with __ and the normal name is an alias. */
5723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5731 if { (eval echo configure:5732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5733 eval "ac_cv_func_$ac_func=yes"
5735 echo "configure: failed program was:" >&5
5736 cat conftest.$ac_ext >&5
5738 eval "ac_cv_func_$ac_func=no"
5743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5744 echo "$ac_t""yes" 1>&6
5745 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5746 cat >> confdefs.h <<EOF
5747 #define $ac_tr_func 1
5751 echo "$ac_t""no" 1>&6
5755 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl
5757 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5758 echo "configure:5759: checking for $ac_func" >&5
5759 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5760 echo $ac_n "(cached) $ac_c" 1>&6
5762 cat > conftest.$ac_ext <<EOF
5763 #line 5764 "configure"
5764 #include "confdefs.h"
5765 /* System header to define __stub macros and hopefully few prototypes,
5766 which can conflict with char $ac_func(); below. */
5768 /* Override any gcc2 internal prototype to avoid an error. */
5769 /* We use char because int might match the return type of a gcc2
5770 builtin and then its argument prototype would still apply. */
5775 /* The GNU C library defines this for functions which it implements
5776 to always fail with ENOSYS. Some functions are actually named
5777 something starting with __ and the normal name is an alias. */
5778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5786 if { (eval echo configure:5787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5788 eval "ac_cv_func_$ac_func=yes"
5790 echo "configure: failed program was:" >&5
5791 cat conftest.$ac_ext >&5
5793 eval "ac_cv_func_$ac_func=no"
5798 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5799 echo "$ac_t""yes" 1>&6
5800 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5801 cat >> confdefs.h <<EOF
5802 #define $ac_tr_func 1
5806 echo "$ac_t""no" 1>&6
5811 # syscall() is needed for smbwrapper.
5812 for ac_func in syscall
5814 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5815 echo "configure:5816: checking for $ac_func" >&5
5816 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5817 echo $ac_n "(cached) $ac_c" 1>&6
5819 cat > conftest.$ac_ext <<EOF
5820 #line 5821 "configure"
5821 #include "confdefs.h"
5822 /* System header to define __stub macros and hopefully few prototypes,
5823 which can conflict with char $ac_func(); below. */
5825 /* Override any gcc2 internal prototype to avoid an error. */
5826 /* We use char because int might match the return type of a gcc2
5827 builtin and then its argument prototype would still apply. */
5832 /* The GNU C library defines this for functions which it implements
5833 to always fail with ENOSYS. Some functions are actually named
5834 something starting with __ and the normal name is an alias. */
5835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5843 if { (eval echo configure:5844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5845 eval "ac_cv_func_$ac_func=yes"
5847 echo "configure: failed program was:" >&5
5848 cat conftest.$ac_ext >&5
5850 eval "ac_cv_func_$ac_func=no"
5855 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5856 echo "$ac_t""yes" 1>&6
5857 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5858 cat >> confdefs.h <<EOF
5859 #define $ac_tr_func 1
5863 echo "$ac_t""no" 1>&6
5868 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5870 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5871 echo "configure:5872: checking for $ac_func" >&5
5872 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5873 echo $ac_n "(cached) $ac_c" 1>&6
5875 cat > conftest.$ac_ext <<EOF
5876 #line 5877 "configure"
5877 #include "confdefs.h"
5878 /* System header to define __stub macros and hopefully few prototypes,
5879 which can conflict with char $ac_func(); below. */
5881 /* Override any gcc2 internal prototype to avoid an error. */
5882 /* We use char because int might match the return type of a gcc2
5883 builtin and then its argument prototype would still apply. */
5888 /* The GNU C library defines this for functions which it implements
5889 to always fail with ENOSYS. Some functions are actually named
5890 something starting with __ and the normal name is an alias. */
5891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5899 if { (eval echo configure:5900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5901 eval "ac_cv_func_$ac_func=yes"
5903 echo "configure: failed program was:" >&5
5904 cat conftest.$ac_ext >&5
5906 eval "ac_cv_func_$ac_func=no"
5911 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5912 echo "$ac_t""yes" 1>&6
5913 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5914 cat >> confdefs.h <<EOF
5915 #define $ac_tr_func 1
5919 echo "$ac_t""no" 1>&6
5923 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5925 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5926 echo "configure:5927: checking for $ac_func" >&5
5927 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5928 echo $ac_n "(cached) $ac_c" 1>&6
5930 cat > conftest.$ac_ext <<EOF
5931 #line 5932 "configure"
5932 #include "confdefs.h"
5933 /* System header to define __stub macros and hopefully few prototypes,
5934 which can conflict with char $ac_func(); below. */
5936 /* Override any gcc2 internal prototype to avoid an error. */
5937 /* We use char because int might match the return type of a gcc2
5938 builtin and then its argument prototype would still apply. */
5943 /* The GNU C library defines this for functions which it implements
5944 to always fail with ENOSYS. Some functions are actually named
5945 something starting with __ and the normal name is an alias. */
5946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5954 if { (eval echo configure:5955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5956 eval "ac_cv_func_$ac_func=yes"
5958 echo "configure: failed program was:" >&5
5959 cat conftest.$ac_ext >&5
5961 eval "ac_cv_func_$ac_func=no"
5966 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5967 echo "$ac_t""yes" 1>&6
5968 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5969 cat >> confdefs.h <<EOF
5970 #define $ac_tr_func 1
5974 echo "$ac_t""no" 1>&6
5978 for ac_func in __getcwd _getcwd
5980 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5981 echo "configure:5982: checking for $ac_func" >&5
5982 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5983 echo $ac_n "(cached) $ac_c" 1>&6
5985 cat > conftest.$ac_ext <<EOF
5986 #line 5987 "configure"
5987 #include "confdefs.h"
5988 /* System header to define __stub macros and hopefully few prototypes,
5989 which can conflict with char $ac_func(); below. */
5991 /* Override any gcc2 internal prototype to avoid an error. */
5992 /* We use char because int might match the return type of a gcc2
5993 builtin and then its argument prototype would still apply. */
5998 /* The GNU C library defines this for functions which it implements
5999 to always fail with ENOSYS. Some functions are actually named
6000 something starting with __ and the normal name is an alias. */
6001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6009 if { (eval echo configure:6010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6011 eval "ac_cv_func_$ac_func=yes"
6013 echo "configure: failed program was:" >&5
6014 cat conftest.$ac_ext >&5
6016 eval "ac_cv_func_$ac_func=no"
6021 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6022 echo "$ac_t""yes" 1>&6
6023 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6024 cat >> confdefs.h <<EOF
6025 #define $ac_tr_func 1
6029 echo "$ac_t""no" 1>&6
6033 for ac_func in __xstat __fxstat __lxstat
6035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6036 echo "configure:6037: checking for $ac_func" >&5
6037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6038 echo $ac_n "(cached) $ac_c" 1>&6
6040 cat > conftest.$ac_ext <<EOF
6041 #line 6042 "configure"
6042 #include "confdefs.h"
6043 /* System header to define __stub macros and hopefully few prototypes,
6044 which can conflict with char $ac_func(); below. */
6046 /* Override any gcc2 internal prototype to avoid an error. */
6047 /* We use char because int might match the return type of a gcc2
6048 builtin and then its argument prototype would still apply. */
6053 /* The GNU C library defines this for functions which it implements
6054 to always fail with ENOSYS. Some functions are actually named
6055 something starting with __ and the normal name is an alias. */
6056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6064 if { (eval echo configure:6065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6066 eval "ac_cv_func_$ac_func=yes"
6068 echo "configure: failed program was:" >&5
6069 cat conftest.$ac_ext >&5
6071 eval "ac_cv_func_$ac_func=no"
6076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6077 echo "$ac_t""yes" 1>&6
6078 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6079 cat >> confdefs.h <<EOF
6080 #define $ac_tr_func 1
6084 echo "$ac_t""no" 1>&6
6088 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6090 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6091 echo "configure:6092: checking for $ac_func" >&5
6092 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6093 echo $ac_n "(cached) $ac_c" 1>&6
6095 cat > conftest.$ac_ext <<EOF
6096 #line 6097 "configure"
6097 #include "confdefs.h"
6098 /* System header to define __stub macros and hopefully few prototypes,
6099 which can conflict with char $ac_func(); below. */
6101 /* Override any gcc2 internal prototype to avoid an error. */
6102 /* We use char because int might match the return type of a gcc2
6103 builtin and then its argument prototype would still apply. */
6108 /* The GNU C library defines this for functions which it implements
6109 to always fail with ENOSYS. Some functions are actually named
6110 something starting with __ and the normal name is an alias. */
6111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6119 if { (eval echo configure:6120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6121 eval "ac_cv_func_$ac_func=yes"
6123 echo "configure: failed program was:" >&5
6124 cat conftest.$ac_ext >&5
6126 eval "ac_cv_func_$ac_func=no"
6131 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6132 echo "$ac_t""yes" 1>&6
6133 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6134 cat >> confdefs.h <<EOF
6135 #define $ac_tr_func 1
6139 echo "$ac_t""no" 1>&6
6143 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6145 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6146 echo "configure:6147: checking for $ac_func" >&5
6147 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6148 echo $ac_n "(cached) $ac_c" 1>&6
6150 cat > conftest.$ac_ext <<EOF
6151 #line 6152 "configure"
6152 #include "confdefs.h"
6153 /* System header to define __stub macros and hopefully few prototypes,
6154 which can conflict with char $ac_func(); below. */
6156 /* Override any gcc2 internal prototype to avoid an error. */
6157 /* We use char because int might match the return type of a gcc2
6158 builtin and then its argument prototype would still apply. */
6163 /* The GNU C library defines this for functions which it implements
6164 to always fail with ENOSYS. Some functions are actually named
6165 something starting with __ and the normal name is an alias. */
6166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6174 if { (eval echo configure:6175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6176 eval "ac_cv_func_$ac_func=yes"
6178 echo "configure: failed program was:" >&5
6179 cat conftest.$ac_ext >&5
6181 eval "ac_cv_func_$ac_func=no"
6186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6187 echo "$ac_t""yes" 1>&6
6188 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6189 cat >> confdefs.h <<EOF
6190 #define $ac_tr_func 1
6194 echo "$ac_t""no" 1>&6
6198 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6201 echo "configure:6202: checking for $ac_func" >&5
6202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6203 echo $ac_n "(cached) $ac_c" 1>&6
6205 cat > conftest.$ac_ext <<EOF
6206 #line 6207 "configure"
6207 #include "confdefs.h"
6208 /* System header to define __stub macros and hopefully few prototypes,
6209 which can conflict with char $ac_func(); below. */
6211 /* Override any gcc2 internal prototype to avoid an error. */
6212 /* We use char because int might match the return type of a gcc2
6213 builtin and then its argument prototype would still apply. */
6218 /* The GNU C library defines this for functions which it implements
6219 to always fail with ENOSYS. Some functions are actually named
6220 something starting with __ and the normal name is an alias. */
6221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6229 if { (eval echo configure:6230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6231 eval "ac_cv_func_$ac_func=yes"
6233 echo "configure: failed program was:" >&5
6234 cat conftest.$ac_ext >&5
6236 eval "ac_cv_func_$ac_func=no"
6241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6242 echo "$ac_t""yes" 1>&6
6243 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6244 cat >> confdefs.h <<EOF
6245 #define $ac_tr_func 1
6249 echo "$ac_t""no" 1>&6
6253 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6255 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6256 echo "configure:6257: checking for $ac_func" >&5
6257 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6258 echo $ac_n "(cached) $ac_c" 1>&6
6260 cat > conftest.$ac_ext <<EOF
6261 #line 6262 "configure"
6262 #include "confdefs.h"
6263 /* System header to define __stub macros and hopefully few prototypes,
6264 which can conflict with char $ac_func(); below. */
6266 /* Override any gcc2 internal prototype to avoid an error. */
6267 /* We use char because int might match the return type of a gcc2
6268 builtin and then its argument prototype would still apply. */
6273 /* The GNU C library defines this for functions which it implements
6274 to always fail with ENOSYS. Some functions are actually named
6275 something starting with __ and the normal name is an alias. */
6276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6284 if { (eval echo configure:6285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6286 eval "ac_cv_func_$ac_func=yes"
6288 echo "configure: failed program was:" >&5
6289 cat conftest.$ac_ext >&5
6291 eval "ac_cv_func_$ac_func=no"
6296 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6297 echo "$ac_t""yes" 1>&6
6298 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6299 cat >> confdefs.h <<EOF
6300 #define $ac_tr_func 1
6304 echo "$ac_t""no" 1>&6
6308 for ac_func in _write __write _fork __fork
6310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6311 echo "configure:6312: checking for $ac_func" >&5
6312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6313 echo $ac_n "(cached) $ac_c" 1>&6
6315 cat > conftest.$ac_ext <<EOF
6316 #line 6317 "configure"
6317 #include "confdefs.h"
6318 /* System header to define __stub macros and hopefully few prototypes,
6319 which can conflict with char $ac_func(); below. */
6321 /* Override any gcc2 internal prototype to avoid an error. */
6322 /* We use char because int might match the return type of a gcc2
6323 builtin and then its argument prototype would still apply. */
6328 /* The GNU C library defines this for functions which it implements
6329 to always fail with ENOSYS. Some functions are actually named
6330 something starting with __ and the normal name is an alias. */
6331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6339 if { (eval echo configure:6340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6341 eval "ac_cv_func_$ac_func=yes"
6343 echo "configure: failed program was:" >&5
6344 cat conftest.$ac_ext >&5
6346 eval "ac_cv_func_$ac_func=no"
6351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6352 echo "$ac_t""yes" 1>&6
6353 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6354 cat >> confdefs.h <<EOF
6355 #define $ac_tr_func 1
6359 echo "$ac_t""no" 1>&6
6363 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6365 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6366 echo "configure:6367: checking for $ac_func" >&5
6367 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6368 echo $ac_n "(cached) $ac_c" 1>&6
6370 cat > conftest.$ac_ext <<EOF
6371 #line 6372 "configure"
6372 #include "confdefs.h"
6373 /* System header to define __stub macros and hopefully few prototypes,
6374 which can conflict with char $ac_func(); below. */
6376 /* Override any gcc2 internal prototype to avoid an error. */
6377 /* We use char because int might match the return type of a gcc2
6378 builtin and then its argument prototype would still apply. */
6383 /* The GNU C library defines this for functions which it implements
6384 to always fail with ENOSYS. Some functions are actually named
6385 something starting with __ and the normal name is an alias. */
6386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6394 if { (eval echo configure:6395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6396 eval "ac_cv_func_$ac_func=yes"
6398 echo "configure: failed program was:" >&5
6399 cat conftest.$ac_ext >&5
6401 eval "ac_cv_func_$ac_func=no"
6406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6407 echo "$ac_t""yes" 1>&6
6408 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6409 cat >> confdefs.h <<EOF
6410 #define $ac_tr_func 1
6414 echo "$ac_t""no" 1>&6
6418 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6420 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6421 echo "configure:6422: checking for $ac_func" >&5
6422 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6423 echo $ac_n "(cached) $ac_c" 1>&6
6425 cat > conftest.$ac_ext <<EOF
6426 #line 6427 "configure"
6427 #include "confdefs.h"
6428 /* System header to define __stub macros and hopefully few prototypes,
6429 which can conflict with char $ac_func(); below. */
6431 /* Override any gcc2 internal prototype to avoid an error. */
6432 /* We use char because int might match the return type of a gcc2
6433 builtin and then its argument prototype would still apply. */
6438 /* The GNU C library defines this for functions which it implements
6439 to always fail with ENOSYS. Some functions are actually named
6440 something starting with __ and the normal name is an alias. */
6441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6449 if { (eval echo configure:6450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6451 eval "ac_cv_func_$ac_func=yes"
6453 echo "configure: failed program was:" >&5
6454 cat conftest.$ac_ext >&5
6456 eval "ac_cv_func_$ac_func=no"
6461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6462 echo "$ac_t""yes" 1>&6
6463 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6464 cat >> confdefs.h <<EOF
6465 #define $ac_tr_func 1
6469 echo "$ac_t""no" 1>&6
6473 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6475 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6476 echo "configure:6477: checking for $ac_func" >&5
6477 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6478 echo $ac_n "(cached) $ac_c" 1>&6
6480 cat > conftest.$ac_ext <<EOF
6481 #line 6482 "configure"
6482 #include "confdefs.h"
6483 /* System header to define __stub macros and hopefully few prototypes,
6484 which can conflict with char $ac_func(); below. */
6486 /* Override any gcc2 internal prototype to avoid an error. */
6487 /* We use char because int might match the return type of a gcc2
6488 builtin and then its argument prototype would still apply. */
6493 /* The GNU C library defines this for functions which it implements
6494 to always fail with ENOSYS. Some functions are actually named
6495 something starting with __ and the normal name is an alias. */
6496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6504 if { (eval echo configure:6505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6506 eval "ac_cv_func_$ac_func=yes"
6508 echo "configure: failed program was:" >&5
6509 cat conftest.$ac_ext >&5
6511 eval "ac_cv_func_$ac_func=no"
6516 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6517 echo "$ac_t""yes" 1>&6
6518 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6519 cat >> confdefs.h <<EOF
6520 #define $ac_tr_func 1
6524 echo "$ac_t""no" 1>&6
6528 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6531 echo "configure:6532: checking for $ac_func" >&5
6532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6533 echo $ac_n "(cached) $ac_c" 1>&6
6535 cat > conftest.$ac_ext <<EOF
6536 #line 6537 "configure"
6537 #include "confdefs.h"
6538 /* System header to define __stub macros and hopefully few prototypes,
6539 which can conflict with char $ac_func(); below. */
6541 /* Override any gcc2 internal prototype to avoid an error. */
6542 /* We use char because int might match the return type of a gcc2
6543 builtin and then its argument prototype would still apply. */
6548 /* The GNU C library defines this for functions which it implements
6549 to always fail with ENOSYS. Some functions are actually named
6550 something starting with __ and the normal name is an alias. */
6551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6559 if { (eval echo configure:6560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6561 eval "ac_cv_func_$ac_func=yes"
6563 echo "configure: failed program was:" >&5
6564 cat conftest.$ac_ext >&5
6566 eval "ac_cv_func_$ac_func=no"
6571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6572 echo "$ac_t""yes" 1>&6
6573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6574 cat >> confdefs.h <<EOF
6575 #define $ac_tr_func 1
6579 echo "$ac_t""no" 1>&6
6583 for ac_func in open64 _open64 __open64 creat64
6585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6586 echo "configure:6587: checking for $ac_func" >&5
6587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6588 echo $ac_n "(cached) $ac_c" 1>&6
6590 cat > conftest.$ac_ext <<EOF
6591 #line 6592 "configure"
6592 #include "confdefs.h"
6593 /* System header to define __stub macros and hopefully few prototypes,
6594 which can conflict with char $ac_func(); below. */
6596 /* Override any gcc2 internal prototype to avoid an error. */
6597 /* We use char because int might match the return type of a gcc2
6598 builtin and then its argument prototype would still apply. */
6603 /* The GNU C library defines this for functions which it implements
6604 to always fail with ENOSYS. Some functions are actually named
6605 something starting with __ and the normal name is an alias. */
6606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6614 if { (eval echo configure:6615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6616 eval "ac_cv_func_$ac_func=yes"
6618 echo "configure: failed program was:" >&5
6619 cat conftest.$ac_ext >&5
6621 eval "ac_cv_func_$ac_func=no"
6626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6627 echo "$ac_t""yes" 1>&6
6628 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6629 cat >> confdefs.h <<EOF
6630 #define $ac_tr_func 1
6634 echo "$ac_t""no" 1>&6
6640 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6643 if test x$ac_cv_func_stat64 = xno ; then
6644 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6645 echo "configure:6646: checking for stat64 in <sys/stat.h>" >&5
6646 cat > conftest.$ac_ext <<EOF
6647 #line 6648 "configure"
6648 #include "confdefs.h"
6650 #if defined(HAVE_UNISTD_H)
6653 #include <sys/stat.h>
6656 struct stat64 st64; exit(stat64(".",&st64));
6659 if { (eval echo configure:6660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6661 ac_cv_func_stat64=yes
6663 echo "configure: failed program was:" >&5
6664 cat conftest.$ac_ext >&5
6667 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6668 if test x$ac_cv_func_stat64 = xyes ; then
6669 cat >> confdefs.h <<\EOF
6670 #define HAVE_STAT64 1
6676 if test x$ac_cv_func_lstat64 = xno ; then
6677 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6678 echo "configure:6679: checking for lstat64 in <sys/stat.h>" >&5
6679 cat > conftest.$ac_ext <<EOF
6680 #line 6681 "configure"
6681 #include "confdefs.h"
6683 #if defined(HAVE_UNISTD_H)
6686 #include <sys/stat.h>
6689 struct stat64 st64; exit(lstat64(".",&st64));
6692 if { (eval echo configure:6693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6694 ac_cv_func_lstat64=yes
6696 echo "configure: failed program was:" >&5
6697 cat conftest.$ac_ext >&5
6700 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6701 if test x$ac_cv_func_lstat64 = xyes ; then
6702 cat >> confdefs.h <<\EOF
6703 #define HAVE_LSTAT64 1
6709 if test x$ac_cv_func_fstat64 = xno ; then
6710 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6711 echo "configure:6712: checking for fstat64 in <sys/stat.h>" >&5
6712 cat > conftest.$ac_ext <<EOF
6713 #line 6714 "configure"
6714 #include "confdefs.h"
6716 #if defined(HAVE_UNISTD_H)
6719 #include <sys/stat.h>
6722 struct stat64 st64; exit(fstat64(0,&st64));
6725 if { (eval echo configure:6726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6727 ac_cv_func_fstat64=yes
6729 echo "configure: failed program was:" >&5
6730 cat conftest.$ac_ext >&5
6733 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6734 if test x$ac_cv_func_fstat64 = xyes ; then
6735 cat >> confdefs.h <<\EOF
6736 #define HAVE_FSTAT64 1
6743 # If no strcasecmp, check for it in some known places
6744 # It is in -lresolv on ReliantUNIX and UnixWare
6745 # -lresolve *must* follow -lnsl for name resolution to work properly
6748 if test x$ac_cv_func_strcasecmp = xno ; then
6749 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6750 echo "configure:6751: checking for strcasecmp in -lresolv" >&5
6751 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6752 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6753 echo $ac_n "(cached) $ac_c" 1>&6
6755 ac_save_LIBS="$LIBS"
6756 LIBS="-lresolv $LIBS"
6757 cat > conftest.$ac_ext <<EOF
6758 #line 6759 "configure"
6759 #include "confdefs.h"
6760 /* Override any gcc2 internal prototype to avoid an error. */
6761 /* We use char because int might match the return type of a gcc2
6762 builtin and then its argument prototype would still apply. */
6769 if { (eval echo configure:6770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6771 eval "ac_cv_lib_$ac_lib_var=yes"
6773 echo "configure: failed program was:" >&5
6774 cat conftest.$ac_ext >&5
6776 eval "ac_cv_lib_$ac_lib_var=no"
6779 LIBS="$ac_save_LIBS"
6782 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6783 echo "$ac_t""yes" 1>&6
6784 LIBS="$LIBS -lresolv"
6785 cat >> confdefs.h <<\EOF
6786 #define HAVE_STRCASECMP 1
6790 echo "$ac_t""no" 1>&6
6796 # Check for the functions putprpwnam, set_auth_parameters,
6797 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6798 # Needed for OSF1 and HPUX.
6802 *-lsecurity*) for ac_func in putprpwnam
6804 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6805 echo "configure:6806: checking for $ac_func" >&5
6806 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6807 echo $ac_n "(cached) $ac_c" 1>&6
6809 cat > conftest.$ac_ext <<EOF
6810 #line 6811 "configure"
6811 #include "confdefs.h"
6812 /* System header to define __stub macros and hopefully few prototypes,
6813 which can conflict with char $ac_func(); below. */
6815 /* Override any gcc2 internal prototype to avoid an error. */
6816 /* We use char because int might match the return type of a gcc2
6817 builtin and then its argument prototype would still apply. */
6822 /* The GNU C library defines this for functions which it implements
6823 to always fail with ENOSYS. Some functions are actually named
6824 something starting with __ and the normal name is an alias. */
6825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6833 if { (eval echo configure:6834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6835 eval "ac_cv_func_$ac_func=yes"
6837 echo "configure: failed program was:" >&5
6838 cat conftest.$ac_ext >&5
6840 eval "ac_cv_func_$ac_func=no"
6845 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6846 echo "$ac_t""yes" 1>&6
6847 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6848 cat >> confdefs.h <<EOF
6849 #define $ac_tr_func 1
6853 echo "$ac_t""no" 1>&6
6857 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6858 echo "configure:6859: checking for putprpwnam in -lsecurity" >&5
6859 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6860 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6861 echo $ac_n "(cached) $ac_c" 1>&6
6863 ac_save_LIBS="$LIBS"
6864 LIBS="-lsecurity $LIBS"
6865 cat > conftest.$ac_ext <<EOF
6866 #line 6867 "configure"
6867 #include "confdefs.h"
6868 /* Override any gcc2 internal prototype to avoid an error. */
6869 /* We use char because int might match the return type of a gcc2
6870 builtin and then its argument prototype would still apply. */
6877 if { (eval echo configure:6878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6879 eval "ac_cv_lib_$ac_lib_var=yes"
6881 echo "configure: failed program was:" >&5
6882 cat conftest.$ac_ext >&5
6884 eval "ac_cv_lib_$ac_lib_var=no"
6887 LIBS="$ac_save_LIBS"
6890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6891 echo "$ac_t""yes" 1>&6
6892 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6893 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6894 cat >> confdefs.h <<EOF
6895 #define $ac_tr_lib 1
6898 LIBS="-lsecurity $LIBS"
6901 echo "$ac_t""no" 1>&6
6904 for ac_func in putprpwnam
6906 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6907 echo "configure:6908: checking for $ac_func" >&5
6908 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6909 echo $ac_n "(cached) $ac_c" 1>&6
6911 cat > conftest.$ac_ext <<EOF
6912 #line 6913 "configure"
6913 #include "confdefs.h"
6914 /* System header to define __stub macros and hopefully few prototypes,
6915 which can conflict with char $ac_func(); below. */
6917 /* Override any gcc2 internal prototype to avoid an error. */
6918 /* We use char because int might match the return type of a gcc2
6919 builtin and then its argument prototype would still apply. */
6924 /* The GNU C library defines this for functions which it implements
6925 to always fail with ENOSYS. Some functions are actually named
6926 something starting with __ and the normal name is an alias. */
6927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6935 if { (eval echo configure:6936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6937 eval "ac_cv_func_$ac_func=yes"
6939 echo "configure: failed program was:" >&5
6940 cat conftest.$ac_ext >&5
6942 eval "ac_cv_func_$ac_func=no"
6947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6948 echo "$ac_t""yes" 1>&6
6949 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6950 cat >> confdefs.h <<EOF
6951 #define $ac_tr_func 1
6955 echo "$ac_t""no" 1>&6
6963 *-lsec*) for ac_func in putprpwnam
6965 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6966 echo "configure:6967: checking for $ac_func" >&5
6967 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6968 echo $ac_n "(cached) $ac_c" 1>&6
6970 cat > conftest.$ac_ext <<EOF
6971 #line 6972 "configure"
6972 #include "confdefs.h"
6973 /* System header to define __stub macros and hopefully few prototypes,
6974 which can conflict with char $ac_func(); below. */
6976 /* Override any gcc2 internal prototype to avoid an error. */
6977 /* We use char because int might match the return type of a gcc2
6978 builtin and then its argument prototype would still apply. */
6983 /* The GNU C library defines this for functions which it implements
6984 to always fail with ENOSYS. Some functions are actually named
6985 something starting with __ and the normal name is an alias. */
6986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6994 if { (eval echo configure:6995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6996 eval "ac_cv_func_$ac_func=yes"
6998 echo "configure: failed program was:" >&5
6999 cat conftest.$ac_ext >&5
7001 eval "ac_cv_func_$ac_func=no"
7006 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7007 echo "$ac_t""yes" 1>&6
7008 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7009 cat >> confdefs.h <<EOF
7010 #define $ac_tr_func 1
7014 echo "$ac_t""no" 1>&6
7018 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7019 echo "configure:7020: checking for putprpwnam in -lsec" >&5
7020 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7021 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7022 echo $ac_n "(cached) $ac_c" 1>&6
7024 ac_save_LIBS="$LIBS"
7026 cat > conftest.$ac_ext <<EOF
7027 #line 7028 "configure"
7028 #include "confdefs.h"
7029 /* Override any gcc2 internal prototype to avoid an error. */
7030 /* We use char because int might match the return type of a gcc2
7031 builtin and then its argument prototype would still apply. */
7038 if { (eval echo configure:7039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7040 eval "ac_cv_lib_$ac_lib_var=yes"
7042 echo "configure: failed program was:" >&5
7043 cat conftest.$ac_ext >&5
7045 eval "ac_cv_lib_$ac_lib_var=no"
7048 LIBS="$ac_save_LIBS"
7051 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7052 echo "$ac_t""yes" 1>&6
7053 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7054 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7055 cat >> confdefs.h <<EOF
7056 #define $ac_tr_lib 1
7062 echo "$ac_t""no" 1>&6
7065 for ac_func in putprpwnam
7067 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7068 echo "configure:7069: checking for $ac_func" >&5
7069 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7070 echo $ac_n "(cached) $ac_c" 1>&6
7072 cat > conftest.$ac_ext <<EOF
7073 #line 7074 "configure"
7074 #include "confdefs.h"
7075 /* System header to define __stub macros and hopefully few prototypes,
7076 which can conflict with char $ac_func(); below. */
7078 /* Override any gcc2 internal prototype to avoid an error. */
7079 /* We use char because int might match the return type of a gcc2
7080 builtin and then its argument prototype would still apply. */
7085 /* The GNU C library defines this for functions which it implements
7086 to always fail with ENOSYS. Some functions are actually named
7087 something starting with __ and the normal name is an alias. */
7088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7096 if { (eval echo configure:7097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7098 eval "ac_cv_func_$ac_func=yes"
7100 echo "configure: failed program was:" >&5
7101 cat conftest.$ac_ext >&5
7103 eval "ac_cv_func_$ac_func=no"
7108 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7109 echo "$ac_t""yes" 1>&6
7110 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7111 cat >> confdefs.h <<EOF
7112 #define $ac_tr_func 1
7116 echo "$ac_t""no" 1>&6
7125 *-lsecurity*) for ac_func in set_auth_parameters
7127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7128 echo "configure:7129: checking for $ac_func" >&5
7129 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7130 echo $ac_n "(cached) $ac_c" 1>&6
7132 cat > conftest.$ac_ext <<EOF
7133 #line 7134 "configure"
7134 #include "confdefs.h"
7135 /* System header to define __stub macros and hopefully few prototypes,
7136 which can conflict with char $ac_func(); below. */
7138 /* Override any gcc2 internal prototype to avoid an error. */
7139 /* We use char because int might match the return type of a gcc2
7140 builtin and then its argument prototype would still apply. */
7145 /* The GNU C library defines this for functions which it implements
7146 to always fail with ENOSYS. Some functions are actually named
7147 something starting with __ and the normal name is an alias. */
7148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7156 if { (eval echo configure:7157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7158 eval "ac_cv_func_$ac_func=yes"
7160 echo "configure: failed program was:" >&5
7161 cat conftest.$ac_ext >&5
7163 eval "ac_cv_func_$ac_func=no"
7168 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7169 echo "$ac_t""yes" 1>&6
7170 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7171 cat >> confdefs.h <<EOF
7172 #define $ac_tr_func 1
7176 echo "$ac_t""no" 1>&6
7180 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7181 echo "configure:7182: checking for set_auth_parameters in -lsecurity" >&5
7182 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7184 echo $ac_n "(cached) $ac_c" 1>&6
7186 ac_save_LIBS="$LIBS"
7187 LIBS="-lsecurity $LIBS"
7188 cat > conftest.$ac_ext <<EOF
7189 #line 7190 "configure"
7190 #include "confdefs.h"
7191 /* Override any gcc2 internal prototype to avoid an error. */
7192 /* We use char because int might match the return type of a gcc2
7193 builtin and then its argument prototype would still apply. */
7194 char set_auth_parameters();
7197 set_auth_parameters()
7200 if { (eval echo configure:7201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7202 eval "ac_cv_lib_$ac_lib_var=yes"
7204 echo "configure: failed program was:" >&5
7205 cat conftest.$ac_ext >&5
7207 eval "ac_cv_lib_$ac_lib_var=no"
7210 LIBS="$ac_save_LIBS"
7213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7214 echo "$ac_t""yes" 1>&6
7215 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7216 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7217 cat >> confdefs.h <<EOF
7218 #define $ac_tr_lib 1
7221 LIBS="-lsecurity $LIBS"
7224 echo "$ac_t""no" 1>&6
7227 for ac_func in set_auth_parameters
7229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7230 echo "configure:7231: checking for $ac_func" >&5
7231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7232 echo $ac_n "(cached) $ac_c" 1>&6
7234 cat > conftest.$ac_ext <<EOF
7235 #line 7236 "configure"
7236 #include "confdefs.h"
7237 /* System header to define __stub macros and hopefully few prototypes,
7238 which can conflict with char $ac_func(); below. */
7240 /* Override any gcc2 internal prototype to avoid an error. */
7241 /* We use char because int might match the return type of a gcc2
7242 builtin and then its argument prototype would still apply. */
7247 /* The GNU C library defines this for functions which it implements
7248 to always fail with ENOSYS. Some functions are actually named
7249 something starting with __ and the normal name is an alias. */
7250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7258 if { (eval echo configure:7259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7260 eval "ac_cv_func_$ac_func=yes"
7262 echo "configure: failed program was:" >&5
7263 cat conftest.$ac_ext >&5
7265 eval "ac_cv_func_$ac_func=no"
7270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7271 echo "$ac_t""yes" 1>&6
7272 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7273 cat >> confdefs.h <<EOF
7274 #define $ac_tr_func 1
7278 echo "$ac_t""no" 1>&6
7286 *-lsec*) for ac_func in set_auth_parameters
7288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7289 echo "configure:7290: checking for $ac_func" >&5
7290 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7291 echo $ac_n "(cached) $ac_c" 1>&6
7293 cat > conftest.$ac_ext <<EOF
7294 #line 7295 "configure"
7295 #include "confdefs.h"
7296 /* System header to define __stub macros and hopefully few prototypes,
7297 which can conflict with char $ac_func(); below. */
7299 /* Override any gcc2 internal prototype to avoid an error. */
7300 /* We use char because int might match the return type of a gcc2
7301 builtin and then its argument prototype would still apply. */
7306 /* The GNU C library defines this for functions which it implements
7307 to always fail with ENOSYS. Some functions are actually named
7308 something starting with __ and the normal name is an alias. */
7309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7317 if { (eval echo configure:7318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7319 eval "ac_cv_func_$ac_func=yes"
7321 echo "configure: failed program was:" >&5
7322 cat conftest.$ac_ext >&5
7324 eval "ac_cv_func_$ac_func=no"
7329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7330 echo "$ac_t""yes" 1>&6
7331 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7332 cat >> confdefs.h <<EOF
7333 #define $ac_tr_func 1
7337 echo "$ac_t""no" 1>&6
7341 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7342 echo "configure:7343: checking for set_auth_parameters in -lsec" >&5
7343 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7344 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7345 echo $ac_n "(cached) $ac_c" 1>&6
7347 ac_save_LIBS="$LIBS"
7349 cat > conftest.$ac_ext <<EOF
7350 #line 7351 "configure"
7351 #include "confdefs.h"
7352 /* Override any gcc2 internal prototype to avoid an error. */
7353 /* We use char because int might match the return type of a gcc2
7354 builtin and then its argument prototype would still apply. */
7355 char set_auth_parameters();
7358 set_auth_parameters()
7361 if { (eval echo configure:7362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7363 eval "ac_cv_lib_$ac_lib_var=yes"
7365 echo "configure: failed program was:" >&5
7366 cat conftest.$ac_ext >&5
7368 eval "ac_cv_lib_$ac_lib_var=no"
7371 LIBS="$ac_save_LIBS"
7374 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7375 echo "$ac_t""yes" 1>&6
7376 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7377 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7378 cat >> confdefs.h <<EOF
7379 #define $ac_tr_lib 1
7385 echo "$ac_t""no" 1>&6
7388 for ac_func in set_auth_parameters
7390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7391 echo "configure:7392: checking for $ac_func" >&5
7392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7393 echo $ac_n "(cached) $ac_c" 1>&6
7395 cat > conftest.$ac_ext <<EOF
7396 #line 7397 "configure"
7397 #include "confdefs.h"
7398 /* System header to define __stub macros and hopefully few prototypes,
7399 which can conflict with char $ac_func(); below. */
7401 /* Override any gcc2 internal prototype to avoid an error. */
7402 /* We use char because int might match the return type of a gcc2
7403 builtin and then its argument prototype would still apply. */
7408 /* The GNU C library defines this for functions which it implements
7409 to always fail with ENOSYS. Some functions are actually named
7410 something starting with __ and the normal name is an alias. */
7411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7419 if { (eval echo configure:7420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7421 eval "ac_cv_func_$ac_func=yes"
7423 echo "configure: failed program was:" >&5
7424 cat conftest.$ac_ext >&5
7426 eval "ac_cv_func_$ac_func=no"
7431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7432 echo "$ac_t""yes" 1>&6
7433 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7434 cat >> confdefs.h <<EOF
7435 #define $ac_tr_func 1
7439 echo "$ac_t""no" 1>&6
7447 # UnixWare 7.x has its getspnam in -lgen
7449 *-lgen*) for ac_func in getspnam
7451 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7452 echo "configure:7453: checking for $ac_func" >&5
7453 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7454 echo $ac_n "(cached) $ac_c" 1>&6
7456 cat > conftest.$ac_ext <<EOF
7457 #line 7458 "configure"
7458 #include "confdefs.h"
7459 /* System header to define __stub macros and hopefully few prototypes,
7460 which can conflict with char $ac_func(); below. */
7462 /* Override any gcc2 internal prototype to avoid an error. */
7463 /* We use char because int might match the return type of a gcc2
7464 builtin and then its argument prototype would still apply. */
7469 /* The GNU C library defines this for functions which it implements
7470 to always fail with ENOSYS. Some functions are actually named
7471 something starting with __ and the normal name is an alias. */
7472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7480 if { (eval echo configure:7481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7482 eval "ac_cv_func_$ac_func=yes"
7484 echo "configure: failed program was:" >&5
7485 cat conftest.$ac_ext >&5
7487 eval "ac_cv_func_$ac_func=no"
7492 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7493 echo "$ac_t""yes" 1>&6
7494 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7495 cat >> confdefs.h <<EOF
7496 #define $ac_tr_func 1
7500 echo "$ac_t""no" 1>&6
7504 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7505 echo "configure:7506: checking for getspnam in -lgen" >&5
7506 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7507 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7508 echo $ac_n "(cached) $ac_c" 1>&6
7510 ac_save_LIBS="$LIBS"
7512 cat > conftest.$ac_ext <<EOF
7513 #line 7514 "configure"
7514 #include "confdefs.h"
7515 /* Override any gcc2 internal prototype to avoid an error. */
7516 /* We use char because int might match the return type of a gcc2
7517 builtin and then its argument prototype would still apply. */
7524 if { (eval echo configure:7525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7526 eval "ac_cv_lib_$ac_lib_var=yes"
7528 echo "configure: failed program was:" >&5
7529 cat conftest.$ac_ext >&5
7531 eval "ac_cv_lib_$ac_lib_var=no"
7534 LIBS="$ac_save_LIBS"
7537 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7538 echo "$ac_t""yes" 1>&6
7539 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7540 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7541 cat >> confdefs.h <<EOF
7542 #define $ac_tr_lib 1
7548 echo "$ac_t""no" 1>&6
7551 for ac_func in getspnam
7553 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7554 echo "configure:7555: checking for $ac_func" >&5
7555 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7556 echo $ac_n "(cached) $ac_c" 1>&6
7558 cat > conftest.$ac_ext <<EOF
7559 #line 7560 "configure"
7560 #include "confdefs.h"
7561 /* System header to define __stub macros and hopefully few prototypes,
7562 which can conflict with char $ac_func(); below. */
7564 /* Override any gcc2 internal prototype to avoid an error. */
7565 /* We use char because int might match the return type of a gcc2
7566 builtin and then its argument prototype would still apply. */
7571 /* The GNU C library defines this for functions which it implements
7572 to always fail with ENOSYS. Some functions are actually named
7573 something starting with __ and the normal name is an alias. */
7574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7582 if { (eval echo configure:7583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7584 eval "ac_cv_func_$ac_func=yes"
7586 echo "configure: failed program was:" >&5
7587 cat conftest.$ac_ext >&5
7589 eval "ac_cv_func_$ac_func=no"
7594 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7595 echo "$ac_t""yes" 1>&6
7596 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7597 cat >> confdefs.h <<EOF
7598 #define $ac_tr_func 1
7602 echo "$ac_t""no" 1>&6
7611 *-lsecurity*) for ac_func in getspnam
7613 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7614 echo "configure:7615: checking for $ac_func" >&5
7615 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7616 echo $ac_n "(cached) $ac_c" 1>&6
7618 cat > conftest.$ac_ext <<EOF
7619 #line 7620 "configure"
7620 #include "confdefs.h"
7621 /* System header to define __stub macros and hopefully few prototypes,
7622 which can conflict with char $ac_func(); below. */
7624 /* Override any gcc2 internal prototype to avoid an error. */
7625 /* We use char because int might match the return type of a gcc2
7626 builtin and then its argument prototype would still apply. */
7631 /* The GNU C library defines this for functions which it implements
7632 to always fail with ENOSYS. Some functions are actually named
7633 something starting with __ and the normal name is an alias. */
7634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7642 if { (eval echo configure:7643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7644 eval "ac_cv_func_$ac_func=yes"
7646 echo "configure: failed program was:" >&5
7647 cat conftest.$ac_ext >&5
7649 eval "ac_cv_func_$ac_func=no"
7654 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7655 echo "$ac_t""yes" 1>&6
7656 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7657 cat >> confdefs.h <<EOF
7658 #define $ac_tr_func 1
7662 echo "$ac_t""no" 1>&6
7666 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7667 echo "configure:7668: checking for getspnam in -lsecurity" >&5
7668 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7669 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7670 echo $ac_n "(cached) $ac_c" 1>&6
7672 ac_save_LIBS="$LIBS"
7673 LIBS="-lsecurity $LIBS"
7674 cat > conftest.$ac_ext <<EOF
7675 #line 7676 "configure"
7676 #include "confdefs.h"
7677 /* Override any gcc2 internal prototype to avoid an error. */
7678 /* We use char because int might match the return type of a gcc2
7679 builtin and then its argument prototype would still apply. */
7686 if { (eval echo configure:7687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7688 eval "ac_cv_lib_$ac_lib_var=yes"
7690 echo "configure: failed program was:" >&5
7691 cat conftest.$ac_ext >&5
7693 eval "ac_cv_lib_$ac_lib_var=no"
7696 LIBS="$ac_save_LIBS"
7699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7700 echo "$ac_t""yes" 1>&6
7701 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7702 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7703 cat >> confdefs.h <<EOF
7704 #define $ac_tr_lib 1
7707 LIBS="-lsecurity $LIBS"
7710 echo "$ac_t""no" 1>&6
7713 for ac_func in getspnam
7715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7716 echo "configure:7717: checking for $ac_func" >&5
7717 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7718 echo $ac_n "(cached) $ac_c" 1>&6
7720 cat > conftest.$ac_ext <<EOF
7721 #line 7722 "configure"
7722 #include "confdefs.h"
7723 /* System header to define __stub macros and hopefully few prototypes,
7724 which can conflict with char $ac_func(); below. */
7726 /* Override any gcc2 internal prototype to avoid an error. */
7727 /* We use char because int might match the return type of a gcc2
7728 builtin and then its argument prototype would still apply. */
7733 /* The GNU C library defines this for functions which it implements
7734 to always fail with ENOSYS. Some functions are actually named
7735 something starting with __ and the normal name is an alias. */
7736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7744 if { (eval echo configure:7745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7746 eval "ac_cv_func_$ac_func=yes"
7748 echo "configure: failed program was:" >&5
7749 cat conftest.$ac_ext >&5
7751 eval "ac_cv_func_$ac_func=no"
7756 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7757 echo "$ac_t""yes" 1>&6
7758 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7759 cat >> confdefs.h <<EOF
7760 #define $ac_tr_func 1
7764 echo "$ac_t""no" 1>&6
7772 *-lsec*) for ac_func in getspnam
7774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7775 echo "configure:7776: checking for $ac_func" >&5
7776 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7777 echo $ac_n "(cached) $ac_c" 1>&6
7779 cat > conftest.$ac_ext <<EOF
7780 #line 7781 "configure"
7781 #include "confdefs.h"
7782 /* System header to define __stub macros and hopefully few prototypes,
7783 which can conflict with char $ac_func(); below. */
7785 /* Override any gcc2 internal prototype to avoid an error. */
7786 /* We use char because int might match the return type of a gcc2
7787 builtin and then its argument prototype would still apply. */
7792 /* The GNU C library defines this for functions which it implements
7793 to always fail with ENOSYS. Some functions are actually named
7794 something starting with __ and the normal name is an alias. */
7795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7803 if { (eval echo configure:7804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7805 eval "ac_cv_func_$ac_func=yes"
7807 echo "configure: failed program was:" >&5
7808 cat conftest.$ac_ext >&5
7810 eval "ac_cv_func_$ac_func=no"
7815 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7816 echo "$ac_t""yes" 1>&6
7817 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7818 cat >> confdefs.h <<EOF
7819 #define $ac_tr_func 1
7823 echo "$ac_t""no" 1>&6
7827 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7828 echo "configure:7829: checking for getspnam in -lsec" >&5
7829 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7830 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7831 echo $ac_n "(cached) $ac_c" 1>&6
7833 ac_save_LIBS="$LIBS"
7835 cat > conftest.$ac_ext <<EOF
7836 #line 7837 "configure"
7837 #include "confdefs.h"
7838 /* Override any gcc2 internal prototype to avoid an error. */
7839 /* We use char because int might match the return type of a gcc2
7840 builtin and then its argument prototype would still apply. */
7847 if { (eval echo configure:7848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7849 eval "ac_cv_lib_$ac_lib_var=yes"
7851 echo "configure: failed program was:" >&5
7852 cat conftest.$ac_ext >&5
7854 eval "ac_cv_lib_$ac_lib_var=no"
7857 LIBS="$ac_save_LIBS"
7860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7861 echo "$ac_t""yes" 1>&6
7862 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7863 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7864 cat >> confdefs.h <<EOF
7865 #define $ac_tr_lib 1
7871 echo "$ac_t""no" 1>&6
7874 for ac_func in getspnam
7876 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7877 echo "configure:7878: checking for $ac_func" >&5
7878 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7879 echo $ac_n "(cached) $ac_c" 1>&6
7881 cat > conftest.$ac_ext <<EOF
7882 #line 7883 "configure"
7883 #include "confdefs.h"
7884 /* System header to define __stub macros and hopefully few prototypes,
7885 which can conflict with char $ac_func(); below. */
7887 /* Override any gcc2 internal prototype to avoid an error. */
7888 /* We use char because int might match the return type of a gcc2
7889 builtin and then its argument prototype would still apply. */
7894 /* The GNU C library defines this for functions which it implements
7895 to always fail with ENOSYS. Some functions are actually named
7896 something starting with __ and the normal name is an alias. */
7897 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7905 if { (eval echo configure:7906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7907 eval "ac_cv_func_$ac_func=yes"
7909 echo "configure: failed program was:" >&5
7910 cat conftest.$ac_ext >&5
7912 eval "ac_cv_func_$ac_func=no"
7917 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7918 echo "$ac_t""yes" 1>&6
7919 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7920 cat >> confdefs.h <<EOF
7921 #define $ac_tr_func 1
7925 echo "$ac_t""no" 1>&6
7934 *-lsecurity*) for ac_func in bigcrypt
7936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7937 echo "configure:7938: checking for $ac_func" >&5
7938 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7939 echo $ac_n "(cached) $ac_c" 1>&6
7941 cat > conftest.$ac_ext <<EOF
7942 #line 7943 "configure"
7943 #include "confdefs.h"
7944 /* System header to define __stub macros and hopefully few prototypes,
7945 which can conflict with char $ac_func(); below. */
7947 /* Override any gcc2 internal prototype to avoid an error. */
7948 /* We use char because int might match the return type of a gcc2
7949 builtin and then its argument prototype would still apply. */
7954 /* The GNU C library defines this for functions which it implements
7955 to always fail with ENOSYS. Some functions are actually named
7956 something starting with __ and the normal name is an alias. */
7957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7965 if { (eval echo configure:7966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7967 eval "ac_cv_func_$ac_func=yes"
7969 echo "configure: failed program was:" >&5
7970 cat conftest.$ac_ext >&5
7972 eval "ac_cv_func_$ac_func=no"
7977 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7978 echo "$ac_t""yes" 1>&6
7979 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7980 cat >> confdefs.h <<EOF
7981 #define $ac_tr_func 1
7985 echo "$ac_t""no" 1>&6
7989 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7990 echo "configure:7991: checking for bigcrypt in -lsecurity" >&5
7991 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7992 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7993 echo $ac_n "(cached) $ac_c" 1>&6
7995 ac_save_LIBS="$LIBS"
7996 LIBS="-lsecurity $LIBS"
7997 cat > conftest.$ac_ext <<EOF
7998 #line 7999 "configure"
7999 #include "confdefs.h"
8000 /* Override any gcc2 internal prototype to avoid an error. */
8001 /* We use char because int might match the return type of a gcc2
8002 builtin and then its argument prototype would still apply. */
8009 if { (eval echo configure:8010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8011 eval "ac_cv_lib_$ac_lib_var=yes"
8013 echo "configure: failed program was:" >&5
8014 cat conftest.$ac_ext >&5
8016 eval "ac_cv_lib_$ac_lib_var=no"
8019 LIBS="$ac_save_LIBS"
8022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8023 echo "$ac_t""yes" 1>&6
8024 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8025 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8026 cat >> confdefs.h <<EOF
8027 #define $ac_tr_lib 1
8030 LIBS="-lsecurity $LIBS"
8033 echo "$ac_t""no" 1>&6
8036 for ac_func in bigcrypt
8038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8039 echo "configure:8040: checking for $ac_func" >&5
8040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8041 echo $ac_n "(cached) $ac_c" 1>&6
8043 cat > conftest.$ac_ext <<EOF
8044 #line 8045 "configure"
8045 #include "confdefs.h"
8046 /* System header to define __stub macros and hopefully few prototypes,
8047 which can conflict with char $ac_func(); below. */
8049 /* Override any gcc2 internal prototype to avoid an error. */
8050 /* We use char because int might match the return type of a gcc2
8051 builtin and then its argument prototype would still apply. */
8056 /* The GNU C library defines this for functions which it implements
8057 to always fail with ENOSYS. Some functions are actually named
8058 something starting with __ and the normal name is an alias. */
8059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8067 if { (eval echo configure:8068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8069 eval "ac_cv_func_$ac_func=yes"
8071 echo "configure: failed program was:" >&5
8072 cat conftest.$ac_ext >&5
8074 eval "ac_cv_func_$ac_func=no"
8079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8080 echo "$ac_t""yes" 1>&6
8081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8082 cat >> confdefs.h <<EOF
8083 #define $ac_tr_func 1
8087 echo "$ac_t""no" 1>&6
8095 *-lsec*) for ac_func in bigcrypt
8097 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8098 echo "configure:8099: checking for $ac_func" >&5
8099 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8100 echo $ac_n "(cached) $ac_c" 1>&6
8102 cat > conftest.$ac_ext <<EOF
8103 #line 8104 "configure"
8104 #include "confdefs.h"
8105 /* System header to define __stub macros and hopefully few prototypes,
8106 which can conflict with char $ac_func(); below. */
8108 /* Override any gcc2 internal prototype to avoid an error. */
8109 /* We use char because int might match the return type of a gcc2
8110 builtin and then its argument prototype would still apply. */
8115 /* The GNU C library defines this for functions which it implements
8116 to always fail with ENOSYS. Some functions are actually named
8117 something starting with __ and the normal name is an alias. */
8118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8126 if { (eval echo configure:8127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8128 eval "ac_cv_func_$ac_func=yes"
8130 echo "configure: failed program was:" >&5
8131 cat conftest.$ac_ext >&5
8133 eval "ac_cv_func_$ac_func=no"
8138 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8139 echo "$ac_t""yes" 1>&6
8140 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8141 cat >> confdefs.h <<EOF
8142 #define $ac_tr_func 1
8146 echo "$ac_t""no" 1>&6
8150 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8151 echo "configure:8152: checking for bigcrypt in -lsec" >&5
8152 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8153 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8154 echo $ac_n "(cached) $ac_c" 1>&6
8156 ac_save_LIBS="$LIBS"
8158 cat > conftest.$ac_ext <<EOF
8159 #line 8160 "configure"
8160 #include "confdefs.h"
8161 /* Override any gcc2 internal prototype to avoid an error. */
8162 /* We use char because int might match the return type of a gcc2
8163 builtin and then its argument prototype would still apply. */
8170 if { (eval echo configure:8171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8172 eval "ac_cv_lib_$ac_lib_var=yes"
8174 echo "configure: failed program was:" >&5
8175 cat conftest.$ac_ext >&5
8177 eval "ac_cv_lib_$ac_lib_var=no"
8180 LIBS="$ac_save_LIBS"
8183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8184 echo "$ac_t""yes" 1>&6
8185 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8186 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8187 cat >> confdefs.h <<EOF
8188 #define $ac_tr_lib 1
8194 echo "$ac_t""no" 1>&6
8197 for ac_func in bigcrypt
8199 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8200 echo "configure:8201: checking for $ac_func" >&5
8201 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8202 echo $ac_n "(cached) $ac_c" 1>&6
8204 cat > conftest.$ac_ext <<EOF
8205 #line 8206 "configure"
8206 #include "confdefs.h"
8207 /* System header to define __stub macros and hopefully few prototypes,
8208 which can conflict with char $ac_func(); below. */
8210 /* Override any gcc2 internal prototype to avoid an error. */
8211 /* We use char because int might match the return type of a gcc2
8212 builtin and then its argument prototype would still apply. */
8217 /* The GNU C library defines this for functions which it implements
8218 to always fail with ENOSYS. Some functions are actually named
8219 something starting with __ and the normal name is an alias. */
8220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8228 if { (eval echo configure:8229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8230 eval "ac_cv_func_$ac_func=yes"
8232 echo "configure: failed program was:" >&5
8233 cat conftest.$ac_ext >&5
8235 eval "ac_cv_func_$ac_func=no"
8240 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8241 echo "$ac_t""yes" 1>&6
8242 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8243 cat >> confdefs.h <<EOF
8244 #define $ac_tr_func 1
8248 echo "$ac_t""no" 1>&6
8257 *-lsecurity*) for ac_func in getprpwnam
8259 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8260 echo "configure:8261: checking for $ac_func" >&5
8261 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8262 echo $ac_n "(cached) $ac_c" 1>&6
8264 cat > conftest.$ac_ext <<EOF
8265 #line 8266 "configure"
8266 #include "confdefs.h"
8267 /* System header to define __stub macros and hopefully few prototypes,
8268 which can conflict with char $ac_func(); below. */
8270 /* Override any gcc2 internal prototype to avoid an error. */
8271 /* We use char because int might match the return type of a gcc2
8272 builtin and then its argument prototype would still apply. */
8277 /* The GNU C library defines this for functions which it implements
8278 to always fail with ENOSYS. Some functions are actually named
8279 something starting with __ and the normal name is an alias. */
8280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8288 if { (eval echo configure:8289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8290 eval "ac_cv_func_$ac_func=yes"
8292 echo "configure: failed program was:" >&5
8293 cat conftest.$ac_ext >&5
8295 eval "ac_cv_func_$ac_func=no"
8300 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8301 echo "$ac_t""yes" 1>&6
8302 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8303 cat >> confdefs.h <<EOF
8304 #define $ac_tr_func 1
8308 echo "$ac_t""no" 1>&6
8312 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8313 echo "configure:8314: checking for getprpwnam in -lsecurity" >&5
8314 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8315 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8316 echo $ac_n "(cached) $ac_c" 1>&6
8318 ac_save_LIBS="$LIBS"
8319 LIBS="-lsecurity $LIBS"
8320 cat > conftest.$ac_ext <<EOF
8321 #line 8322 "configure"
8322 #include "confdefs.h"
8323 /* Override any gcc2 internal prototype to avoid an error. */
8324 /* We use char because int might match the return type of a gcc2
8325 builtin and then its argument prototype would still apply. */
8332 if { (eval echo configure:8333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8334 eval "ac_cv_lib_$ac_lib_var=yes"
8336 echo "configure: failed program was:" >&5
8337 cat conftest.$ac_ext >&5
8339 eval "ac_cv_lib_$ac_lib_var=no"
8342 LIBS="$ac_save_LIBS"
8345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8346 echo "$ac_t""yes" 1>&6
8347 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8348 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8349 cat >> confdefs.h <<EOF
8350 #define $ac_tr_lib 1
8353 LIBS="-lsecurity $LIBS"
8356 echo "$ac_t""no" 1>&6
8359 for ac_func in getprpwnam
8361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8362 echo "configure:8363: checking for $ac_func" >&5
8363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8364 echo $ac_n "(cached) $ac_c" 1>&6
8366 cat > conftest.$ac_ext <<EOF
8367 #line 8368 "configure"
8368 #include "confdefs.h"
8369 /* System header to define __stub macros and hopefully few prototypes,
8370 which can conflict with char $ac_func(); below. */
8372 /* Override any gcc2 internal prototype to avoid an error. */
8373 /* We use char because int might match the return type of a gcc2
8374 builtin and then its argument prototype would still apply. */
8379 /* The GNU C library defines this for functions which it implements
8380 to always fail with ENOSYS. Some functions are actually named
8381 something starting with __ and the normal name is an alias. */
8382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8390 if { (eval echo configure:8391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8392 eval "ac_cv_func_$ac_func=yes"
8394 echo "configure: failed program was:" >&5
8395 cat conftest.$ac_ext >&5
8397 eval "ac_cv_func_$ac_func=no"
8402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8403 echo "$ac_t""yes" 1>&6
8404 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8405 cat >> confdefs.h <<EOF
8406 #define $ac_tr_func 1
8410 echo "$ac_t""no" 1>&6
8418 *-lsec*) for ac_func in getprpwnam
8420 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8421 echo "configure:8422: checking for $ac_func" >&5
8422 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8423 echo $ac_n "(cached) $ac_c" 1>&6
8425 cat > conftest.$ac_ext <<EOF
8426 #line 8427 "configure"
8427 #include "confdefs.h"
8428 /* System header to define __stub macros and hopefully few prototypes,
8429 which can conflict with char $ac_func(); below. */
8431 /* Override any gcc2 internal prototype to avoid an error. */
8432 /* We use char because int might match the return type of a gcc2
8433 builtin and then its argument prototype would still apply. */
8438 /* The GNU C library defines this for functions which it implements
8439 to always fail with ENOSYS. Some functions are actually named
8440 something starting with __ and the normal name is an alias. */
8441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8449 if { (eval echo configure:8450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8451 eval "ac_cv_func_$ac_func=yes"
8453 echo "configure: failed program was:" >&5
8454 cat conftest.$ac_ext >&5
8456 eval "ac_cv_func_$ac_func=no"
8461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8462 echo "$ac_t""yes" 1>&6
8463 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8464 cat >> confdefs.h <<EOF
8465 #define $ac_tr_func 1
8469 echo "$ac_t""no" 1>&6
8473 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8474 echo "configure:8475: checking for getprpwnam in -lsec" >&5
8475 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8476 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8477 echo $ac_n "(cached) $ac_c" 1>&6
8479 ac_save_LIBS="$LIBS"
8481 cat > conftest.$ac_ext <<EOF
8482 #line 8483 "configure"
8483 #include "confdefs.h"
8484 /* Override any gcc2 internal prototype to avoid an error. */
8485 /* We use char because int might match the return type of a gcc2
8486 builtin and then its argument prototype would still apply. */
8493 if { (eval echo configure:8494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8495 eval "ac_cv_lib_$ac_lib_var=yes"
8497 echo "configure: failed program was:" >&5
8498 cat conftest.$ac_ext >&5
8500 eval "ac_cv_lib_$ac_lib_var=no"
8503 LIBS="$ac_save_LIBS"
8506 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8507 echo "$ac_t""yes" 1>&6
8508 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8509 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8510 cat >> confdefs.h <<EOF
8511 #define $ac_tr_lib 1
8517 echo "$ac_t""no" 1>&6
8520 for ac_func in getprpwnam
8522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8523 echo "configure:8524: checking for $ac_func" >&5
8524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8525 echo $ac_n "(cached) $ac_c" 1>&6
8527 cat > conftest.$ac_ext <<EOF
8528 #line 8529 "configure"
8529 #include "confdefs.h"
8530 /* System header to define __stub macros and hopefully few prototypes,
8531 which can conflict with char $ac_func(); below. */
8533 /* Override any gcc2 internal prototype to avoid an error. */
8534 /* We use char because int might match the return type of a gcc2
8535 builtin and then its argument prototype would still apply. */
8540 /* The GNU C library defines this for functions which it implements
8541 to always fail with ENOSYS. Some functions are actually named
8542 something starting with __ and the normal name is an alias. */
8543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8551 if { (eval echo configure:8552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8553 eval "ac_cv_func_$ac_func=yes"
8555 echo "configure: failed program was:" >&5
8556 cat conftest.$ac_ext >&5
8558 eval "ac_cv_func_$ac_func=no"
8563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8564 echo "$ac_t""yes" 1>&6
8565 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8566 cat >> confdefs.h <<EOF
8567 #define $ac_tr_func 1
8571 echo "$ac_t""no" 1>&6
8579 # this bit needs to be modified for each OS that is suported by
8580 # smbwrapper. You need to specify how to created a shared library and
8581 # how to compile C code to produce PIC object files
8583 # these are the defaults, good for lots of systems
8589 # and these are for particular systems
8591 *linux*) cat >> confdefs.h <<\EOF
8595 *solaris*) cat >> confdefs.h <<\EOF
8601 *sunos*) cat >> confdefs.h <<\EOF
8607 *bsd*) LDSHFLAGS="-shared -Bshareable"
8609 *irix*) cat >> confdefs.h <<\EOF
8614 *irix6*) cat >> confdefs.h <<\EOF
8620 ATTEMPT_WRAP32_BUILD=yes
8622 *aix*) cat >> confdefs.h <<\EOF
8626 *hpux*) cat >> confdefs.h <<\EOF
8631 # Use special PIC flags for the native HP-UX compiler.
8632 if test $ac_cv_prog_cc_Ae = yes; then
8637 *qnx*) cat >> confdefs.h <<\EOF
8641 *osf*) cat >> confdefs.h <<\EOF
8645 *sco*) cat >> confdefs.h <<\EOF
8649 *next2*) cat >> confdefs.h <<\EOF
8653 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8654 set dummy groff; ac_word=$2
8655 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8656 echo "configure:8657: checking for $ac_word" >&5
8657 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8658 echo $ac_n "(cached) $ac_c" 1>&6
8660 if test -n "$ROFF"; then
8661 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8663 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8665 for ac_dir in $ac_dummy; do
8666 test -z "$ac_dir" && ac_dir=.
8667 if test -f $ac_dir/$ac_word; then
8668 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8675 ROFF="$ac_cv_prog_ROFF"
8676 if test -n "$ROFF"; then
8677 echo "$ac_t""$ROFF" 1>&6
8679 echo "$ac_t""no" 1>&6
8684 *-univel-*) if test "$GCC" != yes ; then
8685 cat >> confdefs.h <<\EOF
8686 #define HAVE_MEMSET 1
8692 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8693 #define RELIANTUNIX 1
8699 if test "$GCC" != yes ; then
8700 cat >> confdefs.h <<\EOF
8701 #define HAVE_MEMSET 1
8709 # try to work out how to produce PIC code with this compiler
8710 echo $ac_n "checking whether ${CC-cc} accepts -fPIC""... $ac_c" 1>&6
8711 echo "configure:8712: checking whether ${CC-cc} accepts -fPIC" >&5
8712 if eval "test \"`echo '$''{'ac_cv_prog_cc_fPIC'+set}'`\" = set"; then
8713 echo $ac_n "(cached) $ac_c" 1>&6
8715 echo 'void f(){}' > conftest.c
8716 if test -z "`${CC-cc} -fPIC -c conftest.c 2>&1`"; then
8717 ac_cv_prog_cc_fPIC=yes
8719 ac_cv_prog_cc_fPIC=no
8725 echo "$ac_t""$ac_cv_prog_cc_fPIC" 1>&6
8726 if test $ac_cv_prog_cc_fPIC = yes; then
8729 if test x$PICFLAG = x; then
8730 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8731 echo "configure:8732: checking whether ${CC-cc} accepts -KPIC" >&5
8732 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8733 echo $ac_n "(cached) $ac_c" 1>&6
8735 echo 'void f(){}' > conftest.c
8736 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8737 ac_cv_prog_cc_KPIC=yes
8739 ac_cv_prog_cc_KPIC=no
8745 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8746 if test $ac_cv_prog_cc_KPIC = yes; then
8750 if test x$PICFLAG = x; then
8751 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8752 echo "configure:8753: checking whether ${CC-cc} accepts -Kpic" >&5
8753 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8754 echo $ac_n "(cached) $ac_c" 1>&6
8756 echo 'void f(){}' > conftest.c
8757 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8758 ac_cv_prog_cc_Kpic=yes
8760 ac_cv_prog_cc_Kpic=no
8766 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8767 if test $ac_cv_prog_cc_Kpic = yes; then
8774 echo $ac_n "checking for long long""... $ac_c" 1>&6
8775 echo "configure:8776: checking for long long" >&5
8776 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8777 echo $ac_n "(cached) $ac_c" 1>&6
8780 if test "$cross_compiling" = yes; then
8781 samba_cv_have_longlong=cross
8783 cat > conftest.$ac_ext <<EOF
8784 #line 8785 "configure"
8785 #include "confdefs.h"
8787 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8789 if { (eval echo configure:8790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8791 samba_cv_have_longlong=yes
8793 echo "configure: failed program was:" >&5
8794 cat conftest.$ac_ext >&5
8796 samba_cv_have_longlong=no
8803 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8804 if test x"$samba_cv_have_longlong" = x"yes"; then
8805 cat >> confdefs.h <<\EOF
8806 #define HAVE_LONGLONG 1
8812 # Check if the compiler supports the LL prefix on long long integers.
8815 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8816 echo "configure:8817: checking for LL suffix on long long integers" >&5
8817 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8818 echo $ac_n "(cached) $ac_c" 1>&6
8821 cat > conftest.$ac_ext <<EOF
8822 #line 8823 "configure"
8823 #include "confdefs.h"
8826 long long i = 0x8000000000LL
8829 if { (eval echo configure:8830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8831 samba_cv_compiler_supports_ll=yes
8833 echo "configure: failed program was:" >&5
8834 cat conftest.$ac_ext >&5
8836 samba_cv_compiler_supports_ll=no
8841 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8842 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8843 cat >> confdefs.h <<\EOF
8844 #define COMPILER_SUPPORTS_LL 1
8850 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8851 echo "configure:8852: checking for 64 bit off_t" >&5
8852 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8853 echo $ac_n "(cached) $ac_c" 1>&6
8856 if test "$cross_compiling" = yes; then
8857 samba_cv_SIZEOF_OFF_T=cross
8859 cat > conftest.$ac_ext <<EOF
8860 #line 8861 "configure"
8861 #include "confdefs.h"
8863 #include <sys/stat.h>
8864 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8866 if { (eval echo configure:8867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8868 samba_cv_SIZEOF_OFF_T=yes
8870 echo "configure: failed program was:" >&5
8871 cat conftest.$ac_ext >&5
8873 samba_cv_SIZEOF_OFF_T=no
8880 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8881 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8882 cat >> confdefs.h <<\EOF
8883 #define SIZEOF_OFF_T 8
8888 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8889 echo "configure:8890: checking for off64_t" >&5
8890 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8891 echo $ac_n "(cached) $ac_c" 1>&6
8894 if test "$cross_compiling" = yes; then
8895 samba_cv_HAVE_OFF64_T=cross
8897 cat > conftest.$ac_ext <<EOF
8898 #line 8899 "configure"
8899 #include "confdefs.h"
8901 #if defined(HAVE_UNISTD_H)
8905 #include <sys/stat.h>
8906 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8908 if { (eval echo configure:8909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8910 samba_cv_HAVE_OFF64_T=yes
8912 echo "configure: failed program was:" >&5
8913 cat conftest.$ac_ext >&5
8915 samba_cv_HAVE_OFF64_T=no
8922 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8923 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8924 cat >> confdefs.h <<\EOF
8925 #define HAVE_OFF64_T 1
8930 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8931 echo "configure:8932: checking for 64 bit ino_t" >&5
8932 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8933 echo $ac_n "(cached) $ac_c" 1>&6
8936 if test "$cross_compiling" = yes; then
8937 samba_cv_SIZEOF_INO_T=cross
8939 cat > conftest.$ac_ext <<EOF
8940 #line 8941 "configure"
8941 #include "confdefs.h"
8943 #include <sys/stat.h>
8944 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8946 if { (eval echo configure:8947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8948 samba_cv_SIZEOF_INO_T=yes
8950 echo "configure: failed program was:" >&5
8951 cat conftest.$ac_ext >&5
8953 samba_cv_SIZEOF_INO_T=no
8960 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8961 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8962 cat >> confdefs.h <<\EOF
8963 #define SIZEOF_INO_T 8
8968 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8969 echo "configure:8970: checking for ino64_t" >&5
8970 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8971 echo $ac_n "(cached) $ac_c" 1>&6
8974 if test "$cross_compiling" = yes; then
8975 samba_cv_HAVE_INO64_T=cross
8977 cat > conftest.$ac_ext <<EOF
8978 #line 8979 "configure"
8979 #include "confdefs.h"
8981 #if defined(HAVE_UNISTD_H)
8985 #include <sys/stat.h>
8986 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8988 if { (eval echo configure:8989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8990 samba_cv_HAVE_INO64_T=yes
8992 echo "configure: failed program was:" >&5
8993 cat conftest.$ac_ext >&5
8995 samba_cv_HAVE_INO64_T=no
9002 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9003 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9004 cat >> confdefs.h <<\EOF
9005 #define HAVE_INO64_T 1
9010 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9011 echo "configure:9012: checking for struct dirent64" >&5
9012 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9013 echo $ac_n "(cached) $ac_c" 1>&6
9016 cat > conftest.$ac_ext <<EOF
9017 #line 9018 "configure"
9018 #include "confdefs.h"
9020 #if defined(HAVE_UNISTD_H)
9023 #include <sys/types.h>
9029 if { (eval echo configure:9030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9031 samba_cv_HAVE_STRUCT_DIRENT64=yes
9033 echo "configure: failed program was:" >&5
9034 cat conftest.$ac_ext >&5
9036 samba_cv_HAVE_STRUCT_DIRENT64=no
9041 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9042 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
9043 cat >> confdefs.h <<\EOF
9044 #define HAVE_STRUCT_DIRENT64 1
9049 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9050 echo "configure:9051: checking for unsigned char" >&5
9051 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9052 echo $ac_n "(cached) $ac_c" 1>&6
9055 if test "$cross_compiling" = yes; then
9056 samba_cv_HAVE_UNSIGNED_CHAR=cross
9058 cat > conftest.$ac_ext <<EOF
9059 #line 9060 "configure"
9060 #include "confdefs.h"
9062 main() { char c; c=250; exit((c > 0)?0:1); }
9064 if { (eval echo configure:9065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9066 samba_cv_HAVE_UNSIGNED_CHAR=yes
9068 echo "configure: failed program was:" >&5
9069 cat conftest.$ac_ext >&5
9071 samba_cv_HAVE_UNSIGNED_CHAR=no
9078 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9079 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9080 cat >> confdefs.h <<\EOF
9081 #define HAVE_UNSIGNED_CHAR 1
9086 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9087 echo "configure:9088: checking for sin_len in sock" >&5
9088 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9089 echo $ac_n "(cached) $ac_c" 1>&6
9092 cat > conftest.$ac_ext <<EOF
9093 #line 9094 "configure"
9094 #include "confdefs.h"
9095 #include <sys/types.h>
9096 #include <sys/socket.h>
9097 #include <netinet/in.h>
9099 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9102 if { (eval echo configure:9103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9104 samba_cv_HAVE_SOCK_SIN_LEN=yes
9106 echo "configure: failed program was:" >&5
9107 cat conftest.$ac_ext >&5
9109 samba_cv_HAVE_SOCK_SIN_LEN=no
9114 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9115 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9116 cat >> confdefs.h <<\EOF
9117 #define HAVE_SOCK_SIN_LEN 1
9122 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9123 echo "configure:9124: checking whether seekdir returns void" >&5
9124 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9125 echo $ac_n "(cached) $ac_c" 1>&6
9128 cat > conftest.$ac_ext <<EOF
9129 #line 9130 "configure"
9130 #include "confdefs.h"
9131 #include <sys/types.h>
9133 void seekdir(DIR *d, long loc) { return; }
9138 if { (eval echo configure:9139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9140 samba_cv_SEEKDIR_RETURNS_VOID=yes
9142 echo "configure: failed program was:" >&5
9143 cat conftest.$ac_ext >&5
9145 samba_cv_SEEKDIR_RETURNS_VOID=no
9150 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9151 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9152 cat >> confdefs.h <<\EOF
9153 #define SEEKDIR_RETURNS_VOID 1
9158 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9159 echo "configure:9160: checking for __FILE__ macro" >&5
9160 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9161 echo $ac_n "(cached) $ac_c" 1>&6
9164 cat > conftest.$ac_ext <<EOF
9165 #line 9166 "configure"
9166 #include "confdefs.h"
9169 printf("%s\n", __FILE__);
9172 if { (eval echo configure:9173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9174 samba_cv_HAVE_FILE_MACRO=yes
9176 echo "configure: failed program was:" >&5
9177 cat conftest.$ac_ext >&5
9179 samba_cv_HAVE_FILE_MACRO=no
9184 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9185 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9186 cat >> confdefs.h <<\EOF
9187 #define HAVE_FILE_MACRO 1
9192 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9193 echo "configure:9194: checking for __FUNCTION__ macro" >&5
9194 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9195 echo $ac_n "(cached) $ac_c" 1>&6
9198 cat > conftest.$ac_ext <<EOF
9199 #line 9200 "configure"
9200 #include "confdefs.h"
9203 printf("%s\n", __FUNCTION__);
9206 if { (eval echo configure:9207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9208 samba_cv_HAVE_FUNCTION_MACRO=yes
9210 echo "configure: failed program was:" >&5
9211 cat conftest.$ac_ext >&5
9213 samba_cv_HAVE_FUNCTION_MACRO=no
9218 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9219 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9220 cat >> confdefs.h <<\EOF
9221 #define HAVE_FUNCTION_MACRO 1
9226 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9227 echo "configure:9228: checking if gettimeofday takes tz argument" >&5
9228 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9229 echo $ac_n "(cached) $ac_c" 1>&6
9232 if test "$cross_compiling" = yes; then
9233 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9235 cat > conftest.$ac_ext <<EOF
9236 #line 9237 "configure"
9237 #include "confdefs.h"
9239 #include <sys/time.h>
9241 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9243 if { (eval echo configure:9244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9245 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9247 echo "configure: failed program was:" >&5
9248 cat conftest.$ac_ext >&5
9250 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9257 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9258 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9259 cat >> confdefs.h <<\EOF
9260 #define HAVE_GETTIMEOFDAY_TZ 1
9265 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9266 echo "configure:9267: checking for C99 vsnprintf" >&5
9267 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9268 echo $ac_n "(cached) $ac_c" 1>&6
9271 if test "$cross_compiling" = yes; then
9272 samba_cv_HAVE_C99_VSNPRINTF=cross
9274 cat > conftest.$ac_ext <<EOF
9275 #line 9276 "configure"
9276 #include "confdefs.h"
9278 #include <sys/types.h>
9280 void foo(const char *format, ...) {
9285 va_start(ap, format);
9286 len = vsnprintf(0, 0, format, ap);
9288 if (len != 5) exit(1);
9290 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9294 main() { foo("hello"); }
9297 if { (eval echo configure:9298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9299 samba_cv_HAVE_C99_VSNPRINTF=yes
9301 echo "configure: failed program was:" >&5
9302 cat conftest.$ac_ext >&5
9304 samba_cv_HAVE_C99_VSNPRINTF=no
9311 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9312 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9313 cat >> confdefs.h <<\EOF
9314 #define HAVE_C99_VSNPRINTF 1
9319 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9320 echo "configure:9321: checking for broken readdir" >&5
9321 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9322 echo $ac_n "(cached) $ac_c" 1>&6
9325 if test "$cross_compiling" = yes; then
9326 samba_cv_HAVE_BROKEN_READDIR=cross
9328 cat > conftest.$ac_ext <<EOF
9329 #line 9330 "configure"
9330 #include "confdefs.h"
9331 #include <sys/types.h>
9333 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9334 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9335 di->d_name[0] == 0) exit(0); exit(1);}
9337 if { (eval echo configure:9338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9339 samba_cv_HAVE_BROKEN_READDIR=yes
9341 echo "configure: failed program was:" >&5
9342 cat conftest.$ac_ext >&5
9344 samba_cv_HAVE_BROKEN_READDIR=no
9351 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9352 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9353 cat >> confdefs.h <<\EOF
9354 #define HAVE_BROKEN_READDIR 1
9359 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9360 echo "configure:9361: checking for utimbuf" >&5
9361 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9362 echo $ac_n "(cached) $ac_c" 1>&6
9365 cat > conftest.$ac_ext <<EOF
9366 #line 9367 "configure"
9367 #include "confdefs.h"
9368 #include <sys/types.h>
9371 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9374 if { (eval echo configure:9375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9376 samba_cv_HAVE_UTIMBUF=yes
9378 echo "configure: failed program was:" >&5
9379 cat conftest.$ac_ext >&5
9381 samba_cv_HAVE_UTIMBUF=no
9386 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9387 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9388 cat >> confdefs.h <<\EOF
9389 #define HAVE_UTIMBUF 1
9395 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9397 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9398 echo "configure:9399: checking for $ac_func" >&5
9399 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9400 echo $ac_n "(cached) $ac_c" 1>&6
9402 cat > conftest.$ac_ext <<EOF
9403 #line 9404 "configure"
9404 #include "confdefs.h"
9405 /* System header to define __stub macros and hopefully few prototypes,
9406 which can conflict with char $ac_func(); below. */
9408 /* Override any gcc2 internal prototype to avoid an error. */
9409 /* We use char because int might match the return type of a gcc2
9410 builtin and then its argument prototype would still apply. */
9415 /* The GNU C library defines this for functions which it implements
9416 to always fail with ENOSYS. Some functions are actually named
9417 something starting with __ and the normal name is an alias. */
9418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9426 if { (eval echo configure:9427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9428 eval "ac_cv_func_$ac_func=yes"
9430 echo "configure: failed program was:" >&5
9431 cat conftest.$ac_ext >&5
9433 eval "ac_cv_func_$ac_func=no"
9438 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9439 echo "$ac_t""yes" 1>&6
9440 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9441 cat >> confdefs.h <<EOF
9442 #define $ac_tr_func 1
9446 echo "$ac_t""no" 1>&6
9451 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9452 echo "configure:9453: checking for ut_name in utmp" >&5
9453 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9454 echo $ac_n "(cached) $ac_c" 1>&6
9457 cat > conftest.$ac_ext <<EOF
9458 #line 9459 "configure"
9459 #include "confdefs.h"
9460 #include <sys/types.h>
9463 struct utmp ut; ut.ut_name[0] = 'a';
9466 if { (eval echo configure:9467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9468 samba_cv_HAVE_UT_UT_NAME=yes
9470 echo "configure: failed program was:" >&5
9471 cat conftest.$ac_ext >&5
9473 samba_cv_HAVE_UT_UT_NAME=no
9478 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9479 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9480 cat >> confdefs.h <<\EOF
9481 #define HAVE_UT_UT_NAME 1
9486 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9487 echo "configure:9488: checking for ut_user in utmp" >&5
9488 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9489 echo $ac_n "(cached) $ac_c" 1>&6
9492 cat > conftest.$ac_ext <<EOF
9493 #line 9494 "configure"
9494 #include "confdefs.h"
9495 #include <sys/types.h>
9498 struct utmp ut; ut.ut_user[0] = 'a';
9501 if { (eval echo configure:9502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9503 samba_cv_HAVE_UT_UT_USER=yes
9505 echo "configure: failed program was:" >&5
9506 cat conftest.$ac_ext >&5
9508 samba_cv_HAVE_UT_UT_USER=no
9513 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9514 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9515 cat >> confdefs.h <<\EOF
9516 #define HAVE_UT_UT_USER 1
9521 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9522 echo "configure:9523: checking for ut_id in utmp" >&5
9523 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9524 echo $ac_n "(cached) $ac_c" 1>&6
9527 cat > conftest.$ac_ext <<EOF
9528 #line 9529 "configure"
9529 #include "confdefs.h"
9530 #include <sys/types.h>
9533 struct utmp ut; ut.ut_id[0] = 'a';
9536 if { (eval echo configure:9537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9538 samba_cv_HAVE_UT_UT_ID=yes
9540 echo "configure: failed program was:" >&5
9541 cat conftest.$ac_ext >&5
9543 samba_cv_HAVE_UT_UT_ID=no
9548 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9549 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9550 cat >> confdefs.h <<\EOF
9551 #define HAVE_UT_UT_ID 1
9556 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9557 echo "configure:9558: checking for ut_host in utmp" >&5
9558 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9559 echo $ac_n "(cached) $ac_c" 1>&6
9562 cat > conftest.$ac_ext <<EOF
9563 #line 9564 "configure"
9564 #include "confdefs.h"
9565 #include <sys/types.h>
9568 struct utmp ut; ut.ut_host[0] = 'a';
9571 if { (eval echo configure:9572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9573 samba_cv_HAVE_UT_UT_HOST=yes
9575 echo "configure: failed program was:" >&5
9576 cat conftest.$ac_ext >&5
9578 samba_cv_HAVE_UT_UT_HOST=no
9583 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9584 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9585 cat >> confdefs.h <<\EOF
9586 #define HAVE_UT_UT_HOST 1
9591 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9592 echo "configure:9593: checking for ut_time in utmp" >&5
9593 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9594 echo $ac_n "(cached) $ac_c" 1>&6
9597 cat > conftest.$ac_ext <<EOF
9598 #line 9599 "configure"
9599 #include "confdefs.h"
9600 #include <sys/types.h>
9603 struct utmp ut; time_t t; ut.ut_time = t;
9606 if { (eval echo configure:9607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9608 samba_cv_HAVE_UT_UT_TIME=yes
9610 echo "configure: failed program was:" >&5
9611 cat conftest.$ac_ext >&5
9613 samba_cv_HAVE_UT_UT_TIME=no
9618 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9619 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9620 cat >> confdefs.h <<\EOF
9621 #define HAVE_UT_UT_TIME 1
9626 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9627 echo "configure:9628: checking for ut_tv in utmp" >&5
9628 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9629 echo $ac_n "(cached) $ac_c" 1>&6
9632 cat > conftest.$ac_ext <<EOF
9633 #line 9634 "configure"
9634 #include "confdefs.h"
9635 #include <sys/types.h>
9638 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9641 if { (eval echo configure:9642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9643 samba_cv_HAVE_UT_UT_TV=yes
9645 echo "configure: failed program was:" >&5
9646 cat conftest.$ac_ext >&5
9648 samba_cv_HAVE_UT_UT_TV=no
9653 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9654 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9655 cat >> confdefs.h <<\EOF
9656 #define HAVE_UT_UT_TV 1
9661 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9662 echo "configure:9663: checking for ut_type in utmp" >&5
9663 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9664 echo $ac_n "(cached) $ac_c" 1>&6
9667 cat > conftest.$ac_ext <<EOF
9668 #line 9669 "configure"
9669 #include "confdefs.h"
9670 #include <sys/types.h>
9673 struct utmp ut; ut.ut_type = 0;
9676 if { (eval echo configure:9677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9678 samba_cv_HAVE_UT_UT_TYPE=yes
9680 echo "configure: failed program was:" >&5
9681 cat conftest.$ac_ext >&5
9683 samba_cv_HAVE_UT_UT_TYPE=no
9688 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9689 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9690 cat >> confdefs.h <<\EOF
9691 #define HAVE_UT_UT_TYPE 1
9696 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9697 echo "configure:9698: checking for ut_pid in utmp" >&5
9698 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9699 echo $ac_n "(cached) $ac_c" 1>&6
9702 cat > conftest.$ac_ext <<EOF
9703 #line 9704 "configure"
9704 #include "confdefs.h"
9705 #include <sys/types.h>
9708 struct utmp ut; ut.ut_pid = 0;
9711 if { (eval echo configure:9712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9713 samba_cv_HAVE_UT_UT_PID=yes
9715 echo "configure: failed program was:" >&5
9716 cat conftest.$ac_ext >&5
9718 samba_cv_HAVE_UT_UT_PID=no
9723 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9724 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9725 cat >> confdefs.h <<\EOF
9726 #define HAVE_UT_UT_PID 1
9731 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9732 echo "configure:9733: checking for ut_exit in utmp" >&5
9733 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9734 echo $ac_n "(cached) $ac_c" 1>&6
9737 cat > conftest.$ac_ext <<EOF
9738 #line 9739 "configure"
9739 #include "confdefs.h"
9740 #include <sys/types.h>
9743 struct utmp ut; ut.ut_exit.e_exit = 0;
9746 if { (eval echo configure:9747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9748 samba_cv_HAVE_UT_UT_EXIT=yes
9750 echo "configure: failed program was:" >&5
9751 cat conftest.$ac_ext >&5
9753 samba_cv_HAVE_UT_UT_EXIT=no
9758 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9759 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9760 cat >> confdefs.h <<\EOF
9761 #define HAVE_UT_UT_EXIT 1
9766 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9767 echo "configure:9768: checking for ut_addr in utmp" >&5
9768 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9769 echo $ac_n "(cached) $ac_c" 1>&6
9772 cat > conftest.$ac_ext <<EOF
9773 #line 9774 "configure"
9774 #include "confdefs.h"
9775 #include <sys/types.h>
9778 struct utmp ut; ut.ut_addr = 0;
9781 if { (eval echo configure:9782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9783 samba_cv_HAVE_UT_UT_ADDR=yes
9785 echo "configure: failed program was:" >&5
9786 cat conftest.$ac_ext >&5
9788 samba_cv_HAVE_UT_UT_ADDR=no
9793 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9794 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9795 cat >> confdefs.h <<\EOF
9796 #define HAVE_UT_UT_ADDR 1
9801 if test x$ac_cv_func_pututline = xyes ; then
9802 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9803 echo "configure:9804: checking whether pututline returns pointer" >&5
9804 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9805 echo $ac_n "(cached) $ac_c" 1>&6
9808 cat > conftest.$ac_ext <<EOF
9809 #line 9810 "configure"
9810 #include "confdefs.h"
9811 #include <sys/types.h>
9814 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9817 if { (eval echo configure:9818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9819 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9821 echo "configure: failed program was:" >&5
9822 cat conftest.$ac_ext >&5
9824 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9829 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9830 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9831 cat >> confdefs.h <<\EOF
9832 #define PUTUTLINE_RETURNS_UTMP 1
9838 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9839 echo "configure:9840: checking for ut_syslen in utmpx" >&5
9840 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9841 echo $ac_n "(cached) $ac_c" 1>&6
9844 cat > conftest.$ac_ext <<EOF
9845 #line 9846 "configure"
9846 #include "confdefs.h"
9847 #include <sys/types.h>
9850 struct utmpx ux; ux.ut_syslen = 0;
9853 if { (eval echo configure:9854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9855 samba_cv_HAVE_UX_UT_SYSLEN=yes
9857 echo "configure: failed program was:" >&5
9858 cat conftest.$ac_ext >&5
9860 samba_cv_HAVE_UX_UT_SYSLEN=no
9865 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9866 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9867 cat >> confdefs.h <<\EOF
9868 #define HAVE_UX_UT_SYSLEN 1
9873 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9874 echo "configure:9875: checking for Linux kernel oplocks" >&5
9875 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9876 echo $ac_n "(cached) $ac_c" 1>&6
9879 if test "$cross_compiling" = yes; then
9880 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9882 cat > conftest.$ac_ext <<EOF
9883 #line 9884 "configure"
9884 #include "confdefs.h"
9886 #include <sys/types.h>
9889 #define F_GETLEASE 1025
9892 int fd = open("/dev/null", O_RDONLY);
9893 return fcntl(fd, F_GETLEASE, 0) == -1;
9897 if { (eval echo configure:9898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9899 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
9901 echo "configure: failed program was:" >&5
9902 cat conftest.$ac_ext >&5
9904 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
9911 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9912 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
9913 cat >> confdefs.h <<\EOF
9914 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9919 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9920 echo "configure:9921: checking for kernel change notify support" >&5
9921 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9922 echo $ac_n "(cached) $ac_c" 1>&6
9925 if test "$cross_compiling" = yes; then
9926 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
9928 cat > conftest.$ac_ext <<EOF
9929 #line 9930 "configure"
9930 #include "confdefs.h"
9932 #include <sys/types.h>
9936 #define F_NOTIFY 1026
9939 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9943 if { (eval echo configure:9944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9945 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
9947 echo "configure: failed program was:" >&5
9948 cat conftest.$ac_ext >&5
9950 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
9957 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9958 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
9959 cat >> confdefs.h <<\EOF
9960 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9965 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9966 echo "configure:9967: checking for kernel share modes" >&5
9967 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9968 echo $ac_n "(cached) $ac_c" 1>&6
9971 if test "$cross_compiling" = yes; then
9972 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
9974 cat > conftest.$ac_ext <<EOF
9975 #line 9976 "configure"
9976 #include "confdefs.h"
9978 #include <sys/types.h>
9981 #include <sys/file.h>
9983 #define LOCK_MAND 32
9984 #define LOCK_READ 64
9987 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9991 if { (eval echo configure:9992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9993 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
9995 echo "configure: failed program was:" >&5
9996 cat conftest.$ac_ext >&5
9998 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10005 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10006 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10007 cat >> confdefs.h <<\EOF
10008 #define HAVE_KERNEL_SHARE_MODES 1
10016 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10017 echo "configure:10018: checking for IRIX kernel oplock type definitions" >&5
10018 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10019 echo $ac_n "(cached) $ac_c" 1>&6
10022 cat > conftest.$ac_ext <<EOF
10023 #line 10024 "configure"
10024 #include "confdefs.h"
10025 #include <sys/types.h>
10028 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10031 if { (eval echo configure:10032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10033 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10035 echo "configure: failed program was:" >&5
10036 cat conftest.$ac_ext >&5
10038 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10043 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10044 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10045 cat >> confdefs.h <<\EOF
10046 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10051 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10052 echo "configure:10053: checking for irix specific capabilities" >&5
10053 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10054 echo $ac_n "(cached) $ac_c" 1>&6
10057 if test "$cross_compiling" = yes; then
10058 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10060 cat > conftest.$ac_ext <<EOF
10061 #line 10062 "configure"
10062 #include "confdefs.h"
10063 #include <sys/types.h>
10064 #include <sys/capability.h>
10067 if ((cap = cap_get_proc()) == NULL)
10069 cap->cap_effective |= CAP_NETWORK_MGT;
10070 cap->cap_inheritable |= CAP_NETWORK_MGT;
10076 if { (eval echo configure:10077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10078 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10080 echo "configure: failed program was:" >&5
10081 cat conftest.$ac_ext >&5
10083 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10090 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10091 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10092 cat >> confdefs.h <<\EOF
10093 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10099 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10100 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10103 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10104 echo "configure:10105: checking for int16 typedef included by rpc/rpc.h" >&5
10105 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10106 echo $ac_n "(cached) $ac_c" 1>&6
10109 cat > conftest.$ac_ext <<EOF
10110 #line 10111 "configure"
10111 #include "confdefs.h"
10112 #include <sys/types.h>
10113 #if defined(HAVE_RPC_RPC_H)
10114 #include <rpc/rpc.h>
10120 if { (eval echo configure:10121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10122 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10124 echo "configure: failed program was:" >&5
10125 cat conftest.$ac_ext >&5
10127 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10132 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10133 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10134 cat >> confdefs.h <<\EOF
10135 #define HAVE_INT16_FROM_RPC_RPC_H 1
10140 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10141 echo "configure:10142: checking for uint16 typedef included by rpc/rpc.h" >&5
10142 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10143 echo $ac_n "(cached) $ac_c" 1>&6
10146 cat > conftest.$ac_ext <<EOF
10147 #line 10148 "configure"
10148 #include "confdefs.h"
10149 #include <sys/types.h>
10150 #if defined(HAVE_RPC_RPC_H)
10151 #include <rpc/rpc.h>
10157 if { (eval echo configure:10158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10159 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10161 echo "configure: failed program was:" >&5
10162 cat conftest.$ac_ext >&5
10164 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10169 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10170 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10171 cat >> confdefs.h <<\EOF
10172 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10177 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10178 echo "configure:10179: checking for int32 typedef included by rpc/rpc.h" >&5
10179 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10180 echo $ac_n "(cached) $ac_c" 1>&6
10183 cat > conftest.$ac_ext <<EOF
10184 #line 10185 "configure"
10185 #include "confdefs.h"
10186 #include <sys/types.h>
10187 #if defined(HAVE_RPC_RPC_H)
10188 #include <rpc/rpc.h>
10194 if { (eval echo configure:10195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10196 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10198 echo "configure: failed program was:" >&5
10199 cat conftest.$ac_ext >&5
10201 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10206 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10207 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10208 cat >> confdefs.h <<\EOF
10209 #define HAVE_INT32_FROM_RPC_RPC_H 1
10214 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10215 echo "configure:10216: checking for uint32 typedef included by rpc/rpc.h" >&5
10216 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10217 echo $ac_n "(cached) $ac_c" 1>&6
10220 cat > conftest.$ac_ext <<EOF
10221 #line 10222 "configure"
10222 #include "confdefs.h"
10223 #include <sys/types.h>
10224 #if defined(HAVE_RPC_RPC_H)
10225 #include <rpc/rpc.h>
10231 if { (eval echo configure:10232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10233 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10235 echo "configure: failed program was:" >&5
10236 cat conftest.$ac_ext >&5
10238 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10243 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10244 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10245 cat >> confdefs.h <<\EOF
10246 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10252 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10253 echo "configure:10254: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10254 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10255 echo $ac_n "(cached) $ac_c" 1>&6
10258 cat > conftest.$ac_ext <<EOF
10259 #line 10260 "configure"
10260 #include "confdefs.h"
10261 #include <sys/types.h>
10262 #ifdef HAVE_SYS_SECURITY_H
10263 #include <sys/security.h>
10265 #endif /* HAVE_SYS_SECURITY_H */
10266 #if defined(HAVE_RPC_RPC_H)
10267 #include <rpc/rpc.h>
10273 if { (eval echo configure:10274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10275 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10277 echo "configure: failed program was:" >&5
10278 cat conftest.$ac_ext >&5
10280 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10285 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10286 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10287 cat >> confdefs.h <<\EOF
10288 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10293 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10294 echo "configure:10295: checking for test routines" >&5
10295 if test "$cross_compiling" = yes; then
10296 echo "configure: warning: cannot run when cross-compiling" 1>&2
10298 cat > conftest.$ac_ext <<EOF
10299 #line 10300 "configure"
10300 #include "confdefs.h"
10301 #include "${srcdir-.}/tests/trivial.c"
10303 if { (eval echo configure:10304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10305 echo "$ac_t""yes" 1>&6
10307 echo "configure: failed program was:" >&5
10308 cat conftest.$ac_ext >&5
10310 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10316 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10317 echo "configure:10318: checking for ftruncate extend" >&5
10318 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10319 echo $ac_n "(cached) $ac_c" 1>&6
10322 if test "$cross_compiling" = yes; then
10323 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10325 cat > conftest.$ac_ext <<EOF
10326 #line 10327 "configure"
10327 #include "confdefs.h"
10328 #include "${srcdir-.}/tests/ftruncate.c"
10330 if { (eval echo configure:10331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10332 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10334 echo "configure: failed program was:" >&5
10335 cat conftest.$ac_ext >&5
10337 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10344 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10345 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10346 cat >> confdefs.h <<\EOF
10347 #define HAVE_FTRUNCATE_EXTEND 1
10352 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10353 echo "configure:10354: checking for broken getgroups" >&5
10354 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10355 echo $ac_n "(cached) $ac_c" 1>&6
10358 if test "$cross_compiling" = yes; then
10359 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10361 cat > conftest.$ac_ext <<EOF
10362 #line 10363 "configure"
10363 #include "confdefs.h"
10364 #include "${srcdir-.}/tests/getgroups.c"
10366 if { (eval echo configure:10367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10368 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10370 echo "configure: failed program was:" >&5
10371 cat conftest.$ac_ext >&5
10373 samba_cv_HAVE_BROKEN_GETGROUPS=no
10380 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10381 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10382 cat >> confdefs.h <<\EOF
10383 #define HAVE_BROKEN_GETGROUPS 1
10388 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10389 echo "configure:10390: checking whether getpass should be replaced" >&5
10390 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10391 echo $ac_n "(cached) $ac_c" 1>&6
10394 SAVE_CPPFLAGS="$CPPFLAGS"
10395 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10396 cat > conftest.$ac_ext <<EOF
10397 #line 10398 "configure"
10398 #include "confdefs.h"
10400 #define REPLACE_GETPASS 1
10401 #define NO_CONFIG_H 1
10402 #define main dont_declare_main
10403 #include "${srcdir-.}/lib/getsmbpass.c"
10410 if { (eval echo configure:10411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10412 samba_cv_REPLACE_GETPASS=yes
10414 echo "configure: failed program was:" >&5
10415 cat conftest.$ac_ext >&5
10417 samba_cv_REPLACE_GETPASS=no
10420 CPPFLAGS="$SAVE_CPPFLAGS"
10424 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10425 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10426 cat >> confdefs.h <<\EOF
10427 #define REPLACE_GETPASS 1
10432 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10433 echo "configure:10434: checking for broken inet_ntoa" >&5
10434 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10435 echo $ac_n "(cached) $ac_c" 1>&6
10438 if test "$cross_compiling" = yes; then
10439 samba_cv_REPLACE_INET_NTOA=cross
10441 cat > conftest.$ac_ext <<EOF
10442 #line 10443 "configure"
10443 #include "confdefs.h"
10446 #include <sys/types.h>
10447 #include <netinet/in.h>
10448 #ifdef HAVE_ARPA_INET_H
10449 #include <arpa/inet.h>
10451 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10452 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10453 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10456 if { (eval echo configure:10457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10458 samba_cv_REPLACE_INET_NTOA=yes
10460 echo "configure: failed program was:" >&5
10461 cat conftest.$ac_ext >&5
10463 samba_cv_REPLACE_INET_NTOA=no
10470 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10471 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10472 cat >> confdefs.h <<\EOF
10473 #define REPLACE_INET_NTOA 1
10478 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10479 echo "configure:10480: checking for secure mkstemp" >&5
10480 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10481 echo $ac_n "(cached) $ac_c" 1>&6
10484 if test "$cross_compiling" = yes; then
10485 samba_cv_HAVE_SECURE_MKSTEMP=cross
10487 cat > conftest.$ac_ext <<EOF
10488 #line 10489 "configure"
10489 #include "confdefs.h"
10490 #include <stdlib.h>
10491 #include <sys/types.h>
10492 #include <sys/stat.h>
10493 #include <unistd.h>
10496 char tpl[20]="/tmp/test.XXXXXX";
10497 int fd = mkstemp(tpl);
10498 if (fd == -1) exit(1);
10500 if (fstat(fd, &st) != 0) exit(1);
10501 if ((st.st_mode & 0777) != 0600) exit(1);
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_SECURE_MKSTEMP=yes
10509 echo "configure: failed program was:" >&5
10510 cat conftest.$ac_ext >&5
10512 samba_cv_HAVE_SECURE_MKSTEMP=no
10519 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10520 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10521 cat >> confdefs.h <<\EOF
10522 #define HAVE_SECURE_MKSTEMP 1
10527 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10528 echo "configure:10529: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10529 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10530 echo $ac_n "(cached) $ac_c" 1>&6
10533 if test "$cross_compiling" = yes; then
10534 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10536 cat > conftest.$ac_ext <<EOF
10537 #line 10538 "configure"
10538 #include "confdefs.h"
10539 #include <unistd.h>
10540 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10542 if { (eval echo configure:10543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10544 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10546 echo "configure: failed program was:" >&5
10547 cat conftest.$ac_ext >&5
10549 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10556 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10557 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10558 cat >> confdefs.h <<\EOF
10559 #define SYSCONF_SC_NGROUPS_MAX 1
10564 echo $ac_n "checking for root""... $ac_c" 1>&6
10565 echo "configure:10566: checking for root" >&5
10566 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10567 echo $ac_n "(cached) $ac_c" 1>&6
10570 if test "$cross_compiling" = yes; then
10571 samba_cv_HAVE_ROOT=cross
10573 cat > conftest.$ac_ext <<EOF
10574 #line 10575 "configure"
10575 #include "confdefs.h"
10576 main() { exit(getuid() != 0); }
10578 if { (eval echo configure:10579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10580 samba_cv_HAVE_ROOT=yes
10582 echo "configure: failed program was:" >&5
10583 cat conftest.$ac_ext >&5
10585 samba_cv_HAVE_ROOT=no
10592 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10593 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10594 cat >> confdefs.h <<\EOF
10595 #define HAVE_ROOT 1
10599 echo "configure: warning: running as non-root will disable some tests" 1>&2
10603 # look for a method of finding the list of network interfaces
10605 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10606 echo "configure:10607: checking for iface AIX" >&5
10607 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10608 echo $ac_n "(cached) $ac_c" 1>&6
10611 if test "$cross_compiling" = yes; then
10612 samba_cv_HAVE_IFACE_AIX=cross
10614 cat > conftest.$ac_ext <<EOF
10615 #line 10616 "configure"
10616 #include "confdefs.h"
10618 #define HAVE_IFACE_AIX 1
10619 #define AUTOCONF_TEST 1
10620 #include "confdefs.h"
10621 #include "${srcdir-.}/lib/interfaces.c"
10623 if { (eval echo configure:10624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10625 samba_cv_HAVE_IFACE_AIX=yes
10627 echo "configure: failed program was:" >&5
10628 cat conftest.$ac_ext >&5
10630 samba_cv_HAVE_IFACE_AIX=no
10637 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10638 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10639 iface=yes;cat >> confdefs.h <<\EOF
10640 #define HAVE_IFACE_AIX 1
10645 if test $iface = no; then
10646 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10647 echo "configure:10648: checking for iface ifconf" >&5
10648 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10649 echo $ac_n "(cached) $ac_c" 1>&6
10652 if test "$cross_compiling" = yes; then
10653 samba_cv_HAVE_IFACE_IFCONF=cross
10655 cat > conftest.$ac_ext <<EOF
10656 #line 10657 "configure"
10657 #include "confdefs.h"
10659 #define HAVE_IFACE_IFCONF 1
10660 #define AUTOCONF_TEST 1
10661 #include "confdefs.h"
10662 #include "${srcdir-.}/lib/interfaces.c"
10664 if { (eval echo configure:10665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10666 samba_cv_HAVE_IFACE_IFCONF=yes
10668 echo "configure: failed program was:" >&5
10669 cat conftest.$ac_ext >&5
10671 samba_cv_HAVE_IFACE_IFCONF=no
10678 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10679 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
10680 iface=yes;cat >> confdefs.h <<\EOF
10681 #define HAVE_IFACE_IFCONF 1
10687 if test $iface = no; then
10688 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10689 echo "configure:10690: checking for iface ifreq" >&5
10690 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10691 echo $ac_n "(cached) $ac_c" 1>&6
10694 if test "$cross_compiling" = yes; then
10695 samba_cv_HAVE_IFACE_IFREQ=cross
10697 cat > conftest.$ac_ext <<EOF
10698 #line 10699 "configure"
10699 #include "confdefs.h"
10701 #define HAVE_IFACE_IFREQ 1
10702 #define AUTOCONF_TEST 1
10703 #include "confdefs.h"
10704 #include "${srcdir-.}/lib/interfaces.c"
10706 if { (eval echo configure:10707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10708 samba_cv_HAVE_IFACE_IFREQ=yes
10710 echo "configure: failed program was:" >&5
10711 cat conftest.$ac_ext >&5
10713 samba_cv_HAVE_IFACE_IFREQ=no
10720 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10721 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
10722 iface=yes;cat >> confdefs.h <<\EOF
10723 #define HAVE_IFACE_IFREQ 1
10730 ################################################
10731 # look for a method of setting the effective uid
10733 if test $seteuid = no; then
10734 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10735 echo "configure:10736: checking for setresuid" >&5
10736 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10737 echo $ac_n "(cached) $ac_c" 1>&6
10740 if test "$cross_compiling" = yes; then
10741 samba_cv_USE_SETRESUID=cross
10743 cat > conftest.$ac_ext <<EOF
10744 #line 10745 "configure"
10745 #include "confdefs.h"
10747 #define AUTOCONF_TEST 1
10748 #define USE_SETRESUID 1
10749 #include "confdefs.h"
10750 #include "${srcdir-.}/lib/util_sec.c"
10752 if { (eval echo configure:10753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10754 samba_cv_USE_SETRESUID=yes
10756 echo "configure: failed program was:" >&5
10757 cat conftest.$ac_ext >&5
10759 samba_cv_USE_SETRESUID=no
10766 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10767 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
10768 seteuid=yes;cat >> confdefs.h <<\EOF
10769 #define USE_SETRESUID 1
10776 if test $seteuid = no; then
10777 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10778 echo "configure:10779: checking for setreuid" >&5
10779 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10780 echo $ac_n "(cached) $ac_c" 1>&6
10783 if test "$cross_compiling" = yes; then
10784 samba_cv_USE_SETREUID=cross
10786 cat > conftest.$ac_ext <<EOF
10787 #line 10788 "configure"
10788 #include "confdefs.h"
10790 #define AUTOCONF_TEST 1
10791 #define USE_SETREUID 1
10792 #include "confdefs.h"
10793 #include "${srcdir-.}/lib/util_sec.c"
10795 if { (eval echo configure:10796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10797 samba_cv_USE_SETREUID=yes
10799 echo "configure: failed program was:" >&5
10800 cat conftest.$ac_ext >&5
10802 samba_cv_USE_SETREUID=no
10809 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10810 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
10811 seteuid=yes;cat >> confdefs.h <<\EOF
10812 #define USE_SETREUID 1
10818 if test $seteuid = no; then
10819 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10820 echo "configure:10821: checking for seteuid" >&5
10821 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10822 echo $ac_n "(cached) $ac_c" 1>&6
10825 if test "$cross_compiling" = yes; then
10826 samba_cv_USE_SETEUID=cross
10828 cat > conftest.$ac_ext <<EOF
10829 #line 10830 "configure"
10830 #include "confdefs.h"
10832 #define AUTOCONF_TEST 1
10833 #define USE_SETEUID 1
10834 #include "confdefs.h"
10835 #include "${srcdir-.}/lib/util_sec.c"
10837 if { (eval echo configure:10838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10839 samba_cv_USE_SETEUID=yes
10841 echo "configure: failed program was:" >&5
10842 cat conftest.$ac_ext >&5
10844 samba_cv_USE_SETEUID=no
10851 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10852 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
10853 seteuid=yes;cat >> confdefs.h <<\EOF
10854 #define USE_SETEUID 1
10860 if test $seteuid = no; then
10861 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10862 echo "configure:10863: checking for setuidx" >&5
10863 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10864 echo $ac_n "(cached) $ac_c" 1>&6
10867 if test "$cross_compiling" = yes; then
10868 samba_cv_USE_SETUIDX=cross
10870 cat > conftest.$ac_ext <<EOF
10871 #line 10872 "configure"
10872 #include "confdefs.h"
10874 #define AUTOCONF_TEST 1
10875 #define USE_SETUIDX 1
10876 #include "confdefs.h"
10877 #include "${srcdir-.}/lib/util_sec.c"
10879 if { (eval echo configure:10880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10881 samba_cv_USE_SETUIDX=yes
10883 echo "configure: failed program was:" >&5
10884 cat conftest.$ac_ext >&5
10886 samba_cv_USE_SETUIDX=no
10893 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10894 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
10895 seteuid=yes;cat >> confdefs.h <<\EOF
10896 #define USE_SETUIDX 1
10903 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10904 echo "configure:10905: checking for working mmap" >&5
10905 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10906 echo $ac_n "(cached) $ac_c" 1>&6
10909 if test "$cross_compiling" = yes; then
10910 samba_cv_HAVE_MMAP=cross
10912 cat > conftest.$ac_ext <<EOF
10913 #line 10914 "configure"
10914 #include "confdefs.h"
10915 #include "${srcdir-.}/tests/shared_mmap.c"
10917 if { (eval echo configure:10918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10919 samba_cv_HAVE_MMAP=yes
10921 echo "configure: failed program was:" >&5
10922 cat conftest.$ac_ext >&5
10924 samba_cv_HAVE_MMAP=no
10931 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10932 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
10933 cat >> confdefs.h <<\EOF
10934 #define HAVE_MMAP 1
10939 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10940 echo "configure:10941: checking for ftruncate needs root" >&5
10941 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10942 echo $ac_n "(cached) $ac_c" 1>&6
10945 if test "$cross_compiling" = yes; then
10946 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
10948 cat > conftest.$ac_ext <<EOF
10949 #line 10950 "configure"
10950 #include "confdefs.h"
10951 #include "${srcdir-.}/tests/ftruncroot.c"
10953 if { (eval echo configure:10954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10955 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
10957 echo "configure: failed program was:" >&5
10958 cat conftest.$ac_ext >&5
10960 samba_cv_FTRUNCATE_NEEDS_ROOT=no
10967 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10968 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
10969 cat >> confdefs.h <<\EOF
10970 #define FTRUNCATE_NEEDS_ROOT 1
10975 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10976 echo "configure:10977: checking for fcntl locking" >&5
10977 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10978 echo $ac_n "(cached) $ac_c" 1>&6
10981 if test "$cross_compiling" = yes; then
10982 samba_cv_HAVE_FCNTL_LOCK=cross
10984 cat > conftest.$ac_ext <<EOF
10985 #line 10986 "configure"
10986 #include "confdefs.h"
10987 #include "${srcdir-.}/tests/fcntl_lock.c"
10989 if { (eval echo configure:10990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10991 samba_cv_HAVE_FCNTL_LOCK=yes
10993 echo "configure: failed program was:" >&5
10994 cat conftest.$ac_ext >&5
10996 samba_cv_HAVE_FCNTL_LOCK=no
11003 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11004 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11005 cat >> confdefs.h <<\EOF
11006 #define HAVE_FCNTL_LOCK 1
11011 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11012 echo "configure:11013: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11013 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11014 echo $ac_n "(cached) $ac_c" 1>&6
11017 if test "$cross_compiling" = yes; then
11018 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11020 cat > conftest.$ac_ext <<EOF
11021 #line 11022 "configure"
11022 #include "confdefs.h"
11023 #include "${srcdir-.}/tests/fcntl_lock64.c"
11025 if { (eval echo configure:11026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11027 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11029 echo "configure: failed program was:" >&5
11030 cat conftest.$ac_ext >&5
11032 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11039 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11040 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11041 cat >> confdefs.h <<\EOF
11042 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11049 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11050 echo "configure:11051: checking for 64 bit fcntl locking" >&5
11051 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11052 echo $ac_n "(cached) $ac_c" 1>&6
11055 if test "$cross_compiling" = yes; then
11056 samba_cv_HAVE_STRUCT_FLOCK64=cross
11058 cat > conftest.$ac_ext <<EOF
11059 #line 11060 "configure"
11060 #include "confdefs.h"
11062 #if defined(HAVE_UNISTD_H)
11063 #include <unistd.h>
11066 #include <stdlib.h>
11068 #ifdef HAVE_FCNTL_H
11072 #ifdef HAVE_SYS_FCNTL_H
11073 #include <sys/fcntl.h>
11075 main() { struct flock64 fl64;
11076 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11083 if { (eval echo configure:11084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11085 samba_cv_HAVE_STRUCT_FLOCK64=yes
11087 echo "configure: failed program was:" >&5
11088 cat conftest.$ac_ext >&5
11090 samba_cv_HAVE_STRUCT_FLOCK64=no
11097 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11099 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11100 cat >> confdefs.h <<\EOF
11101 #define HAVE_STRUCT_FLOCK64 1
11107 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
11108 echo "configure:11109: checking for a crypt that needs truncated salt" >&5
11109 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
11110 echo $ac_n "(cached) $ac_c" 1>&6
11113 if test "$cross_compiling" = yes; then
11114 samba_cv_HAVE_TRUNCATED_SALT=cross
11116 cat > conftest.$ac_ext <<EOF
11117 #line 11118 "configure"
11118 #include "confdefs.h"
11119 #include "${srcdir-.}/tests/crypttest.c"
11121 if { (eval echo configure:11122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11123 samba_cv_HAVE_TRUNCATED_SALT=no
11125 echo "configure: failed program was:" >&5
11126 cat conftest.$ac_ext >&5
11128 samba_cv_HAVE_TRUNCATED_SALT=yes
11135 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
11136 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
11137 cat >> confdefs.h <<\EOF
11138 #define HAVE_TRUNCATED_SALT 1
11143 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11144 echo "configure:11145: checking for broken nisplus include files" >&5
11145 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11146 echo $ac_n "(cached) $ac_c" 1>&6
11149 cat > conftest.$ac_ext <<EOF
11150 #line 11151 "configure"
11151 #include "confdefs.h"
11152 #include <sys/acl.h>
11153 #if defined(HAVE_RPCSVC_NIS_H)
11154 #include <rpcsvc/nis.h>
11160 if { (eval echo configure:11161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11162 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11164 echo "configure: failed program was:" >&5
11165 cat conftest.$ac_ext >&5
11167 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11172 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11173 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11174 cat >> confdefs.h <<\EOF
11175 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11181 #################################################
11182 # check for smbwrapper support
11183 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11184 echo "configure:11185: checking whether to use smbwrapper" >&5
11185 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11186 if test "${with_smbwrapper+set}" = set; then
11187 withval="$with_smbwrapper"
11190 echo "$ac_t""yes" 1>&6
11191 cat >> confdefs.h <<\EOF
11192 #define WITH_SMBWRAPPER 1
11195 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11197 if test x$ATTEMPT_WRAP32_BUILD = x; then
11200 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11203 # Conditions under which smbwrapper should not be built.
11205 if test x$PICFLAG = x; then
11206 echo No support for PIC code - disabling smbwrapper and smbsh
11209 elif test x$ac_cv_func_syscall = xno; then
11210 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11216 echo "$ac_t""no" 1>&6
11220 echo "$ac_t""no" 1>&6
11225 #################################################
11226 # check for the AFS filesystem
11227 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11228 echo "configure:11229: checking whether to use AFS" >&5
11229 # Check whether --with-afs or --without-afs was given.
11230 if test "${with_afs+set}" = set; then
11231 withval="$with_afs"
11234 echo "$ac_t""yes" 1>&6
11235 cat >> confdefs.h <<\EOF
11241 echo "$ac_t""no" 1>&6
11245 echo "$ac_t""no" 1>&6
11251 #################################################
11252 # check for the DFS auth system
11253 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
11254 echo "configure:11255: checking whether to use DFS auth" >&5
11255 # Check whether --with-dfs or --without-dfs was given.
11256 if test "${with_dfs+set}" = set; then
11257 withval="$with_dfs"
11260 echo "$ac_t""yes" 1>&6
11261 cat >> confdefs.h <<\EOF
11267 echo "$ac_t""no" 1>&6
11271 echo "$ac_t""no" 1>&6
11276 #################################################
11277 # check for Kerberos IV auth system
11278 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11279 echo "configure:11280: checking whether to use Kerberos IV" >&5
11280 # Check whether --with-krb4 or --without-krb4 was given.
11281 if test "${with_krb4+set}" = set; then
11282 withval="$with_krb4"
11283 echo "$ac_t""yes" 1>&6
11284 cat >> confdefs.h <<\EOF
11285 #define KRB4_AUTH 1
11288 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11289 echo "configure:11290: checking for dn_expand in -lresolv" >&5
11290 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11291 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11292 echo $ac_n "(cached) $ac_c" 1>&6
11294 ac_save_LIBS="$LIBS"
11295 LIBS="-lresolv $LIBS"
11296 cat > conftest.$ac_ext <<EOF
11297 #line 11298 "configure"
11298 #include "confdefs.h"
11299 /* Override any gcc2 internal prototype to avoid an error. */
11300 /* We use char because int might match the return type of a gcc2
11301 builtin and then its argument prototype would still apply. */
11308 if { (eval echo configure:11309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11310 eval "ac_cv_lib_$ac_lib_var=yes"
11312 echo "configure: failed program was:" >&5
11313 cat conftest.$ac_ext >&5
11315 eval "ac_cv_lib_$ac_lib_var=no"
11318 LIBS="$ac_save_LIBS"
11321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11322 echo "$ac_t""yes" 1>&6
11323 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11324 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11325 cat >> confdefs.h <<EOF
11326 #define $ac_tr_lib 1
11329 LIBS="-lresolv $LIBS"
11332 echo "$ac_t""no" 1>&6
11335 LIBS="$LIBS -lkrb -ldes"
11336 CFLAGS="$CFLAGS -I$withval/include"
11337 LDFLAGS="$LDFLAGS -L$withval/lib"
11339 echo "$ac_t""no" 1>&6
11344 #################################################
11345 # check for Kerberos 5 auth system
11346 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11347 echo "configure:11348: checking whether to use Kerberos 5" >&5
11348 # Check whether --with-krb5 or --without-krb5 was given.
11349 if test "${with_krb5+set}" = set; then
11350 withval="$with_krb5"
11351 echo "$ac_t""yes" 1>&6
11352 cat >> confdefs.h <<\EOF
11353 #define KRB5_AUTH 1
11356 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11357 CFLAGS="$CFLAGS -I$withval/include"
11358 LDFLAGS="$LDFLAGS -L$withval/lib"
11360 echo "$ac_t""no" 1>&6
11365 #################################################
11366 # check for automount support
11367 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11368 echo "configure:11369: checking whether to use AUTOMOUNT" >&5
11369 # Check whether --with-automount or --without-automount was given.
11370 if test "${with_automount+set}" = set; then
11371 withval="$with_automount"
11374 echo "$ac_t""yes" 1>&6
11375 cat >> confdefs.h <<\EOF
11376 #define WITH_AUTOMOUNT 1
11381 echo "$ac_t""no" 1>&6
11385 echo "$ac_t""no" 1>&6
11390 #################################################
11391 # check for smbmount support
11392 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11393 echo "configure:11394: checking whether to use SMBMOUNT" >&5
11394 # Check whether --with-smbmount or --without-smbmount was given.
11395 if test "${with_smbmount+set}" = set; then
11396 withval="$with_smbmount"
11399 echo "$ac_t""yes" 1>&6
11400 cat >> confdefs.h <<\EOF
11401 #define WITH_SMBMOUNT 1
11404 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11407 echo "$ac_t""no" 1>&6
11412 echo "$ac_t""no" 1>&6
11419 #################################################
11420 # check for a PAM password database
11421 with_pam_for_crypt=no
11422 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11423 echo "configure:11424: checking whether to use PAM password database" >&5
11424 # Check whether --with-pam or --without-pam was given.
11425 if test "${with_pam+set}" = set; then
11426 withval="$with_pam"
11429 echo "$ac_t""yes" 1>&6
11430 cat >> confdefs.h <<\EOF
11435 with_pam_for_crypt=yes
11438 echo "$ac_t""no" 1>&6
11442 echo "$ac_t""no" 1>&6
11447 # we can't build a pam module if we don't have pam.
11448 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11449 echo "configure:11450: checking for pam_get_data in -lpam" >&5
11450 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11451 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11452 echo $ac_n "(cached) $ac_c" 1>&6
11454 ac_save_LIBS="$LIBS"
11456 cat > conftest.$ac_ext <<EOF
11457 #line 11458 "configure"
11458 #include "confdefs.h"
11459 /* Override any gcc2 internal prototype to avoid an error. */
11460 /* We use char because int might match the return type of a gcc2
11461 builtin and then its argument prototype would still apply. */
11462 char pam_get_data();
11468 if { (eval echo configure:11469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11470 eval "ac_cv_lib_$ac_lib_var=yes"
11472 echo "configure: failed program was:" >&5
11473 cat conftest.$ac_ext >&5
11475 eval "ac_cv_lib_$ac_lib_var=no"
11478 LIBS="$ac_save_LIBS"
11481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11482 echo "$ac_t""yes" 1>&6
11483 cat >> confdefs.h <<\EOF
11484 #define HAVE_LIBPAM 1
11488 echo "$ac_t""no" 1>&6
11492 #################################################
11493 # check for pam_smbpass support
11494 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11495 echo "configure:11496: checking whether to use pam_smbpass" >&5
11496 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11497 if test "${with_pam_smbpass+set}" = set; then
11498 withval="$with_pam_smbpass"
11501 echo "$ac_t""yes" 1>&6
11503 # Conditions under which pam_smbpass should not be built.
11505 if test x$PICFLAG = x; then
11506 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11508 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
11509 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11512 cat >> confdefs.h <<\EOF
11513 #define WITH_PAM_SMBPASS 1
11516 PAM_MOD="bin/pam_smbpass.so"
11520 echo "$ac_t""no" 1>&6
11524 echo "$ac_t""no" 1>&6
11530 ###############################################
11531 # test for where we get crypt() from, but only
11533 if test $with_pam_for_crypt = no; then
11534 for ac_func in crypt
11536 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11537 echo "configure:11538: checking for $ac_func" >&5
11538 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11539 echo $ac_n "(cached) $ac_c" 1>&6
11541 cat > conftest.$ac_ext <<EOF
11542 #line 11543 "configure"
11543 #include "confdefs.h"
11544 /* System header to define __stub macros and hopefully few prototypes,
11545 which can conflict with char $ac_func(); below. */
11546 #include <assert.h>
11547 /* Override any gcc2 internal prototype to avoid an error. */
11548 /* We use char because int might match the return type of a gcc2
11549 builtin and then its argument prototype would still apply. */
11554 /* The GNU C library defines this for functions which it implements
11555 to always fail with ENOSYS. Some functions are actually named
11556 something starting with __ and the normal name is an alias. */
11557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11565 if { (eval echo configure:11566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11567 eval "ac_cv_func_$ac_func=yes"
11569 echo "configure: failed program was:" >&5
11570 cat conftest.$ac_ext >&5
11572 eval "ac_cv_func_$ac_func=no"
11577 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11578 echo "$ac_t""yes" 1>&6
11579 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11580 cat >> confdefs.h <<EOF
11581 #define $ac_tr_func 1
11585 echo "$ac_t""no" 1>&6
11589 if test x"$ac_cv_func_crypt" = x"no"; then
11590 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11591 echo "configure:11592: checking for crypt in -lcrypt" >&5
11592 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11593 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11594 echo $ac_n "(cached) $ac_c" 1>&6
11596 ac_save_LIBS="$LIBS"
11597 LIBS="-lcrypt $LIBS"
11598 cat > conftest.$ac_ext <<EOF
11599 #line 11600 "configure"
11600 #include "confdefs.h"
11601 /* Override any gcc2 internal prototype to avoid an error. */
11602 /* We use char because int might match the return type of a gcc2
11603 builtin and then its argument prototype would still apply. */
11610 if { (eval echo configure:11611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11612 eval "ac_cv_lib_$ac_lib_var=yes"
11614 echo "configure: failed program was:" >&5
11615 cat conftest.$ac_ext >&5
11617 eval "ac_cv_lib_$ac_lib_var=no"
11620 LIBS="$ac_save_LIBS"
11623 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11624 echo "$ac_t""yes" 1>&6
11625 LIBS="$LIBS -lcrypt";
11626 cat >> confdefs.h <<\EOF
11627 #define HAVE_CRYPT 1
11631 echo "$ac_t""no" 1>&6
11638 #################################################
11639 # check for a TDB password database
11640 echo $ac_n "checking whether to use TDB password database""... $ac_c" 1>&6
11641 echo "configure:11642: checking whether to use TDB password database" >&5
11642 # Check whether --with-tdbsam or --without-tdbsam was given.
11643 if test "${with_tdbsam+set}" = set; then
11644 withval="$with_tdbsam"
11647 echo "$ac_t""yes" 1>&6
11648 cat >> confdefs.h <<\EOF
11649 #define WITH_TDBPWD 1
11652 # AC_MSG_ERROR([TDB password database not supported in this version.])
11655 echo "$ac_t""no" 1>&6
11659 echo "$ac_t""no" 1>&6
11664 #################################################
11665 # check for a LDAP password database
11666 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
11667 echo "configure:11668: checking whether to use LDAP password database" >&5
11668 # Check whether --with-ldap or --without-ldap was given.
11669 if test "${with_ldap+set}" = set; then
11670 withval="$with_ldap"
11673 echo "$ac_t""yes" 1>&6
11674 cat >> confdefs.h <<\EOF
11675 #define WITH_LDAP 1
11678 { echo "configure: error: LDAP password database not supported in this version." 1>&2; exit 1; }
11681 echo "$ac_t""no" 1>&6
11685 echo "$ac_t""no" 1>&6
11690 #################################################
11691 # check for a NISPLUS password database
11692 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
11693 echo "configure:11694: checking whether to use NISPLUS password database" >&5
11694 # Check whether --with-nisplus or --without-nisplus was given.
11695 if test "${with_nisplus+set}" = set; then
11696 withval="$with_nisplus"
11699 echo "$ac_t""yes" 1>&6
11700 cat >> confdefs.h <<\EOF
11701 #define WITH_NISPLUS 1
11706 echo "$ac_t""no" 1>&6
11710 echo "$ac_t""no" 1>&6
11715 #################################################
11716 # check for a NISPLUS_HOME support
11717 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11718 echo "configure:11719: checking whether to use NISPLUS_HOME" >&5
11719 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11720 if test "${with_nisplus_home+set}" = set; then
11721 withval="$with_nisplus_home"
11724 echo "$ac_t""yes" 1>&6
11725 cat >> confdefs.h <<\EOF
11726 #define WITH_NISPLUS_HOME 1
11731 echo "$ac_t""no" 1>&6
11735 echo "$ac_t""no" 1>&6
11740 #################################################
11741 # check for the secure socket layer
11742 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11743 echo "configure:11744: checking whether to use SSL" >&5
11744 # Check whether --with-ssl or --without-ssl was given.
11745 if test "${with_ssl+set}" = set; then
11746 withval="$with_ssl"
11749 echo "$ac_t""yes" 1>&6
11750 cat >> confdefs.h <<\EOF
11754 withval="/usr/local/ssl" # default
11756 if test "${with_sslinc+set}" = set; then
11758 withval="$with_sslinc"
11761 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11762 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11763 LIBS="-lssl -lcrypto $LIBS"
11764 LDFLAGS="=L/usr/local/ssl/lib $LDFLAGS"
11767 CFLAGS="-I${withval}/include $CFLAGS"
11768 LIBS="-lssl -lcrypto $LIBS"
11769 LDFLAGS="-L${withval}/lib $LDFLAGS"
11775 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11776 LIBS="-lssl -lcrypto $LIBS"
11777 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
11781 if test ! -d ${withval}; then
11782 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11786 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11790 echo "$ac_t""no" 1>&6
11794 echo "$ac_t""no" 1>&6
11799 #################################################
11800 # check for syslog logging
11801 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11802 echo "configure:11803: checking whether to use syslog logging" >&5
11803 # Check whether --with-syslog or --without-syslog was given.
11804 if test "${with_syslog+set}" = set; then
11805 withval="$with_syslog"
11808 echo "$ac_t""yes" 1>&6
11809 cat >> confdefs.h <<\EOF
11810 #define WITH_SYSLOG 1
11815 echo "$ac_t""no" 1>&6
11819 echo "$ac_t""no" 1>&6
11824 #################################################
11825 # check for a shared memory profiling support
11826 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11827 echo "configure:11828: checking whether to use profiling" >&5
11828 # Check whether --with-profile or --without-profile was given.
11829 if test "${with_profile+set}" = set; then
11830 withval="$with_profile"
11833 echo "$ac_t""yes" 1>&6
11834 cat >> confdefs.h <<\EOF
11835 #define WITH_PROFILE 1
11840 echo "$ac_t""no" 1>&6
11844 echo "$ac_t""no" 1>&6
11850 #################################################
11851 # check for experimental netatalk resource fork support
11852 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
11853 echo "configure:11854: checking whether to support netatalk" >&5
11854 # Check whether --with-netatalk or --without-netatalk was given.
11855 if test "${with_netatalk+set}" = set; then
11856 withval="$with_netatalk"
11859 echo "$ac_t""yes" 1>&6
11860 cat >> confdefs.h <<\EOF
11861 #define WITH_NETATALK 1
11866 echo "$ac_t""no" 1>&6
11870 echo "$ac_t""no" 1>&6
11875 #################################################
11876 # check for experimental disk-quotas support
11877 QUOTAOBJS=smbd/noquotas.o
11879 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11880 echo "configure:11881: checking whether to support disk-quotas" >&5
11881 # Check whether --with-quotas or --without-quotas was given.
11882 if test "${with_quotas+set}" = set; then
11883 withval="$with_quotas"
11886 echo "$ac_t""yes" 1>&6
11887 QUOTAOBJS=smbd/quotas.o
11890 echo "$ac_t""no" 1>&6
11894 echo "$ac_t""no" 1>&6
11900 #################################################
11901 # check for experimental utmp accounting
11903 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11904 echo "configure:11905: checking whether to support utmp accounting" >&5
11905 # Check whether --with-utmp or --without-utmp was given.
11906 if test "${with_utmp+set}" = set; then
11907 withval="$with_utmp"
11910 echo "$ac_t""yes" 1>&6
11911 cat >> confdefs.h <<\EOF
11912 #define WITH_UTMP 1
11917 echo "$ac_t""no" 1>&6
11921 echo "$ac_t""no" 1>&6
11926 #################################################
11927 # check for MS Dfs support
11929 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11930 echo "configure:11931: checking whether to support Microsoft Dfs" >&5
11931 # Check whether --with-msdfs or --without-msdfs was given.
11932 if test "${with_msdfs+set}" = set; then
11933 withval="$with_msdfs"
11936 echo "$ac_t""yes" 1>&6
11937 cat >> confdefs.h <<\EOF
11938 #define WITH_MSDFS 1
11943 echo "$ac_t""no" 1>&6
11947 echo "$ac_t""no" 1>&6
11952 #################################################
11953 # set private directory location
11954 # Check whether --with-privatedir or --without-privatedir was given.
11955 if test "${with_privatedir+set}" = set; then
11956 withval="$with_privatedir"
11960 # Just in case anybody calls it without argument
11962 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
11963 privatedir='${prefix}/private'
11966 privatedir="$withval"
11971 privatedir='${prefix}/private'
11977 #################################################
11978 # set lock directory location
11979 # Check whether --with-lockdir or --without-lockdir was given.
11980 if test "${with_lockdir+set}" = set; then
11981 withval="$with_lockdir"
11985 # Just in case anybody calls it without argument
11987 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
11988 lockdir='$(VARDIR)/locks'
11996 lockdir='$(VARDIR)/locks'
12002 #################################################
12003 # set SWAT directory location
12004 # Check whether --with-swatdir or --without-swatdir was given.
12005 if test "${with_swatdir+set}" = set; then
12006 withval="$with_swatdir"
12010 # Just in case anybody does it
12012 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
12013 swatdir='${prefix}/swat'
12021 swatdir='${prefix}/swat'
12027 #################################################
12028 # these tests are taken from the GNU fileutils package
12029 echo "checking how to get filesystem space usage" 1>&6
12030 echo "configure:12031: checking how to get filesystem space usage" >&5
12033 # Test for statvfs64.
12034 if test $space = no; then
12036 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12037 echo "configure:12038: checking statvfs64 function (SVR4)" >&5
12038 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12039 echo $ac_n "(cached) $ac_c" 1>&6
12041 if test "$cross_compiling" = yes; then
12042 fu_cv_sys_stat_statvfs64=cross
12044 cat > conftest.$ac_ext <<EOF
12045 #line 12046 "configure"
12046 #include "confdefs.h"
12048 #if defined(HAVE_UNISTD_H)
12049 #include <unistd.h>
12051 #include <sys/types.h>
12052 #include <sys/statvfs.h>
12055 struct statvfs64 fsd;
12056 exit (statvfs64 (".", &fsd));
12059 if { (eval echo configure:12060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12061 fu_cv_sys_stat_statvfs64=yes
12063 echo "configure: failed program was:" >&5
12064 cat conftest.$ac_ext >&5
12066 fu_cv_sys_stat_statvfs64=no
12073 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12074 if test $fu_cv_sys_stat_statvfs64 = yes; then
12076 cat >> confdefs.h <<\EOF
12077 #define STAT_STATVFS64 1
12083 # Perform only the link test since it seems there are no variants of the
12084 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12085 # because that got a false positive on SCO OSR5. Adding the declaration
12086 # of a `struct statvfs' causes this test to fail (as it should) on such
12087 # systems. That system is reported to work fine with STAT_STATFS4 which
12088 # is what it gets when this test fails.
12089 if test $space = no; then
12091 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12092 echo "configure:12093: checking statvfs function (SVR4)" >&5
12093 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12094 echo $ac_n "(cached) $ac_c" 1>&6
12096 cat > conftest.$ac_ext <<EOF
12097 #line 12098 "configure"
12098 #include "confdefs.h"
12099 #include <sys/types.h>
12100 #include <sys/statvfs.h>
12102 struct statvfs fsd; statvfs (0, &fsd);
12105 if { (eval echo configure:12106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12107 fu_cv_sys_stat_statvfs=yes
12109 echo "configure: failed program was:" >&5
12110 cat conftest.$ac_ext >&5
12112 fu_cv_sys_stat_statvfs=no
12117 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12118 if test $fu_cv_sys_stat_statvfs = yes; then
12120 cat >> confdefs.h <<\EOF
12121 #define STAT_STATVFS 1
12127 if test $space = no; then
12128 # DEC Alpha running OSF/1
12129 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12130 echo "configure:12131: checking for 3-argument statfs function (DEC OSF/1)" >&5
12131 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12132 echo $ac_n "(cached) $ac_c" 1>&6
12134 if test "$cross_compiling" = yes; then
12135 fu_cv_sys_stat_statfs3_osf1=no
12137 cat > conftest.$ac_ext <<EOF
12138 #line 12139 "configure"
12139 #include "confdefs.h"
12141 #include <sys/param.h>
12142 #include <sys/types.h>
12143 #include <sys/mount.h>
12148 exit (statfs (".", &fsd, sizeof (struct statfs)));
12151 if { (eval echo configure:12152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12153 fu_cv_sys_stat_statfs3_osf1=yes
12155 echo "configure: failed program was:" >&5
12156 cat conftest.$ac_ext >&5
12158 fu_cv_sys_stat_statfs3_osf1=no
12165 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12166 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12168 cat >> confdefs.h <<\EOF
12169 #define STAT_STATFS3_OSF1 1
12175 if test $space = no; then
12177 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12178 echo "configure:12179: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12179 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12180 echo $ac_n "(cached) $ac_c" 1>&6
12182 if test "$cross_compiling" = yes; then
12183 fu_cv_sys_stat_statfs2_bsize=no
12185 cat > conftest.$ac_ext <<EOF
12186 #line 12187 "configure"
12187 #include "confdefs.h"
12189 #ifdef HAVE_SYS_PARAM_H
12190 #include <sys/param.h>
12192 #ifdef HAVE_SYS_MOUNT_H
12193 #include <sys/mount.h>
12195 #ifdef HAVE_SYS_VFS_H
12196 #include <sys/vfs.h>
12202 exit (statfs (".", &fsd));
12205 if { (eval echo configure:12206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12207 fu_cv_sys_stat_statfs2_bsize=yes
12209 echo "configure: failed program was:" >&5
12210 cat conftest.$ac_ext >&5
12212 fu_cv_sys_stat_statfs2_bsize=no
12219 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12220 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12222 cat >> confdefs.h <<\EOF
12223 #define STAT_STATFS2_BSIZE 1
12229 if test $space = no; then
12231 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12232 echo "configure:12233: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12233 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12234 echo $ac_n "(cached) $ac_c" 1>&6
12236 if test "$cross_compiling" = yes; then
12237 fu_cv_sys_stat_statfs4=no
12239 cat > conftest.$ac_ext <<EOF
12240 #line 12241 "configure"
12241 #include "confdefs.h"
12242 #include <sys/types.h>
12243 #include <sys/statfs.h>
12247 exit (statfs (".", &fsd, sizeof fsd, 0));
12250 if { (eval echo configure:12251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12252 fu_cv_sys_stat_statfs4=yes
12254 echo "configure: failed program was:" >&5
12255 cat conftest.$ac_ext >&5
12257 fu_cv_sys_stat_statfs4=no
12264 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12265 if test $fu_cv_sys_stat_statfs4 = yes; then
12267 cat >> confdefs.h <<\EOF
12268 #define STAT_STATFS4 1
12274 if test $space = no; then
12275 # 4.4BSD and NetBSD
12276 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12277 echo "configure:12278: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12278 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12279 echo $ac_n "(cached) $ac_c" 1>&6
12281 if test "$cross_compiling" = yes; then
12282 fu_cv_sys_stat_statfs2_fsize=no
12284 cat > conftest.$ac_ext <<EOF
12285 #line 12286 "configure"
12286 #include "confdefs.h"
12287 #include <sys/types.h>
12288 #ifdef HAVE_SYS_PARAM_H
12289 #include <sys/param.h>
12291 #ifdef HAVE_SYS_MOUNT_H
12292 #include <sys/mount.h>
12298 exit (statfs (".", &fsd));
12301 if { (eval echo configure:12302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12303 fu_cv_sys_stat_statfs2_fsize=yes
12305 echo "configure: failed program was:" >&5
12306 cat conftest.$ac_ext >&5
12308 fu_cv_sys_stat_statfs2_fsize=no
12315 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12316 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12318 cat >> confdefs.h <<\EOF
12319 #define STAT_STATFS2_FSIZE 1
12325 if test $space = no; then
12327 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12328 echo "configure:12329: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12329 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12330 echo $ac_n "(cached) $ac_c" 1>&6
12332 if test "$cross_compiling" = yes; then
12333 fu_cv_sys_stat_fs_data=no
12335 cat > conftest.$ac_ext <<EOF
12336 #line 12337 "configure"
12337 #include "confdefs.h"
12338 #include <sys/types.h>
12339 #ifdef HAVE_SYS_PARAM_H
12340 #include <sys/param.h>
12342 #ifdef HAVE_SYS_MOUNT_H
12343 #include <sys/mount.h>
12345 #ifdef HAVE_SYS_FS_TYPES_H
12346 #include <sys/fs_types.h>
12350 struct fs_data fsd;
12351 /* Ultrix's statfs returns 1 for success,
12352 0 for not mounted, -1 for failure. */
12353 exit (statfs (".", &fsd) != 1);
12356 if { (eval echo configure:12357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12358 fu_cv_sys_stat_fs_data=yes
12360 echo "configure: failed program was:" >&5
12361 cat conftest.$ac_ext >&5
12363 fu_cv_sys_stat_fs_data=no
12370 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12371 if test $fu_cv_sys_stat_fs_data = yes; then
12373 cat >> confdefs.h <<\EOF
12374 #define STAT_STATFS2_FS_DATA 1
12381 # As a gating factor for large file support, in order to
12382 # use <4GB files we must have the following minimal support
12384 # long long, and a 64 bit off_t or off64_t.
12385 # If we don't have all of these then disable large
12388 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12389 echo "configure:12390: checking if large file support can be enabled" >&5
12390 cat > conftest.$ac_ext <<EOF
12391 #line 12392 "configure"
12392 #include "confdefs.h"
12394 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12395 #include <sys/types.h>
12404 if { (eval echo configure:12405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12406 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
12408 echo "configure: failed program was:" >&5
12409 cat conftest.$ac_ext >&5
12411 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
12414 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
12415 cat >> confdefs.h <<\EOF
12416 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12420 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
12422 # Check whether --with-spinlocks or --without-spinlocks was given.
12423 if test "${with_spinlocks+set}" = set; then
12424 withval="$with_spinlocks"
12428 if test "x$with_spinlocks" = "xyes"; then
12429 cat >> confdefs.h <<\EOF
12430 #define USE_SPINLOCKS 1
12434 case "$host_cpu" in
12436 cat >> confdefs.h <<\EOF
12437 #define SPARC_SPINLOCKS 1
12442 i386|i486|i586|i686)
12443 cat >> confdefs.h <<\EOF
12444 #define INTEL_SPINLOCKS 1
12450 cat >> confdefs.h <<\EOF
12451 #define MIPS_SPINLOCKS 1
12457 cat >> confdefs.h <<\EOF
12458 #define POWERPC_SPINLOCKS 1
12465 #################################################
12466 # check for ACL support
12468 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12469 echo "configure:12470: checking whether to support ACLs" >&5
12470 # Check whether --with-acl-support or --without-acl-support was given.
12471 if test "${with_acl_support+set}" = set; then
12472 withval="$with_acl_support"
12478 echo "$ac_t""Using UnixWare ACLs" 1>&6
12479 cat >> confdefs.h <<\EOF
12480 #define HAVE_UNIXWARE_ACLS 1
12485 echo "$ac_t""Using solaris ACLs" 1>&6
12486 cat >> confdefs.h <<\EOF
12487 #define HAVE_SOLARIS_ACLS 1
12492 echo "$ac_t""Using IRIX ACLs" 1>&6
12493 cat >> confdefs.h <<\EOF
12494 #define HAVE_IRIX_ACLS 1
12499 echo "$ac_t""Using AIX ACLs" 1>&6
12500 cat >> confdefs.h <<\EOF
12501 #define HAVE_AIX_ACLS 1
12506 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12507 echo "configure:12508: checking for acl_get_file in -lacl" >&5
12508 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12509 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12510 echo $ac_n "(cached) $ac_c" 1>&6
12512 ac_save_LIBS="$LIBS"
12514 cat > conftest.$ac_ext <<EOF
12515 #line 12516 "configure"
12516 #include "confdefs.h"
12517 /* Override any gcc2 internal prototype to avoid an error. */
12518 /* We use char because int might match the return type of a gcc2
12519 builtin and then its argument prototype would still apply. */
12520 char acl_get_file();
12526 if { (eval echo configure:12527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12528 eval "ac_cv_lib_$ac_lib_var=yes"
12530 echo "configure: failed program was:" >&5
12531 cat conftest.$ac_ext >&5
12533 eval "ac_cv_lib_$ac_lib_var=no"
12536 LIBS="$ac_save_LIBS"
12539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12540 echo "$ac_t""yes" 1>&6
12541 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12542 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12543 cat >> confdefs.h <<EOF
12544 #define $ac_tr_lib 1
12550 echo "$ac_t""no" 1>&6
12553 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12554 echo "configure:12555: checking for ACL support" >&5
12555 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12556 echo $ac_n "(cached) $ac_c" 1>&6
12559 cat > conftest.$ac_ext <<EOF
12560 #line 12561 "configure"
12561 #include "confdefs.h"
12562 #include <sys/types.h>
12563 #include <sys/acl.h>
12565 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12568 if { (eval echo configure:12569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12570 samba_cv_HAVE_POSIX_ACLS=yes
12572 echo "configure: failed program was:" >&5
12573 cat conftest.$ac_ext >&5
12575 samba_cv_HAVE_POSIX_ACLS=no
12580 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12581 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
12582 echo "$ac_t""Using posix ACLs" 1>&6
12583 cat >> confdefs.h <<\EOF
12584 #define HAVE_POSIX_ACLS 1
12587 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12588 echo "configure:12589: checking for acl_get_perm_np" >&5
12589 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12590 echo $ac_n "(cached) $ac_c" 1>&6
12593 cat > conftest.$ac_ext <<EOF
12594 #line 12595 "configure"
12595 #include "confdefs.h"
12596 #include <sys/types.h>
12597 #include <sys/acl.h>
12599 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12602 if { (eval echo configure:12603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12604 samba_cv_HAVE_ACL_GET_PERM_NP=yes
12606 echo "configure: failed program was:" >&5
12607 cat conftest.$ac_ext >&5
12609 samba_cv_HAVE_ACL_GET_PERM_NP=no
12614 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12615 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
12616 cat >> confdefs.h <<\EOF
12617 #define HAVE_ACL_GET_PERM_NP 1
12622 echo $ac_n "checking for XFS ACL support""... $ac_c" 1>&6
12623 echo "configure:12624: checking for XFS ACL support" >&5
12624 if eval "test \"`echo '$''{'samba_cv_HAVE_XFS_ACLS'+set}'`\" = set"; then
12625 echo $ac_n "(cached) $ac_c" 1>&6
12628 cat > conftest.$ac_ext <<EOF
12629 #line 12630 "configure"
12630 #include "confdefs.h"
12631 #include <sys/types.h>
12632 #include <acl/acl.h>
12634 char test_str[13] = SGI_ACL_FILE;
12637 if { (eval echo configure:12638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12639 samba_cv_HAVE_XFS_ACLS=yes
12641 echo "configure: failed program was:" >&5
12642 cat conftest.$ac_ext >&5
12644 samba_cv_XFS_POSIX_ACLS=no
12649 echo "$ac_t""$samba_cv_HAVE_XFS_ACLS" 1>&6
12650 if test x"$samba_cv_HAVE_XFS_ACLS" = x"yes"; then
12651 echo "$ac_t""Using XFS ACLs" 1>&6
12652 cat >> confdefs.h <<\EOF
12653 #define HAVE_XFS_ACLS 1
12661 echo "$ac_t""no" 1>&6
12662 cat >> confdefs.h <<\EOF
12663 #define HAVE_NO_ACLS 1
12669 cat >> confdefs.h <<\EOF
12670 #define HAVE_NO_ACLS 1
12673 echo "$ac_t""no" 1>&6
12678 #################################################
12679 # check whether winbind is supported on this platform
12681 echo $ac_n "checking whether to compile winbind""... $ac_c" 1>&6
12682 echo "configure:12683: checking whether to compile winbind" >&5
12686 WINBIND_TARGETS="$WINBIND_TARGETS \$(WINBIND_PROGS)"
12689 winbind_no_reason=", unsupported on $host_os"
12693 # Check whether --with-winbind or --without-winbind was given.
12694 if test "${with_winbind+set}" = set; then
12695 withval="$with_winbind"
12706 if test x"$WINBIND_TARGETS" = x; then
12707 echo "$ac_t""no$winbind_no_reason" 1>&6
12709 echo "$ac_t""yes" 1>&6
12714 #################################################
12715 # final configure stuff
12717 echo "checking configure summary"
12718 if test "$cross_compiling" = yes; then
12721 cat > conftest.$ac_ext <<EOF
12722 #line 12723 "configure"
12723 #include "confdefs.h"
12724 #include "${srcdir-.}/tests/summary.c"
12726 if { (eval echo configure:12727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12728 echo "configure OK";
12730 echo "configure: failed program was:" >&5
12731 cat conftest.$ac_ext >&5
12733 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12743 cat > confcache <<\EOF
12744 # This file is a shell script that caches the results of configure
12745 # tests run on this system so they can be shared between configure
12746 # scripts and configure runs. It is not useful on other systems.
12747 # If it contains results you don't want to keep, you may remove or edit it.
12749 # By default, configure uses ./config.cache as the cache file,
12750 # creating it if it does not exist already. You can give configure
12751 # the --cache-file=FILE option to use a different cache file; that is
12752 # what configure does when it calls configure scripts in
12753 # subdirectories, so they share the cache.
12754 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12755 # config.status only pays attention to the cache file if you give it the
12756 # --recheck option to rerun configure.
12759 # The following way of writing the cache mishandles newlines in values,
12760 # but we know of no workaround that is simple, portable, and efficient.
12761 # So, don't put newlines in cache variables' values.
12762 # Ultrix sh set writes to stderr and can't be redirected directly,
12763 # and sets the high bit in the cache file unless we assign to the vars.
12765 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12767 # `set' does not quote correctly, so add quotes (double-quote substitution
12768 # turns \\\\ into \\, and sed turns \\ into \).
12770 -e "s/'/'\\\\''/g" \
12771 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12774 # `set' quotes correctly as required by POSIX, so do not add quotes.
12775 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12778 if cmp -s $cache_file confcache; then
12781 if test -w $cache_file; then
12782 echo "updating cache $cache_file"
12783 cat confcache > $cache_file
12785 echo "not updating unwritable cache $cache_file"
12790 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12792 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12793 # Let make expand exec_prefix.
12794 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12796 # Any assignment to VPATH causes Sun make to only execute
12797 # the first set of double-colon rules, so remove it if not needed.
12798 # If there is a colon in the path, we need to keep it.
12799 if test "x$srcdir" = x.; then
12800 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12803 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12805 DEFS=-DHAVE_CONFIG_H
12807 # Without the "./", some shells look in PATH for config.status.
12808 : ${CONFIG_STATUS=./config.status}
12810 echo creating $CONFIG_STATUS
12811 rm -f $CONFIG_STATUS
12812 cat > $CONFIG_STATUS <<EOF
12814 # Generated automatically by configure.
12815 # Run this file to recreate the current configuration.
12816 # This directory was configured as follows,
12817 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12819 # $0 $ac_configure_args
12821 # Compiler output produced by configure, useful for debugging
12822 # configure, is in ./config.log if it exists.
12824 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12827 case "\$ac_option" in
12828 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12829 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12830 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12831 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12832 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12834 -help | --help | --hel | --he | --h)
12835 echo "\$ac_cs_usage"; exit 0 ;;
12836 *) echo "\$ac_cs_usage"; exit 1 ;;
12840 ac_given_srcdir=$srcdir
12841 ac_given_INSTALL="$INSTALL"
12843 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12845 cat >> $CONFIG_STATUS <<EOF
12847 # Protect against being on the right side of a sed subst in config.status.
12848 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12849 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12853 s%@CFLAGS@%$CFLAGS%g
12854 s%@CPPFLAGS@%$CPPFLAGS%g
12855 s%@CXXFLAGS@%$CXXFLAGS%g
12856 s%@FFLAGS@%$FFLAGS%g
12858 s%@LDFLAGS@%$LDFLAGS%g
12860 s%@exec_prefix@%$exec_prefix%g
12861 s%@prefix@%$prefix%g
12862 s%@program_transform_name@%$program_transform_name%g
12863 s%@bindir@%$bindir%g
12864 s%@sbindir@%$sbindir%g
12865 s%@libexecdir@%$libexecdir%g
12866 s%@datadir@%$datadir%g
12867 s%@sysconfdir@%$sysconfdir%g
12868 s%@sharedstatedir@%$sharedstatedir%g
12869 s%@localstatedir@%$localstatedir%g
12870 s%@libdir@%$libdir%g
12871 s%@includedir@%$includedir%g
12872 s%@oldincludedir@%$oldincludedir%g
12873 s%@infodir@%$infodir%g
12874 s%@mandir@%$mandir%g
12875 s%@RUNPROG@%$RUNPROG%g
12876 s%@MPROGS@%$MPROGS%g
12877 s%@LDSHFLAGS@%$LDSHFLAGS%g
12878 s%@HOST_OS@%$HOST_OS%g
12879 s%@PAM_MOD@%$PAM_MOD%g
12881 s%@WRAP32@%$WRAP32%g
12882 s%@PICFLAG@%$PICFLAG%g
12883 s%@SHLIBEXT@%$SHLIBEXT%g
12885 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12886 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12887 s%@INSTALL_DATA@%$INSTALL_DATA%g
12890 s%@host_alias@%$host_alias%g
12891 s%@host_cpu@%$host_cpu%g
12892 s%@host_vendor@%$host_vendor%g
12893 s%@host_os@%$host_os%g
12895 s%@build_alias@%$build_alias%g
12896 s%@build_cpu@%$build_cpu%g
12897 s%@build_vendor@%$build_vendor%g
12898 s%@build_os@%$build_os%g
12899 s%@RANLIB@%$RANLIB%g
12901 s%@LIBTOOL@%$LIBTOOL%g
12902 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
12903 s%@BROKEN_CC@%$BROKEN_CC%g
12904 s%@target@%$target%g
12905 s%@target_alias@%$target_alias%g
12906 s%@target_cpu@%$target_cpu%g
12907 s%@target_vendor@%$target_vendor%g
12908 s%@target_os@%$target_os%g
12910 s%@LIBOBJS@%$LIBOBJS%g
12911 s%@TERMLIBS@%$TERMLIBS%g
12912 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
12914 s%@QUOTAOBJS@%$QUOTAOBJS%g
12915 s%@privatedir@%$privatedir%g
12916 s%@lockdir@%$lockdir%g
12917 s%@swatdir@%$swatdir%g
12918 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
12919 s%@builddir@%$builddir%g
12924 cat >> $CONFIG_STATUS <<\EOF
12926 # Split the substitutions into bite-sized pieces for seds with
12927 # small command number limits, like on Digital OSF/1 and HP-UX.
12928 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12929 ac_file=1 # Number of current file.
12930 ac_beg=1 # First line for current file.
12931 ac_end=$ac_max_sed_cmds # Line after last line for current file.
12934 while $ac_more_lines; do
12935 if test $ac_beg -gt 1; then
12936 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12938 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12940 if test ! -s conftest.s$ac_file; then
12941 ac_more_lines=false
12942 rm -f conftest.s$ac_file
12944 if test -z "$ac_sed_cmds"; then
12945 ac_sed_cmds="sed -f conftest.s$ac_file"
12947 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12949 ac_file=`expr $ac_file + 1`
12951 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12954 if test -z "$ac_sed_cmds"; then
12959 cat >> $CONFIG_STATUS <<EOF
12961 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
12963 cat >> $CONFIG_STATUS <<\EOF
12964 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12965 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12967 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12968 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12969 *) ac_file_in="${ac_file}.in" ;;
12972 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12974 # Remove last slash and all that follows it. Not all systems have dirname.
12975 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12976 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12977 # The file is in a subdirectory.
12978 test ! -d "$ac_dir" && mkdir "$ac_dir"
12979 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12980 # A "../" for each directory in $ac_dir_suffix.
12981 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12983 ac_dir_suffix= ac_dots=
12986 case "$ac_given_srcdir" in
12988 if test -z "$ac_dots"; then top_srcdir=.
12989 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12990 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12991 *) # Relative path.
12992 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12993 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12996 case "$ac_given_INSTALL" in
12997 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12998 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13001 echo creating "$ac_file"
13003 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13005 *Makefile*) ac_comsub="1i\\
13006 # $configure_input" ;;
13010 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13012 s%@configure_input@%$configure_input%g
13013 s%@srcdir@%$srcdir%g
13014 s%@top_srcdir@%$top_srcdir%g
13015 s%@INSTALL@%$INSTALL%g
13016 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13020 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13021 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13023 # ac_d sets the value in "#define NAME VALUE" lines.
13024 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13025 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13028 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13029 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13030 ac_uB='\([ ]\)%\1#\2define\3'
13033 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13034 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13035 ac_eB='$%\1#\2define\3'
13039 if test "${CONFIG_HEADERS+set}" != set; then
13041 cat >> $CONFIG_STATUS <<EOF
13042 CONFIG_HEADERS="include/config.h"
13044 cat >> $CONFIG_STATUS <<\EOF
13046 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13047 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13049 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13050 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13051 *) ac_file_in="${ac_file}.in" ;;
13054 echo creating $ac_file
13056 rm -f conftest.frag conftest.in conftest.out
13057 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13058 cat $ac_file_inputs > conftest.in
13062 # Transform confdefs.h into a sed script conftest.vals that substitutes
13063 # the proper values into config.h.in to produce config.h. And first:
13064 # Protect against being on the right side of a sed subst in config.status.
13065 # Protect against being in an unquoted here document in config.status.
13066 rm -f conftest.vals
13067 cat > conftest.hdr <<\EOF
13070 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13074 sed -n -f conftest.hdr confdefs.h > conftest.vals
13077 # This sed command replaces #undef with comments. This is necessary, for
13078 # example, in the case of _POSIX_SOURCE, which is predefined and required
13079 # on some systems where configure will not decide to define it.
13080 cat >> conftest.vals <<\EOF
13081 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13084 # Break up conftest.vals because some shells have a limit on
13085 # the size of here documents, and old seds have small limits too.
13087 rm -f conftest.tail
13090 ac_lines=`grep -c . conftest.vals`
13091 # grep -c gives empty output for an empty file on some AIX systems.
13092 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13093 # Write a limited-size here document to conftest.frag.
13094 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13095 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13097 sed -f conftest.frag conftest.in > conftest.out
13099 mv conftest.out conftest.in
13100 ' >> $CONFIG_STATUS
13101 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13102 rm -f conftest.vals
13103 mv conftest.tail conftest.vals
13105 rm -f conftest.vals
13107 cat >> $CONFIG_STATUS <<\EOF
13108 rm -f conftest.frag conftest.h
13109 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13110 cat conftest.in >> conftest.h
13112 if cmp -s $ac_file conftest.h 2>/dev/null; then
13113 echo "$ac_file is unchanged"
13116 # Remove last slash and all that follows it. Not all systems have dirname.
13117 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13118 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13119 # The file is in a subdirectory.
13120 test ! -d "$ac_dir" && mkdir "$ac_dir"
13123 mv conftest.h $ac_file
13128 cat >> $CONFIG_STATUS <<EOF
13131 cat >> $CONFIG_STATUS <<\EOF
13135 chmod +x $CONFIG_STATUS
13136 rm -fr confdefs* $ac_clean_files
13137 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1