3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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-maintainer-mode enable some make rules for maintainers"
18 --with-smbwrapper Include SMB wrapper support
19 --without-smbwrapper Don't include SMB wrapper support (default)"
21 --with-afs Include AFS support
22 --without-afs Don't include AFS support (default)"
24 --with-dfs Include DFS support
25 --without-dfs Don't include DFS support (default)"
27 --with-krb4=base-dir Include Kerberos IV support
28 --whithout-krb4 Don't include Kerbers IV support (default)"
30 --with-automount Include AUTOMOUNT support
31 --without-automount Don't include AUTOMOUNT support (default)"
33 --with-smbmount Include SMBMOUNT (Linux only) support
34 --without-smbmount Don't include SMBMOUNT support (default)"
36 --with-ldap Include LDAP support
37 --without-ldap Don't include LDAP support (default)"
39 --with-nisplus Include NISPLUS password database support
40 --without-nisplus Don't include NISPLUS password database support (default)"
42 --with-nisplus-home Include NISPLUS_HOME support
43 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
45 --with-ssl Include SSL support
46 --without-ssl Don't include SSL support (default)"
48 --with-mmap Include experimental MMAP support
49 --without-mmap Don't include MMAP support (default)"
51 --with-syslog Include experimental SYSLOG support
52 --without-syslog Don't include SYSLOG support (default)"
54 --with-netatalk Include experimental Netatalk support
55 --without-netatalk Don't include experimental Netatalk support (default)"
57 --with-quotas Include experimental disk-quota support
58 --without-quotas Don't include experimental disk-quota support (default)"
60 # Initialize some variables set by options.
61 # The variables have the same names as the options, with
62 # dashes changed to underlines.
64 cache_file=./config.cache
73 program_transform_name=s,x,x,
81 bindir='${exec_prefix}/bin'
82 sbindir='${exec_prefix}/sbin'
83 libexecdir='${exec_prefix}/libexec'
84 datadir='${prefix}/share'
85 sysconfdir='${prefix}/etc'
86 sharedstatedir='${prefix}/com'
87 localstatedir='${prefix}/var'
88 libdir='${exec_prefix}/lib'
89 includedir='${prefix}/include'
90 oldincludedir='/usr/include'
91 infodir='${prefix}/info'
92 mandir='${prefix}/man'
94 # Initialize some other variables.
97 # Maximum number of lines to put in a shell here document.
104 # If the previous option needs an argument, assign it.
105 if test -n "$ac_prev"; then
106 eval "$ac_prev=\$ac_option"
112 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
116 # Accept the important Cygnus configure options, so we can diagnose typos.
120 -bindir | --bindir | --bindi | --bind | --bin | --bi)
122 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
123 bindir="$ac_optarg" ;;
125 -build | --build | --buil | --bui | --bu)
127 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
128 build="$ac_optarg" ;;
130 -cache-file | --cache-file | --cache-fil | --cache-fi \
131 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
132 ac_prev=cache_file ;;
133 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
134 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
135 cache_file="$ac_optarg" ;;
137 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
139 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
141 datadir="$ac_optarg" ;;
143 -disable-* | --disable-*)
144 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
145 # Reject names that are not valid shell variable names.
146 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
147 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
149 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
150 eval "enable_${ac_feature}=no" ;;
152 -enable-* | --enable-*)
153 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
154 # Reject names that are not valid shell variable names.
155 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
156 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
158 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
163 eval "enable_${ac_feature}='$ac_optarg'" ;;
165 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
166 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
167 | --exec | --exe | --ex)
168 ac_prev=exec_prefix ;;
169 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
170 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
171 | --exec=* | --exe=* | --ex=*)
172 exec_prefix="$ac_optarg" ;;
174 -gas | --gas | --ga | --g)
175 # Obsolete; use --with-gas.
178 -help | --help | --hel | --he)
179 # Omit some internal or obsolete options to make the list less imposing.
180 # This message is too long to be a string in the A/UX 3.1 sh.
182 Usage: configure [options] [host]
183 Options: [defaults in brackets after descriptions]
185 --cache-file=FILE cache test results in FILE
186 --help print this message
187 --no-create do not create output files
188 --quiet, --silent do not print \`checking...' messages
189 --version print the version of autoconf that created configure
190 Directory and file names:
191 --prefix=PREFIX install architecture-independent files in PREFIX
193 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
195 --bindir=DIR user executables in DIR [EPREFIX/bin]
196 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
197 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
198 --datadir=DIR read-only architecture-independent data in DIR
200 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
201 --sharedstatedir=DIR modifiable architecture-independent data in DIR
203 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
204 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
205 --includedir=DIR C header files in DIR [PREFIX/include]
206 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
207 --infodir=DIR info documentation in DIR [PREFIX/info]
208 --mandir=DIR man documentation in DIR [PREFIX/man]
209 --srcdir=DIR find the sources in DIR [configure dir or ..]
210 --program-prefix=PREFIX prepend PREFIX to installed program names
211 --program-suffix=SUFFIX append SUFFIX to installed program names
212 --program-transform-name=PROGRAM
213 run sed PROGRAM on installed program names
217 --build=BUILD configure for building on BUILD [BUILD=HOST]
218 --host=HOST configure for HOST [guessed]
219 --target=TARGET configure for TARGET [TARGET=HOST]
220 Features and packages:
221 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
222 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
223 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
224 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
225 --x-includes=DIR X include files are in DIR
226 --x-libraries=DIR X library files are in DIR
228 if test -n "$ac_help"; then
229 echo "--enable and --with options recognized:$ac_help"
233 -host | --host | --hos | --ho)
235 -host=* | --host=* | --hos=* | --ho=*)
238 -includedir | --includedir | --includedi | --included | --include \
239 | --includ | --inclu | --incl | --inc)
240 ac_prev=includedir ;;
241 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
242 | --includ=* | --inclu=* | --incl=* | --inc=*)
243 includedir="$ac_optarg" ;;
245 -infodir | --infodir | --infodi | --infod | --info | --inf)
247 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
248 infodir="$ac_optarg" ;;
250 -libdir | --libdir | --libdi | --libd)
252 -libdir=* | --libdir=* | --libdi=* | --libd=*)
253 libdir="$ac_optarg" ;;
255 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
256 | --libexe | --libex | --libe)
257 ac_prev=libexecdir ;;
258 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
259 | --libexe=* | --libex=* | --libe=*)
260 libexecdir="$ac_optarg" ;;
262 -localstatedir | --localstatedir | --localstatedi | --localstated \
263 | --localstate | --localstat | --localsta | --localst \
264 | --locals | --local | --loca | --loc | --lo)
265 ac_prev=localstatedir ;;
266 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
267 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
268 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
269 localstatedir="$ac_optarg" ;;
271 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
273 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
274 mandir="$ac_optarg" ;;
277 # Obsolete; use --without-fp.
280 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
284 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
285 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
288 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
289 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
290 | --oldin | --oldi | --old | --ol | --o)
291 ac_prev=oldincludedir ;;
292 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
293 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
294 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
295 oldincludedir="$ac_optarg" ;;
297 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
299 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
300 prefix="$ac_optarg" ;;
302 -program-prefix | --program-prefix | --program-prefi | --program-pref \
303 | --program-pre | --program-pr | --program-p)
304 ac_prev=program_prefix ;;
305 -program-prefix=* | --program-prefix=* | --program-prefi=* \
306 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
307 program_prefix="$ac_optarg" ;;
309 -program-suffix | --program-suffix | --program-suffi | --program-suff \
310 | --program-suf | --program-su | --program-s)
311 ac_prev=program_suffix ;;
312 -program-suffix=* | --program-suffix=* | --program-suffi=* \
313 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
314 program_suffix="$ac_optarg" ;;
316 -program-transform-name | --program-transform-name \
317 | --program-transform-nam | --program-transform-na \
318 | --program-transform-n | --program-transform- \
319 | --program-transform | --program-transfor \
320 | --program-transfo | --program-transf \
321 | --program-trans | --program-tran \
322 | --progr-tra | --program-tr | --program-t)
323 ac_prev=program_transform_name ;;
324 -program-transform-name=* | --program-transform-name=* \
325 | --program-transform-nam=* | --program-transform-na=* \
326 | --program-transform-n=* | --program-transform-=* \
327 | --program-transform=* | --program-transfor=* \
328 | --program-transfo=* | --program-transf=* \
329 | --program-trans=* | --program-tran=* \
330 | --progr-tra=* | --program-tr=* | --program-t=*)
331 program_transform_name="$ac_optarg" ;;
333 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
334 | -silent | --silent | --silen | --sile | --sil)
337 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
339 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
341 sbindir="$ac_optarg" ;;
343 -sharedstatedir | --sharedstatedir | --sharedstatedi \
344 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
345 | --sharedst | --shareds | --shared | --share | --shar \
347 ac_prev=sharedstatedir ;;
348 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
349 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
350 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
352 sharedstatedir="$ac_optarg" ;;
354 -site | --site | --sit)
356 -site=* | --site=* | --sit=*)
359 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
361 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
362 srcdir="$ac_optarg" ;;
364 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
365 | --syscon | --sysco | --sysc | --sys | --sy)
366 ac_prev=sysconfdir ;;
367 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
368 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
369 sysconfdir="$ac_optarg" ;;
371 -target | --target | --targe | --targ | --tar | --ta | --t)
373 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
374 target="$ac_optarg" ;;
376 -v | -verbose | --verbose | --verbos | --verbo | --verb)
379 -version | --version | --versio | --versi | --vers)
380 echo "configure generated by autoconf version 2.12"
384 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
389 ac_package=`echo $ac_package| sed 's/-/_/g'`
394 eval "with_${ac_package}='$ac_optarg'" ;;
396 -without-* | --without-*)
397 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 eval "with_${ac_package}=no" ;;
406 # Obsolete; use --with-x.
409 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
410 | --x-incl | --x-inc | --x-in | --x-i)
411 ac_prev=x_includes ;;
412 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
413 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
414 x_includes="$ac_optarg" ;;
416 -x-libraries | --x-libraries | --x-librarie | --x-librari \
417 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
418 ac_prev=x_libraries ;;
419 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
420 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
421 x_libraries="$ac_optarg" ;;
423 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
427 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
428 echo "configure: warning: $ac_option: invalid host type" 1>&2
430 if test "x$nonopt" != xNONE; then
431 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
439 if test -n "$ac_prev"; then
440 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
443 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
445 # File descriptor usage:
448 # 2 errors and warnings
449 # 3 some systems may open it to /dev/tty
450 # 4 used on the Kubota Titan
451 # 6 checking for... messages and results
452 # 5 compiler messages saved in config.log
453 if test "$silent" = yes; then
461 This file contains any messages produced by compilers while
462 running configure, to aid debugging if configure makes a mistake.
465 # Strip out --no-create and --no-recursion so they do not pile up.
466 # Also quote any args containing shell metacharacters.
471 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
472 | --no-cr | --no-c) ;;
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
475 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
476 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
477 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
482 # Only set these to C if already set. These must not be set unconditionally
483 # because not all systems understand e.g. LANG=C (notably SCO).
484 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
485 # Non-C LC_CTYPE values break the ctype check.
486 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
487 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
488 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
489 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
491 # confdefs.h avoids OS command line length limits that DEFS can exceed.
492 rm -rf conftest* confdefs.h
493 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
496 # A filename unique to this package, relative to the directory that
497 # configure is in, which we can look for to find out if srcdir is correct.
498 ac_unique_file=include/includes.h
500 # Find the source files, if location was not specified.
501 if test -z "$srcdir"; then
502 ac_srcdir_defaulted=yes
503 # Try the directory containing this script, then its parent.
505 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
506 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
508 if test ! -r $srcdir/$ac_unique_file; then
512 ac_srcdir_defaulted=no
514 if test ! -r $srcdir/$ac_unique_file; then
515 if test "$ac_srcdir_defaulted" = yes; then
516 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
518 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
521 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
523 # Prefer explicitly selected file to automatically selected ones.
524 if test -z "$CONFIG_SITE"; then
525 if test "x$prefix" != xNONE; then
526 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
528 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
531 for ac_site_file in $CONFIG_SITE; do
532 if test -r "$ac_site_file"; then
533 echo "loading site script $ac_site_file"
538 if test -r "$cache_file"; then
539 echo "loading cache $cache_file"
542 echo "creating cache $cache_file"
547 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
548 ac_cpp='$CPP $CPPFLAGS'
549 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
550 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
551 cross_compiling=$ac_cv_prog_cc_cross
553 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
554 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
555 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
562 ac_n= ac_c='\c' ac_t=
567 # we want to be compatibe with older versions of Samba
578 # compile with optimisation and without debugging by default
579 CFLAGS=${CFLAGS-"-O"}
581 # Extract the first word of "gcc", so it can be a program name with args.
582 set dummy gcc; ac_word=$2
583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
584 echo "configure:585: checking for $ac_word" >&5
585 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
586 echo $ac_n "(cached) $ac_c" 1>&6
588 if test -n "$CC"; then
589 ac_cv_prog_CC="$CC" # Let the user override the test.
591 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
592 for ac_dir in $PATH; do
593 test -z "$ac_dir" && ac_dir=.
594 if test -f $ac_dir/$ac_word; then
603 if test -n "$CC"; then
604 echo "$ac_t""$CC" 1>&6
606 echo "$ac_t""no" 1>&6
609 if test -z "$CC"; then
610 # Extract the first word of "cc", so it can be a program name with args.
611 set dummy cc; ac_word=$2
612 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
613 echo "configure:614: checking for $ac_word" >&5
614 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
615 echo $ac_n "(cached) $ac_c" 1>&6
617 if test -n "$CC"; then
618 ac_cv_prog_CC="$CC" # Let the user override the test.
620 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
622 for ac_dir in $PATH; do
623 test -z "$ac_dir" && ac_dir=.
624 if test -f $ac_dir/$ac_word; then
625 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
634 if test $ac_prog_rejected = yes; then
635 # We found a bogon in the path, so make sure we never use it.
636 set dummy $ac_cv_prog_CC
638 if test $# -gt 0; then
639 # We chose a different compiler from the bogus one.
640 # However, it has the same basename, so the bogon will be chosen
641 # first if we set CC to just the basename; use the full file name.
643 set dummy "$ac_dir/$ac_word" "$@"
651 if test -n "$CC"; then
652 echo "$ac_t""$CC" 1>&6
654 echo "$ac_t""no" 1>&6
657 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
660 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
661 echo "configure:662: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
664 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
665 ac_cpp='$CPP $CPPFLAGS'
666 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
667 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
668 cross_compiling=$ac_cv_prog_cc_cross
670 cat > conftest.$ac_ext <<EOF
671 #line 672 "configure"
672 #include "confdefs.h"
675 if { (eval echo configure:676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
676 ac_cv_prog_cc_works=yes
677 # If we can't run a trivial program, we are probably using a cross compiler.
678 if (./conftest; exit) 2>/dev/null; then
679 ac_cv_prog_cc_cross=no
681 ac_cv_prog_cc_cross=yes
684 echo "configure: failed program was:" >&5
685 cat conftest.$ac_ext >&5
686 ac_cv_prog_cc_works=no
690 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
691 if test $ac_cv_prog_cc_works = no; then
692 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
694 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
695 echo "configure:696: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
696 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
697 cross_compiling=$ac_cv_prog_cc_cross
699 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
700 echo "configure:701: checking whether we are using GNU C" >&5
701 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
702 echo $ac_n "(cached) $ac_c" 1>&6
704 cat > conftest.c <<EOF
709 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
716 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
718 if test $ac_cv_prog_gcc = yes; then
720 ac_test_CFLAGS="${CFLAGS+set}"
721 ac_save_CFLAGS="$CFLAGS"
723 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
724 echo "configure:725: checking whether ${CC-cc} accepts -g" >&5
725 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
726 echo $ac_n "(cached) $ac_c" 1>&6
728 echo 'void f(){}' > conftest.c
729 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
738 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
739 if test "$ac_test_CFLAGS" = set; then
740 CFLAGS="$ac_save_CFLAGS"
741 elif test $ac_cv_prog_cc_g = yes; then
748 test "${CFLAGS+set}" = set || CFLAGS="-g"
752 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
753 if test -f $ac_dir/install-sh; then
755 ac_install_sh="$ac_aux_dir/install-sh -c"
757 elif test -f $ac_dir/install.sh; then
759 ac_install_sh="$ac_aux_dir/install.sh -c"
763 if test -z "$ac_aux_dir"; then
764 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
766 ac_config_guess=$ac_aux_dir/config.guess
767 ac_config_sub=$ac_aux_dir/config.sub
768 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
770 # Find a good install program. We prefer a C program (faster),
771 # so one script is as good as another. But avoid the broken or
772 # incompatible versions:
773 # SysV /etc/install, /usr/sbin/install
774 # SunOS /usr/etc/install
777 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
778 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
779 # ./install, which can be erroneously created by make from ./install.sh.
780 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
781 echo "configure:782: checking for a BSD compatible install" >&5
782 if test -z "$INSTALL"; then
783 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
784 echo $ac_n "(cached) $ac_c" 1>&6
786 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
787 for ac_dir in $PATH; do
788 # Account for people who put trailing slashes in PATH elements.
790 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
792 # OSF1 and SCO ODT 3.0 have their own names for install.
793 for ac_prog in ginstall installbsd scoinst install; do
794 if test -f $ac_dir/$ac_prog; then
795 if test $ac_prog = install &&
796 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
797 # AIX install. It has an incompatible calling convention.
798 # OSF/1 installbsd also uses dspmsg, but is usable.
801 ac_cv_path_install="$ac_dir/$ac_prog -c"
812 if test "${ac_cv_path_install+set}" = set; then
813 INSTALL="$ac_cv_path_install"
815 # As a last resort, use the slow shell script. We don't cache a
816 # path for INSTALL within a source directory, because that will
817 # break other packages using the cache if that directory is
818 # removed, or if the path is relative.
819 INSTALL="$ac_install_sh"
822 echo "$ac_t""$INSTALL" 1>&6
824 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
825 # It thinks the first close brace ends the variable substitution.
826 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
828 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
830 for ac_prog in mawk gawk nawk awk
832 # Extract the first word of "$ac_prog", so it can be a program name with args.
833 set dummy $ac_prog; ac_word=$2
834 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
835 echo "configure:836: checking for $ac_word" >&5
836 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
837 echo $ac_n "(cached) $ac_c" 1>&6
839 if test -n "$AWK"; then
840 ac_cv_prog_AWK="$AWK" # Let the user override the test.
842 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
843 for ac_dir in $PATH; do
844 test -z "$ac_dir" && ac_dir=.
845 if test -f $ac_dir/$ac_word; then
846 ac_cv_prog_AWK="$ac_prog"
853 AWK="$ac_cv_prog_AWK"
854 if test -n "$AWK"; then
855 echo "$ac_t""$AWK" 1>&6
857 echo "$ac_t""no" 1>&6
860 test -n "$AWK" && break
865 # Do some error checking and defaulting for the host and target type.
867 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
870 # 1. You are not allowed to specify --host, --target, and nonopt at the
872 # 2. Host defaults to nonopt.
873 # 3. If nonopt is not specified, then host defaults to the current host,
874 # as determined by config.guess.
875 # 4. Target and build default to nonopt.
876 # 5. If nonopt is not specified, then target and build default to host.
878 # The aliases save the names the user supplied, while $host etc.
879 # will get canonicalized.
880 case $host---$target---$nonopt in
881 NONE---*---* | *---NONE---* | *---*---NONE) ;;
882 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
886 # Make sure we can run config.sub.
887 if $ac_config_sub sun4 >/dev/null 2>&1; then :
888 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
891 echo $ac_n "checking host system type""... $ac_c" 1>&6
892 echo "configure:893: checking host system type" >&5
895 case "$host_alias" in
899 if host_alias=`$ac_config_guess`; then :
900 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
902 *) host_alias=$nonopt ;;
906 host=`$ac_config_sub $host_alias`
907 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
908 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
909 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
910 echo "$ac_t""$host" 1>&6
912 echo $ac_n "checking target system type""... $ac_c" 1>&6
913 echo "configure:914: checking target system type" >&5
916 case "$target_alias" in
919 NONE) target_alias=$host_alias ;;
920 *) target_alias=$nonopt ;;
924 target=`$ac_config_sub $target_alias`
925 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
926 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
927 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
928 echo "$ac_t""$target" 1>&6
930 echo $ac_n "checking build system type""... $ac_c" 1>&6
931 echo "configure:932: checking build system type" >&5
934 case "$build_alias" in
937 NONE) build_alias=$host_alias ;;
938 *) build_alias=$nonopt ;;
942 build=`$ac_config_sub $build_alias`
943 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
944 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
945 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
946 echo "$ac_t""$build" 1>&6
948 test "$host_alias" != "$target_alias" &&
949 test "$program_prefix$program_suffix$program_transform_name" = \
951 program_prefix=${target_alias}-
955 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
956 echo "configure:957: checking config.cache system type" >&5
957 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
958 test x"$ac_cv_host_system_type" != x"$host"; } ||
959 { test x"${ac_cv_build_system_type+set}" = x"set" &&
960 test x"$ac_cv_build_system_type" != x"$build"; } ||
961 { test x"${ac_cv_target_system_type+set}" = x"set" &&
962 test x"$ac_cv_target_system_type" != x"$target"; }; then
963 echo "$ac_t""different" 1>&6
964 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
966 echo "$ac_t""same" 1>&6
968 ac_cv_host_system_type="$host"
969 ac_cv_build_system_type="$build"
970 ac_cv_target_system_type="$target"
973 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
974 if test "${enable_maintainer_mode+set}" = set; then
975 enableval="$enable_maintainer_mode"
976 maint_mode=$enableval
981 if test x"$maint_mode" = x"yes"; then MAINT=; else MAINT='#'; fi
983 # Extract the first word of "autoconf", so it can be a program name with args.
984 set dummy autoconf; ac_word=$2
985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
986 echo "configure:987: checking for $ac_word" >&5
987 if eval "test \"`echo '$''{'ac_cv_path_AUTOCONF'+set}'`\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
992 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
996 for ac_dir in $PATH; do
997 test -z "$ac_dir" && ac_dir=.
998 if test -f $ac_dir/$ac_word; then
999 ac_cv_path_AUTOCONF="$ac_dir/$ac_word"
1004 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="autoconf"
1008 AUTOCONF="$ac_cv_path_AUTOCONF"
1009 if test -n "$AUTOCONF"; then
1010 echo "$ac_t""$AUTOCONF" 1>&6
1012 echo "$ac_t""no" 1>&6
1016 # Extract the first word of "autoheader", so it can be a program name with args.
1017 set dummy autoheader; ac_word=$2
1018 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1019 echo "configure:1020: checking for $ac_word" >&5
1020 if eval "test \"`echo '$''{'ac_cv_path_AUTOHEADER'+set}'`\" = set"; then
1021 echo $ac_n "(cached) $ac_c" 1>&6
1023 case "$AUTOHEADER" in
1025 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
1028 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1029 for ac_dir in $PATH; do
1030 test -z "$ac_dir" && ac_dir=.
1031 if test -f $ac_dir/$ac_word; then
1032 ac_cv_path_AUTOHEADER="$ac_dir/$ac_word"
1037 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="autoheader"
1041 AUTOHEADER="$ac_cv_path_AUTOHEADER"
1042 if test -n "$AUTOHEADER"; then
1043 echo "$ac_t""$AUTOHEADER" 1>&6
1045 echo "$ac_t""no" 1>&6
1052 # Config CPPFLAG settings for strange OS's that must be set
1053 # before other tests.
1056 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1058 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1059 echo "configure:1060: checking whether ${CC-cc} accepts -Ae" >&5
1060 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1061 echo $ac_n "(cached) $ac_c" 1>&6
1063 echo 'void f(){}' > conftest.c
1064 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1065 ac_cv_prog_cc_Ae=yes
1073 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1074 if test $ac_cv_prog_cc_Ae = yes; then
1075 CPPFLAGS="$CPPFLAGS -Ae"
1079 # AIX4.x is *so* broken. It doesn't even admit to having large
1080 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1083 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1087 echo $ac_n "checking for inline""... $ac_c" 1>&6
1088 echo "configure:1089: checking for inline" >&5
1089 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1093 for ac_kw in inline __inline__ __inline; do
1094 cat > conftest.$ac_ext <<EOF
1095 #line 1096 "configure"
1096 #include "confdefs.h"
1102 if { (eval echo configure:1103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1104 ac_cv_c_inline=$ac_kw; break
1106 echo "configure: failed program was:" >&5
1107 cat conftest.$ac_ext >&5
1114 echo "$ac_t""$ac_cv_c_inline" 1>&6
1115 case "$ac_cv_c_inline" in
1117 no) cat >> confdefs.h <<\EOF
1121 *) cat >> confdefs.h <<EOF
1122 #define inline $ac_cv_c_inline
1127 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1128 echo "configure:1129: checking how to run the C preprocessor" >&5
1129 # On Suns, sometimes $CPP names a directory.
1130 if test -n "$CPP" && test -d "$CPP"; then
1133 if test -z "$CPP"; then
1134 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1135 echo $ac_n "(cached) $ac_c" 1>&6
1137 # This must be in double quotes, not single quotes, because CPP may get
1138 # substituted into the Makefile and "${CC-cc}" will confuse make.
1140 # On the NeXT, cc -E runs the code through the compiler's parser,
1141 # not just through cpp.
1142 cat > conftest.$ac_ext <<EOF
1143 #line 1144 "configure"
1144 #include "confdefs.h"
1148 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1149 { (eval echo configure:1150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1150 ac_err=`grep -v '^ *+' conftest.out`
1151 if test -z "$ac_err"; then
1155 echo "configure: failed program was:" >&5
1156 cat conftest.$ac_ext >&5
1158 CPP="${CC-cc} -E -traditional-cpp"
1159 cat > conftest.$ac_ext <<EOF
1160 #line 1161 "configure"
1161 #include "confdefs.h"
1165 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1166 { (eval echo configure:1167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1167 ac_err=`grep -v '^ *+' conftest.out`
1168 if test -z "$ac_err"; then
1172 echo "configure: failed program was:" >&5
1173 cat conftest.$ac_ext >&5
1180 ac_cv_prog_CPP="$CPP"
1182 CPP="$ac_cv_prog_CPP"
1184 ac_cv_prog_CPP="$CPP"
1186 echo "$ac_t""$CPP" 1>&6
1188 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1189 echo "configure:1190: checking for ANSI C header files" >&5
1190 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1191 echo $ac_n "(cached) $ac_c" 1>&6
1193 cat > conftest.$ac_ext <<EOF
1194 #line 1195 "configure"
1195 #include "confdefs.h"
1201 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1202 { (eval echo configure:1203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1203 ac_err=`grep -v '^ *+' conftest.out`
1204 if test -z "$ac_err"; then
1206 ac_cv_header_stdc=yes
1209 echo "configure: failed program was:" >&5
1210 cat conftest.$ac_ext >&5
1212 ac_cv_header_stdc=no
1216 if test $ac_cv_header_stdc = yes; then
1217 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1218 cat > conftest.$ac_ext <<EOF
1219 #line 1220 "configure"
1220 #include "confdefs.h"
1223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1224 egrep "memchr" >/dev/null 2>&1; then
1228 ac_cv_header_stdc=no
1234 if test $ac_cv_header_stdc = yes; then
1235 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1236 cat > conftest.$ac_ext <<EOF
1237 #line 1238 "configure"
1238 #include "confdefs.h"
1241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1242 egrep "free" >/dev/null 2>&1; then
1246 ac_cv_header_stdc=no
1252 if test $ac_cv_header_stdc = yes; then
1253 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1254 if test "$cross_compiling" = yes; then
1257 cat > conftest.$ac_ext <<EOF
1258 #line 1259 "configure"
1259 #include "confdefs.h"
1261 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1262 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1263 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1264 int main () { int i; for (i = 0; i < 256; i++)
1265 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1269 if { (eval echo configure:1270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1273 echo "configure: failed program was:" >&5
1274 cat conftest.$ac_ext >&5
1276 ac_cv_header_stdc=no
1284 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1285 if test $ac_cv_header_stdc = yes; then
1286 cat >> confdefs.h <<\EOF
1287 #define STDC_HEADERS 1
1293 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1295 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1296 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1297 echo "configure:1298: checking for $ac_hdr that defines DIR" >&5
1298 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1299 echo $ac_n "(cached) $ac_c" 1>&6
1301 cat > conftest.$ac_ext <<EOF
1302 #line 1303 "configure"
1303 #include "confdefs.h"
1304 #include <sys/types.h>
1310 if { (eval echo configure:1311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1312 eval "ac_cv_header_dirent_$ac_safe=yes"
1314 echo "configure: failed program was:" >&5
1315 cat conftest.$ac_ext >&5
1317 eval "ac_cv_header_dirent_$ac_safe=no"
1321 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1322 echo "$ac_t""yes" 1>&6
1323 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1324 cat >> confdefs.h <<EOF
1325 #define $ac_tr_hdr 1
1327 ac_header_dirent=$ac_hdr; break
1329 echo "$ac_t""no" 1>&6
1332 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1333 if test $ac_header_dirent = dirent.h; then
1334 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1335 echo "configure:1336: checking for opendir in -ldir" >&5
1336 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1337 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1338 echo $ac_n "(cached) $ac_c" 1>&6
1340 ac_save_LIBS="$LIBS"
1342 cat > conftest.$ac_ext <<EOF
1343 #line 1344 "configure"
1344 #include "confdefs.h"
1345 /* Override any gcc2 internal prototype to avoid an error. */
1346 /* We use char because int might match the return type of a gcc2
1347 builtin and then its argument prototype would still apply. */
1354 if { (eval echo configure:1355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1356 eval "ac_cv_lib_$ac_lib_var=yes"
1358 echo "configure: failed program was:" >&5
1359 cat conftest.$ac_ext >&5
1361 eval "ac_cv_lib_$ac_lib_var=no"
1364 LIBS="$ac_save_LIBS"
1367 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1368 echo "$ac_t""yes" 1>&6
1371 echo "$ac_t""no" 1>&6
1375 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1376 echo "configure:1377: checking for opendir in -lx" >&5
1377 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1378 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1379 echo $ac_n "(cached) $ac_c" 1>&6
1381 ac_save_LIBS="$LIBS"
1383 cat > conftest.$ac_ext <<EOF
1384 #line 1385 "configure"
1385 #include "confdefs.h"
1386 /* Override any gcc2 internal prototype to avoid an error. */
1387 /* We use char because int might match the return type of a gcc2
1388 builtin and then its argument prototype would still apply. */
1395 if { (eval echo configure:1396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1397 eval "ac_cv_lib_$ac_lib_var=yes"
1399 echo "configure: failed program was:" >&5
1400 cat conftest.$ac_ext >&5
1402 eval "ac_cv_lib_$ac_lib_var=no"
1405 LIBS="$ac_save_LIBS"
1408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1409 echo "$ac_t""yes" 1>&6
1412 echo "$ac_t""no" 1>&6
1417 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1418 echo "configure:1419: checking whether time.h and sys/time.h may both be included" >&5
1419 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1422 cat > conftest.$ac_ext <<EOF
1423 #line 1424 "configure"
1424 #include "confdefs.h"
1425 #include <sys/types.h>
1426 #include <sys/time.h>
1432 if { (eval echo configure:1433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1434 ac_cv_header_time=yes
1436 echo "configure: failed program was:" >&5
1437 cat conftest.$ac_ext >&5
1439 ac_cv_header_time=no
1444 echo "$ac_t""$ac_cv_header_time" 1>&6
1445 if test $ac_cv_header_time = yes; then
1446 cat >> confdefs.h <<\EOF
1447 #define TIME_WITH_SYS_TIME 1
1452 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1453 echo "configure:1454: checking for sys/wait.h that is POSIX.1 compatible" >&5
1454 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1455 echo $ac_n "(cached) $ac_c" 1>&6
1457 cat > conftest.$ac_ext <<EOF
1458 #line 1459 "configure"
1459 #include "confdefs.h"
1460 #include <sys/types.h>
1461 #include <sys/wait.h>
1463 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1466 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1471 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1474 if { (eval echo configure:1475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1476 ac_cv_header_sys_wait_h=yes
1478 echo "configure: failed program was:" >&5
1479 cat conftest.$ac_ext >&5
1481 ac_cv_header_sys_wait_h=no
1486 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1487 if test $ac_cv_header_sys_wait_h = yes; then
1488 cat >> confdefs.h <<\EOF
1489 #define HAVE_SYS_WAIT_H 1
1494 for ac_hdr in sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1496 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1497 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1498 echo "configure:1499: checking for $ac_hdr" >&5
1499 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1500 echo $ac_n "(cached) $ac_c" 1>&6
1502 cat > conftest.$ac_ext <<EOF
1503 #line 1504 "configure"
1504 #include "confdefs.h"
1507 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1508 { (eval echo configure:1509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1509 ac_err=`grep -v '^ *+' conftest.out`
1510 if test -z "$ac_err"; then
1512 eval "ac_cv_header_$ac_safe=yes"
1515 echo "configure: failed program was:" >&5
1516 cat conftest.$ac_ext >&5
1518 eval "ac_cv_header_$ac_safe=no"
1522 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1523 echo "$ac_t""yes" 1>&6
1524 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1525 cat >> confdefs.h <<EOF
1526 #define $ac_tr_hdr 1
1530 echo "$ac_t""no" 1>&6
1534 for ac_hdr in sys/param.h ctype.h
1536 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1537 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1538 echo "configure:1539: checking for $ac_hdr" >&5
1539 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1540 echo $ac_n "(cached) $ac_c" 1>&6
1542 cat > conftest.$ac_ext <<EOF
1543 #line 1544 "configure"
1544 #include "confdefs.h"
1547 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1548 { (eval echo configure:1549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1549 ac_err=`grep -v '^ *+' conftest.out`
1550 if test -z "$ac_err"; then
1552 eval "ac_cv_header_$ac_safe=yes"
1555 echo "configure: failed program was:" >&5
1556 cat conftest.$ac_ext >&5
1558 eval "ac_cv_header_$ac_safe=no"
1562 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1563 echo "$ac_t""yes" 1>&6
1564 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1565 cat >> confdefs.h <<EOF
1566 #define $ac_tr_hdr 1
1570 echo "$ac_t""no" 1>&6
1574 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/route.h net/if.h
1576 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1577 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1578 echo "configure:1579: checking for $ac_hdr" >&5
1579 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1580 echo $ac_n "(cached) $ac_c" 1>&6
1582 cat > conftest.$ac_ext <<EOF
1583 #line 1584 "configure"
1584 #include "confdefs.h"
1587 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1588 { (eval echo configure:1589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1589 ac_err=`grep -v '^ *+' conftest.out`
1590 if test -z "$ac_err"; then
1592 eval "ac_cv_header_$ac_safe=yes"
1595 echo "configure: failed program was:" >&5
1596 cat conftest.$ac_ext >&5
1598 eval "ac_cv_header_$ac_safe=no"
1602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1603 echo "$ac_t""yes" 1>&6
1604 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1605 cat >> confdefs.h <<EOF
1606 #define $ac_tr_hdr 1
1610 echo "$ac_t""no" 1>&6
1614 for ac_hdr in compat.h rpc/rpc.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h sys/param.h ctype.h
1616 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1617 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1618 echo "configure:1619: checking for $ac_hdr" >&5
1619 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1622 cat > conftest.$ac_ext <<EOF
1623 #line 1624 "configure"
1624 #include "confdefs.h"
1627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1628 { (eval echo configure:1629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1629 ac_err=`grep -v '^ *+' conftest.out`
1630 if test -z "$ac_err"; then
1632 eval "ac_cv_header_$ac_safe=yes"
1635 echo "configure: failed program was:" >&5
1636 cat conftest.$ac_ext >&5
1638 eval "ac_cv_header_$ac_safe=no"
1642 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1643 echo "$ac_t""yes" 1>&6
1644 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1645 cat >> confdefs.h <<EOF
1646 #define $ac_tr_hdr 1
1650 echo "$ac_t""no" 1>&6
1654 for ac_hdr in sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h
1656 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1657 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1658 echo "configure:1659: checking for $ac_hdr" >&5
1659 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1660 echo $ac_n "(cached) $ac_c" 1>&6
1662 cat > conftest.$ac_ext <<EOF
1663 #line 1664 "configure"
1664 #include "confdefs.h"
1667 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1668 { (eval echo configure:1669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1669 ac_err=`grep -v '^ *+' conftest.out`
1670 if test -z "$ac_err"; then
1672 eval "ac_cv_header_$ac_safe=yes"
1675 echo "configure: failed program was:" >&5
1676 cat conftest.$ac_ext >&5
1678 eval "ac_cv_header_$ac_safe=no"
1682 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1683 echo "$ac_t""yes" 1>&6
1684 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1685 cat >> confdefs.h <<EOF
1686 #define $ac_tr_hdr 1
1690 echo "$ac_t""no" 1>&6
1694 for ac_hdr in sys/filio.h string.h strings.h stdlib.h sys/socket.h
1696 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1697 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1698 echo "configure:1699: checking for $ac_hdr" >&5
1699 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6
1702 cat > conftest.$ac_ext <<EOF
1703 #line 1704 "configure"
1704 #include "confdefs.h"
1707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1708 { (eval echo configure:1709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1709 ac_err=`grep -v '^ *+' conftest.out`
1710 if test -z "$ac_err"; then
1712 eval "ac_cv_header_$ac_safe=yes"
1715 echo "configure: failed program was:" >&5
1716 cat conftest.$ac_ext >&5
1718 eval "ac_cv_header_$ac_safe=no"
1722 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1723 echo "$ac_t""yes" 1>&6
1724 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1725 cat >> confdefs.h <<EOF
1726 #define $ac_tr_hdr 1
1730 echo "$ac_t""no" 1>&6
1734 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h
1736 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1737 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1738 echo "configure:1739: checking for $ac_hdr" >&5
1739 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1740 echo $ac_n "(cached) $ac_c" 1>&6
1742 cat > conftest.$ac_ext <<EOF
1743 #line 1744 "configure"
1744 #include "confdefs.h"
1747 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1748 { (eval echo configure:1749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1749 ac_err=`grep -v '^ *+' conftest.out`
1750 if test -z "$ac_err"; then
1752 eval "ac_cv_header_$ac_safe=yes"
1755 echo "configure: failed program was:" >&5
1756 cat conftest.$ac_ext >&5
1758 eval "ac_cv_header_$ac_safe=no"
1762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1763 echo "$ac_t""yes" 1>&6
1764 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1765 cat >> confdefs.h <<EOF
1766 #define $ac_tr_hdr 1
1770 echo "$ac_t""no" 1>&6
1774 for ac_hdr in sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
1776 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1777 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1778 echo "configure:1779: checking for $ac_hdr" >&5
1779 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1780 echo $ac_n "(cached) $ac_c" 1>&6
1782 cat > conftest.$ac_ext <<EOF
1783 #line 1784 "configure"
1784 #include "confdefs.h"
1787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1788 { (eval echo configure:1789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1789 ac_err=`grep -v '^ *+' conftest.out`
1790 if test -z "$ac_err"; then
1792 eval "ac_cv_header_$ac_safe=yes"
1795 echo "configure: failed program was:" >&5
1796 cat conftest.$ac_ext >&5
1798 eval "ac_cv_header_$ac_safe=no"
1802 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1803 echo "$ac_t""yes" 1>&6
1804 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1805 cat >> confdefs.h <<EOF
1806 #define $ac_tr_hdr 1
1810 echo "$ac_t""no" 1>&6
1814 for ac_hdr in shadow.h netinet/tcp.h sys/security.h security/pam_appl.h
1816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1818 echo "configure:1819: checking for $ac_hdr" >&5
1819 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1822 cat > conftest.$ac_ext <<EOF
1823 #line 1824 "configure"
1824 #include "confdefs.h"
1827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1828 { (eval echo configure:1829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1829 ac_err=`grep -v '^ *+' conftest.out`
1830 if test -z "$ac_err"; then
1832 eval "ac_cv_header_$ac_safe=yes"
1835 echo "configure: failed program was:" >&5
1836 cat conftest.$ac_ext >&5
1838 eval "ac_cv_header_$ac_safe=no"
1842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1843 echo "$ac_t""yes" 1>&6
1844 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1845 cat >> confdefs.h <<EOF
1846 #define $ac_tr_hdr 1
1850 echo "$ac_t""no" 1>&6
1854 for ac_hdr in stropts.h poll.h readline.h history.h readline/readline.h
1856 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1857 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1858 echo "configure:1859: checking for $ac_hdr" >&5
1859 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1860 echo $ac_n "(cached) $ac_c" 1>&6
1862 cat > conftest.$ac_ext <<EOF
1863 #line 1864 "configure"
1864 #include "confdefs.h"
1867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1868 { (eval echo configure:1869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1869 ac_err=`grep -v '^ *+' conftest.out`
1870 if test -z "$ac_err"; then
1872 eval "ac_cv_header_$ac_safe=yes"
1875 echo "configure: failed program was:" >&5
1876 cat conftest.$ac_ext >&5
1878 eval "ac_cv_header_$ac_safe=no"
1882 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1883 echo "$ac_t""yes" 1>&6
1884 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1885 cat >> confdefs.h <<EOF
1886 #define $ac_tr_hdr 1
1890 echo "$ac_t""no" 1>&6
1894 for ac_hdr in readline/history.h sys/capability.h syscall.h sys/syscall.h
1896 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1897 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1898 echo "configure:1899: checking for $ac_hdr" >&5
1899 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1900 echo $ac_n "(cached) $ac_c" 1>&6
1902 cat > conftest.$ac_ext <<EOF
1903 #line 1904 "configure"
1904 #include "confdefs.h"
1907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1908 { (eval echo configure:1909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1909 ac_err=`grep -v '^ *+' conftest.out`
1910 if test -z "$ac_err"; then
1912 eval "ac_cv_header_$ac_safe=yes"
1915 echo "configure: failed program was:" >&5
1916 cat conftest.$ac_ext >&5
1918 eval "ac_cv_header_$ac_safe=no"
1922 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1923 echo "$ac_t""yes" 1>&6
1924 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1925 cat >> confdefs.h <<EOF
1926 #define $ac_tr_hdr 1
1930 echo "$ac_t""no" 1>&6
1934 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
1936 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1937 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1938 echo "configure:1939: checking for $ac_hdr" >&5
1939 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1940 echo $ac_n "(cached) $ac_c" 1>&6
1942 cat > conftest.$ac_ext <<EOF
1943 #line 1944 "configure"
1944 #include "confdefs.h"
1947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1948 { (eval echo configure:1949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1949 ac_err=`grep -v '^ *+' conftest.out`
1950 if test -z "$ac_err"; then
1952 eval "ac_cv_header_$ac_safe=yes"
1955 echo "configure: failed program was:" >&5
1956 cat conftest.$ac_ext >&5
1958 eval "ac_cv_header_$ac_safe=no"
1962 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1963 echo "$ac_t""yes" 1>&6
1964 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1965 cat >> confdefs.h <<EOF
1966 #define $ac_tr_hdr 1
1970 echo "$ac_t""no" 1>&6
1975 echo $ac_n "checking size of int""... $ac_c" 1>&6
1976 echo "configure:1977: checking size of int" >&5
1977 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1978 echo $ac_n "(cached) $ac_c" 1>&6
1980 if test "$cross_compiling" = yes; then
1981 ac_cv_sizeof_int=cross
1983 cat > conftest.$ac_ext <<EOF
1984 #line 1985 "configure"
1985 #include "confdefs.h"
1989 FILE *f=fopen("conftestval", "w");
1991 fprintf(f, "%d\n", sizeof(int));
1995 if { (eval echo configure:1996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1997 ac_cv_sizeof_int=`cat conftestval`
1999 echo "configure: failed program was:" >&5
2000 cat conftest.$ac_ext >&5
2008 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2009 cat >> confdefs.h <<EOF
2010 #define SIZEOF_INT $ac_cv_sizeof_int
2014 echo $ac_n "checking size of long""... $ac_c" 1>&6
2015 echo "configure:2016: checking size of long" >&5
2016 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2019 if test "$cross_compiling" = yes; then
2020 ac_cv_sizeof_long=cross
2022 cat > conftest.$ac_ext <<EOF
2023 #line 2024 "configure"
2024 #include "confdefs.h"
2028 FILE *f=fopen("conftestval", "w");
2030 fprintf(f, "%d\n", sizeof(long));
2034 if { (eval echo configure:2035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2036 ac_cv_sizeof_long=`cat conftestval`
2038 echo "configure: failed program was:" >&5
2039 cat conftest.$ac_ext >&5
2047 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2048 cat >> confdefs.h <<EOF
2049 #define SIZEOF_LONG $ac_cv_sizeof_long
2053 echo $ac_n "checking size of short""... $ac_c" 1>&6
2054 echo "configure:2055: checking size of short" >&5
2055 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2056 echo $ac_n "(cached) $ac_c" 1>&6
2058 if test "$cross_compiling" = yes; then
2059 ac_cv_sizeof_short=cross
2061 cat > conftest.$ac_ext <<EOF
2062 #line 2063 "configure"
2063 #include "confdefs.h"
2067 FILE *f=fopen("conftestval", "w");
2069 fprintf(f, "%d\n", sizeof(short));
2073 if { (eval echo configure:2074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2075 ac_cv_sizeof_short=`cat conftestval`
2077 echo "configure: failed program was:" >&5
2078 cat conftest.$ac_ext >&5
2080 ac_cv_sizeof_short=0
2086 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2087 cat >> confdefs.h <<EOF
2088 #define SIZEOF_SHORT $ac_cv_sizeof_short
2093 echo $ac_n "checking for working const""... $ac_c" 1>&6
2094 echo "configure:2095: checking for working const" >&5
2095 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2096 echo $ac_n "(cached) $ac_c" 1>&6
2098 cat > conftest.$ac_ext <<EOF
2099 #line 2100 "configure"
2100 #include "confdefs.h"
2104 /* Ultrix mips cc rejects this. */
2105 typedef int charset[2]; const charset x;
2106 /* SunOS 4.1.1 cc rejects this. */
2107 char const *const *ccp;
2109 /* NEC SVR4.0.2 mips cc rejects this. */
2110 struct point {int x, y;};
2111 static struct point const zero = {0,0};
2112 /* AIX XL C 1.02.0.0 rejects this.
2113 It does not let you subtract one const X* pointer from another in an arm
2114 of an if-expression whose if-part is not a constant expression */
2115 const char *g = "string";
2116 ccp = &g + (g ? g-g : 0);
2117 /* HPUX 7.0 cc rejects these. */
2120 ccp = (char const *const *) p;
2121 { /* SCO 3.2v4 cc rejects this. */
2123 char const *s = 0 ? (char *) 0 : (char const *) 0;
2127 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2129 const int *foo = &x[0];
2132 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2133 typedef const int *iptr;
2137 { /* AIX XL C 1.02.0.0 rejects this saying
2138 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2139 struct s { int j; const int *ap[3]; };
2140 struct s *b; b->j = 5;
2142 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2148 if { (eval echo configure:2149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2152 echo "configure: failed program was:" >&5
2153 cat conftest.$ac_ext >&5
2160 echo "$ac_t""$ac_cv_c_const" 1>&6
2161 if test $ac_cv_c_const = no; then
2162 cat >> confdefs.h <<\EOF
2168 echo $ac_n "checking for inline""... $ac_c" 1>&6
2169 echo "configure:2170: checking for inline" >&5
2170 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2174 for ac_kw in inline __inline__ __inline; do
2175 cat > conftest.$ac_ext <<EOF
2176 #line 2177 "configure"
2177 #include "confdefs.h"
2183 if { (eval echo configure:2184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2185 ac_cv_c_inline=$ac_kw; break
2187 echo "configure: failed program was:" >&5
2188 cat conftest.$ac_ext >&5
2195 echo "$ac_t""$ac_cv_c_inline" 1>&6
2196 case "$ac_cv_c_inline" in
2198 no) cat >> confdefs.h <<\EOF
2202 *) cat >> confdefs.h <<EOF
2203 #define inline $ac_cv_c_inline
2208 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2209 echo "configure:2210: checking whether byte ordering is bigendian" >&5
2210 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2211 echo $ac_n "(cached) $ac_c" 1>&6
2213 ac_cv_c_bigendian=unknown
2214 # See if sys/param.h defines the BYTE_ORDER macro.
2215 cat > conftest.$ac_ext <<EOF
2216 #line 2217 "configure"
2217 #include "confdefs.h"
2218 #include <sys/types.h>
2219 #include <sys/param.h>
2222 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2227 if { (eval echo configure:2228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2229 # It does; now see whether it defined to BIG_ENDIAN or not.
2230 cat > conftest.$ac_ext <<EOF
2231 #line 2232 "configure"
2232 #include "confdefs.h"
2233 #include <sys/types.h>
2234 #include <sys/param.h>
2237 #if BYTE_ORDER != BIG_ENDIAN
2242 if { (eval echo configure:2243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2244 ac_cv_c_bigendian=yes
2246 echo "configure: failed program was:" >&5
2247 cat conftest.$ac_ext >&5
2249 ac_cv_c_bigendian=no
2253 echo "configure: failed program was:" >&5
2254 cat conftest.$ac_ext >&5
2257 if test $ac_cv_c_bigendian = unknown; then
2258 if test "$cross_compiling" = yes; then
2259 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2261 cat > conftest.$ac_ext <<EOF
2262 #line 2263 "configure"
2263 #include "confdefs.h"
2265 /* Are we little or big endian? From Harbison&Steele. */
2269 char c[sizeof (long)];
2272 exit (u.c[sizeof (long) - 1] == 1);
2275 if { (eval echo configure:2276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2277 ac_cv_c_bigendian=no
2279 echo "configure: failed program was:" >&5
2280 cat conftest.$ac_ext >&5
2282 ac_cv_c_bigendian=yes
2290 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2291 if test $ac_cv_c_bigendian = yes; then
2292 cat >> confdefs.h <<\EOF
2293 #define WORDS_BIGENDIAN 1
2298 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2299 echo "configure:2300: checking whether char is unsigned" >&5
2300 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2303 if test "$GCC" = yes; then
2304 # GCC predefines this symbol on systems where it applies.
2305 cat > conftest.$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2308 #ifdef __CHAR_UNSIGNED__
2313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2314 egrep "yes" >/dev/null 2>&1; then
2316 ac_cv_c_char_unsigned=yes
2319 ac_cv_c_char_unsigned=no
2324 if test "$cross_compiling" = yes; then
2325 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2327 cat > conftest.$ac_ext <<EOF
2328 #line 2329 "configure"
2329 #include "confdefs.h"
2330 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2331 #if !defined(__STDC__) || __STDC__ != 1
2335 volatile char c = 255; exit(c < 0);
2338 if { (eval echo configure:2339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2340 ac_cv_c_char_unsigned=yes
2342 echo "configure: failed program was:" >&5
2343 cat conftest.$ac_ext >&5
2345 ac_cv_c_char_unsigned=no
2353 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2354 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2355 cat >> confdefs.h <<\EOF
2356 #define __CHAR_UNSIGNED__ 1
2362 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2363 echo "configure:2364: checking return type of signal handlers" >&5
2364 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2365 echo $ac_n "(cached) $ac_c" 1>&6
2367 cat > conftest.$ac_ext <<EOF
2368 #line 2369 "configure"
2369 #include "confdefs.h"
2370 #include <sys/types.h>
2376 extern "C" void (*signal (int, void (*)(int)))(int);
2378 void (*signal ()) ();
2385 if { (eval echo configure:2386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2387 ac_cv_type_signal=void
2389 echo "configure: failed program was:" >&5
2390 cat conftest.$ac_ext >&5
2392 ac_cv_type_signal=int
2397 echo "$ac_t""$ac_cv_type_signal" 1>&6
2398 cat >> confdefs.h <<EOF
2399 #define RETSIGTYPE $ac_cv_type_signal
2403 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2404 echo "configure:2405: checking for uid_t in sys/types.h" >&5
2405 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2408 cat > conftest.$ac_ext <<EOF
2409 #line 2410 "configure"
2410 #include "confdefs.h"
2411 #include <sys/types.h>
2413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2414 egrep "uid_t" >/dev/null 2>&1; then
2416 ac_cv_type_uid_t=yes
2425 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2426 if test $ac_cv_type_uid_t = no; then
2427 cat >> confdefs.h <<\EOF
2431 cat >> confdefs.h <<\EOF
2437 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2438 echo "configure:2439: checking for mode_t" >&5
2439 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2442 cat > conftest.$ac_ext <<EOF
2443 #line 2444 "configure"
2444 #include "confdefs.h"
2445 #include <sys/types.h>
2451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2452 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2454 ac_cv_type_mode_t=yes
2457 ac_cv_type_mode_t=no
2462 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2463 if test $ac_cv_type_mode_t = no; then
2464 cat >> confdefs.h <<\EOF
2470 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2471 echo "configure:2472: checking for off_t" >&5
2472 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2473 echo $ac_n "(cached) $ac_c" 1>&6
2475 cat > conftest.$ac_ext <<EOF
2476 #line 2477 "configure"
2477 #include "confdefs.h"
2478 #include <sys/types.h>
2484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2485 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2487 ac_cv_type_off_t=yes
2495 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2496 if test $ac_cv_type_off_t = no; then
2497 cat >> confdefs.h <<\EOF
2503 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2504 echo "configure:2505: checking for size_t" >&5
2505 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2508 cat > conftest.$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2511 #include <sys/types.h>
2517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2518 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2520 ac_cv_type_size_t=yes
2523 ac_cv_type_size_t=no
2528 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2529 if test $ac_cv_type_size_t = no; then
2530 cat >> confdefs.h <<\EOF
2531 #define size_t unsigned
2536 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2537 echo "configure:2538: checking for pid_t" >&5
2538 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2539 echo $ac_n "(cached) $ac_c" 1>&6
2541 cat > conftest.$ac_ext <<EOF
2542 #line 2543 "configure"
2543 #include "confdefs.h"
2544 #include <sys/types.h>
2550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2551 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2553 ac_cv_type_pid_t=yes
2561 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2562 if test $ac_cv_type_pid_t = no; then
2563 cat >> confdefs.h <<\EOF
2569 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2570 echo "configure:2571: checking for st_rdev in struct stat" >&5
2571 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2572 echo $ac_n "(cached) $ac_c" 1>&6
2574 cat > conftest.$ac_ext <<EOF
2575 #line 2576 "configure"
2576 #include "confdefs.h"
2577 #include <sys/types.h>
2578 #include <sys/stat.h>
2580 struct stat s; s.st_rdev;
2583 if { (eval echo configure:2584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2585 ac_cv_struct_st_rdev=yes
2587 echo "configure: failed program was:" >&5
2588 cat conftest.$ac_ext >&5
2590 ac_cv_struct_st_rdev=no
2595 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2596 if test $ac_cv_struct_st_rdev = yes; then
2597 cat >> confdefs.h <<\EOF
2598 #define HAVE_ST_RDEV 1
2603 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
2604 echo "configure:2605: checking for d_off in dirent" >&5
2605 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
2606 echo $ac_n "(cached) $ac_c" 1>&6
2608 cat > conftest.$ac_ext <<EOF
2609 #line 2610 "configure"
2610 #include "confdefs.h"
2613 #include <sys/types.h>
2616 struct dirent d; d.d_off;
2619 if { (eval echo configure:2620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2621 ac_cv_dirent_d_off=yes
2623 echo "configure: failed program was:" >&5
2624 cat conftest.$ac_ext >&5
2626 ac_cv_dirent_d_off=no
2631 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
2632 if test $ac_cv_dirent_d_off = yes; then
2633 cat >> confdefs.h <<\EOF
2634 #define HAVE_DIRENT_D_OFF 1
2639 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
2640 echo "configure:2641: checking for ino_t" >&5
2641 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
2642 echo $ac_n "(cached) $ac_c" 1>&6
2644 cat > conftest.$ac_ext <<EOF
2645 #line 2646 "configure"
2646 #include "confdefs.h"
2647 #include <sys/types.h>
2653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2654 egrep "ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2656 ac_cv_type_ino_t=yes
2664 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
2665 if test $ac_cv_type_ino_t = no; then
2666 cat >> confdefs.h <<\EOF
2667 #define ino_t unsigned
2672 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
2673 echo "configure:2674: checking for loff_t" >&5
2674 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2677 cat > conftest.$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2680 #include <sys/types.h>
2686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2687 egrep "loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2689 ac_cv_type_loff_t=yes
2692 ac_cv_type_loff_t=no
2697 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
2698 if test $ac_cv_type_loff_t = no; then
2699 cat >> confdefs.h <<\EOF
2700 #define loff_t off_t
2705 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
2706 echo "configure:2707: checking for offset_t" >&5
2707 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
2708 echo $ac_n "(cached) $ac_c" 1>&6
2710 cat > conftest.$ac_ext <<EOF
2711 #line 2712 "configure"
2712 #include "confdefs.h"
2713 #include <sys/types.h>
2719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2720 egrep "offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2722 ac_cv_type_offset_t=yes
2725 ac_cv_type_offset_t=no
2730 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
2731 if test $ac_cv_type_offset_t = no; then
2732 cat >> confdefs.h <<\EOF
2733 #define offset_t loff_t
2738 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2739 echo "configure:2740: checking for ssize_t" >&5
2740 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+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"
2746 #include <sys/types.h>
2752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2753 egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2755 ac_cv_type_ssize_t=yes
2758 ac_cv_type_ssize_t=no
2763 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2764 if test $ac_cv_type_ssize_t = no; then
2765 cat >> confdefs.h <<\EOF
2772 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
2773 echo "configure:2774: checking for errno in errno.h" >&5
2774 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
2775 echo $ac_n "(cached) $ac_c" 1>&6
2778 cat > conftest.$ac_ext <<EOF
2779 #line 2780 "configure"
2780 #include "confdefs.h"
2786 if { (eval echo configure:2787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2790 echo "configure: failed program was:" >&5
2791 cat conftest.$ac_ext >&5
2793 samba_cv_have_errno_decl=no
2798 echo "$ac_t""$samba_cv_errno" 1>&6
2799 if test x"$samba_cv_errno" = x"yes"; then
2800 cat >> confdefs.h <<\EOF
2801 #define HAVE_ERRNO_DECL 1
2806 # stupid glibc has the functions but no declaration. grrrr.
2807 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
2808 echo "configure:2809: checking for setresuid declaration" >&5
2809 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
2810 echo $ac_n "(cached) $ac_c" 1>&6
2813 cat > conftest.$ac_ext <<EOF
2814 #line 2815 "configure"
2815 #include "confdefs.h"
2818 int i = (int)setresuid
2821 if { (eval echo configure:2822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2823 samba_cv_have_setresuid_decl=yes
2825 echo "configure: failed program was:" >&5
2826 cat conftest.$ac_ext >&5
2828 samba_cv_have_setresuid_decl=no
2833 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
2834 if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
2835 cat >> confdefs.h <<\EOF
2836 #define HAVE_SETRESUID_DECL 1
2841 # stupid glibc has the functions but no declaration. grrrr.
2842 echo $ac_n "checking for crypt declaration""... $ac_c" 1>&6
2843 echo "configure:2844: checking for crypt declaration" >&5
2844 if eval "test \"`echo '$''{'samba_cv_have_crypt_decl'+set}'`\" = set"; then
2845 echo $ac_n "(cached) $ac_c" 1>&6
2848 cat > conftest.$ac_ext <<EOF
2849 #line 2850 "configure"
2850 #include "confdefs.h"
2856 if { (eval echo configure:2857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2858 samba_cv_have_crypt_decl=yes
2860 echo "configure: failed program was:" >&5
2861 cat conftest.$ac_ext >&5
2863 samba_cv_have_crypt_decl=no
2868 echo "$ac_t""$samba_cv_have_crypt_decl" 1>&6
2869 if test x"$samba_cv_have_crypt_decl" = x"yes"; then
2870 cat >> confdefs.h <<\EOF
2871 #define HAVE_CRYPT_DECL 1
2876 # and glibc has setresuid under linux but the function does
2877 # nothing until kernel 2.1.44! very dumb.
2878 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
2879 echo "configure:2880: checking for real setresuid" >&5
2880 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
2881 echo $ac_n "(cached) $ac_c" 1>&6
2884 if test "$cross_compiling" = yes; then
2885 samba_cv_have_setresuid=cross
2887 cat > conftest.$ac_ext <<EOF
2888 #line 2889 "configure"
2889 #include "confdefs.h"
2891 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
2893 if { (eval echo configure:2894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2895 samba_cv_have_setresuid=yes
2897 echo "configure: failed program was:" >&5
2898 cat conftest.$ac_ext >&5
2900 samba_cv_have_setresuid=no
2907 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
2908 if test x"$samba_cv_have_setresuid" = x"yes"; then
2909 cat >> confdefs.h <<\EOF
2910 #define HAVE_SETRESUID 1
2915 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2916 echo "configure:2917: checking for 8-bit clean memcmp" >&5
2917 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2918 echo $ac_n "(cached) $ac_c" 1>&6
2920 if test "$cross_compiling" = yes; then
2921 ac_cv_func_memcmp_clean=no
2923 cat > conftest.$ac_ext <<EOF
2924 #line 2925 "configure"
2925 #include "confdefs.h"
2929 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2930 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2934 if { (eval echo configure:2935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2936 ac_cv_func_memcmp_clean=yes
2938 echo "configure: failed program was:" >&5
2939 cat conftest.$ac_ext >&5
2941 ac_cv_func_memcmp_clean=no
2948 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2949 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
2952 ###############################################
2953 # test for where we get crypt() from
2954 for ac_func in crypt
2956 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2957 echo "configure:2958: checking for $ac_func" >&5
2958 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2959 echo $ac_n "(cached) $ac_c" 1>&6
2961 cat > conftest.$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2964 /* System header to define __stub macros and hopefully few prototypes,
2965 which can conflict with char $ac_func(); below. */
2967 /* Override any gcc2 internal prototype to avoid an error. */
2968 /* We use char because int might match the return type of a gcc2
2969 builtin and then its argument prototype would still apply. */
2974 /* The GNU C library defines this for functions which it implements
2975 to always fail with ENOSYS. Some functions are actually named
2976 something starting with __ and the normal name is an alias. */
2977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2985 if { (eval echo configure:2986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2987 eval "ac_cv_func_$ac_func=yes"
2989 echo "configure: failed program was:" >&5
2990 cat conftest.$ac_ext >&5
2992 eval "ac_cv_func_$ac_func=no"
2997 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2998 echo "$ac_t""yes" 1>&6
2999 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3000 cat >> confdefs.h <<EOF
3001 #define $ac_tr_func 1
3005 echo "$ac_t""no" 1>&6
3009 if test x"$ac_cv_func_crypt" = x"no"; then
3010 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3011 echo "configure:3012: checking for crypt in -lcrypt" >&5
3012 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3013 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3014 echo $ac_n "(cached) $ac_c" 1>&6
3016 ac_save_LIBS="$LIBS"
3017 LIBS="-lcrypt $LIBS"
3018 cat > conftest.$ac_ext <<EOF
3019 #line 3020 "configure"
3020 #include "confdefs.h"
3021 /* Override any gcc2 internal prototype to avoid an error. */
3022 /* We use char because int might match the return type of a gcc2
3023 builtin and then its argument prototype would still apply. */
3030 if { (eval echo configure:3031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3032 eval "ac_cv_lib_$ac_lib_var=yes"
3034 echo "configure: failed program was:" >&5
3035 cat conftest.$ac_ext >&5
3037 eval "ac_cv_lib_$ac_lib_var=no"
3040 LIBS="$ac_save_LIBS"
3043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3044 echo "$ac_t""yes" 1>&6
3045 LIBS="$LIBS -lcrypt";
3046 cat >> confdefs.h <<\EOF
3047 #define HAVE_CRYPT 1
3051 echo "$ac_t""no" 1>&6
3057 ###############################################
3058 # test for where we get pam_authenticate() from
3059 # might need libdl for this to work
3060 if test "$ac_cv_header_security_pam_appl_h" = "yes"; then
3061 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3062 echo "configure:3063: checking for main in -ldl" >&5
3063 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3064 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3067 ac_save_LIBS="$LIBS"
3069 cat > conftest.$ac_ext <<EOF
3070 #line 3071 "configure"
3071 #include "confdefs.h"
3077 if { (eval echo configure:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3079 eval "ac_cv_lib_$ac_lib_var=yes"
3081 echo "configure: failed program was:" >&5
3082 cat conftest.$ac_ext >&5
3084 eval "ac_cv_lib_$ac_lib_var=no"
3087 LIBS="$ac_save_LIBS"
3090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3091 echo "$ac_t""yes" 1>&6
3092 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3093 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3094 cat >> confdefs.h <<EOF
3095 #define $ac_tr_lib 1
3101 echo "$ac_t""no" 1>&6
3105 for ac_func in pam_authenticate
3107 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3108 echo "configure:3109: checking for $ac_func" >&5
3109 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3110 echo $ac_n "(cached) $ac_c" 1>&6
3112 cat > conftest.$ac_ext <<EOF
3113 #line 3114 "configure"
3114 #include "confdefs.h"
3115 /* System header to define __stub macros and hopefully few prototypes,
3116 which can conflict with char $ac_func(); below. */
3118 /* Override any gcc2 internal prototype to avoid an error. */
3119 /* We use char because int might match the return type of a gcc2
3120 builtin and then its argument prototype would still apply. */
3125 /* The GNU C library defines this for functions which it implements
3126 to always fail with ENOSYS. Some functions are actually named
3127 something starting with __ and the normal name is an alias. */
3128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3136 if { (eval echo configure:3137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3138 eval "ac_cv_func_$ac_func=yes"
3140 echo "configure: failed program was:" >&5
3141 cat conftest.$ac_ext >&5
3143 eval "ac_cv_func_$ac_func=no"
3148 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3149 echo "$ac_t""yes" 1>&6
3150 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3151 cat >> confdefs.h <<EOF
3152 #define $ac_tr_func 1
3156 echo "$ac_t""no" 1>&6
3160 if test x"$ac_cv_func_pam_authenticate" = x"no"; then
3161 echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
3162 echo "configure:3163: checking for pam_authenticate in -lpam" >&5
3163 ac_lib_var=`echo pam'_'pam_authenticate | sed 'y%./+-%__p_%'`
3164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3165 echo $ac_n "(cached) $ac_c" 1>&6
3167 ac_save_LIBS="$LIBS"
3169 cat > conftest.$ac_ext <<EOF
3170 #line 3171 "configure"
3171 #include "confdefs.h"
3172 /* Override any gcc2 internal prototype to avoid an error. */
3173 /* We use char because int might match the return type of a gcc2
3174 builtin and then its argument prototype would still apply. */
3175 char pam_authenticate();
3181 if { (eval echo configure:3182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3183 eval "ac_cv_lib_$ac_lib_var=yes"
3185 echo "configure: failed program was:" >&5
3186 cat conftest.$ac_ext >&5
3188 eval "ac_cv_lib_$ac_lib_var=no"
3191 LIBS="$ac_save_LIBS"
3194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3195 echo "$ac_t""yes" 1>&6
3197 cat >> confdefs.h <<\EOF
3198 #define HAVE_PAM_AUTHENTICATE 1
3202 echo "$ac_t""no" 1>&6
3208 ###############################################
3209 # test for where we get readline() from
3210 if test "$ac_cv_header_readline_h" = "yes" ||
3211 test "$ac_cv_header_readline_readline_h" = "yes"; then
3212 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3213 echo "configure:3214: checking for readline in -lreadline" >&5
3214 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3215 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3216 echo $ac_n "(cached) $ac_c" 1>&6
3218 ac_save_LIBS="$LIBS"
3219 LIBS="-lreadline $LIBS"
3220 cat > conftest.$ac_ext <<EOF
3221 #line 3222 "configure"
3222 #include "confdefs.h"
3223 /* Override any gcc2 internal prototype to avoid an error. */
3224 /* We use char because int might match the return type of a gcc2
3225 builtin and then its argument prototype would still apply. */
3232 if { (eval echo configure:3233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3234 eval "ac_cv_lib_$ac_lib_var=yes"
3236 echo "configure: failed program was:" >&5
3237 cat conftest.$ac_ext >&5
3239 eval "ac_cv_lib_$ac_lib_var=no"
3242 LIBS="$ac_save_LIBS"
3245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3246 echo "$ac_t""yes" 1>&6
3247 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3248 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3249 cat >> confdefs.h <<EOF
3250 #define $ac_tr_lib 1
3253 LIBS="-lreadline $LIBS"
3256 echo "$ac_t""no" 1>&6
3262 # The following test taken from the cvs sources
3263 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
3264 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
3265 # libsocket.so which has a bad implementation of gethostbyname (it
3266 # only looks in /etc/hosts), so we only look for -lsocket if we need
3268 for ac_func in connect
3270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3271 echo "configure:3272: checking for $ac_func" >&5
3272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3273 echo $ac_n "(cached) $ac_c" 1>&6
3275 cat > conftest.$ac_ext <<EOF
3276 #line 3277 "configure"
3277 #include "confdefs.h"
3278 /* System header to define __stub macros and hopefully few prototypes,
3279 which can conflict with char $ac_func(); below. */
3281 /* Override any gcc2 internal prototype to avoid an error. */
3282 /* We use char because int might match the return type of a gcc2
3283 builtin and then its argument prototype would still apply. */
3288 /* The GNU C library defines this for functions which it implements
3289 to always fail with ENOSYS. Some functions are actually named
3290 something starting with __ and the normal name is an alias. */
3291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3299 if { (eval echo configure:3300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3301 eval "ac_cv_func_$ac_func=yes"
3303 echo "configure: failed program was:" >&5
3304 cat conftest.$ac_ext >&5
3306 eval "ac_cv_func_$ac_func=no"
3311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3312 echo "$ac_t""yes" 1>&6
3313 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3314 cat >> confdefs.h <<EOF
3315 #define $ac_tr_func 1
3319 echo "$ac_t""no" 1>&6
3323 if test x"$ac_cv_func_connect" = x"no"; then
3326 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
3327 echo "configure:3328: checking for printf in -lnsl_s" >&5
3328 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
3329 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3330 echo $ac_n "(cached) $ac_c" 1>&6
3332 ac_save_LIBS="$LIBS"
3333 LIBS="-lnsl_s $LIBS"
3334 cat > conftest.$ac_ext <<EOF
3335 #line 3336 "configure"
3336 #include "confdefs.h"
3337 /* Override any gcc2 internal prototype to avoid an error. */
3338 /* We use char because int might match the return type of a gcc2
3339 builtin and then its argument prototype would still apply. */
3346 if { (eval echo configure:3347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3348 eval "ac_cv_lib_$ac_lib_var=yes"
3350 echo "configure: failed program was:" >&5
3351 cat conftest.$ac_ext >&5
3353 eval "ac_cv_lib_$ac_lib_var=no"
3356 LIBS="$ac_save_LIBS"
3359 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3360 echo "$ac_t""yes" 1>&6
3361 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3362 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3363 cat >> confdefs.h <<EOF
3364 #define $ac_tr_lib 1
3367 LIBS="-lnsl_s $LIBS"
3370 echo "$ac_t""no" 1>&6
3376 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
3377 echo "configure:3378: checking for printf in -lnsl" >&5
3378 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
3379 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3380 echo $ac_n "(cached) $ac_c" 1>&6
3382 ac_save_LIBS="$LIBS"
3384 cat > conftest.$ac_ext <<EOF
3385 #line 3386 "configure"
3386 #include "confdefs.h"
3387 /* Override any gcc2 internal prototype to avoid an error. */
3388 /* We use char because int might match the return type of a gcc2
3389 builtin and then its argument prototype would still apply. */
3396 if { (eval echo configure:3397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3398 eval "ac_cv_lib_$ac_lib_var=yes"
3400 echo "configure: failed program was:" >&5
3401 cat conftest.$ac_ext >&5
3403 eval "ac_cv_lib_$ac_lib_var=no"
3406 LIBS="$ac_save_LIBS"
3409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3410 echo "$ac_t""yes" 1>&6
3411 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3412 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3413 cat >> confdefs.h <<EOF
3414 #define $ac_tr_lib 1
3420 echo "$ac_t""no" 1>&6
3426 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3427 echo "configure:3428: checking for connect in -lsocket" >&5
3428 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3430 echo $ac_n "(cached) $ac_c" 1>&6
3432 ac_save_LIBS="$LIBS"
3433 LIBS="-lsocket $LIBS"
3434 cat > conftest.$ac_ext <<EOF
3435 #line 3436 "configure"
3436 #include "confdefs.h"
3437 /* Override any gcc2 internal prototype to avoid an error. */
3438 /* We use char because int might match the return type of a gcc2
3439 builtin and then its argument prototype would still apply. */
3446 if { (eval echo configure:3447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3448 eval "ac_cv_lib_$ac_lib_var=yes"
3450 echo "configure: failed program was:" >&5
3451 cat conftest.$ac_ext >&5
3453 eval "ac_cv_lib_$ac_lib_var=no"
3456 LIBS="$ac_save_LIBS"
3459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3460 echo "$ac_t""yes" 1>&6
3461 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3462 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3463 cat >> confdefs.h <<EOF
3464 #define $ac_tr_lib 1
3467 LIBS="-lsocket $LIBS"
3470 echo "$ac_t""no" 1>&6
3476 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
3477 echo "configure:3478: checking for connect in -linet" >&5
3478 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
3479 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3480 echo $ac_n "(cached) $ac_c" 1>&6
3482 ac_save_LIBS="$LIBS"
3484 cat > conftest.$ac_ext <<EOF
3485 #line 3486 "configure"
3486 #include "confdefs.h"
3487 /* Override any gcc2 internal prototype to avoid an error. */
3488 /* We use char because int might match the return type of a gcc2
3489 builtin and then its argument prototype would still apply. */
3496 if { (eval echo configure:3497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3498 eval "ac_cv_lib_$ac_lib_var=yes"
3500 echo "configure: failed program was:" >&5
3501 cat conftest.$ac_ext >&5
3503 eval "ac_cv_lib_$ac_lib_var=no"
3506 LIBS="$ac_save_LIBS"
3509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3510 echo "$ac_t""yes" 1>&6
3511 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3512 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3513 cat >> confdefs.h <<EOF
3514 #define $ac_tr_lib 1
3520 echo "$ac_t""no" 1>&6
3524 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
3525 test x"$ac_cv_lib_inet_connect" = x"yes"; then
3526 # ac_cv_func_connect=yes
3527 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
3528 cat >> confdefs.h <<\EOF
3529 #define HAVE_CONNECT 1
3536 for ac_func in waitpid getcwd strdup strtoul strerror chown chmod chroot
3538 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3539 echo "configure:3540: checking for $ac_func" >&5
3540 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3541 echo $ac_n "(cached) $ac_c" 1>&6
3543 cat > conftest.$ac_ext <<EOF
3544 #line 3545 "configure"
3545 #include "confdefs.h"
3546 /* System header to define __stub macros and hopefully few prototypes,
3547 which can conflict with char $ac_func(); below. */
3549 /* Override any gcc2 internal prototype to avoid an error. */
3550 /* We use char because int might match the return type of a gcc2
3551 builtin and then its argument prototype would still apply. */
3556 /* The GNU C library defines this for functions which it implements
3557 to always fail with ENOSYS. Some functions are actually named
3558 something starting with __ and the normal name is an alias. */
3559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3567 if { (eval echo configure:3568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3569 eval "ac_cv_func_$ac_func=yes"
3571 echo "configure: failed program was:" >&5
3572 cat conftest.$ac_ext >&5
3574 eval "ac_cv_func_$ac_func=no"
3579 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3580 echo "$ac_t""yes" 1>&6
3581 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3582 cat >> confdefs.h <<EOF
3583 #define $ac_tr_func 1
3587 echo "$ac_t""no" 1>&6
3591 for ac_func in fstat strchr utime utimes getrlimit fsync execl bzero memset
3593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3594 echo "configure:3595: checking for $ac_func" >&5
3595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3596 echo $ac_n "(cached) $ac_c" 1>&6
3598 cat > conftest.$ac_ext <<EOF
3599 #line 3600 "configure"
3600 #include "confdefs.h"
3601 /* System header to define __stub macros and hopefully few prototypes,
3602 which can conflict with char $ac_func(); below. */
3604 /* Override any gcc2 internal prototype to avoid an error. */
3605 /* We use char because int might match the return type of a gcc2
3606 builtin and then its argument prototype would still apply. */
3611 /* The GNU C library defines this for functions which it implements
3612 to always fail with ENOSYS. Some functions are actually named
3613 something starting with __ and the normal name is an alias. */
3614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3622 if { (eval echo configure:3623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3624 eval "ac_cv_func_$ac_func=yes"
3626 echo "configure: failed program was:" >&5
3627 cat conftest.$ac_ext >&5
3629 eval "ac_cv_func_$ac_func=no"
3634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3635 echo "$ac_t""yes" 1>&6
3636 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3637 cat >> confdefs.h <<EOF
3638 #define $ac_tr_func 1
3642 echo "$ac_t""no" 1>&6
3646 for ac_func in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
3648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3649 echo "configure:3650: checking for $ac_func" >&5
3650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3651 echo $ac_n "(cached) $ac_c" 1>&6
3653 cat > conftest.$ac_ext <<EOF
3654 #line 3655 "configure"
3655 #include "confdefs.h"
3656 /* System header to define __stub macros and hopefully few prototypes,
3657 which can conflict with char $ac_func(); below. */
3659 /* Override any gcc2 internal prototype to avoid an error. */
3660 /* We use char because int might match the return type of a gcc2
3661 builtin and then its argument prototype would still apply. */
3666 /* The GNU C library defines this for functions which it implements
3667 to always fail with ENOSYS. Some functions are actually named
3668 something starting with __ and the normal name is an alias. */
3669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3677 if { (eval echo configure:3678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3679 eval "ac_cv_func_$ac_func=yes"
3681 echo "configure: failed program was:" >&5
3682 cat conftest.$ac_ext >&5
3684 eval "ac_cv_func_$ac_func=no"
3689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3690 echo "$ac_t""yes" 1>&6
3691 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3692 cat >> confdefs.h <<EOF
3693 #define $ac_tr_func 1
3697 echo "$ac_t""no" 1>&6
3701 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
3703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3704 echo "configure:3705: checking for $ac_func" >&5
3705 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3706 echo $ac_n "(cached) $ac_c" 1>&6
3708 cat > conftest.$ac_ext <<EOF
3709 #line 3710 "configure"
3710 #include "confdefs.h"
3711 /* System header to define __stub macros and hopefully few prototypes,
3712 which can conflict with char $ac_func(); below. */
3714 /* Override any gcc2 internal prototype to avoid an error. */
3715 /* We use char because int might match the return type of a gcc2
3716 builtin and then its argument prototype would still apply. */
3721 /* The GNU C library defines this for functions which it implements
3722 to always fail with ENOSYS. Some functions are actually named
3723 something starting with __ and the normal name is an alias. */
3724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3732 if { (eval echo configure:3733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3734 eval "ac_cv_func_$ac_func=yes"
3736 echo "configure: failed program was:" >&5
3737 cat conftest.$ac_ext >&5
3739 eval "ac_cv_func_$ac_func=no"
3744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3745 echo "$ac_t""yes" 1>&6
3746 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3747 cat >> confdefs.h <<EOF
3748 #define $ac_tr_func 1
3752 echo "$ac_t""no" 1>&6
3756 for ac_func in initgroups select rdchk getgrnam pathconf
3758 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3759 echo "configure:3760: checking for $ac_func" >&5
3760 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6
3763 cat > conftest.$ac_ext <<EOF
3764 #line 3765 "configure"
3765 #include "confdefs.h"
3766 /* System header to define __stub macros and hopefully few prototypes,
3767 which can conflict with char $ac_func(); below. */
3769 /* Override any gcc2 internal prototype to avoid an error. */
3770 /* We use char because int might match the return type of a gcc2
3771 builtin and then its argument prototype would still apply. */
3776 /* The GNU C library defines this for functions which it implements
3777 to always fail with ENOSYS. Some functions are actually named
3778 something starting with __ and the normal name is an alias. */
3779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3787 if { (eval echo configure:3788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3789 eval "ac_cv_func_$ac_func=yes"
3791 echo "configure: failed program was:" >&5
3792 cat conftest.$ac_ext >&5
3794 eval "ac_cv_func_$ac_func=no"
3799 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3800 echo "$ac_t""yes" 1>&6
3801 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3802 cat >> confdefs.h <<EOF
3803 #define $ac_tr_func 1
3807 echo "$ac_t""no" 1>&6
3811 for ac_func in setuidx setgroups mktime rename ftruncate stat64 fstat64 lstat64 fopen64
3813 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3814 echo "configure:3815: checking for $ac_func" >&5
3815 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3816 echo $ac_n "(cached) $ac_c" 1>&6
3818 cat > conftest.$ac_ext <<EOF
3819 #line 3820 "configure"
3820 #include "confdefs.h"
3821 /* System header to define __stub macros and hopefully few prototypes,
3822 which can conflict with char $ac_func(); below. */
3824 /* Override any gcc2 internal prototype to avoid an error. */
3825 /* We use char because int might match the return type of a gcc2
3826 builtin and then its argument prototype would still apply. */
3831 /* The GNU C library defines this for functions which it implements
3832 to always fail with ENOSYS. Some functions are actually named
3833 something starting with __ and the normal name is an alias. */
3834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3842 if { (eval echo configure:3843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3844 eval "ac_cv_func_$ac_func=yes"
3846 echo "configure: failed program was:" >&5
3847 cat conftest.$ac_ext >&5
3849 eval "ac_cv_func_$ac_func=no"
3854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3855 echo "$ac_t""yes" 1>&6
3856 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3857 cat >> confdefs.h <<EOF
3858 #define $ac_tr_func 1
3862 echo "$ac_t""no" 1>&6
3866 for ac_func in atexit grantpt dup2 lseek64 ftruncate64
3868 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3869 echo "configure:3870: checking for $ac_func" >&5
3870 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3871 echo $ac_n "(cached) $ac_c" 1>&6
3873 cat > conftest.$ac_ext <<EOF
3874 #line 3875 "configure"
3875 #include "confdefs.h"
3876 /* System header to define __stub macros and hopefully few prototypes,
3877 which can conflict with char $ac_func(); below. */
3879 /* Override any gcc2 internal prototype to avoid an error. */
3880 /* We use char because int might match the return type of a gcc2
3881 builtin and then its argument prototype would still apply. */
3886 /* The GNU C library defines this for functions which it implements
3887 to always fail with ENOSYS. Some functions are actually named
3888 something starting with __ and the normal name is an alias. */
3889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3897 if { (eval echo configure:3898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3899 eval "ac_cv_func_$ac_func=yes"
3901 echo "configure: failed program was:" >&5
3902 cat conftest.$ac_ext >&5
3904 eval "ac_cv_func_$ac_func=no"
3909 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3910 echo "$ac_t""yes" 1>&6
3911 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3912 cat >> confdefs.h <<EOF
3913 #define $ac_tr_func 1
3917 echo "$ac_t""no" 1>&6
3921 for ac_func in fseek64 ftell64 setluid yp_get_default_domain getpwanam
3923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3924 echo "configure:3925: checking for $ac_func" >&5
3925 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3926 echo $ac_n "(cached) $ac_c" 1>&6
3928 cat > conftest.$ac_ext <<EOF
3929 #line 3930 "configure"
3930 #include "confdefs.h"
3931 /* System header to define __stub macros and hopefully few prototypes,
3932 which can conflict with char $ac_func(); below. */
3934 /* Override any gcc2 internal prototype to avoid an error. */
3935 /* We use char because int might match the return type of a gcc2
3936 builtin and then its argument prototype would still apply. */
3941 /* The GNU C library defines this for functions which it implements
3942 to always fail with ENOSYS. Some functions are actually named
3943 something starting with __ and the normal name is an alias. */
3944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3952 if { (eval echo configure:3953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3954 eval "ac_cv_func_$ac_func=yes"
3956 echo "configure: failed program was:" >&5
3957 cat conftest.$ac_ext >&5
3959 eval "ac_cv_func_$ac_func=no"
3964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3965 echo "$ac_t""yes" 1>&6
3966 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3967 cat >> confdefs.h <<EOF
3968 #define $ac_tr_func 1
3972 echo "$ac_t""no" 1>&6
3976 for ac_func in srandom random srand rand setenv mmap64
3978 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3979 echo "configure:3980: checking for $ac_func" >&5
3980 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3981 echo $ac_n "(cached) $ac_c" 1>&6
3983 cat > conftest.$ac_ext <<EOF
3984 #line 3985 "configure"
3985 #include "confdefs.h"
3986 /* System header to define __stub macros and hopefully few prototypes,
3987 which can conflict with char $ac_func(); below. */
3989 /* Override any gcc2 internal prototype to avoid an error. */
3990 /* We use char because int might match the return type of a gcc2
3991 builtin and then its argument prototype would still apply. */
3996 /* The GNU C library defines this for functions which it implements
3997 to always fail with ENOSYS. Some functions are actually named
3998 something starting with __ and the normal name is an alias. */
3999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4007 if { (eval echo configure:4008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4009 eval "ac_cv_func_$ac_func=yes"
4011 echo "configure: failed program was:" >&5
4012 cat conftest.$ac_ext >&5
4014 eval "ac_cv_func_$ac_func=no"
4019 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4020 echo "$ac_t""yes" 1>&6
4021 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4022 cat >> confdefs.h <<EOF
4023 #define $ac_tr_func 1
4027 echo "$ac_t""no" 1>&6
4031 # syscall() is needed for smbwrapper.
4032 for ac_func in syscall
4034 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4035 echo "configure:4036: checking for $ac_func" >&5
4036 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4037 echo $ac_n "(cached) $ac_c" 1>&6
4039 cat > conftest.$ac_ext <<EOF
4040 #line 4041 "configure"
4041 #include "confdefs.h"
4042 /* System header to define __stub macros and hopefully few prototypes,
4043 which can conflict with char $ac_func(); below. */
4045 /* Override any gcc2 internal prototype to avoid an error. */
4046 /* We use char because int might match the return type of a gcc2
4047 builtin and then its argument prototype would still apply. */
4052 /* The GNU C library defines this for functions which it implements
4053 to always fail with ENOSYS. Some functions are actually named
4054 something starting with __ and the normal name is an alias. */
4055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4063 if { (eval echo configure:4064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4065 eval "ac_cv_func_$ac_func=yes"
4067 echo "configure: failed program was:" >&5
4068 cat conftest.$ac_ext >&5
4070 eval "ac_cv_func_$ac_func=no"
4075 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4076 echo "$ac_t""yes" 1>&6
4077 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4078 cat >> confdefs.h <<EOF
4079 #define $ac_tr_func 1
4083 echo "$ac_t""no" 1>&6
4088 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
4090 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4091 echo "configure:4092: checking for $ac_func" >&5
4092 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4093 echo $ac_n "(cached) $ac_c" 1>&6
4095 cat > conftest.$ac_ext <<EOF
4096 #line 4097 "configure"
4097 #include "confdefs.h"
4098 /* System header to define __stub macros and hopefully few prototypes,
4099 which can conflict with char $ac_func(); below. */
4101 /* Override any gcc2 internal prototype to avoid an error. */
4102 /* We use char because int might match the return type of a gcc2
4103 builtin and then its argument prototype would still apply. */
4108 /* The GNU C library defines this for functions which it implements
4109 to always fail with ENOSYS. Some functions are actually named
4110 something starting with __ and the normal name is an alias. */
4111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4119 if { (eval echo configure:4120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4121 eval "ac_cv_func_$ac_func=yes"
4123 echo "configure: failed program was:" >&5
4124 cat conftest.$ac_ext >&5
4126 eval "ac_cv_func_$ac_func=no"
4131 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4132 echo "$ac_t""yes" 1>&6
4133 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4134 cat >> confdefs.h <<EOF
4135 #define $ac_tr_func 1
4139 echo "$ac_t""no" 1>&6
4143 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
4145 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4146 echo "configure:4147: checking for $ac_func" >&5
4147 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4148 echo $ac_n "(cached) $ac_c" 1>&6
4150 cat > conftest.$ac_ext <<EOF
4151 #line 4152 "configure"
4152 #include "confdefs.h"
4153 /* System header to define __stub macros and hopefully few prototypes,
4154 which can conflict with char $ac_func(); below. */
4156 /* Override any gcc2 internal prototype to avoid an error. */
4157 /* We use char because int might match the return type of a gcc2
4158 builtin and then its argument prototype would still apply. */
4163 /* The GNU C library defines this for functions which it implements
4164 to always fail with ENOSYS. Some functions are actually named
4165 something starting with __ and the normal name is an alias. */
4166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4174 if { (eval echo configure:4175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4176 eval "ac_cv_func_$ac_func=yes"
4178 echo "configure: failed program was:" >&5
4179 cat conftest.$ac_ext >&5
4181 eval "ac_cv_func_$ac_func=no"
4186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4187 echo "$ac_t""yes" 1>&6
4188 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4189 cat >> confdefs.h <<EOF
4190 #define $ac_tr_func 1
4194 echo "$ac_t""no" 1>&6
4198 for ac_func in __getcwd _getcwd
4200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4201 echo "configure:4202: checking for $ac_func" >&5
4202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4203 echo $ac_n "(cached) $ac_c" 1>&6
4205 cat > conftest.$ac_ext <<EOF
4206 #line 4207 "configure"
4207 #include "confdefs.h"
4208 /* System header to define __stub macros and hopefully few prototypes,
4209 which can conflict with char $ac_func(); below. */
4211 /* Override any gcc2 internal prototype to avoid an error. */
4212 /* We use char because int might match the return type of a gcc2
4213 builtin and then its argument prototype would still apply. */
4218 /* The GNU C library defines this for functions which it implements
4219 to always fail with ENOSYS. Some functions are actually named
4220 something starting with __ and the normal name is an alias. */
4221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4229 if { (eval echo configure:4230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4231 eval "ac_cv_func_$ac_func=yes"
4233 echo "configure: failed program was:" >&5
4234 cat conftest.$ac_ext >&5
4236 eval "ac_cv_func_$ac_func=no"
4241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4242 echo "$ac_t""yes" 1>&6
4243 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4244 cat >> confdefs.h <<EOF
4245 #define $ac_tr_func 1
4249 echo "$ac_t""no" 1>&6
4253 for ac_func in __xstat __fxstat __lxstat
4255 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4256 echo "configure:4257: checking for $ac_func" >&5
4257 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4258 echo $ac_n "(cached) $ac_c" 1>&6
4260 cat > conftest.$ac_ext <<EOF
4261 #line 4262 "configure"
4262 #include "confdefs.h"
4263 /* System header to define __stub macros and hopefully few prototypes,
4264 which can conflict with char $ac_func(); below. */
4266 /* Override any gcc2 internal prototype to avoid an error. */
4267 /* We use char because int might match the return type of a gcc2
4268 builtin and then its argument prototype would still apply. */
4273 /* The GNU C library defines this for functions which it implements
4274 to always fail with ENOSYS. Some functions are actually named
4275 something starting with __ and the normal name is an alias. */
4276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4284 if { (eval echo configure:4285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4286 eval "ac_cv_func_$ac_func=yes"
4288 echo "configure: failed program was:" >&5
4289 cat conftest.$ac_ext >&5
4291 eval "ac_cv_func_$ac_func=no"
4296 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4297 echo "$ac_t""yes" 1>&6
4298 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4299 cat >> confdefs.h <<EOF
4300 #define $ac_tr_func 1
4304 echo "$ac_t""no" 1>&6
4308 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
4310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4311 echo "configure:4312: checking for $ac_func" >&5
4312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4313 echo $ac_n "(cached) $ac_c" 1>&6
4315 cat > conftest.$ac_ext <<EOF
4316 #line 4317 "configure"
4317 #include "confdefs.h"
4318 /* System header to define __stub macros and hopefully few prototypes,
4319 which can conflict with char $ac_func(); below. */
4321 /* Override any gcc2 internal prototype to avoid an error. */
4322 /* We use char because int might match the return type of a gcc2
4323 builtin and then its argument prototype would still apply. */
4328 /* The GNU C library defines this for functions which it implements
4329 to always fail with ENOSYS. Some functions are actually named
4330 something starting with __ and the normal name is an alias. */
4331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4339 if { (eval echo configure:4340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4341 eval "ac_cv_func_$ac_func=yes"
4343 echo "configure: failed program was:" >&5
4344 cat conftest.$ac_ext >&5
4346 eval "ac_cv_func_$ac_func=no"
4351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4352 echo "$ac_t""yes" 1>&6
4353 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4354 cat >> confdefs.h <<EOF
4355 #define $ac_tr_func 1
4359 echo "$ac_t""no" 1>&6
4363 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
4365 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4366 echo "configure:4367: checking for $ac_func" >&5
4367 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4368 echo $ac_n "(cached) $ac_c" 1>&6
4370 cat > conftest.$ac_ext <<EOF
4371 #line 4372 "configure"
4372 #include "confdefs.h"
4373 /* System header to define __stub macros and hopefully few prototypes,
4374 which can conflict with char $ac_func(); below. */
4376 /* Override any gcc2 internal prototype to avoid an error. */
4377 /* We use char because int might match the return type of a gcc2
4378 builtin and then its argument prototype would still apply. */
4383 /* The GNU C library defines this for functions which it implements
4384 to always fail with ENOSYS. Some functions are actually named
4385 something starting with __ and the normal name is an alias. */
4386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4394 if { (eval echo configure:4395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4396 eval "ac_cv_func_$ac_func=yes"
4398 echo "configure: failed program was:" >&5
4399 cat conftest.$ac_ext >&5
4401 eval "ac_cv_func_$ac_func=no"
4406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4407 echo "$ac_t""yes" 1>&6
4408 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4409 cat >> confdefs.h <<EOF
4410 #define $ac_tr_func 1
4414 echo "$ac_t""no" 1>&6
4418 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
4420 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4421 echo "configure:4422: checking for $ac_func" >&5
4422 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4423 echo $ac_n "(cached) $ac_c" 1>&6
4425 cat > conftest.$ac_ext <<EOF
4426 #line 4427 "configure"
4427 #include "confdefs.h"
4428 /* System header to define __stub macros and hopefully few prototypes,
4429 which can conflict with char $ac_func(); below. */
4431 /* Override any gcc2 internal prototype to avoid an error. */
4432 /* We use char because int might match the return type of a gcc2
4433 builtin and then its argument prototype would still apply. */
4438 /* The GNU C library defines this for functions which it implements
4439 to always fail with ENOSYS. Some functions are actually named
4440 something starting with __ and the normal name is an alias. */
4441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4449 if { (eval echo configure:4450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4451 eval "ac_cv_func_$ac_func=yes"
4453 echo "configure: failed program was:" >&5
4454 cat conftest.$ac_ext >&5
4456 eval "ac_cv_func_$ac_func=no"
4461 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4462 echo "$ac_t""yes" 1>&6
4463 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4464 cat >> confdefs.h <<EOF
4465 #define $ac_tr_func 1
4469 echo "$ac_t""no" 1>&6
4473 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
4475 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4476 echo "configure:4477: checking for $ac_func" >&5
4477 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4478 echo $ac_n "(cached) $ac_c" 1>&6
4480 cat > conftest.$ac_ext <<EOF
4481 #line 4482 "configure"
4482 #include "confdefs.h"
4483 /* System header to define __stub macros and hopefully few prototypes,
4484 which can conflict with char $ac_func(); below. */
4486 /* Override any gcc2 internal prototype to avoid an error. */
4487 /* We use char because int might match the return type of a gcc2
4488 builtin and then its argument prototype would still apply. */
4493 /* The GNU C library defines this for functions which it implements
4494 to always fail with ENOSYS. Some functions are actually named
4495 something starting with __ and the normal name is an alias. */
4496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4504 if { (eval echo configure:4505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4506 eval "ac_cv_func_$ac_func=yes"
4508 echo "configure: failed program was:" >&5
4509 cat conftest.$ac_ext >&5
4511 eval "ac_cv_func_$ac_func=no"
4516 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4517 echo "$ac_t""yes" 1>&6
4518 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4519 cat >> confdefs.h <<EOF
4520 #define $ac_tr_func 1
4524 echo "$ac_t""no" 1>&6
4528 for ac_func in _write __write _fork __fork
4530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4531 echo "configure:4532: checking for $ac_func" >&5
4532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4533 echo $ac_n "(cached) $ac_c" 1>&6
4535 cat > conftest.$ac_ext <<EOF
4536 #line 4537 "configure"
4537 #include "confdefs.h"
4538 /* System header to define __stub macros and hopefully few prototypes,
4539 which can conflict with char $ac_func(); below. */
4541 /* Override any gcc2 internal prototype to avoid an error. */
4542 /* We use char because int might match the return type of a gcc2
4543 builtin and then its argument prototype would still apply. */
4548 /* The GNU C library defines this for functions which it implements
4549 to always fail with ENOSYS. Some functions are actually named
4550 something starting with __ and the normal name is an alias. */
4551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4559 if { (eval echo configure:4560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4561 eval "ac_cv_func_$ac_func=yes"
4563 echo "configure: failed program was:" >&5
4564 cat conftest.$ac_ext >&5
4566 eval "ac_cv_func_$ac_func=no"
4571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4572 echo "$ac_t""yes" 1>&6
4573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4574 cat >> confdefs.h <<EOF
4575 #define $ac_tr_func 1
4579 echo "$ac_t""no" 1>&6
4583 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
4585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4586 echo "configure:4587: checking for $ac_func" >&5
4587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4588 echo $ac_n "(cached) $ac_c" 1>&6
4590 cat > conftest.$ac_ext <<EOF
4591 #line 4592 "configure"
4592 #include "confdefs.h"
4593 /* System header to define __stub macros and hopefully few prototypes,
4594 which can conflict with char $ac_func(); below. */
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. */
4603 /* The GNU C library defines this for functions which it implements
4604 to always fail with ENOSYS. Some functions are actually named
4605 something starting with __ and the normal name is an alias. */
4606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4614 if { (eval echo configure:4615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4616 eval "ac_cv_func_$ac_func=yes"
4618 echo "configure: failed program was:" >&5
4619 cat conftest.$ac_ext >&5
4621 eval "ac_cv_func_$ac_func=no"
4626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4627 echo "$ac_t""yes" 1>&6
4628 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4629 cat >> confdefs.h <<EOF
4630 #define $ac_tr_func 1
4634 echo "$ac_t""no" 1>&6
4638 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
4640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4641 echo "configure:4642: checking for $ac_func" >&5
4642 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4643 echo $ac_n "(cached) $ac_c" 1>&6
4645 cat > conftest.$ac_ext <<EOF
4646 #line 4647 "configure"
4647 #include "confdefs.h"
4648 /* System header to define __stub macros and hopefully few prototypes,
4649 which can conflict with char $ac_func(); below. */
4651 /* Override any gcc2 internal prototype to avoid an error. */
4652 /* We use char because int might match the return type of a gcc2
4653 builtin and then its argument prototype would still apply. */
4658 /* The GNU C library defines this for functions which it implements
4659 to always fail with ENOSYS. Some functions are actually named
4660 something starting with __ and the normal name is an alias. */
4661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4669 if { (eval echo configure:4670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4671 eval "ac_cv_func_$ac_func=yes"
4673 echo "configure: failed program was:" >&5
4674 cat conftest.$ac_ext >&5
4676 eval "ac_cv_func_$ac_func=no"
4681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4682 echo "$ac_t""yes" 1>&6
4683 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4684 cat >> confdefs.h <<EOF
4685 #define $ac_tr_func 1
4689 echo "$ac_t""no" 1>&6
4693 for ac_func in pread _pread __pread pread64 _pread64 __pread64
4695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4696 echo "configure:4697: checking for $ac_func" >&5
4697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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"
4703 /* System header to define __stub macros and hopefully few prototypes,
4704 which can conflict with char $ac_func(); below. */
4706 /* Override any gcc2 internal prototype to avoid an error. */
4707 /* We use char because int might match the return type of a gcc2
4708 builtin and then its argument prototype would still apply. */
4713 /* The GNU C library defines this for functions which it implements
4714 to always fail with ENOSYS. Some functions are actually named
4715 something starting with __ and the normal name is an alias. */
4716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4724 if { (eval echo configure:4725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4726 eval "ac_cv_func_$ac_func=yes"
4728 echo "configure: failed program was:" >&5
4729 cat conftest.$ac_ext >&5
4731 eval "ac_cv_func_$ac_func=no"
4736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4737 echo "$ac_t""yes" 1>&6
4738 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4739 cat >> confdefs.h <<EOF
4740 #define $ac_tr_func 1
4744 echo "$ac_t""no" 1>&6
4748 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
4750 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4751 echo "configure:4752: checking for $ac_func" >&5
4752 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4753 echo $ac_n "(cached) $ac_c" 1>&6
4755 cat > conftest.$ac_ext <<EOF
4756 #line 4757 "configure"
4757 #include "confdefs.h"
4758 /* System header to define __stub macros and hopefully few prototypes,
4759 which can conflict with char $ac_func(); below. */
4761 /* Override any gcc2 internal prototype to avoid an error. */
4762 /* We use char because int might match the return type of a gcc2
4763 builtin and then its argument prototype would still apply. */
4768 /* The GNU C library defines this for functions which it implements
4769 to always fail with ENOSYS. Some functions are actually named
4770 something starting with __ and the normal name is an alias. */
4771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4779 if { (eval echo configure:4780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4781 eval "ac_cv_func_$ac_func=yes"
4783 echo "configure: failed program was:" >&5
4784 cat conftest.$ac_ext >&5
4786 eval "ac_cv_func_$ac_func=no"
4791 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4792 echo "$ac_t""yes" 1>&6
4793 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4794 cat >> confdefs.h <<EOF
4795 #define $ac_tr_func 1
4799 echo "$ac_t""no" 1>&6
4803 for ac_func in open64 _open64 __open64 creat64
4805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4806 echo "configure:4807: checking for $ac_func" >&5
4807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4808 echo $ac_n "(cached) $ac_c" 1>&6
4810 cat > conftest.$ac_ext <<EOF
4811 #line 4812 "configure"
4812 #include "confdefs.h"
4813 /* System header to define __stub macros and hopefully few prototypes,
4814 which can conflict with char $ac_func(); below. */
4816 /* Override any gcc2 internal prototype to avoid an error. */
4817 /* We use char because int might match the return type of a gcc2
4818 builtin and then its argument prototype would still apply. */
4823 /* The GNU C library defines this for functions which it implements
4824 to always fail with ENOSYS. Some functions are actually named
4825 something starting with __ and the normal name is an alias. */
4826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4834 if { (eval echo configure:4835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4836 eval "ac_cv_func_$ac_func=yes"
4838 echo "configure: failed program was:" >&5
4839 cat conftest.$ac_ext >&5
4841 eval "ac_cv_func_$ac_func=no"
4846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4847 echo "$ac_t""yes" 1>&6
4848 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4849 cat >> confdefs.h <<EOF
4850 #define $ac_tr_func 1
4854 echo "$ac_t""no" 1>&6
4860 # Check for the functions putprpwnam, set_auth_parameters,
4861 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
4862 # Needed for OSF1 and HPUX.
4866 *-lsecurity*) for ac_func in putprpwnam
4868 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4869 echo "configure:4870: checking for $ac_func" >&5
4870 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4871 echo $ac_n "(cached) $ac_c" 1>&6
4873 cat > conftest.$ac_ext <<EOF
4874 #line 4875 "configure"
4875 #include "confdefs.h"
4876 /* System header to define __stub macros and hopefully few prototypes,
4877 which can conflict with char $ac_func(); below. */
4879 /* Override any gcc2 internal prototype to avoid an error. */
4880 /* We use char because int might match the return type of a gcc2
4881 builtin and then its argument prototype would still apply. */
4886 /* The GNU C library defines this for functions which it implements
4887 to always fail with ENOSYS. Some functions are actually named
4888 something starting with __ and the normal name is an alias. */
4889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4897 if { (eval echo configure:4898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4899 eval "ac_cv_func_$ac_func=yes"
4901 echo "configure: failed program was:" >&5
4902 cat conftest.$ac_ext >&5
4904 eval "ac_cv_func_$ac_func=no"
4909 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4910 echo "$ac_t""yes" 1>&6
4911 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4912 cat >> confdefs.h <<EOF
4913 #define $ac_tr_func 1
4917 echo "$ac_t""no" 1>&6
4921 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
4922 echo "configure:4923: checking for putprpwnam in -lsecurity" >&5
4923 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
4924 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4925 echo $ac_n "(cached) $ac_c" 1>&6
4927 ac_save_LIBS="$LIBS"
4928 LIBS="-lsecurity $LIBS"
4929 cat > conftest.$ac_ext <<EOF
4930 #line 4931 "configure"
4931 #include "confdefs.h"
4932 /* Override any gcc2 internal prototype to avoid an error. */
4933 /* We use char because int might match the return type of a gcc2
4934 builtin and then its argument prototype would still apply. */
4941 if { (eval echo configure:4942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4943 eval "ac_cv_lib_$ac_lib_var=yes"
4945 echo "configure: failed program was:" >&5
4946 cat conftest.$ac_ext >&5
4948 eval "ac_cv_lib_$ac_lib_var=no"
4951 LIBS="$ac_save_LIBS"
4954 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4955 echo "$ac_t""yes" 1>&6
4956 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4957 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4958 cat >> confdefs.h <<EOF
4959 #define $ac_tr_lib 1
4962 LIBS="-lsecurity $LIBS"
4965 echo "$ac_t""no" 1>&6
4968 for ac_func in putprpwnam
4970 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4971 echo "configure:4972: checking for $ac_func" >&5
4972 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4973 echo $ac_n "(cached) $ac_c" 1>&6
4975 cat > conftest.$ac_ext <<EOF
4976 #line 4977 "configure"
4977 #include "confdefs.h"
4978 /* System header to define __stub macros and hopefully few prototypes,
4979 which can conflict with char $ac_func(); below. */
4981 /* Override any gcc2 internal prototype to avoid an error. */
4982 /* We use char because int might match the return type of a gcc2
4983 builtin and then its argument prototype would still apply. */
4988 /* The GNU C library defines this for functions which it implements
4989 to always fail with ENOSYS. Some functions are actually named
4990 something starting with __ and the normal name is an alias. */
4991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4999 if { (eval echo configure:5000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5001 eval "ac_cv_func_$ac_func=yes"
5003 echo "configure: failed program was:" >&5
5004 cat conftest.$ac_ext >&5
5006 eval "ac_cv_func_$ac_func=no"
5011 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5012 echo "$ac_t""yes" 1>&6
5013 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5014 cat >> confdefs.h <<EOF
5015 #define $ac_tr_func 1
5019 echo "$ac_t""no" 1>&6
5027 *-lsec*) for ac_func in putprpwnam
5029 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5030 echo "configure:5031: checking for $ac_func" >&5
5031 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5032 echo $ac_n "(cached) $ac_c" 1>&6
5034 cat > conftest.$ac_ext <<EOF
5035 #line 5036 "configure"
5036 #include "confdefs.h"
5037 /* System header to define __stub macros and hopefully few prototypes,
5038 which can conflict with char $ac_func(); below. */
5040 /* Override any gcc2 internal prototype to avoid an error. */
5041 /* We use char because int might match the return type of a gcc2
5042 builtin and then its argument prototype would still apply. */
5047 /* The GNU C library defines this for functions which it implements
5048 to always fail with ENOSYS. Some functions are actually named
5049 something starting with __ and the normal name is an alias. */
5050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5058 if { (eval echo configure:5059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5060 eval "ac_cv_func_$ac_func=yes"
5062 echo "configure: failed program was:" >&5
5063 cat conftest.$ac_ext >&5
5065 eval "ac_cv_func_$ac_func=no"
5070 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5071 echo "$ac_t""yes" 1>&6
5072 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5073 cat >> confdefs.h <<EOF
5074 #define $ac_tr_func 1
5078 echo "$ac_t""no" 1>&6
5082 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
5083 echo "configure:5084: checking for putprpwnam in -lsec" >&5
5084 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
5085 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5086 echo $ac_n "(cached) $ac_c" 1>&6
5088 ac_save_LIBS="$LIBS"
5090 cat > conftest.$ac_ext <<EOF
5091 #line 5092 "configure"
5092 #include "confdefs.h"
5093 /* Override any gcc2 internal prototype to avoid an error. */
5094 /* We use char because int might match the return type of a gcc2
5095 builtin and then its argument prototype would still apply. */
5102 if { (eval echo configure:5103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5104 eval "ac_cv_lib_$ac_lib_var=yes"
5106 echo "configure: failed program was:" >&5
5107 cat conftest.$ac_ext >&5
5109 eval "ac_cv_lib_$ac_lib_var=no"
5112 LIBS="$ac_save_LIBS"
5115 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5116 echo "$ac_t""yes" 1>&6
5117 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5118 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5119 cat >> confdefs.h <<EOF
5120 #define $ac_tr_lib 1
5126 echo "$ac_t""no" 1>&6
5129 for ac_func in putprpwnam
5131 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5132 echo "configure:5133: checking for $ac_func" >&5
5133 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5134 echo $ac_n "(cached) $ac_c" 1>&6
5136 cat > conftest.$ac_ext <<EOF
5137 #line 5138 "configure"
5138 #include "confdefs.h"
5139 /* System header to define __stub macros and hopefully few prototypes,
5140 which can conflict with char $ac_func(); below. */
5142 /* Override any gcc2 internal prototype to avoid an error. */
5143 /* We use char because int might match the return type of a gcc2
5144 builtin and then its argument prototype would still apply. */
5149 /* The GNU C library defines this for functions which it implements
5150 to always fail with ENOSYS. Some functions are actually named
5151 something starting with __ and the normal name is an alias. */
5152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5160 if { (eval echo configure:5161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5162 eval "ac_cv_func_$ac_func=yes"
5164 echo "configure: failed program was:" >&5
5165 cat conftest.$ac_ext >&5
5167 eval "ac_cv_func_$ac_func=no"
5172 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5173 echo "$ac_t""yes" 1>&6
5174 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5175 cat >> confdefs.h <<EOF
5176 #define $ac_tr_func 1
5180 echo "$ac_t""no" 1>&6
5189 *-lsecurity*) for ac_func in set_auth_parameters
5191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5192 echo "configure:5193: checking for $ac_func" >&5
5193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5194 echo $ac_n "(cached) $ac_c" 1>&6
5196 cat > conftest.$ac_ext <<EOF
5197 #line 5198 "configure"
5198 #include "confdefs.h"
5199 /* System header to define __stub macros and hopefully few prototypes,
5200 which can conflict with char $ac_func(); below. */
5202 /* Override any gcc2 internal prototype to avoid an error. */
5203 /* We use char because int might match the return type of a gcc2
5204 builtin and then its argument prototype would still apply. */
5209 /* The GNU C library defines this for functions which it implements
5210 to always fail with ENOSYS. Some functions are actually named
5211 something starting with __ and the normal name is an alias. */
5212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5220 if { (eval echo configure:5221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5222 eval "ac_cv_func_$ac_func=yes"
5224 echo "configure: failed program was:" >&5
5225 cat conftest.$ac_ext >&5
5227 eval "ac_cv_func_$ac_func=no"
5232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5233 echo "$ac_t""yes" 1>&6
5234 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5235 cat >> confdefs.h <<EOF
5236 #define $ac_tr_func 1
5240 echo "$ac_t""no" 1>&6
5244 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
5245 echo "configure:5246: checking for set_auth_parameters in -lsecurity" >&5
5246 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
5247 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5248 echo $ac_n "(cached) $ac_c" 1>&6
5250 ac_save_LIBS="$LIBS"
5251 LIBS="-lsecurity $LIBS"
5252 cat > conftest.$ac_ext <<EOF
5253 #line 5254 "configure"
5254 #include "confdefs.h"
5255 /* Override any gcc2 internal prototype to avoid an error. */
5256 /* We use char because int might match the return type of a gcc2
5257 builtin and then its argument prototype would still apply. */
5258 char set_auth_parameters();
5261 set_auth_parameters()
5264 if { (eval echo configure:5265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5266 eval "ac_cv_lib_$ac_lib_var=yes"
5268 echo "configure: failed program was:" >&5
5269 cat conftest.$ac_ext >&5
5271 eval "ac_cv_lib_$ac_lib_var=no"
5274 LIBS="$ac_save_LIBS"
5277 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5278 echo "$ac_t""yes" 1>&6
5279 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5280 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5281 cat >> confdefs.h <<EOF
5282 #define $ac_tr_lib 1
5285 LIBS="-lsecurity $LIBS"
5288 echo "$ac_t""no" 1>&6
5291 for ac_func in set_auth_parameters
5293 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5294 echo "configure:5295: checking for $ac_func" >&5
5295 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5296 echo $ac_n "(cached) $ac_c" 1>&6
5298 cat > conftest.$ac_ext <<EOF
5299 #line 5300 "configure"
5300 #include "confdefs.h"
5301 /* System header to define __stub macros and hopefully few prototypes,
5302 which can conflict with char $ac_func(); below. */
5304 /* Override any gcc2 internal prototype to avoid an error. */
5305 /* We use char because int might match the return type of a gcc2
5306 builtin and then its argument prototype would still apply. */
5311 /* The GNU C library defines this for functions which it implements
5312 to always fail with ENOSYS. Some functions are actually named
5313 something starting with __ and the normal name is an alias. */
5314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5322 if { (eval echo configure:5323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5324 eval "ac_cv_func_$ac_func=yes"
5326 echo "configure: failed program was:" >&5
5327 cat conftest.$ac_ext >&5
5329 eval "ac_cv_func_$ac_func=no"
5334 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5335 echo "$ac_t""yes" 1>&6
5336 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5337 cat >> confdefs.h <<EOF
5338 #define $ac_tr_func 1
5342 echo "$ac_t""no" 1>&6
5350 *-lsec*) for ac_func in set_auth_parameters
5352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5353 echo "configure:5354: checking for $ac_func" >&5
5354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5355 echo $ac_n "(cached) $ac_c" 1>&6
5357 cat > conftest.$ac_ext <<EOF
5358 #line 5359 "configure"
5359 #include "confdefs.h"
5360 /* System header to define __stub macros and hopefully few prototypes,
5361 which can conflict with char $ac_func(); below. */
5363 /* Override any gcc2 internal prototype to avoid an error. */
5364 /* We use char because int might match the return type of a gcc2
5365 builtin and then its argument prototype would still apply. */
5370 /* The GNU C library defines this for functions which it implements
5371 to always fail with ENOSYS. Some functions are actually named
5372 something starting with __ and the normal name is an alias. */
5373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5381 if { (eval echo configure:5382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5383 eval "ac_cv_func_$ac_func=yes"
5385 echo "configure: failed program was:" >&5
5386 cat conftest.$ac_ext >&5
5388 eval "ac_cv_func_$ac_func=no"
5393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5394 echo "$ac_t""yes" 1>&6
5395 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5396 cat >> confdefs.h <<EOF
5397 #define $ac_tr_func 1
5401 echo "$ac_t""no" 1>&6
5405 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
5406 echo "configure:5407: checking for set_auth_parameters in -lsec" >&5
5407 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
5408 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5409 echo $ac_n "(cached) $ac_c" 1>&6
5411 ac_save_LIBS="$LIBS"
5413 cat > conftest.$ac_ext <<EOF
5414 #line 5415 "configure"
5415 #include "confdefs.h"
5416 /* Override any gcc2 internal prototype to avoid an error. */
5417 /* We use char because int might match the return type of a gcc2
5418 builtin and then its argument prototype would still apply. */
5419 char set_auth_parameters();
5422 set_auth_parameters()
5425 if { (eval echo configure:5426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5427 eval "ac_cv_lib_$ac_lib_var=yes"
5429 echo "configure: failed program was:" >&5
5430 cat conftest.$ac_ext >&5
5432 eval "ac_cv_lib_$ac_lib_var=no"
5435 LIBS="$ac_save_LIBS"
5438 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5439 echo "$ac_t""yes" 1>&6
5440 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5441 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5442 cat >> confdefs.h <<EOF
5443 #define $ac_tr_lib 1
5449 echo "$ac_t""no" 1>&6
5452 for ac_func in set_auth_parameters
5454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5455 echo "configure:5456: checking for $ac_func" >&5
5456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5457 echo $ac_n "(cached) $ac_c" 1>&6
5459 cat > conftest.$ac_ext <<EOF
5460 #line 5461 "configure"
5461 #include "confdefs.h"
5462 /* System header to define __stub macros and hopefully few prototypes,
5463 which can conflict with char $ac_func(); below. */
5465 /* Override any gcc2 internal prototype to avoid an error. */
5466 /* We use char because int might match the return type of a gcc2
5467 builtin and then its argument prototype would still apply. */
5472 /* The GNU C library defines this for functions which it implements
5473 to always fail with ENOSYS. Some functions are actually named
5474 something starting with __ and the normal name is an alias. */
5475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5483 if { (eval echo configure:5484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5485 eval "ac_cv_func_$ac_func=yes"
5487 echo "configure: failed program was:" >&5
5488 cat conftest.$ac_ext >&5
5490 eval "ac_cv_func_$ac_func=no"
5495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5496 echo "$ac_t""yes" 1>&6
5497 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5498 cat >> confdefs.h <<EOF
5499 #define $ac_tr_func 1
5503 echo "$ac_t""no" 1>&6
5512 *-lsecurity*) for ac_func in getspnam
5514 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5515 echo "configure:5516: checking for $ac_func" >&5
5516 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5517 echo $ac_n "(cached) $ac_c" 1>&6
5519 cat > conftest.$ac_ext <<EOF
5520 #line 5521 "configure"
5521 #include "confdefs.h"
5522 /* System header to define __stub macros and hopefully few prototypes,
5523 which can conflict with char $ac_func(); below. */
5525 /* Override any gcc2 internal prototype to avoid an error. */
5526 /* We use char because int might match the return type of a gcc2
5527 builtin and then its argument prototype would still apply. */
5532 /* The GNU C library defines this for functions which it implements
5533 to always fail with ENOSYS. Some functions are actually named
5534 something starting with __ and the normal name is an alias. */
5535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5543 if { (eval echo configure:5544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5545 eval "ac_cv_func_$ac_func=yes"
5547 echo "configure: failed program was:" >&5
5548 cat conftest.$ac_ext >&5
5550 eval "ac_cv_func_$ac_func=no"
5555 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5556 echo "$ac_t""yes" 1>&6
5557 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5558 cat >> confdefs.h <<EOF
5559 #define $ac_tr_func 1
5563 echo "$ac_t""no" 1>&6
5567 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
5568 echo "configure:5569: checking for getspnam in -lsecurity" >&5
5569 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
5570 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5571 echo $ac_n "(cached) $ac_c" 1>&6
5573 ac_save_LIBS="$LIBS"
5574 LIBS="-lsecurity $LIBS"
5575 cat > conftest.$ac_ext <<EOF
5576 #line 5577 "configure"
5577 #include "confdefs.h"
5578 /* Override any gcc2 internal prototype to avoid an error. */
5579 /* We use char because int might match the return type of a gcc2
5580 builtin and then its argument prototype would still apply. */
5587 if { (eval echo configure:5588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5589 eval "ac_cv_lib_$ac_lib_var=yes"
5591 echo "configure: failed program was:" >&5
5592 cat conftest.$ac_ext >&5
5594 eval "ac_cv_lib_$ac_lib_var=no"
5597 LIBS="$ac_save_LIBS"
5600 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5601 echo "$ac_t""yes" 1>&6
5602 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5603 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5604 cat >> confdefs.h <<EOF
5605 #define $ac_tr_lib 1
5608 LIBS="-lsecurity $LIBS"
5611 echo "$ac_t""no" 1>&6
5614 for ac_func in getspnam
5616 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5617 echo "configure:5618: checking for $ac_func" >&5
5618 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5619 echo $ac_n "(cached) $ac_c" 1>&6
5621 cat > conftest.$ac_ext <<EOF
5622 #line 5623 "configure"
5623 #include "confdefs.h"
5624 /* System header to define __stub macros and hopefully few prototypes,
5625 which can conflict with char $ac_func(); below. */
5627 /* Override any gcc2 internal prototype to avoid an error. */
5628 /* We use char because int might match the return type of a gcc2
5629 builtin and then its argument prototype would still apply. */
5634 /* The GNU C library defines this for functions which it implements
5635 to always fail with ENOSYS. Some functions are actually named
5636 something starting with __ and the normal name is an alias. */
5637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5645 if { (eval echo configure:5646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5647 eval "ac_cv_func_$ac_func=yes"
5649 echo "configure: failed program was:" >&5
5650 cat conftest.$ac_ext >&5
5652 eval "ac_cv_func_$ac_func=no"
5657 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5658 echo "$ac_t""yes" 1>&6
5659 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5660 cat >> confdefs.h <<EOF
5661 #define $ac_tr_func 1
5665 echo "$ac_t""no" 1>&6
5673 *-lsec*) for ac_func in getspnam
5675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5676 echo "configure:5677: checking for $ac_func" >&5
5677 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5678 echo $ac_n "(cached) $ac_c" 1>&6
5680 cat > conftest.$ac_ext <<EOF
5681 #line 5682 "configure"
5682 #include "confdefs.h"
5683 /* System header to define __stub macros and hopefully few prototypes,
5684 which can conflict with char $ac_func(); below. */
5686 /* Override any gcc2 internal prototype to avoid an error. */
5687 /* We use char because int might match the return type of a gcc2
5688 builtin and then its argument prototype would still apply. */
5693 /* The GNU C library defines this for functions which it implements
5694 to always fail with ENOSYS. Some functions are actually named
5695 something starting with __ and the normal name is an alias. */
5696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5704 if { (eval echo configure:5705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5706 eval "ac_cv_func_$ac_func=yes"
5708 echo "configure: failed program was:" >&5
5709 cat conftest.$ac_ext >&5
5711 eval "ac_cv_func_$ac_func=no"
5716 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5717 echo "$ac_t""yes" 1>&6
5718 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5719 cat >> confdefs.h <<EOF
5720 #define $ac_tr_func 1
5724 echo "$ac_t""no" 1>&6
5728 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
5729 echo "configure:5730: checking for getspnam in -lsec" >&5
5730 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
5731 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5732 echo $ac_n "(cached) $ac_c" 1>&6
5734 ac_save_LIBS="$LIBS"
5736 cat > conftest.$ac_ext <<EOF
5737 #line 5738 "configure"
5738 #include "confdefs.h"
5739 /* Override any gcc2 internal prototype to avoid an error. */
5740 /* We use char because int might match the return type of a gcc2
5741 builtin and then its argument prototype would still apply. */
5748 if { (eval echo configure:5749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5750 eval "ac_cv_lib_$ac_lib_var=yes"
5752 echo "configure: failed program was:" >&5
5753 cat conftest.$ac_ext >&5
5755 eval "ac_cv_lib_$ac_lib_var=no"
5758 LIBS="$ac_save_LIBS"
5761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5762 echo "$ac_t""yes" 1>&6
5763 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5764 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5765 cat >> confdefs.h <<EOF
5766 #define $ac_tr_lib 1
5772 echo "$ac_t""no" 1>&6
5775 for ac_func in getspnam
5777 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5778 echo "configure:5779: checking for $ac_func" >&5
5779 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5780 echo $ac_n "(cached) $ac_c" 1>&6
5782 cat > conftest.$ac_ext <<EOF
5783 #line 5784 "configure"
5784 #include "confdefs.h"
5785 /* System header to define __stub macros and hopefully few prototypes,
5786 which can conflict with char $ac_func(); below. */
5788 /* Override any gcc2 internal prototype to avoid an error. */
5789 /* We use char because int might match the return type of a gcc2
5790 builtin and then its argument prototype would still apply. */
5795 /* The GNU C library defines this for functions which it implements
5796 to always fail with ENOSYS. Some functions are actually named
5797 something starting with __ and the normal name is an alias. */
5798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5806 if { (eval echo configure:5807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5808 eval "ac_cv_func_$ac_func=yes"
5810 echo "configure: failed program was:" >&5
5811 cat conftest.$ac_ext >&5
5813 eval "ac_cv_func_$ac_func=no"
5818 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5819 echo "$ac_t""yes" 1>&6
5820 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5821 cat >> confdefs.h <<EOF
5822 #define $ac_tr_func 1
5826 echo "$ac_t""no" 1>&6
5835 *-lsecurity*) for ac_func in bigcrypt
5837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5838 echo "configure:5839: checking for $ac_func" >&5
5839 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5840 echo $ac_n "(cached) $ac_c" 1>&6
5842 cat > conftest.$ac_ext <<EOF
5843 #line 5844 "configure"
5844 #include "confdefs.h"
5845 /* System header to define __stub macros and hopefully few prototypes,
5846 which can conflict with char $ac_func(); below. */
5848 /* Override any gcc2 internal prototype to avoid an error. */
5849 /* We use char because int might match the return type of a gcc2
5850 builtin and then its argument prototype would still apply. */
5855 /* The GNU C library defines this for functions which it implements
5856 to always fail with ENOSYS. Some functions are actually named
5857 something starting with __ and the normal name is an alias. */
5858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5866 if { (eval echo configure:5867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5868 eval "ac_cv_func_$ac_func=yes"
5870 echo "configure: failed program was:" >&5
5871 cat conftest.$ac_ext >&5
5873 eval "ac_cv_func_$ac_func=no"
5878 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5879 echo "$ac_t""yes" 1>&6
5880 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5881 cat >> confdefs.h <<EOF
5882 #define $ac_tr_func 1
5886 echo "$ac_t""no" 1>&6
5890 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
5891 echo "configure:5892: checking for bigcrypt in -lsecurity" >&5
5892 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
5893 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5894 echo $ac_n "(cached) $ac_c" 1>&6
5896 ac_save_LIBS="$LIBS"
5897 LIBS="-lsecurity $LIBS"
5898 cat > conftest.$ac_ext <<EOF
5899 #line 5900 "configure"
5900 #include "confdefs.h"
5901 /* Override any gcc2 internal prototype to avoid an error. */
5902 /* We use char because int might match the return type of a gcc2
5903 builtin and then its argument prototype would still apply. */
5910 if { (eval echo configure:5911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5912 eval "ac_cv_lib_$ac_lib_var=yes"
5914 echo "configure: failed program was:" >&5
5915 cat conftest.$ac_ext >&5
5917 eval "ac_cv_lib_$ac_lib_var=no"
5920 LIBS="$ac_save_LIBS"
5923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5924 echo "$ac_t""yes" 1>&6
5925 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5926 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5927 cat >> confdefs.h <<EOF
5928 #define $ac_tr_lib 1
5931 LIBS="-lsecurity $LIBS"
5934 echo "$ac_t""no" 1>&6
5937 for ac_func in bigcrypt
5939 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5940 echo "configure:5941: checking for $ac_func" >&5
5941 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5942 echo $ac_n "(cached) $ac_c" 1>&6
5944 cat > conftest.$ac_ext <<EOF
5945 #line 5946 "configure"
5946 #include "confdefs.h"
5947 /* System header to define __stub macros and hopefully few prototypes,
5948 which can conflict with char $ac_func(); below. */
5950 /* Override any gcc2 internal prototype to avoid an error. */
5951 /* We use char because int might match the return type of a gcc2
5952 builtin and then its argument prototype would still apply. */
5957 /* The GNU C library defines this for functions which it implements
5958 to always fail with ENOSYS. Some functions are actually named
5959 something starting with __ and the normal name is an alias. */
5960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5968 if { (eval echo configure:5969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5970 eval "ac_cv_func_$ac_func=yes"
5972 echo "configure: failed program was:" >&5
5973 cat conftest.$ac_ext >&5
5975 eval "ac_cv_func_$ac_func=no"
5980 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5981 echo "$ac_t""yes" 1>&6
5982 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5983 cat >> confdefs.h <<EOF
5984 #define $ac_tr_func 1
5988 echo "$ac_t""no" 1>&6
5996 *-lsec*) for ac_func in bigcrypt
5998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5999 echo "configure:6000: checking for $ac_func" >&5
6000 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6001 echo $ac_n "(cached) $ac_c" 1>&6
6003 cat > conftest.$ac_ext <<EOF
6004 #line 6005 "configure"
6005 #include "confdefs.h"
6006 /* System header to define __stub macros and hopefully few prototypes,
6007 which can conflict with char $ac_func(); below. */
6009 /* Override any gcc2 internal prototype to avoid an error. */
6010 /* We use char because int might match the return type of a gcc2
6011 builtin and then its argument prototype would still apply. */
6016 /* The GNU C library defines this for functions which it implements
6017 to always fail with ENOSYS. Some functions are actually named
6018 something starting with __ and the normal name is an alias. */
6019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6027 if { (eval echo configure:6028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6029 eval "ac_cv_func_$ac_func=yes"
6031 echo "configure: failed program was:" >&5
6032 cat conftest.$ac_ext >&5
6034 eval "ac_cv_func_$ac_func=no"
6039 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6040 echo "$ac_t""yes" 1>&6
6041 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6042 cat >> confdefs.h <<EOF
6043 #define $ac_tr_func 1
6047 echo "$ac_t""no" 1>&6
6051 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
6052 echo "configure:6053: checking for bigcrypt in -lsec" >&5
6053 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
6054 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6055 echo $ac_n "(cached) $ac_c" 1>&6
6057 ac_save_LIBS="$LIBS"
6059 cat > conftest.$ac_ext <<EOF
6060 #line 6061 "configure"
6061 #include "confdefs.h"
6062 /* Override any gcc2 internal prototype to avoid an error. */
6063 /* We use char because int might match the return type of a gcc2
6064 builtin and then its argument prototype would still apply. */
6071 if { (eval echo configure:6072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6073 eval "ac_cv_lib_$ac_lib_var=yes"
6075 echo "configure: failed program was:" >&5
6076 cat conftest.$ac_ext >&5
6078 eval "ac_cv_lib_$ac_lib_var=no"
6081 LIBS="$ac_save_LIBS"
6084 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6085 echo "$ac_t""yes" 1>&6
6086 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6087 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6088 cat >> confdefs.h <<EOF
6089 #define $ac_tr_lib 1
6095 echo "$ac_t""no" 1>&6
6098 for ac_func in bigcrypt
6100 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6101 echo "configure:6102: checking for $ac_func" >&5
6102 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6103 echo $ac_n "(cached) $ac_c" 1>&6
6105 cat > conftest.$ac_ext <<EOF
6106 #line 6107 "configure"
6107 #include "confdefs.h"
6108 /* System header to define __stub macros and hopefully few prototypes,
6109 which can conflict with char $ac_func(); below. */
6111 /* Override any gcc2 internal prototype to avoid an error. */
6112 /* We use char because int might match the return type of a gcc2
6113 builtin and then its argument prototype would still apply. */
6118 /* The GNU C library defines this for functions which it implements
6119 to always fail with ENOSYS. Some functions are actually named
6120 something starting with __ and the normal name is an alias. */
6121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6129 if { (eval echo configure:6130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6131 eval "ac_cv_func_$ac_func=yes"
6133 echo "configure: failed program was:" >&5
6134 cat conftest.$ac_ext >&5
6136 eval "ac_cv_func_$ac_func=no"
6141 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6142 echo "$ac_t""yes" 1>&6
6143 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6144 cat >> confdefs.h <<EOF
6145 #define $ac_tr_func 1
6149 echo "$ac_t""no" 1>&6
6158 *-lsecurity*) for ac_func in getprpwnam
6160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6161 echo "configure:6162: checking for $ac_func" >&5
6162 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6163 echo $ac_n "(cached) $ac_c" 1>&6
6165 cat > conftest.$ac_ext <<EOF
6166 #line 6167 "configure"
6167 #include "confdefs.h"
6168 /* System header to define __stub macros and hopefully few prototypes,
6169 which can conflict with char $ac_func(); below. */
6171 /* Override any gcc2 internal prototype to avoid an error. */
6172 /* We use char because int might match the return type of a gcc2
6173 builtin and then its argument prototype would still apply. */
6178 /* The GNU C library defines this for functions which it implements
6179 to always fail with ENOSYS. Some functions are actually named
6180 something starting with __ and the normal name is an alias. */
6181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6189 if { (eval echo configure:6190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6191 eval "ac_cv_func_$ac_func=yes"
6193 echo "configure: failed program was:" >&5
6194 cat conftest.$ac_ext >&5
6196 eval "ac_cv_func_$ac_func=no"
6201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6202 echo "$ac_t""yes" 1>&6
6203 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6204 cat >> confdefs.h <<EOF
6205 #define $ac_tr_func 1
6209 echo "$ac_t""no" 1>&6
6213 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
6214 echo "configure:6215: checking for getprpwnam in -lsecurity" >&5
6215 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
6216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6217 echo $ac_n "(cached) $ac_c" 1>&6
6219 ac_save_LIBS="$LIBS"
6220 LIBS="-lsecurity $LIBS"
6221 cat > conftest.$ac_ext <<EOF
6222 #line 6223 "configure"
6223 #include "confdefs.h"
6224 /* Override any gcc2 internal prototype to avoid an error. */
6225 /* We use char because int might match the return type of a gcc2
6226 builtin and then its argument prototype would still apply. */
6233 if { (eval echo configure:6234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6235 eval "ac_cv_lib_$ac_lib_var=yes"
6237 echo "configure: failed program was:" >&5
6238 cat conftest.$ac_ext >&5
6240 eval "ac_cv_lib_$ac_lib_var=no"
6243 LIBS="$ac_save_LIBS"
6246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6247 echo "$ac_t""yes" 1>&6
6248 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6249 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6250 cat >> confdefs.h <<EOF
6251 #define $ac_tr_lib 1
6254 LIBS="-lsecurity $LIBS"
6257 echo "$ac_t""no" 1>&6
6260 for ac_func in getprpwnam
6262 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6263 echo "configure:6264: checking for $ac_func" >&5
6264 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6265 echo $ac_n "(cached) $ac_c" 1>&6
6267 cat > conftest.$ac_ext <<EOF
6268 #line 6269 "configure"
6269 #include "confdefs.h"
6270 /* System header to define __stub macros and hopefully few prototypes,
6271 which can conflict with char $ac_func(); below. */
6273 /* Override any gcc2 internal prototype to avoid an error. */
6274 /* We use char because int might match the return type of a gcc2
6275 builtin and then its argument prototype would still apply. */
6280 /* The GNU C library defines this for functions which it implements
6281 to always fail with ENOSYS. Some functions are actually named
6282 something starting with __ and the normal name is an alias. */
6283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6291 if { (eval echo configure:6292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6293 eval "ac_cv_func_$ac_func=yes"
6295 echo "configure: failed program was:" >&5
6296 cat conftest.$ac_ext >&5
6298 eval "ac_cv_func_$ac_func=no"
6303 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6304 echo "$ac_t""yes" 1>&6
6305 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6306 cat >> confdefs.h <<EOF
6307 #define $ac_tr_func 1
6311 echo "$ac_t""no" 1>&6
6319 *-lsec*) for ac_func in getprpwnam
6321 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6322 echo "configure:6323: checking for $ac_func" >&5
6323 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6324 echo $ac_n "(cached) $ac_c" 1>&6
6326 cat > conftest.$ac_ext <<EOF
6327 #line 6328 "configure"
6328 #include "confdefs.h"
6329 /* System header to define __stub macros and hopefully few prototypes,
6330 which can conflict with char $ac_func(); below. */
6332 /* Override any gcc2 internal prototype to avoid an error. */
6333 /* We use char because int might match the return type of a gcc2
6334 builtin and then its argument prototype would still apply. */
6339 /* The GNU C library defines this for functions which it implements
6340 to always fail with ENOSYS. Some functions are actually named
6341 something starting with __ and the normal name is an alias. */
6342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6350 if { (eval echo configure:6351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6352 eval "ac_cv_func_$ac_func=yes"
6354 echo "configure: failed program was:" >&5
6355 cat conftest.$ac_ext >&5
6357 eval "ac_cv_func_$ac_func=no"
6362 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6363 echo "$ac_t""yes" 1>&6
6364 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6365 cat >> confdefs.h <<EOF
6366 #define $ac_tr_func 1
6370 echo "$ac_t""no" 1>&6
6374 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
6375 echo "configure:6376: checking for getprpwnam in -lsec" >&5
6376 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
6377 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6378 echo $ac_n "(cached) $ac_c" 1>&6
6380 ac_save_LIBS="$LIBS"
6382 cat > conftest.$ac_ext <<EOF
6383 #line 6384 "configure"
6384 #include "confdefs.h"
6385 /* Override any gcc2 internal prototype to avoid an error. */
6386 /* We use char because int might match the return type of a gcc2
6387 builtin and then its argument prototype would still apply. */
6394 if { (eval echo configure:6395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6396 eval "ac_cv_lib_$ac_lib_var=yes"
6398 echo "configure: failed program was:" >&5
6399 cat conftest.$ac_ext >&5
6401 eval "ac_cv_lib_$ac_lib_var=no"
6404 LIBS="$ac_save_LIBS"
6407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6408 echo "$ac_t""yes" 1>&6
6409 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6410 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6411 cat >> confdefs.h <<EOF
6412 #define $ac_tr_lib 1
6418 echo "$ac_t""no" 1>&6
6421 for ac_func in getprpwnam
6423 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6424 echo "configure:6425: checking for $ac_func" >&5
6425 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6426 echo $ac_n "(cached) $ac_c" 1>&6
6428 cat > conftest.$ac_ext <<EOF
6429 #line 6430 "configure"
6430 #include "confdefs.h"
6431 /* System header to define __stub macros and hopefully few prototypes,
6432 which can conflict with char $ac_func(); below. */
6434 /* Override any gcc2 internal prototype to avoid an error. */
6435 /* We use char because int might match the return type of a gcc2
6436 builtin and then its argument prototype would still apply. */
6441 /* The GNU C library defines this for functions which it implements
6442 to always fail with ENOSYS. Some functions are actually named
6443 something starting with __ and the normal name is an alias. */
6444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6452 if { (eval echo configure:6453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6454 eval "ac_cv_func_$ac_func=yes"
6456 echo "configure: failed program was:" >&5
6457 cat conftest.$ac_ext >&5
6459 eval "ac_cv_func_$ac_func=no"
6464 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6465 echo "$ac_t""yes" 1>&6
6466 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6467 cat >> confdefs.h <<EOF
6468 #define $ac_tr_func 1
6472 echo "$ac_t""no" 1>&6
6480 # this bit needs to be modified for each OS that is suported by
6481 # smbwrapper. You need to specify how to created a shared library and
6482 # how to compile C code to produce PIC object files
6484 # these are the defaults, good for lots of systems
6488 # and these are for particular systems
6490 *linux*) cat >> confdefs.h <<\EOF
6494 *solaris*) cat >> confdefs.h <<\EOF
6500 *sunos*) cat >> confdefs.h <<\EOF
6506 *bsd*) LDSHFLAGS="-shared -Bshareable"
6508 *irix*) cat >> confdefs.h <<\EOF
6512 ATTEMPT_WRAP32_BUILD=yes
6514 *aix*) cat >> confdefs.h <<\EOF
6518 *hpux*) cat >> confdefs.h <<\EOF
6522 *qnx*) cat >> confdefs.h <<\EOF
6526 *osf*) cat >> confdefs.h <<\EOF
6530 *sco*) cat >> confdefs.h <<\EOF
6534 *next2*) cat >> confdefs.h <<\EOF
6538 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
6539 set dummy groff; ac_word=$2
6540 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6541 echo "configure:6542: checking for $ac_word" >&5
6542 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
6543 echo $ac_n "(cached) $ac_c" 1>&6
6545 if test -n "$ROFF"; then
6546 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
6548 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6549 for ac_dir in $PATH; do
6550 test -z "$ac_dir" && ac_dir=.
6551 if test -f $ac_dir/$ac_word; then
6552 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
6559 ROFF="$ac_cv_prog_ROFF"
6560 if test -n "$ROFF"; then
6561 echo "$ac_t""$ROFF" 1>&6
6563 echo "$ac_t""no" 1>&6
6566 *sysv4.2*) echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6567 echo "configure:6568: checking for strcasecmp in -lresolv" >&5
6568 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6569 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6570 echo $ac_n "(cached) $ac_c" 1>&6
6572 ac_save_LIBS="$LIBS"
6573 LIBS="-lresolv $LIBS"
6574 cat > conftest.$ac_ext <<EOF
6575 #line 6576 "configure"
6576 #include "confdefs.h"
6577 /* Override any gcc2 internal prototype to avoid an error. */
6578 /* We use char because int might match the return type of a gcc2
6579 builtin and then its argument prototype would still apply. */
6586 if { (eval echo configure:6587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6588 eval "ac_cv_lib_$ac_lib_var=yes"
6590 echo "configure: failed program was:" >&5
6591 cat conftest.$ac_ext >&5
6593 eval "ac_cv_lib_$ac_lib_var=no"
6596 LIBS="$ac_save_LIBS"
6599 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6600 echo "$ac_t""yes" 1>&6
6601 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6602 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6603 cat >> confdefs.h <<EOF
6604 #define $ac_tr_lib 1
6607 LIBS="-lresolv $LIBS"
6610 echo "$ac_t""no" 1>&6
6615 # try to work out how to produce pic code with this compiler
6617 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
6618 echo "configure:6619: checking whether ${CC-cc} accepts -fpic" >&5
6619 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
6620 echo $ac_n "(cached) $ac_c" 1>&6
6622 echo 'void f(){}' > conftest.c
6623 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
6624 ac_cv_prog_cc_fpic=yes
6626 ac_cv_prog_cc_fpic=no
6632 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
6633 if test $ac_cv_prog_cc_fpic = yes; then
6636 if test x$PICFLAG = x; then
6637 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
6638 echo "configure:6639: checking whether ${CC-cc} accepts -Kpic" >&5
6639 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
6640 echo $ac_n "(cached) $ac_c" 1>&6
6642 echo 'void f(){}' > conftest.c
6643 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
6644 ac_cv_prog_cc_Kpic=yes
6646 ac_cv_prog_cc_Kpic=no
6652 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
6653 if test $ac_cv_prog_cc_Kpic = yes; then
6657 if test x$PICFLAG = x; then
6658 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
6659 echo "configure:6660: checking whether ${CC-cc} accepts -KPIC" >&5
6660 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
6661 echo $ac_n "(cached) $ac_c" 1>&6
6663 echo 'void f(){}' > conftest.c
6664 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
6665 ac_cv_prog_cc_KPIC=yes
6667 ac_cv_prog_cc_KPIC=no
6673 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
6674 if test $ac_cv_prog_cc_KPIC = yes; then
6681 echo $ac_n "checking for long long""... $ac_c" 1>&6
6682 echo "configure:6683: checking for long long" >&5
6683 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
6684 echo $ac_n "(cached) $ac_c" 1>&6
6687 if test "$cross_compiling" = yes; then
6688 samba_cv_have_longlong=cross
6690 cat > conftest.$ac_ext <<EOF
6691 #line 6692 "configure"
6692 #include "confdefs.h"
6694 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
6696 if { (eval echo configure:6697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6698 samba_cv_have_longlong=yes
6700 echo "configure: failed program was:" >&5
6701 cat conftest.$ac_ext >&5
6703 samba_cv_have_longlong=no
6710 echo "$ac_t""$samba_cv_have_longlong" 1>&6
6711 if test x"$samba_cv_have_longlong" = x"yes"; then
6712 cat >> confdefs.h <<\EOF
6713 #define HAVE_LONGLONG 1
6718 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
6719 echo "configure:6720: checking for 64 bit off_t" >&5
6720 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
6721 echo $ac_n "(cached) $ac_c" 1>&6
6724 if test "$cross_compiling" = yes; then
6725 samba_cv_SIZEOF_OFF_T=cross
6727 cat > conftest.$ac_ext <<EOF
6728 #line 6729 "configure"
6729 #include "confdefs.h"
6731 #include <sys/stat.h>
6732 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
6734 if { (eval echo configure:6735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6736 samba_cv_SIZEOF_OFF_T=yes
6738 echo "configure: failed program was:" >&5
6739 cat conftest.$ac_ext >&5
6741 samba_cv_SIZEOF_OFF_T=no
6748 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
6749 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
6750 cat >> confdefs.h <<\EOF
6751 #define SIZEOF_OFF_T 8
6756 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
6757 echo "configure:6758: checking for off64_t" >&5
6758 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
6759 echo $ac_n "(cached) $ac_c" 1>&6
6762 if test "$cross_compiling" = yes; then
6763 samba_cv_HAVE_OFF64_T=cross
6765 cat > conftest.$ac_ext <<EOF
6766 #line 6767 "configure"
6767 #include "confdefs.h"
6769 #include <sys/stat.h>
6770 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
6772 if { (eval echo configure:6773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6774 samba_cv_HAVE_OFF64_T=yes
6776 echo "configure: failed program was:" >&5
6777 cat conftest.$ac_ext >&5
6779 samba_cv_HAVE_OFF64_T=no
6786 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
6787 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
6788 cat >> confdefs.h <<\EOF
6789 #define HAVE_OFF64_T 1
6794 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
6795 echo "configure:6796: checking for 64 bit ino_t" >&5
6796 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
6797 echo $ac_n "(cached) $ac_c" 1>&6
6800 if test "$cross_compiling" = yes; then
6801 samba_cv_SIZEOF_INO_T=cross
6803 cat > conftest.$ac_ext <<EOF
6804 #line 6805 "configure"
6805 #include "confdefs.h"
6807 #include <sys/stat.h>
6808 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
6810 if { (eval echo configure:6811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6812 samba_cv_SIZEOF_INO_T=yes
6814 echo "configure: failed program was:" >&5
6815 cat conftest.$ac_ext >&5
6817 samba_cv_SIZEOF_INO_T=no
6824 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
6825 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
6826 cat >> confdefs.h <<\EOF
6827 #define SIZEOF_INO_T 8
6832 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
6833 echo "configure:6834: checking for ino64_t" >&5
6834 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
6835 echo $ac_n "(cached) $ac_c" 1>&6
6838 if test "$cross_compiling" = yes; then
6839 samba_cv_HAVE_INO64_T=cross
6841 cat > conftest.$ac_ext <<EOF
6842 #line 6843 "configure"
6843 #include "confdefs.h"
6845 #include <sys/stat.h>
6846 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
6848 if { (eval echo configure:6849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6850 samba_cv_HAVE_INO64_T=yes
6852 echo "configure: failed program was:" >&5
6853 cat conftest.$ac_ext >&5
6855 samba_cv_HAVE_INO64_T=no
6862 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
6863 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
6864 cat >> confdefs.h <<\EOF
6865 #define HAVE_INO64_T 1
6870 echo $ac_n "checking for union semun""... $ac_c" 1>&6
6871 echo "configure:6872: checking for union semun" >&5
6872 if eval "test \"`echo '$''{'samba_cv_HAVE_UNION_SEMUN'+set}'`\" = set"; then
6873 echo $ac_n "(cached) $ac_c" 1>&6
6876 if test "$cross_compiling" = yes; then
6877 samba_cv_HAVE_UNION_SEMUN=cross
6879 cat > conftest.$ac_ext <<EOF
6880 #line 6881 "configure"
6881 #include "confdefs.h"
6883 #include <sys/types.h>
6884 #include <sys/ipc.h>
6885 #include <sys/sem.h>
6886 main() { union semun ss; exit(0); }
6888 if { (eval echo configure:6889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6890 samba_cv_HAVE_UNION_SEMUN=yes
6892 echo "configure: failed program was:" >&5
6893 cat conftest.$ac_ext >&5
6895 samba_cv_HAVE_UNION_SEMUN=no
6902 echo "$ac_t""$samba_cv_HAVE_UNION_SEMUN" 1>&6
6903 if test x"$samba_cv_HAVE_UNION_SEMUN" = x"yes"; then
6904 cat >> confdefs.h <<\EOF
6905 #define HAVE_UNION_SEMUN 1
6910 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
6911 echo "configure:6912: checking for unsigned char" >&5
6912 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
6913 echo $ac_n "(cached) $ac_c" 1>&6
6916 if test "$cross_compiling" = yes; then
6917 samba_cv_HAVE_UNSIGNED_CHAR=cross
6919 cat > conftest.$ac_ext <<EOF
6920 #line 6921 "configure"
6921 #include "confdefs.h"
6923 main() { char c; c=250; exit((c > 0)?0:1); }
6925 if { (eval echo configure:6926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6927 samba_cv_HAVE_UNSIGNED_CHAR=yes
6929 echo "configure: failed program was:" >&5
6930 cat conftest.$ac_ext >&5
6932 samba_cv_HAVE_UNSIGNED_CHAR=no
6939 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
6940 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
6941 cat >> confdefs.h <<\EOF
6942 #define HAVE_UNSIGNED_CHAR 1
6947 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
6948 echo "configure:6949: checking for sin_len in sock" >&5
6949 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
6950 echo $ac_n "(cached) $ac_c" 1>&6
6953 cat > conftest.$ac_ext <<EOF
6954 #line 6955 "configure"
6955 #include "confdefs.h"
6956 #include <sys/types.h>
6957 #include <sys/socket.h>
6958 #include <netinet/in.h>
6960 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
6963 if { (eval echo configure:6964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6965 samba_cv_HAVE_SOCK_SIN_LEN=yes
6967 echo "configure: failed program was:" >&5
6968 cat conftest.$ac_ext >&5
6970 samba_cv_HAVE_SOCK_SIN_LEN=no
6975 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
6976 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
6977 cat >> confdefs.h <<\EOF
6978 #define HAVE_SOCK_SIN_LEN 1
6983 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
6984 echo "configure:6985: checking whether seekdir returns void" >&5
6985 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
6986 echo $ac_n "(cached) $ac_c" 1>&6
6989 cat > conftest.$ac_ext <<EOF
6990 #line 6991 "configure"
6991 #include "confdefs.h"
6992 #include <sys/types.h>
6994 void seekdir(DIR *d, long loc) { return; }
6999 if { (eval echo configure:7000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7001 samba_cv_SEEKDIR_RETURNS_VOID=yes
7003 echo "configure: failed program was:" >&5
7004 cat conftest.$ac_ext >&5
7006 samba_cv_SEEKDIR_RETURNS_VOID=no
7011 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
7012 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
7013 cat >> confdefs.h <<\EOF
7014 #define SEEKDIR_RETURNS_VOID 1
7019 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
7020 echo "configure:7021: checking for __FILE__ macro" >&5
7021 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
7022 echo $ac_n "(cached) $ac_c" 1>&6
7025 cat > conftest.$ac_ext <<EOF
7026 #line 7027 "configure"
7027 #include "confdefs.h"
7030 printf("%s\n", __FILE__);
7033 if { (eval echo configure:7034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7035 samba_cv_HAVE_FILE_MACRO=yes
7037 echo "configure: failed program was:" >&5
7038 cat conftest.$ac_ext >&5
7040 samba_cv_HAVE_FILE_MACRO=no
7045 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
7046 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
7047 cat >> confdefs.h <<\EOF
7048 #define HAVE_FILE_MACRO 1
7053 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
7054 echo "configure:7055: checking for __FUNCTION__ macro" >&5
7055 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
7056 echo $ac_n "(cached) $ac_c" 1>&6
7059 cat > conftest.$ac_ext <<EOF
7060 #line 7061 "configure"
7061 #include "confdefs.h"
7064 printf("%s\n", __FUNCTION__);
7067 if { (eval echo configure:7068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7069 samba_cv_HAVE_FUNCTION_MACRO=yes
7071 echo "configure: failed program was:" >&5
7072 cat conftest.$ac_ext >&5
7074 samba_cv_HAVE_FUNCTION_MACRO=no
7079 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
7080 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
7081 cat >> confdefs.h <<\EOF
7082 #define HAVE_FUNCTION_MACRO 1
7087 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
7088 echo "configure:7089: checking if gettimeofday takes tz argument" >&5
7089 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
7090 echo $ac_n "(cached) $ac_c" 1>&6
7093 if test "$cross_compiling" = yes; then
7094 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
7096 cat > conftest.$ac_ext <<EOF
7097 #line 7098 "configure"
7098 #include "confdefs.h"
7100 #include <sys/time.h>
7102 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
7104 if { (eval echo configure:7105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7106 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
7108 echo "configure: failed program was:" >&5
7109 cat conftest.$ac_ext >&5
7111 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
7118 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
7119 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
7120 cat >> confdefs.h <<\EOF
7121 #define HAVE_GETTIMEOFDAY_TZ 1
7127 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
7128 echo "configure:7129: checking for broken readdir" >&5
7129 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
7130 echo $ac_n "(cached) $ac_c" 1>&6
7133 if test "$cross_compiling" = yes; then
7134 samba_cv_HAVE_BROKEN_READDIR=cross
7136 cat > conftest.$ac_ext <<EOF
7137 #line 7138 "configure"
7138 #include "confdefs.h"
7139 #include <sys/types.h>
7141 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
7142 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
7143 di->d_name[0] == 0) exit(0); exit(1);}
7145 if { (eval echo configure:7146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7147 samba_cv_HAVE_BROKEN_READDIR=yes
7149 echo "configure: failed program was:" >&5
7150 cat conftest.$ac_ext >&5
7152 samba_cv_HAVE_BROKEN_READDIR=no
7159 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
7160 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
7161 cat >> confdefs.h <<\EOF
7162 #define HAVE_BROKEN_READDIR 1
7167 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
7168 echo "configure:7169: checking for utimbuf" >&5
7169 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
7170 echo $ac_n "(cached) $ac_c" 1>&6
7173 cat > conftest.$ac_ext <<EOF
7174 #line 7175 "configure"
7175 #include "confdefs.h"
7176 #include <sys/types.h>
7179 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
7182 if { (eval echo configure:7183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7184 samba_cv_HAVE_UTIMBUF=yes
7186 echo "configure: failed program was:" >&5
7187 cat conftest.$ac_ext >&5
7189 samba_cv_HAVE_UTIMBUF=no
7194 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
7195 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
7196 cat >> confdefs.h <<\EOF
7197 #define HAVE_UTIMBUF 1
7202 echo $ac_n "checking for kernel oplock type definitions""... $ac_c" 1>&6
7203 echo "configure:7204: checking for kernel oplock type definitions" >&5
7204 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS'+set}'`\" = set"; then
7205 echo $ac_n "(cached) $ac_c" 1>&6
7208 cat > conftest.$ac_ext <<EOF
7209 #line 7210 "configure"
7210 #include "confdefs.h"
7211 #include <sys/types.h>
7214 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
7217 if { (eval echo configure:7218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7219 samba_cv_HAVE_KERNEL_OPLOCKS=yes
7221 echo "configure: failed program was:" >&5
7222 cat conftest.$ac_ext >&5
7224 samba_cv_HAVE_KERNEL_OPLOCKS=no
7229 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS" 1>&6
7230 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS" = x"yes"; then
7231 cat >> confdefs.h <<\EOF
7232 #define HAVE_KERNEL_OPLOCKS 1
7237 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
7238 echo "configure:7239: checking for irix specific capabilities" >&5
7239 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
7240 echo $ac_n "(cached) $ac_c" 1>&6
7243 if test "$cross_compiling" = yes; then
7244 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
7246 cat > conftest.$ac_ext <<EOF
7247 #line 7248 "configure"
7248 #include "confdefs.h"
7249 #include <sys/types.h>
7250 #include <sys/capability.h>
7253 if ((cap = cap_get_proc()) == NULL)
7255 cap->cap_effective |= CAP_NETWORK_MGT;
7256 cap->cap_inheritable |= CAP_NETWORK_MGT;
7262 if { (eval echo configure:7263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7264 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
7266 echo "configure: failed program was:" >&5
7267 cat conftest.$ac_ext >&5
7269 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
7276 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
7277 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
7278 cat >> confdefs.h <<\EOF
7279 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
7285 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
7286 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
7289 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7290 echo "configure:7291: checking for int16 typedef included by rpc/rpc.h" >&5
7291 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
7292 echo $ac_n "(cached) $ac_c" 1>&6
7295 cat > conftest.$ac_ext <<EOF
7296 #line 7297 "configure"
7297 #include "confdefs.h"
7298 #include <sys/types.h>
7299 #if defined(HAVE_RPC_RPC_H)
7300 #include <rpc/rpc.h>
7306 if { (eval echo configure:7307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7308 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
7310 echo "configure: failed program was:" >&5
7311 cat conftest.$ac_ext >&5
7313 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
7318 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
7319 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
7320 cat >> confdefs.h <<\EOF
7321 #define HAVE_INT16_FROM_RPC_RPC_H 1
7326 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7327 echo "configure:7328: checking for uint16 typedef included by rpc/rpc.h" >&5
7328 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
7329 echo $ac_n "(cached) $ac_c" 1>&6
7332 cat > conftest.$ac_ext <<EOF
7333 #line 7334 "configure"
7334 #include "confdefs.h"
7335 #include <sys/types.h>
7336 #if defined(HAVE_RPC_RPC_H)
7337 #include <rpc/rpc.h>
7343 if { (eval echo configure:7344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7345 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
7347 echo "configure: failed program was:" >&5
7348 cat conftest.$ac_ext >&5
7350 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
7355 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
7356 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
7357 cat >> confdefs.h <<\EOF
7358 #define HAVE_UINT16_FROM_RPC_RPC_H 1
7363 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7364 echo "configure:7365: checking for int32 typedef included by rpc/rpc.h" >&5
7365 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
7366 echo $ac_n "(cached) $ac_c" 1>&6
7369 cat > conftest.$ac_ext <<EOF
7370 #line 7371 "configure"
7371 #include "confdefs.h"
7372 #include <sys/types.h>
7373 #if defined(HAVE_RPC_RPC_H)
7374 #include <rpc/rpc.h>
7380 if { (eval echo configure:7381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7382 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
7384 echo "configure: failed program was:" >&5
7385 cat conftest.$ac_ext >&5
7387 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
7392 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
7393 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
7394 cat >> confdefs.h <<\EOF
7395 #define HAVE_INT32_FROM_RPC_RPC_H 1
7400 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7401 echo "configure:7402: checking for uint32 typedef included by rpc/rpc.h" >&5
7402 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
7403 echo $ac_n "(cached) $ac_c" 1>&6
7406 cat > conftest.$ac_ext <<EOF
7407 #line 7408 "configure"
7408 #include "confdefs.h"
7409 #include <sys/types.h>
7410 #if defined(HAVE_RPC_RPC_H)
7411 #include <rpc/rpc.h>
7417 if { (eval echo configure:7418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7419 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
7421 echo "configure: failed program was:" >&5
7422 cat conftest.$ac_ext >&5
7424 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
7429 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
7430 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
7431 cat >> confdefs.h <<\EOF
7432 #define HAVE_UINT32_FROM_RPC_RPC_H 1
7437 echo $ac_n "checking for test routines""... $ac_c" 1>&6
7438 echo "configure:7439: checking for test routines" >&5
7439 if test "$cross_compiling" = yes; then
7440 echo "configure: warning: cannot run when cross-compiling" 1>&2
7442 cat > conftest.$ac_ext <<EOF
7443 #line 7444 "configure"
7444 #include "confdefs.h"
7445 #include "${srcdir-.}/tests/trivial.c"
7447 if { (eval echo configure:7448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7449 echo "$ac_t""yes" 1>&6
7451 echo "configure: failed program was:" >&5
7452 cat conftest.$ac_ext >&5
7454 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
7460 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
7461 echo "configure:7462: checking for ftruncate extend" >&5
7462 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
7463 echo $ac_n "(cached) $ac_c" 1>&6
7466 if test "$cross_compiling" = yes; then
7467 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
7469 cat > conftest.$ac_ext <<EOF
7470 #line 7471 "configure"
7471 #include "confdefs.h"
7472 #include "${srcdir-.}/tests/ftruncate.c"
7474 if { (eval echo configure:7475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7476 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
7478 echo "configure: failed program was:" >&5
7479 cat conftest.$ac_ext >&5
7481 samba_cv_HAVE_FTRUNCATE_EXTEND=no
7488 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
7489 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
7490 cat >> confdefs.h <<\EOF
7491 #define HAVE_FTRUNCATE_EXTEND 1
7496 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
7497 echo "configure:7498: checking for broken getgroups" >&5
7498 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
7499 echo $ac_n "(cached) $ac_c" 1>&6
7502 if test "$cross_compiling" = yes; then
7503 samba_cv_HAVE_BROKEN_GETGROUPS=cross
7505 cat > conftest.$ac_ext <<EOF
7506 #line 7507 "configure"
7507 #include "confdefs.h"
7508 #include "${srcdir-.}/tests/getgroups.c"
7510 if { (eval echo configure:7511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7512 samba_cv_HAVE_BROKEN_GETGROUPS=yes
7514 echo "configure: failed program was:" >&5
7515 cat conftest.$ac_ext >&5
7517 samba_cv_HAVE_BROKEN_GETGROUPS=no
7524 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
7525 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
7526 cat >> confdefs.h <<\EOF
7527 #define HAVE_BROKEN_GETGROUPS 1
7532 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
7533 echo "configure:7534: checking whether getpass should be replaced" >&5
7534 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
7535 echo $ac_n "(cached) $ac_c" 1>&6
7538 SAVE_CPPFLAGS="$CPPFLAGS"
7539 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx"
7540 cat > conftest.$ac_ext <<EOF
7541 #line 7542 "configure"
7542 #include "confdefs.h"
7544 #define REPLACE_GETPASS 1
7545 #define NO_CONFIG_H 1
7546 #define main dont_declare_main
7547 #include "${srcdir-.}/lib/getsmbpass.c"
7554 if { (eval echo configure:7555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7556 samba_cv_REPLACE_GETPASS=yes
7558 echo "configure: failed program was:" >&5
7559 cat conftest.$ac_ext >&5
7561 samba_cv_REPLACE_GETPASS=no
7564 CPPFLAGS="$SAVE_CPPFLAGS"
7568 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
7569 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
7570 cat >> confdefs.h <<\EOF
7571 #define REPLACE_GETPASS 1
7576 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
7577 echo "configure:7578: checking for broken inet_ntoa" >&5
7578 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
7579 echo $ac_n "(cached) $ac_c" 1>&6
7582 if test "$cross_compiling" = yes; then
7583 samba_cv_REPLACE_INET_NTOA=cross
7585 cat > conftest.$ac_ext <<EOF
7586 #line 7587 "configure"
7587 #include "confdefs.h"
7590 #include <sys/types.h>
7591 #include <netinet/in.h>
7592 #include <arpa/inet.h>
7593 main() { struct in_addr ip; ip.s_addr = 0x12345678;
7594 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
7595 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
7598 if { (eval echo configure:7599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7600 samba_cv_REPLACE_INET_NTOA=yes
7602 echo "configure: failed program was:" >&5
7603 cat conftest.$ac_ext >&5
7605 samba_cv_REPLACE_INET_NTOA=no
7612 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
7613 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
7614 cat >> confdefs.h <<\EOF
7615 #define REPLACE_INET_NTOA 1
7620 echo $ac_n "checking for root""... $ac_c" 1>&6
7621 echo "configure:7622: checking for root" >&5
7622 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
7623 echo $ac_n "(cached) $ac_c" 1>&6
7626 if test "$cross_compiling" = yes; then
7627 samba_cv_HAVE_ROOT=cross
7629 cat > conftest.$ac_ext <<EOF
7630 #line 7631 "configure"
7631 #include "confdefs.h"
7632 main() { exit(getuid() != 0); }
7634 if { (eval echo configure:7635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7636 samba_cv_HAVE_ROOT=yes
7638 echo "configure: failed program was:" >&5
7639 cat conftest.$ac_ext >&5
7641 samba_cv_HAVE_ROOT=no
7648 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
7649 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
7650 cat >> confdefs.h <<\EOF
7655 echo "configure: warning: running as non-root will disable some tests" 1>&2
7659 echo $ac_n "checking for netmask ifconf""... $ac_c" 1>&6
7660 echo "configure:7661: checking for netmask ifconf" >&5
7661 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFCONF'+set}'`\" = set"; then
7662 echo $ac_n "(cached) $ac_c" 1>&6
7665 if test "$cross_compiling" = yes; then
7666 samba_cv_HAVE_NETMASK_IFCONF=cross
7668 cat > conftest.$ac_ext <<EOF
7669 #line 7670 "configure"
7670 #include "confdefs.h"
7672 #define HAVE_NETMASK_IFCONF 1
7674 #include "${srcdir-.}/lib/netmask.c"
7676 if { (eval echo configure:7677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7678 samba_cv_HAVE_NETMASK_IFCONF=yes
7680 echo "configure: failed program was:" >&5
7681 cat conftest.$ac_ext >&5
7683 samba_cv_HAVE_NETMASK_IFCONF=no
7690 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFCONF" 1>&6
7691 if test x"$samba_cv_HAVE_NETMASK_IFCONF" = x"yes"; then
7692 netmask=yes;cat >> confdefs.h <<\EOF
7693 #define HAVE_NETMASK_IFCONF 1
7698 if test $netmask = no; then
7699 echo $ac_n "checking for netmask ifreq""... $ac_c" 1>&6
7700 echo "configure:7701: checking for netmask ifreq" >&5
7701 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFREQ'+set}'`\" = set"; then
7702 echo $ac_n "(cached) $ac_c" 1>&6
7705 if test "$cross_compiling" = yes; then
7706 samba_cv_HAVE_NETMASK_IFREQ=cross
7708 cat > conftest.$ac_ext <<EOF
7709 #line 7710 "configure"
7710 #include "confdefs.h"
7712 #define HAVE_NETMASK_IFREQ 1
7714 #include "${srcdir-.}/lib/netmask.c"
7716 if { (eval echo configure:7717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7718 samba_cv_HAVE_NETMASK_IFREQ=yes
7720 echo "configure: failed program was:" >&5
7721 cat conftest.$ac_ext >&5
7723 samba_cv_HAVE_NETMASK_IFREQ=no
7730 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFREQ" 1>&6
7731 if test x"$samba_cv_HAVE_NETMASK_IFREQ" = x"yes"; then
7732 netmask=yes;cat >> confdefs.h <<\EOF
7733 #define HAVE_NETMASK_IFREQ 1
7739 if test $netmask = no; then
7740 echo $ac_n "checking for netmask AIX""... $ac_c" 1>&6
7741 echo "configure:7742: checking for netmask AIX" >&5
7742 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_AIX'+set}'`\" = set"; then
7743 echo $ac_n "(cached) $ac_c" 1>&6
7746 if test "$cross_compiling" = yes; then
7747 samba_cv_HAVE_NETMASK_AIX=cross
7749 cat > conftest.$ac_ext <<EOF
7750 #line 7751 "configure"
7751 #include "confdefs.h"
7753 #define HAVE_NETMASK_AIX 1
7755 #include "${srcdir-.}/lib/netmask.c"
7757 if { (eval echo configure:7758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7759 samba_cv_HAVE_NETMASK_AIX=yes
7761 echo "configure: failed program was:" >&5
7762 cat conftest.$ac_ext >&5
7764 samba_cv_HAVE_NETMASK_AIX=no
7771 echo "$ac_t""$samba_cv_HAVE_NETMASK_AIX" 1>&6
7772 if test x"$samba_cv_HAVE_NETMASK_AIX" = x"yes"; then
7773 netmask=yes;cat >> confdefs.h <<\EOF
7774 #define HAVE_NETMASK_AIX 1
7780 echo $ac_n "checking for trapdoor seteuid""... $ac_c" 1>&6
7781 echo "configure:7782: checking for trapdoor seteuid" >&5
7782 if eval "test \"`echo '$''{'samba_cv_HAVE_TRAPDOOR_UID'+set}'`\" = set"; then
7783 echo $ac_n "(cached) $ac_c" 1>&6
7786 if test "$cross_compiling" = yes; then
7789 cat > conftest.$ac_ext <<EOF
7790 #line 7791 "configure"
7791 #include "confdefs.h"
7792 #include "${srcdir-.}/tests/trapdoor.c"
7794 if { (eval echo configure:7795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7796 samba_cv_HAVE_TRAPDOOR_UID=no
7798 echo "configure: failed program was:" >&5
7799 cat conftest.$ac_ext >&5
7801 samba_cv_HAVE_TRAPDOOR_UID=yes
7808 echo "$ac_t""$samba_cv_HAVE_TRAPDOOR_UID" 1>&6
7809 if test x"$samba_cv_HAVE_TRAPDOOR_UID" = x"yes"; then
7810 cat >> confdefs.h <<\EOF
7811 #define HAVE_TRAPDOOR_UID 1
7816 echo $ac_n "checking for shared mmap""... $ac_c" 1>&6
7817 echo "configure:7818: checking for shared mmap" >&5
7818 if eval "test \"`echo '$''{'samba_cv_HAVE_SHARED_MMAP'+set}'`\" = set"; then
7819 echo $ac_n "(cached) $ac_c" 1>&6
7822 if test "$cross_compiling" = yes; then
7823 samba_cv_HAVE_SHARED_MMAP=cross
7825 cat > conftest.$ac_ext <<EOF
7826 #line 7827 "configure"
7827 #include "confdefs.h"
7828 #include "${srcdir-.}/tests/shared_mmap.c"
7830 if { (eval echo configure:7831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7832 samba_cv_HAVE_SHARED_MMAP=yes
7834 echo "configure: failed program was:" >&5
7835 cat conftest.$ac_ext >&5
7837 samba_cv_HAVE_SHARED_MMAP=no
7844 echo "$ac_t""$samba_cv_HAVE_SHARED_MMAP" 1>&6
7845 if test x"$samba_cv_HAVE_SHARED_MMAP" = x"yes"; then
7846 cat >> confdefs.h <<\EOF
7847 #define HAVE_SHARED_MMAP 1
7852 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
7853 echo "configure:7854: checking for fcntl locking" >&5
7854 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
7855 echo $ac_n "(cached) $ac_c" 1>&6
7858 if test "$cross_compiling" = yes; then
7859 samba_cv_HAVE_FCNTL_LOCK=cross
7861 cat > conftest.$ac_ext <<EOF
7862 #line 7863 "configure"
7863 #include "confdefs.h"
7864 #include "${srcdir-.}/tests/fcntl_lock.c"
7866 if { (eval echo configure:7867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7868 samba_cv_HAVE_FCNTL_LOCK=yes
7870 echo "configure: failed program was:" >&5
7871 cat conftest.$ac_ext >&5
7873 samba_cv_HAVE_FCNTL_LOCK=no
7880 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
7881 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
7882 cat >> confdefs.h <<\EOF
7883 #define HAVE_FCNTL_LOCK 1
7888 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
7889 echo "configure:7890: checking for 64 bit fcntl locking" >&5
7890 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
7891 echo $ac_n "(cached) $ac_c" 1>&6
7894 if test "$cross_compiling" = yes; then
7895 samba_cv_HAVE_STRUCT_FLOCK64=cross
7897 cat > conftest.$ac_ext <<EOF
7898 #line 7899 "configure"
7899 #include "confdefs.h"
7908 #ifdef HAVE_SYS_FCNTL_H
7909 #include <sys/fcntl.h>
7911 main() { struct flock64 fl64;
7912 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
7919 if { (eval echo configure:7920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7921 samba_cv_HAVE_STRUCT_FLOCK64=yes
7923 echo "configure: failed program was:" >&5
7924 cat conftest.$ac_ext >&5
7926 samba_cv_HAVE_STRUCT_FLOCK64=no
7933 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
7934 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
7935 cat >> confdefs.h <<\EOF
7936 #define HAVE_STRUCT_FLOCK64 1
7941 echo $ac_n "checking for sysv ipc""... $ac_c" 1>&6
7942 echo "configure:7943: checking for sysv ipc" >&5
7943 if eval "test \"`echo '$''{'samba_cv_HAVE_SYSV_IPC'+set}'`\" = set"; then
7944 echo $ac_n "(cached) $ac_c" 1>&6
7947 if test "$cross_compiling" = yes; then
7948 samba_cv_HAVE_SYSV_IPC=cross
7950 cat > conftest.$ac_ext <<EOF
7951 #line 7952 "configure"
7952 #include "confdefs.h"
7953 #include "${srcdir-.}/tests/sysv_ipc.c"
7955 if { (eval echo configure:7956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7957 samba_cv_HAVE_SYSV_IPC=yes
7959 echo "configure: failed program was:" >&5
7960 cat conftest.$ac_ext >&5
7962 samba_cv_HAVE_SYSV_IPC=no
7969 echo "$ac_t""$samba_cv_HAVE_SYSV_IPC" 1>&6
7970 if test x"$samba_cv_HAVE_SYSV_IPC" = x"yes"; then
7971 cat >> confdefs.h <<\EOF
7972 #define HAVE_SYSV_IPC 1
7977 #################################################
7978 # check for smbwrapper support
7979 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
7980 echo "configure:7981: checking whether to use smbwrapper" >&5
7981 # Check whether --with-smbwrapper or --without-smbwrapper was given.
7982 if test "${with_smbwrapper+set}" = set; then
7983 withval="$with_smbwrapper"
7986 echo "$ac_t""yes" 1>&6
7987 cat >> confdefs.h <<\EOF
7988 #define WITH_SMBWRAPPER 1
7991 WRAP="bin/smbsh bin/smbwrapper.so"
7993 if test x$ATTEMPT_WRAP32_BUILD = x; then
7996 WRAP32=bin/smbwrapper.32.so
7999 # Conditions under which smbwrapper should not be built.
8001 if test x$PICFLAG = x; then
8002 echo No support for PIC code - disabling smbwrapper and smbsh
8005 elif test x$ac_cv_func_syscall = xno; then
8006 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
8012 echo "$ac_t""no" 1>&6
8016 echo "$ac_t""no" 1>&6
8021 #################################################
8022 # check for the AFS filesystem
8023 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
8024 echo "configure:8025: checking whether to use AFS" >&5
8025 # Check whether --with-afs or --without-afs was given.
8026 if test "${with_afs+set}" = set; then
8030 echo "$ac_t""yes" 1>&6
8031 cat >> confdefs.h <<\EOF
8037 echo "$ac_t""no" 1>&6
8041 echo "$ac_t""no" 1>&6
8047 #################################################
8048 # check for the DFS auth system
8049 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
8050 echo "configure:8051: checking whether to use DFS auth" >&5
8051 # Check whether --with-dfs or --without-dfs was given.
8052 if test "${with_dfs+set}" = set; then
8056 echo "$ac_t""yes" 1>&6
8057 cat >> confdefs.h <<\EOF
8063 echo "$ac_t""no" 1>&6
8067 echo "$ac_t""no" 1>&6
8072 #################################################
8073 # check for Kerberos IV auth system
8074 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
8075 echo "configure:8076: checking whether to use Kerberos IV" >&5
8076 # Check whether --with-krb4 or --without-krb4 was given.
8077 if test "${with_krb4+set}" = set; then
8078 withval="$with_krb4"
8079 echo "$ac_t""yes" 1>&6
8080 cat >> confdefs.h <<\EOF
8084 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
8085 echo "configure:8086: checking for dn_expand in -lresolv" >&5
8086 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
8087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8088 echo $ac_n "(cached) $ac_c" 1>&6
8090 ac_save_LIBS="$LIBS"
8091 LIBS="-lresolv $LIBS"
8092 cat > conftest.$ac_ext <<EOF
8093 #line 8094 "configure"
8094 #include "confdefs.h"
8095 /* Override any gcc2 internal prototype to avoid an error. */
8096 /* We use char because int might match the return type of a gcc2
8097 builtin and then its argument prototype would still apply. */
8104 if { (eval echo configure:8105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8106 eval "ac_cv_lib_$ac_lib_var=yes"
8108 echo "configure: failed program was:" >&5
8109 cat conftest.$ac_ext >&5
8111 eval "ac_cv_lib_$ac_lib_var=no"
8114 LIBS="$ac_save_LIBS"
8117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8118 echo "$ac_t""yes" 1>&6
8119 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8120 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8121 cat >> confdefs.h <<EOF
8122 #define $ac_tr_lib 1
8125 LIBS="-lresolv $LIBS"
8128 echo "$ac_t""no" 1>&6
8131 LIBS="$LIBS -lkrb -ldes"
8132 CFLAGS="$CFLAGS -I$withval/include"
8133 LDFLAGS="$LDFLAGS -L$withval/lib"
8135 echo "$ac_t""no" 1>&6
8140 #################################################
8141 # check for automount support
8142 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
8143 echo "configure:8144: checking whether to use AUTOMOUNT" >&5
8144 # Check whether --with-automount or --without-automount was given.
8145 if test "${with_automount+set}" = set; then
8146 withval="$with_automount"
8149 echo "$ac_t""yes" 1>&6
8150 cat >> confdefs.h <<\EOF
8151 #define WITH_AUTOMOUNT 1
8156 echo "$ac_t""no" 1>&6
8160 echo "$ac_t""no" 1>&6
8165 #################################################
8166 # check for smbmount support
8167 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
8168 echo "configure:8169: checking whether to use SMBMOUNT" >&5
8169 # Check whether --with-smbmount or --without-smbmount was given.
8170 if test "${with_smbmount+set}" = set; then
8171 withval="$with_smbmount"
8174 echo "$ac_t""yes" 1>&6
8175 cat >> confdefs.h <<\EOF
8176 #define WITH_SMBMOUNT 1
8179 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
8182 echo "$ac_t""no" 1>&6
8187 echo "$ac_t""no" 1>&6
8193 #################################################
8194 # check for a LDAP password database
8195 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
8196 echo "configure:8197: checking whether to use LDAP password database" >&5
8197 # Check whether --with-ldap or --without-ldap was given.
8198 if test "${with_ldap+set}" = set; then
8199 withval="$with_ldap"
8202 echo "$ac_t""yes" 1>&6
8203 cat >> confdefs.h <<\EOF
8209 echo "$ac_t""no" 1>&6
8213 echo "$ac_t""no" 1>&6
8218 #################################################
8219 # check for a NISPLUS password database
8220 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
8221 echo "configure:8222: checking whether to use NISPLUS password database" >&5
8222 # Check whether --with-nisplus or --without-nisplus was given.
8223 if test "${with_nisplus+set}" = set; then
8224 withval="$with_nisplus"
8227 echo "$ac_t""yes" 1>&6
8228 cat >> confdefs.h <<\EOF
8229 #define WITH_NISPLUS 1
8234 echo "$ac_t""no" 1>&6
8238 echo "$ac_t""no" 1>&6
8243 #################################################
8244 # check for a NISPLUS_HOME support
8245 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
8246 echo "configure:8247: checking whether to use NISPLUS_HOME" >&5
8247 # Check whether --with-nisplus-home or --without-nisplus-home was given.
8248 if test "${with_nisplus_home+set}" = set; then
8249 withval="$with_nisplus_home"
8252 echo "$ac_t""yes" 1>&6
8253 cat >> confdefs.h <<\EOF
8254 #define WITH_NISPLUS_HOME 1
8259 echo "$ac_t""no" 1>&6
8263 echo "$ac_t""no" 1>&6
8268 #################################################
8269 # check for the secure socket layer
8270 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
8271 echo "configure:8272: checking whether to use SSL" >&5
8272 # Check whether --with-ssl or --without-ssl was given.
8273 if test "${with_ssl+set}" = set; then
8277 echo "$ac_t""yes" 1>&6
8278 cat >> confdefs.h <<\EOF
8284 echo "$ac_t""no" 1>&6
8288 echo "$ac_t""no" 1>&6
8293 #################################################
8294 # check for experimental mmap support
8295 echo $ac_n "checking whether to use MMAP""... $ac_c" 1>&6
8296 echo "configure:8297: checking whether to use MMAP" >&5
8297 # Check whether --with-mmap or --without-mmap was given.
8298 if test "${with_mmap+set}" = set; then
8299 withval="$with_mmap"
8302 echo "$ac_t""yes" 1>&6
8303 cat >> confdefs.h <<\EOF
8309 echo "$ac_t""no" 1>&6
8313 echo "$ac_t""no" 1>&6
8318 #################################################
8319 # check for syslog logging
8320 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
8321 echo "configure:8322: checking whether to use syslog logging" >&5
8322 # Check whether --with-syslog or --without-syslog was given.
8323 if test "${with_syslog+set}" = set; then
8324 withval="$with_syslog"
8327 echo "$ac_t""yes" 1>&6
8328 cat >> confdefs.h <<\EOF
8329 #define WITH_SYSLOG 1
8334 echo "$ac_t""no" 1>&6
8338 echo "$ac_t""no" 1>&6
8343 #################################################
8344 # check for experimental netatalk resource fork support
8345 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
8346 echo "configure:8347: checking whether to support netatalk" >&5
8347 # Check whether --with-netatalk or --without-netatalk was given.
8348 if test "${with_netatalk+set}" = set; then
8349 withval="$with_netatalk"
8352 echo "$ac_t""yes" 1>&6
8353 cat >> confdefs.h <<\EOF
8354 #define WITH_NETATALK 1
8359 echo "$ac_t""no" 1>&6
8363 echo "$ac_t""no" 1>&6
8368 #################################################
8369 # check for experimental disk-quotas support
8370 QUOTAOBJS=noquotas.o
8372 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
8373 echo "configure:8374: checking whether to support disk-quotas" >&5
8374 # Check whether --with-quotas or --without-quotas was given.
8375 if test "${with_quotas+set}" = set; then
8376 withval="$with_quotas"
8379 echo "$ac_t""yes" 1>&6
8383 echo "$ac_t""no" 1>&6
8387 echo "$ac_t""no" 1>&6
8393 #################################################
8394 # these tests are taken from the GNU fileutils package
8395 echo "checking how to get filesystem space usage" 1>&6
8396 echo "configure:8397: checking how to get filesystem space usage" >&5
8399 # Test for statvfs64.
8400 if test $space = no; then
8402 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
8403 echo "configure:8404: checking statvfs64 function (SVR4)" >&5
8404 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
8405 echo $ac_n "(cached) $ac_c" 1>&6
8407 if test "$cross_compiling" = yes; then
8408 fu_cv_sys_stat_statvfs64=cross
8410 cat > conftest.$ac_ext <<EOF
8411 #line 8412 "configure"
8412 #include "confdefs.h"
8414 #include <sys/types.h>
8415 #include <sys/statvfs.h>
8418 struct statvfs64 fsd;
8419 exit (statfs64 (".", &fsd));
8422 if { (eval echo configure:8423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8424 fu_cv_sys_stat_statvfs64=yes
8426 echo "configure: failed program was:" >&5
8427 cat conftest.$ac_ext >&5
8429 fu_cv_sys_stat_statvfs64=no
8436 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
8437 if test $fu_cv_sys_stat_statvfs64 = yes; then
8439 cat >> confdefs.h <<\EOF
8440 #define STAT_STATVFS64 1
8446 # Perform only the link test since it seems there are no variants of the
8447 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
8448 # because that got a false positive on SCO OSR5. Adding the declaration
8449 # of a `struct statvfs' causes this test to fail (as it should) on such
8450 # systems. That system is reported to work fine with STAT_STATFS4 which
8451 # is what it gets when this test fails.
8452 if test $space = no; then
8454 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
8455 echo "configure:8456: checking statvfs function (SVR4)" >&5
8456 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
8457 echo $ac_n "(cached) $ac_c" 1>&6
8459 cat > conftest.$ac_ext <<EOF
8460 #line 8461 "configure"
8461 #include "confdefs.h"
8462 #include <sys/types.h>
8463 #include <sys/statvfs.h>
8465 struct statvfs fsd; statvfs (0, &fsd);
8468 if { (eval echo configure:8469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8470 fu_cv_sys_stat_statvfs=yes
8472 echo "configure: failed program was:" >&5
8473 cat conftest.$ac_ext >&5
8475 fu_cv_sys_stat_statvfs=no
8480 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
8481 if test $fu_cv_sys_stat_statvfs = yes; then
8483 cat >> confdefs.h <<\EOF
8484 #define STAT_STATVFS 1
8490 if test $space = no; then
8491 # DEC Alpha running OSF/1
8492 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
8493 echo "configure:8494: checking for 3-argument statfs function (DEC OSF/1)" >&5
8494 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
8495 echo $ac_n "(cached) $ac_c" 1>&6
8497 if test "$cross_compiling" = yes; then
8498 fu_cv_sys_stat_statfs3_osf1=no
8500 cat > conftest.$ac_ext <<EOF
8501 #line 8502 "configure"
8502 #include "confdefs.h"
8504 #include <sys/param.h>
8505 #include <sys/types.h>
8506 #include <sys/mount.h>
8511 exit (statfs (".", &fsd, sizeof (struct statfs)));
8514 if { (eval echo configure:8515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8516 fu_cv_sys_stat_statfs3_osf1=yes
8518 echo "configure: failed program was:" >&5
8519 cat conftest.$ac_ext >&5
8521 fu_cv_sys_stat_statfs3_osf1=no
8528 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
8529 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
8531 cat >> confdefs.h <<\EOF
8532 #define STAT_STATFS3_OSF1 1
8538 if test $space = no; then
8540 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
8541 echo "configure:8542: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
8542 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
8543 echo $ac_n "(cached) $ac_c" 1>&6
8545 if test "$cross_compiling" = yes; then
8546 fu_cv_sys_stat_statfs2_bsize=no
8548 cat > conftest.$ac_ext <<EOF
8549 #line 8550 "configure"
8550 #include "confdefs.h"
8552 #ifdef HAVE_SYS_PARAM_H
8553 #include <sys/param.h>
8555 #ifdef HAVE_SYS_MOUNT_H
8556 #include <sys/mount.h>
8558 #ifdef HAVE_SYS_VFS_H
8559 #include <sys/vfs.h>
8565 exit (statfs (".", &fsd));
8568 if { (eval echo configure:8569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8570 fu_cv_sys_stat_statfs2_bsize=yes
8572 echo "configure: failed program was:" >&5
8573 cat conftest.$ac_ext >&5
8575 fu_cv_sys_stat_statfs2_bsize=no
8582 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
8583 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
8585 cat >> confdefs.h <<\EOF
8586 #define STAT_STATFS2_BSIZE 1
8592 if test $space = no; then
8594 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
8595 echo "configure:8596: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
8596 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
8597 echo $ac_n "(cached) $ac_c" 1>&6
8599 if test "$cross_compiling" = yes; then
8600 fu_cv_sys_stat_statfs4=no
8602 cat > conftest.$ac_ext <<EOF
8603 #line 8604 "configure"
8604 #include "confdefs.h"
8605 #include <sys/types.h>
8606 #include <sys/statfs.h>
8610 exit (statfs (".", &fsd, sizeof fsd, 0));
8613 if { (eval echo configure:8614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8615 fu_cv_sys_stat_statfs4=yes
8617 echo "configure: failed program was:" >&5
8618 cat conftest.$ac_ext >&5
8620 fu_cv_sys_stat_statfs4=no
8627 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
8628 if test $fu_cv_sys_stat_statfs4 = yes; then
8630 cat >> confdefs.h <<\EOF
8631 #define STAT_STATFS4 1
8637 if test $space = no; then
8639 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
8640 echo "configure:8641: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
8641 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
8642 echo $ac_n "(cached) $ac_c" 1>&6
8644 if test "$cross_compiling" = yes; then
8645 fu_cv_sys_stat_statfs2_fsize=no
8647 cat > conftest.$ac_ext <<EOF
8648 #line 8649 "configure"
8649 #include "confdefs.h"
8650 #include <sys/types.h>
8651 #ifdef HAVE_SYS_PARAM_H
8652 #include <sys/param.h>
8654 #ifdef HAVE_SYS_MOUNT_H
8655 #include <sys/mount.h>
8661 exit (statfs (".", &fsd));
8664 if { (eval echo configure:8665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8666 fu_cv_sys_stat_statfs2_fsize=yes
8668 echo "configure: failed program was:" >&5
8669 cat conftest.$ac_ext >&5
8671 fu_cv_sys_stat_statfs2_fsize=no
8678 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
8679 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
8681 cat >> confdefs.h <<\EOF
8682 #define STAT_STATFS2_FSIZE 1
8688 if test $space = no; then
8690 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
8691 echo "configure:8692: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
8692 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
8693 echo $ac_n "(cached) $ac_c" 1>&6
8695 if test "$cross_compiling" = yes; then
8696 fu_cv_sys_stat_fs_data=no
8698 cat > conftest.$ac_ext <<EOF
8699 #line 8700 "configure"
8700 #include "confdefs.h"
8701 #include <sys/types.h>
8702 #ifdef HAVE_SYS_PARAM_H
8703 #include <sys/param.h>
8705 #ifdef HAVE_SYS_MOUNT_H
8706 #include <sys/mount.h>
8708 #ifdef HAVE_SYS_FS_TYPES_H
8709 #include <sys/fs_types.h>
8714 /* Ultrix's statfs returns 1 for success,
8715 0 for not mounted, -1 for failure. */
8716 exit (statfs (".", &fsd) != 1);
8719 if { (eval echo configure:8720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8721 fu_cv_sys_stat_fs_data=yes
8723 echo "configure: failed program was:" >&5
8724 cat conftest.$ac_ext >&5
8726 fu_cv_sys_stat_fs_data=no
8733 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
8734 if test $fu_cv_sys_stat_fs_data = yes; then
8736 cat >> confdefs.h <<\EOF
8737 #define STAT_STATFS2_FS_DATA 1
8743 echo "checking configure summary"
8744 if test "$cross_compiling" = yes; then
8747 cat > conftest.$ac_ext <<EOF
8748 #line 8749 "configure"
8749 #include "confdefs.h"
8750 #include "${srcdir-.}/tests/summary.c"
8752 if { (eval echo configure:8753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8754 echo "configure OK";
8756 echo "configure: failed program was:" >&5
8757 cat conftest.$ac_ext >&5
8759 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
8769 cat > confcache <<\EOF
8770 # This file is a shell script that caches the results of configure
8771 # tests run on this system so they can be shared between configure
8772 # scripts and configure runs. It is not useful on other systems.
8773 # If it contains results you don't want to keep, you may remove or edit it.
8775 # By default, configure uses ./config.cache as the cache file,
8776 # creating it if it does not exist already. You can give configure
8777 # the --cache-file=FILE option to use a different cache file; that is
8778 # what configure does when it calls configure scripts in
8779 # subdirectories, so they share the cache.
8780 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8781 # config.status only pays attention to the cache file if you give it the
8782 # --recheck option to rerun configure.
8785 # The following way of writing the cache mishandles newlines in values,
8786 # but we know of no workaround that is simple, portable, and efficient.
8787 # So, don't put newlines in cache variables' values.
8788 # Ultrix sh set writes to stderr and can't be redirected directly,
8789 # and sets the high bit in the cache file unless we assign to the vars.
8791 case `(ac_space=' '; set) 2>&1` in
8793 # `set' does not quote correctly, so add quotes (double-quote substitution
8794 # turns \\\\ into \\, and sed turns \\ into \).
8796 -e "s/'/'\\\\''/g" \
8797 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8800 # `set' quotes correctly as required by POSIX, so do not add quotes.
8801 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8804 if cmp -s $cache_file confcache; then
8807 if test -w $cache_file; then
8808 echo "updating cache $cache_file"
8809 cat confcache > $cache_file
8811 echo "not updating unwritable cache $cache_file"
8816 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8818 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8819 # Let make expand exec_prefix.
8820 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8822 # Any assignment to VPATH causes Sun make to only execute
8823 # the first set of double-colon rules, so remove it if not needed.
8824 # If there is a colon in the path, we need to keep it.
8825 if test "x$srcdir" = x.; then
8826 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8829 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8831 DEFS=-DHAVE_CONFIG_H
8833 # Without the "./", some shells look in PATH for config.status.
8834 : ${CONFIG_STATUS=./config.status}
8836 echo creating $CONFIG_STATUS
8837 rm -f $CONFIG_STATUS
8838 cat > $CONFIG_STATUS <<EOF
8840 # Generated automatically by configure.
8841 # Run this file to recreate the current configuration.
8842 # This directory was configured as follows,
8843 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8845 # $0 $ac_configure_args
8847 # Compiler output produced by configure, useful for debugging
8848 # configure, is in ./config.log if it exists.
8850 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8853 case "\$ac_option" in
8854 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8855 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8856 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8857 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8858 echo "$CONFIG_STATUS generated by autoconf version 2.12"
8860 -help | --help | --hel | --he | --h)
8861 echo "\$ac_cs_usage"; exit 0 ;;
8862 *) echo "\$ac_cs_usage"; exit 1 ;;
8866 ac_given_srcdir=$srcdir
8867 ac_given_INSTALL="$INSTALL"
8869 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8871 cat >> $CONFIG_STATUS <<EOF
8873 # Protect against being on the right side of a sed subst in config.status.
8874 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8875 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8878 s%@CFLAGS@%$CFLAGS%g
8879 s%@CPPFLAGS@%$CPPFLAGS%g
8880 s%@CXXFLAGS@%$CXXFLAGS%g
8882 s%@LDFLAGS@%$LDFLAGS%g
8884 s%@exec_prefix@%$exec_prefix%g
8885 s%@prefix@%$prefix%g
8886 s%@program_transform_name@%$program_transform_name%g
8887 s%@bindir@%$bindir%g
8888 s%@sbindir@%$sbindir%g
8889 s%@libexecdir@%$libexecdir%g
8890 s%@datadir@%$datadir%g
8891 s%@sysconfdir@%$sysconfdir%g
8892 s%@sharedstatedir@%$sharedstatedir%g
8893 s%@localstatedir@%$localstatedir%g
8894 s%@libdir@%$libdir%g
8895 s%@includedir@%$includedir%g
8896 s%@oldincludedir@%$oldincludedir%g
8897 s%@infodir@%$infodir%g
8898 s%@mandir@%$mandir%g
8900 s%@MPROGS@%$MPROGS%g
8901 s%@LDSHFLAGS@%$LDSHFLAGS%g
8902 s%@HOST_OS@%$HOST_OS%g
8904 s%@WRAP32@%$WRAP32%g
8905 s%@PICFLAG@%$PICFLAG%g
8907 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8908 s%@INSTALL_DATA@%$INSTALL_DATA%g
8911 s%@host_alias@%$host_alias%g
8912 s%@host_cpu@%$host_cpu%g
8913 s%@host_vendor@%$host_vendor%g
8914 s%@host_os@%$host_os%g
8915 s%@target@%$target%g
8916 s%@target_alias@%$target_alias%g
8917 s%@target_cpu@%$target_cpu%g
8918 s%@target_vendor@%$target_vendor%g
8919 s%@target_os@%$target_os%g
8921 s%@build_alias@%$build_alias%g
8922 s%@build_cpu@%$build_cpu%g
8923 s%@build_vendor@%$build_vendor%g
8924 s%@build_os@%$build_os%g
8926 s%@AUTOCONF@%$AUTOCONF%g
8927 s%@AUTOHEADER@%$AUTOHEADER%g
8929 s%@LIBOBJS@%$LIBOBJS%g
8931 s%@QUOTAOBJS@%$QUOTAOBJS%g
8932 s%@builddir@%$builddir%g
8937 cat >> $CONFIG_STATUS <<\EOF
8939 # Split the substitutions into bite-sized pieces for seds with
8940 # small command number limits, like on Digital OSF/1 and HP-UX.
8941 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8942 ac_file=1 # Number of current file.
8943 ac_beg=1 # First line for current file.
8944 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8947 while $ac_more_lines; do
8948 if test $ac_beg -gt 1; then
8949 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8951 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8953 if test ! -s conftest.s$ac_file; then
8955 rm -f conftest.s$ac_file
8957 if test -z "$ac_sed_cmds"; then
8958 ac_sed_cmds="sed -f conftest.s$ac_file"
8960 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8962 ac_file=`expr $ac_file + 1`
8964 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8967 if test -z "$ac_sed_cmds"; then
8972 cat >> $CONFIG_STATUS <<EOF
8974 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
8976 cat >> $CONFIG_STATUS <<\EOF
8977 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8978 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8980 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8981 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8982 *) ac_file_in="${ac_file}.in" ;;
8985 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8987 # Remove last slash and all that follows it. Not all systems have dirname.
8988 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8989 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8990 # The file is in a subdirectory.
8991 test ! -d "$ac_dir" && mkdir "$ac_dir"
8992 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8993 # A "../" for each directory in $ac_dir_suffix.
8994 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8996 ac_dir_suffix= ac_dots=
8999 case "$ac_given_srcdir" in
9001 if test -z "$ac_dots"; then top_srcdir=.
9002 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9003 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9005 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9006 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9009 case "$ac_given_INSTALL" in
9010 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9011 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9014 echo creating "$ac_file"
9016 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9018 *Makefile*) ac_comsub="1i\\
9019 # $configure_input" ;;
9023 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9025 s%@configure_input@%$configure_input%g
9026 s%@srcdir@%$srcdir%g
9027 s%@top_srcdir@%$top_srcdir%g
9028 s%@INSTALL@%$INSTALL%g
9029 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9033 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9034 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9036 # ac_d sets the value in "#define NAME VALUE" lines.
9037 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9038 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9041 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9042 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9043 ac_uB='\([ ]\)%\1#\2define\3'
9046 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9047 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9048 ac_eB='$%\1#\2define\3'
9052 if test "${CONFIG_HEADERS+set}" != set; then
9054 cat >> $CONFIG_STATUS <<EOF
9055 CONFIG_HEADERS="include/config.h"
9057 cat >> $CONFIG_STATUS <<\EOF
9059 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9060 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9062 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9063 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9064 *) ac_file_in="${ac_file}.in" ;;
9067 echo creating $ac_file
9069 rm -f conftest.frag conftest.in conftest.out
9070 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9071 cat $ac_file_inputs > conftest.in
9075 # Transform confdefs.h into a sed script conftest.vals that substitutes
9076 # the proper values into config.h.in to produce config.h. And first:
9077 # Protect against being on the right side of a sed subst in config.status.
9078 # Protect against being in an unquoted here document in config.status.
9080 cat > conftest.hdr <<\EOF
9083 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9087 sed -n -f conftest.hdr confdefs.h > conftest.vals
9090 # This sed command replaces #undef with comments. This is necessary, for
9091 # example, in the case of _POSIX_SOURCE, which is predefined and required
9092 # on some systems where configure will not decide to define it.
9093 cat >> conftest.vals <<\EOF
9094 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9097 # Break up conftest.vals because some shells have a limit on
9098 # the size of here documents, and old seds have small limits too.
9103 ac_lines=`grep -c . conftest.vals`
9104 # grep -c gives empty output for an empty file on some AIX systems.
9105 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9106 # Write a limited-size here document to conftest.frag.
9107 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9108 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9110 sed -f conftest.frag conftest.in > conftest.out
9112 mv conftest.out conftest.in
9114 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9116 mv conftest.tail conftest.vals
9120 cat >> $CONFIG_STATUS <<\EOF
9121 rm -f conftest.frag conftest.h
9122 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9123 cat conftest.in >> conftest.h
9125 if cmp -s $ac_file conftest.h 2>/dev/null; then
9126 echo "$ac_file is unchanged"
9129 # Remove last slash and all that follows it. Not all systems have dirname.
9130 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9131 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9132 # The file is in a subdirectory.
9133 test ! -d "$ac_dir" && mkdir "$ac_dir"
9136 mv conftest.h $ac_file
9141 cat >> $CONFIG_STATUS <<EOF
9144 cat >> $CONFIG_STATUS <<\EOF
9148 chmod +x $CONFIG_STATUS
9149 rm -fr confdefs* $ac_clean_files
9150 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1