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 --without-krb4 Don't include Kerberos 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-profile Include profile support
55 --without-profile Don't include profile support (default)"
57 --with-netatalk Include experimental Netatalk support
58 --without-netatalk Don't include experimental Netatalk support (default)"
60 --with-quotas Include experimental disk-quota support
61 --without-quotas Don't include experimental disk-quota support (default)"
63 # Initialize some variables set by options.
64 # The variables have the same names as the options, with
65 # dashes changed to underlines.
67 cache_file=./config.cache
76 program_transform_name=s,x,x,
84 bindir='${exec_prefix}/bin'
85 sbindir='${exec_prefix}/sbin'
86 libexecdir='${exec_prefix}/libexec'
87 datadir='${prefix}/share'
88 sysconfdir='${prefix}/etc'
89 sharedstatedir='${prefix}/com'
90 localstatedir='${prefix}/var'
91 libdir='${exec_prefix}/lib'
92 includedir='${prefix}/include'
93 oldincludedir='/usr/include'
94 infodir='${prefix}/info'
95 mandir='${prefix}/man'
97 # Initialize some other variables.
100 # Maximum number of lines to put in a shell here document.
107 # If the previous option needs an argument, assign it.
108 if test -n "$ac_prev"; then
109 eval "$ac_prev=\$ac_option"
115 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
119 # Accept the important Cygnus configure options, so we can diagnose typos.
123 -bindir | --bindir | --bindi | --bind | --bin | --bi)
125 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
126 bindir="$ac_optarg" ;;
128 -build | --build | --buil | --bui | --bu)
130 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
131 build="$ac_optarg" ;;
133 -cache-file | --cache-file | --cache-fil | --cache-fi \
134 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
135 ac_prev=cache_file ;;
136 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
137 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
138 cache_file="$ac_optarg" ;;
140 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
142 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
144 datadir="$ac_optarg" ;;
146 -disable-* | --disable-*)
147 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
148 # Reject names that are not valid shell variable names.
149 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
150 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
152 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
153 eval "enable_${ac_feature}=no" ;;
155 -enable-* | --enable-*)
156 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
157 # Reject names that are not valid shell variable names.
158 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
159 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
161 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
166 eval "enable_${ac_feature}='$ac_optarg'" ;;
168 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
169 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
170 | --exec | --exe | --ex)
171 ac_prev=exec_prefix ;;
172 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
173 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
174 | --exec=* | --exe=* | --ex=*)
175 exec_prefix="$ac_optarg" ;;
177 -gas | --gas | --ga | --g)
178 # Obsolete; use --with-gas.
181 -help | --help | --hel | --he)
182 # Omit some internal or obsolete options to make the list less imposing.
183 # This message is too long to be a string in the A/UX 3.1 sh.
185 Usage: configure [options] [host]
186 Options: [defaults in brackets after descriptions]
188 --cache-file=FILE cache test results in FILE
189 --help print this message
190 --no-create do not create output files
191 --quiet, --silent do not print \`checking...' messages
192 --version print the version of autoconf that created configure
193 Directory and file names:
194 --prefix=PREFIX install architecture-independent files in PREFIX
196 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
198 --bindir=DIR user executables in DIR [EPREFIX/bin]
199 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
200 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
201 --datadir=DIR read-only architecture-independent data in DIR
203 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
204 --sharedstatedir=DIR modifiable architecture-independent data in DIR
206 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
207 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
208 --includedir=DIR C header files in DIR [PREFIX/include]
209 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
210 --infodir=DIR info documentation in DIR [PREFIX/info]
211 --mandir=DIR man documentation in DIR [PREFIX/man]
212 --srcdir=DIR find the sources in DIR [configure dir or ..]
213 --program-prefix=PREFIX prepend PREFIX to installed program names
214 --program-suffix=SUFFIX append SUFFIX to installed program names
215 --program-transform-name=PROGRAM
216 run sed PROGRAM on installed program names
220 --build=BUILD configure for building on BUILD [BUILD=HOST]
221 --host=HOST configure for HOST [guessed]
222 --target=TARGET configure for TARGET [TARGET=HOST]
223 Features and packages:
224 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
225 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
226 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
227 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
228 --x-includes=DIR X include files are in DIR
229 --x-libraries=DIR X library files are in DIR
231 if test -n "$ac_help"; then
232 echo "--enable and --with options recognized:$ac_help"
236 -host | --host | --hos | --ho)
238 -host=* | --host=* | --hos=* | --ho=*)
241 -includedir | --includedir | --includedi | --included | --include \
242 | --includ | --inclu | --incl | --inc)
243 ac_prev=includedir ;;
244 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
245 | --includ=* | --inclu=* | --incl=* | --inc=*)
246 includedir="$ac_optarg" ;;
248 -infodir | --infodir | --infodi | --infod | --info | --inf)
250 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
251 infodir="$ac_optarg" ;;
253 -libdir | --libdir | --libdi | --libd)
255 -libdir=* | --libdir=* | --libdi=* | --libd=*)
256 libdir="$ac_optarg" ;;
258 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
259 | --libexe | --libex | --libe)
260 ac_prev=libexecdir ;;
261 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
262 | --libexe=* | --libex=* | --libe=*)
263 libexecdir="$ac_optarg" ;;
265 -localstatedir | --localstatedir | --localstatedi | --localstated \
266 | --localstate | --localstat | --localsta | --localst \
267 | --locals | --local | --loca | --loc | --lo)
268 ac_prev=localstatedir ;;
269 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
270 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
271 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
272 localstatedir="$ac_optarg" ;;
274 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
276 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
277 mandir="$ac_optarg" ;;
280 # Obsolete; use --without-fp.
283 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
287 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
288 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
291 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
292 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
293 | --oldin | --oldi | --old | --ol | --o)
294 ac_prev=oldincludedir ;;
295 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
296 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
297 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
298 oldincludedir="$ac_optarg" ;;
300 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
302 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
303 prefix="$ac_optarg" ;;
305 -program-prefix | --program-prefix | --program-prefi | --program-pref \
306 | --program-pre | --program-pr | --program-p)
307 ac_prev=program_prefix ;;
308 -program-prefix=* | --program-prefix=* | --program-prefi=* \
309 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
310 program_prefix="$ac_optarg" ;;
312 -program-suffix | --program-suffix | --program-suffi | --program-suff \
313 | --program-suf | --program-su | --program-s)
314 ac_prev=program_suffix ;;
315 -program-suffix=* | --program-suffix=* | --program-suffi=* \
316 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
317 program_suffix="$ac_optarg" ;;
319 -program-transform-name | --program-transform-name \
320 | --program-transform-nam | --program-transform-na \
321 | --program-transform-n | --program-transform- \
322 | --program-transform | --program-transfor \
323 | --program-transfo | --program-transf \
324 | --program-trans | --program-tran \
325 | --progr-tra | --program-tr | --program-t)
326 ac_prev=program_transform_name ;;
327 -program-transform-name=* | --program-transform-name=* \
328 | --program-transform-nam=* | --program-transform-na=* \
329 | --program-transform-n=* | --program-transform-=* \
330 | --program-transform=* | --program-transfor=* \
331 | --program-transfo=* | --program-transf=* \
332 | --program-trans=* | --program-tran=* \
333 | --progr-tra=* | --program-tr=* | --program-t=*)
334 program_transform_name="$ac_optarg" ;;
336 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
337 | -silent | --silent | --silen | --sile | --sil)
340 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
342 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
344 sbindir="$ac_optarg" ;;
346 -sharedstatedir | --sharedstatedir | --sharedstatedi \
347 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
348 | --sharedst | --shareds | --shared | --share | --shar \
350 ac_prev=sharedstatedir ;;
351 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
352 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
353 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
355 sharedstatedir="$ac_optarg" ;;
357 -site | --site | --sit)
359 -site=* | --site=* | --sit=*)
362 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
364 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
365 srcdir="$ac_optarg" ;;
367 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
368 | --syscon | --sysco | --sysc | --sys | --sy)
369 ac_prev=sysconfdir ;;
370 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
371 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
372 sysconfdir="$ac_optarg" ;;
374 -target | --target | --targe | --targ | --tar | --ta | --t)
376 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
377 target="$ac_optarg" ;;
379 -v | -verbose | --verbose | --verbos | --verbo | --verb)
382 -version | --version | --versio | --versi | --vers)
383 echo "configure generated by autoconf version 2.12"
387 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
388 # Reject names that are not valid shell variable names.
389 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
390 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
392 ac_package=`echo $ac_package| sed 's/-/_/g'`
397 eval "with_${ac_package}='$ac_optarg'" ;;
399 -without-* | --without-*)
400 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package=`echo $ac_package| sed 's/-/_/g'`
406 eval "with_${ac_package}=no" ;;
409 # Obsolete; use --with-x.
412 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
413 | --x-incl | --x-inc | --x-in | --x-i)
414 ac_prev=x_includes ;;
415 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
416 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
417 x_includes="$ac_optarg" ;;
419 -x-libraries | --x-libraries | --x-librarie | --x-librari \
420 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
421 ac_prev=x_libraries ;;
422 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
423 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
424 x_libraries="$ac_optarg" ;;
426 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
430 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
431 echo "configure: warning: $ac_option: invalid host type" 1>&2
433 if test "x$nonopt" != xNONE; then
434 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
442 if test -n "$ac_prev"; then
443 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
446 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
448 # File descriptor usage:
451 # 2 errors and warnings
452 # 3 some systems may open it to /dev/tty
453 # 4 used on the Kubota Titan
454 # 6 checking for... messages and results
455 # 5 compiler messages saved in config.log
456 if test "$silent" = yes; then
464 This file contains any messages produced by compilers while
465 running configure, to aid debugging if configure makes a mistake.
468 # Strip out --no-create and --no-recursion so they do not pile up.
469 # Also quote any args containing shell metacharacters.
474 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
475 | --no-cr | --no-c) ;;
476 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
477 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
478 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
479 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
480 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
485 # Only set these to C if already set. These must not be set unconditionally
486 # because not all systems understand e.g. LANG=C (notably SCO).
487 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
488 # Non-C LC_CTYPE values break the ctype check.
489 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
490 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
491 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
492 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
494 # confdefs.h avoids OS command line length limits that DEFS can exceed.
495 rm -rf conftest* confdefs.h
496 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
499 # A filename unique to this package, relative to the directory that
500 # configure is in, which we can look for to find out if srcdir is correct.
501 ac_unique_file=include/includes.h
503 # Find the source files, if location was not specified.
504 if test -z "$srcdir"; then
505 ac_srcdir_defaulted=yes
506 # Try the directory containing this script, then its parent.
508 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
509 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
511 if test ! -r $srcdir/$ac_unique_file; then
515 ac_srcdir_defaulted=no
517 if test ! -r $srcdir/$ac_unique_file; then
518 if test "$ac_srcdir_defaulted" = yes; then
519 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
521 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
524 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
526 # Prefer explicitly selected file to automatically selected ones.
527 if test -z "$CONFIG_SITE"; then
528 if test "x$prefix" != xNONE; then
529 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
531 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
534 for ac_site_file in $CONFIG_SITE; do
535 if test -r "$ac_site_file"; then
536 echo "loading site script $ac_site_file"
541 if test -r "$cache_file"; then
542 echo "loading cache $cache_file"
545 echo "creating cache $cache_file"
550 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
551 ac_cpp='$CPP $CPPFLAGS'
552 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
553 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
554 cross_compiling=$ac_cv_prog_cc_cross
556 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
557 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
558 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
565 ac_n= ac_c='\c' ac_t=
570 # we want to be compatibe with older versions of Samba
581 # compile with optimisation and without debugging by default
582 CFLAGS=${CFLAGS-"-O"}
584 # Extract the first word of "gcc", so it can be a program name with args.
585 set dummy gcc; ac_word=$2
586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
587 echo "configure:588: checking for $ac_word" >&5
588 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
589 echo $ac_n "(cached) $ac_c" 1>&6
591 if test -n "$CC"; then
592 ac_cv_prog_CC="$CC" # Let the user override the test.
594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
595 for ac_dir in $PATH; do
596 test -z "$ac_dir" && ac_dir=.
597 if test -f $ac_dir/$ac_word; then
606 if test -n "$CC"; then
607 echo "$ac_t""$CC" 1>&6
609 echo "$ac_t""no" 1>&6
612 if test -z "$CC"; then
613 # Extract the first word of "cc", so it can be a program name with args.
614 set dummy cc; ac_word=$2
615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
616 echo "configure:617: checking for $ac_word" >&5
617 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
618 echo $ac_n "(cached) $ac_c" 1>&6
620 if test -n "$CC"; then
621 ac_cv_prog_CC="$CC" # Let the user override the test.
623 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
625 for ac_dir in $PATH; do
626 test -z "$ac_dir" && ac_dir=.
627 if test -f $ac_dir/$ac_word; then
628 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
637 if test $ac_prog_rejected = yes; then
638 # We found a bogon in the path, so make sure we never use it.
639 set dummy $ac_cv_prog_CC
641 if test $# -gt 0; then
642 # We chose a different compiler from the bogus one.
643 # However, it has the same basename, so the bogon will be chosen
644 # first if we set CC to just the basename; use the full file name.
646 set dummy "$ac_dir/$ac_word" "$@"
654 if test -n "$CC"; then
655 echo "$ac_t""$CC" 1>&6
657 echo "$ac_t""no" 1>&6
660 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
663 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
664 echo "configure:665: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
667 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
668 ac_cpp='$CPP $CPPFLAGS'
669 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
670 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
671 cross_compiling=$ac_cv_prog_cc_cross
673 cat > conftest.$ac_ext <<EOF
674 #line 675 "configure"
675 #include "confdefs.h"
678 if { (eval echo configure:679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
679 ac_cv_prog_cc_works=yes
680 # If we can't run a trivial program, we are probably using a cross compiler.
681 if (./conftest; exit) 2>/dev/null; then
682 ac_cv_prog_cc_cross=no
684 ac_cv_prog_cc_cross=yes
687 echo "configure: failed program was:" >&5
688 cat conftest.$ac_ext >&5
689 ac_cv_prog_cc_works=no
693 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
694 if test $ac_cv_prog_cc_works = no; then
695 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
697 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
698 echo "configure:699: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
699 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
700 cross_compiling=$ac_cv_prog_cc_cross
702 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
703 echo "configure:704: checking whether we are using GNU C" >&5
704 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
705 echo $ac_n "(cached) $ac_c" 1>&6
707 cat > conftest.c <<EOF
712 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
719 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
721 if test $ac_cv_prog_gcc = yes; then
723 ac_test_CFLAGS="${CFLAGS+set}"
724 ac_save_CFLAGS="$CFLAGS"
726 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
727 echo "configure:728: checking whether ${CC-cc} accepts -g" >&5
728 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
729 echo $ac_n "(cached) $ac_c" 1>&6
731 echo 'void f(){}' > conftest.c
732 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
741 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
742 if test "$ac_test_CFLAGS" = set; then
743 CFLAGS="$ac_save_CFLAGS"
744 elif test $ac_cv_prog_cc_g = yes; then
751 test "${CFLAGS+set}" = set || CFLAGS="-g"
755 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
756 if test -f $ac_dir/install-sh; then
758 ac_install_sh="$ac_aux_dir/install-sh -c"
760 elif test -f $ac_dir/install.sh; then
762 ac_install_sh="$ac_aux_dir/install.sh -c"
766 if test -z "$ac_aux_dir"; then
767 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
769 ac_config_guess=$ac_aux_dir/config.guess
770 ac_config_sub=$ac_aux_dir/config.sub
771 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
773 # Find a good install program. We prefer a C program (faster),
774 # so one script is as good as another. But avoid the broken or
775 # incompatible versions:
776 # SysV /etc/install, /usr/sbin/install
777 # SunOS /usr/etc/install
780 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
781 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
782 # ./install, which can be erroneously created by make from ./install.sh.
783 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
784 echo "configure:785: checking for a BSD compatible install" >&5
785 if test -z "$INSTALL"; then
786 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
787 echo $ac_n "(cached) $ac_c" 1>&6
789 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
790 for ac_dir in $PATH; do
791 # Account for people who put trailing slashes in PATH elements.
793 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
795 # OSF1 and SCO ODT 3.0 have their own names for install.
796 for ac_prog in ginstall installbsd scoinst install; do
797 if test -f $ac_dir/$ac_prog; then
798 if test $ac_prog = install &&
799 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
800 # AIX install. It has an incompatible calling convention.
801 # OSF/1 installbsd also uses dspmsg, but is usable.
804 ac_cv_path_install="$ac_dir/$ac_prog -c"
815 if test "${ac_cv_path_install+set}" = set; then
816 INSTALL="$ac_cv_path_install"
818 # As a last resort, use the slow shell script. We don't cache a
819 # path for INSTALL within a source directory, because that will
820 # break other packages using the cache if that directory is
821 # removed, or if the path is relative.
822 INSTALL="$ac_install_sh"
825 echo "$ac_t""$INSTALL" 1>&6
827 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
828 # It thinks the first close brace ends the variable substitution.
829 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
831 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
833 for ac_prog in mawk gawk nawk awk
835 # Extract the first word of "$ac_prog", so it can be a program name with args.
836 set dummy $ac_prog; ac_word=$2
837 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
838 echo "configure:839: checking for $ac_word" >&5
839 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
840 echo $ac_n "(cached) $ac_c" 1>&6
842 if test -n "$AWK"; then
843 ac_cv_prog_AWK="$AWK" # Let the user override the test.
845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
846 for ac_dir in $PATH; do
847 test -z "$ac_dir" && ac_dir=.
848 if test -f $ac_dir/$ac_word; then
849 ac_cv_prog_AWK="$ac_prog"
856 AWK="$ac_cv_prog_AWK"
857 if test -n "$AWK"; then
858 echo "$ac_t""$AWK" 1>&6
860 echo "$ac_t""no" 1>&6
863 test -n "$AWK" && break
868 # Do some error checking and defaulting for the host and target type.
870 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
873 # 1. You are not allowed to specify --host, --target, and nonopt at the
875 # 2. Host defaults to nonopt.
876 # 3. If nonopt is not specified, then host defaults to the current host,
877 # as determined by config.guess.
878 # 4. Target and build default to nonopt.
879 # 5. If nonopt is not specified, then target and build default to host.
881 # The aliases save the names the user supplied, while $host etc.
882 # will get canonicalized.
883 case $host---$target---$nonopt in
884 NONE---*---* | *---NONE---* | *---*---NONE) ;;
885 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
889 # Make sure we can run config.sub.
890 if $ac_config_sub sun4 >/dev/null 2>&1; then :
891 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
894 echo $ac_n "checking host system type""... $ac_c" 1>&6
895 echo "configure:896: checking host system type" >&5
898 case "$host_alias" in
902 if host_alias=`$ac_config_guess`; then :
903 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
905 *) host_alias=$nonopt ;;
909 host=`$ac_config_sub $host_alias`
910 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
911 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
912 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
913 echo "$ac_t""$host" 1>&6
915 echo $ac_n "checking target system type""... $ac_c" 1>&6
916 echo "configure:917: checking target system type" >&5
919 case "$target_alias" in
922 NONE) target_alias=$host_alias ;;
923 *) target_alias=$nonopt ;;
927 target=`$ac_config_sub $target_alias`
928 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
929 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
930 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
931 echo "$ac_t""$target" 1>&6
933 echo $ac_n "checking build system type""... $ac_c" 1>&6
934 echo "configure:935: checking build system type" >&5
937 case "$build_alias" in
940 NONE) build_alias=$host_alias ;;
941 *) build_alias=$nonopt ;;
945 build=`$ac_config_sub $build_alias`
946 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
947 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
948 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
949 echo "$ac_t""$build" 1>&6
951 test "$host_alias" != "$target_alias" &&
952 test "$program_prefix$program_suffix$program_transform_name" = \
954 program_prefix=${target_alias}-
958 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
959 echo "configure:960: checking config.cache system type" >&5
960 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
961 test x"$ac_cv_host_system_type" != x"$host"; } ||
962 { test x"${ac_cv_build_system_type+set}" = x"set" &&
963 test x"$ac_cv_build_system_type" != x"$build"; } ||
964 { test x"${ac_cv_target_system_type+set}" = x"set" &&
965 test x"$ac_cv_target_system_type" != x"$target"; }; then
966 echo "$ac_t""different" 1>&6
967 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
969 echo "$ac_t""same" 1>&6
971 ac_cv_host_system_type="$host"
972 ac_cv_build_system_type="$build"
973 ac_cv_target_system_type="$target"
976 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
977 if test "${enable_maintainer_mode+set}" = set; then
978 enableval="$enable_maintainer_mode"
979 maint_mode=$enableval
984 if test x"$maint_mode" = x"yes"; then MAINT=; else MAINT='#'; fi
986 # Extract the first word of "autoconf", so it can be a program name with args.
987 set dummy autoconf; ac_word=$2
988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
989 echo "configure:990: checking for $ac_word" >&5
990 if eval "test \"`echo '$''{'ac_cv_path_AUTOCONF'+set}'`\" = set"; then
991 echo $ac_n "(cached) $ac_c" 1>&6
995 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
998 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
999 for ac_dir in $PATH; do
1000 test -z "$ac_dir" && ac_dir=.
1001 if test -f $ac_dir/$ac_word; then
1002 ac_cv_path_AUTOCONF="$ac_dir/$ac_word"
1007 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="autoconf"
1011 AUTOCONF="$ac_cv_path_AUTOCONF"
1012 if test -n "$AUTOCONF"; then
1013 echo "$ac_t""$AUTOCONF" 1>&6
1015 echo "$ac_t""no" 1>&6
1019 # Extract the first word of "autoheader", so it can be a program name with args.
1020 set dummy autoheader; ac_word=$2
1021 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1022 echo "configure:1023: checking for $ac_word" >&5
1023 if eval "test \"`echo '$''{'ac_cv_path_AUTOHEADER'+set}'`\" = set"; then
1024 echo $ac_n "(cached) $ac_c" 1>&6
1026 case "$AUTOHEADER" in
1028 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
1031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1032 for ac_dir in $PATH; do
1033 test -z "$ac_dir" && ac_dir=.
1034 if test -f $ac_dir/$ac_word; then
1035 ac_cv_path_AUTOHEADER="$ac_dir/$ac_word"
1040 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="autoheader"
1044 AUTOHEADER="$ac_cv_path_AUTOHEADER"
1045 if test -n "$AUTOHEADER"; then
1046 echo "$ac_t""$AUTOHEADER" 1>&6
1048 echo "$ac_t""no" 1>&6
1055 # Config CPPFLAG settings for strange OS's that must be set
1056 # before other tests.
1059 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1061 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1062 echo "configure:1063: checking whether ${CC-cc} accepts -Ae" >&5
1063 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1064 echo $ac_n "(cached) $ac_c" 1>&6
1066 echo 'void f(){}' > conftest.c
1067 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1068 ac_cv_prog_cc_Ae=yes
1076 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1077 if test $ac_cv_prog_cc_Ae = yes; then
1078 CPPFLAGS="$CPPFLAGS -Ae"
1082 # AIX4.x is *so* broken. It doesn't even admit to having large
1083 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1086 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1090 echo $ac_n "checking for inline""... $ac_c" 1>&6
1091 echo "configure:1092: checking for inline" >&5
1092 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1096 for ac_kw in inline __inline__ __inline; do
1097 cat > conftest.$ac_ext <<EOF
1098 #line 1099 "configure"
1099 #include "confdefs.h"
1105 if { (eval echo configure:1106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1107 ac_cv_c_inline=$ac_kw; break
1109 echo "configure: failed program was:" >&5
1110 cat conftest.$ac_ext >&5
1117 echo "$ac_t""$ac_cv_c_inline" 1>&6
1118 case "$ac_cv_c_inline" in
1120 no) cat >> confdefs.h <<\EOF
1124 *) cat >> confdefs.h <<EOF
1125 #define inline $ac_cv_c_inline
1130 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1131 echo "configure:1132: checking how to run the C preprocessor" >&5
1132 # On Suns, sometimes $CPP names a directory.
1133 if test -n "$CPP" && test -d "$CPP"; then
1136 if test -z "$CPP"; then
1137 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1138 echo $ac_n "(cached) $ac_c" 1>&6
1140 # This must be in double quotes, not single quotes, because CPP may get
1141 # substituted into the Makefile and "${CC-cc}" will confuse make.
1143 # On the NeXT, cc -E runs the code through the compiler's parser,
1144 # not just through cpp.
1145 cat > conftest.$ac_ext <<EOF
1146 #line 1147 "configure"
1147 #include "confdefs.h"
1151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1152 { (eval echo configure:1153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1153 ac_err=`grep -v '^ *+' conftest.out`
1154 if test -z "$ac_err"; then
1158 echo "configure: failed program was:" >&5
1159 cat conftest.$ac_ext >&5
1161 CPP="${CC-cc} -E -traditional-cpp"
1162 cat > conftest.$ac_ext <<EOF
1163 #line 1164 "configure"
1164 #include "confdefs.h"
1168 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1169 { (eval echo configure:1170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1170 ac_err=`grep -v '^ *+' conftest.out`
1171 if test -z "$ac_err"; then
1175 echo "configure: failed program was:" >&5
1176 cat conftest.$ac_ext >&5
1183 ac_cv_prog_CPP="$CPP"
1185 CPP="$ac_cv_prog_CPP"
1187 ac_cv_prog_CPP="$CPP"
1189 echo "$ac_t""$CPP" 1>&6
1191 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1192 echo "configure:1193: checking for ANSI C header files" >&5
1193 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1196 cat > conftest.$ac_ext <<EOF
1197 #line 1198 "configure"
1198 #include "confdefs.h"
1204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1205 { (eval echo configure:1206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1206 ac_err=`grep -v '^ *+' conftest.out`
1207 if test -z "$ac_err"; then
1209 ac_cv_header_stdc=yes
1212 echo "configure: failed program was:" >&5
1213 cat conftest.$ac_ext >&5
1215 ac_cv_header_stdc=no
1219 if test $ac_cv_header_stdc = yes; then
1220 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1221 cat > conftest.$ac_ext <<EOF
1222 #line 1223 "configure"
1223 #include "confdefs.h"
1226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1227 egrep "memchr" >/dev/null 2>&1; then
1231 ac_cv_header_stdc=no
1237 if test $ac_cv_header_stdc = yes; then
1238 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1239 cat > conftest.$ac_ext <<EOF
1240 #line 1241 "configure"
1241 #include "confdefs.h"
1244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1245 egrep "free" >/dev/null 2>&1; then
1249 ac_cv_header_stdc=no
1255 if test $ac_cv_header_stdc = yes; then
1256 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1257 if test "$cross_compiling" = yes; then
1260 cat > conftest.$ac_ext <<EOF
1261 #line 1262 "configure"
1262 #include "confdefs.h"
1264 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1265 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1266 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1267 int main () { int i; for (i = 0; i < 256; i++)
1268 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1272 if { (eval echo configure:1273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1276 echo "configure: failed program was:" >&5
1277 cat conftest.$ac_ext >&5
1279 ac_cv_header_stdc=no
1287 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1288 if test $ac_cv_header_stdc = yes; then
1289 cat >> confdefs.h <<\EOF
1290 #define STDC_HEADERS 1
1296 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1298 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1299 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1300 echo "configure:1301: checking for $ac_hdr that defines DIR" >&5
1301 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1302 echo $ac_n "(cached) $ac_c" 1>&6
1304 cat > conftest.$ac_ext <<EOF
1305 #line 1306 "configure"
1306 #include "confdefs.h"
1307 #include <sys/types.h>
1313 if { (eval echo configure:1314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1315 eval "ac_cv_header_dirent_$ac_safe=yes"
1317 echo "configure: failed program was:" >&5
1318 cat conftest.$ac_ext >&5
1320 eval "ac_cv_header_dirent_$ac_safe=no"
1324 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1325 echo "$ac_t""yes" 1>&6
1326 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1327 cat >> confdefs.h <<EOF
1328 #define $ac_tr_hdr 1
1330 ac_header_dirent=$ac_hdr; break
1332 echo "$ac_t""no" 1>&6
1335 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1336 if test $ac_header_dirent = dirent.h; then
1337 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1338 echo "configure:1339: checking for opendir in -ldir" >&5
1339 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1340 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1341 echo $ac_n "(cached) $ac_c" 1>&6
1343 ac_save_LIBS="$LIBS"
1345 cat > conftest.$ac_ext <<EOF
1346 #line 1347 "configure"
1347 #include "confdefs.h"
1348 /* Override any gcc2 internal prototype to avoid an error. */
1349 /* We use char because int might match the return type of a gcc2
1350 builtin and then its argument prototype would still apply. */
1357 if { (eval echo configure:1358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1359 eval "ac_cv_lib_$ac_lib_var=yes"
1361 echo "configure: failed program was:" >&5
1362 cat conftest.$ac_ext >&5
1364 eval "ac_cv_lib_$ac_lib_var=no"
1367 LIBS="$ac_save_LIBS"
1370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1371 echo "$ac_t""yes" 1>&6
1374 echo "$ac_t""no" 1>&6
1378 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1379 echo "configure:1380: checking for opendir in -lx" >&5
1380 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1381 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1382 echo $ac_n "(cached) $ac_c" 1>&6
1384 ac_save_LIBS="$LIBS"
1386 cat > conftest.$ac_ext <<EOF
1387 #line 1388 "configure"
1388 #include "confdefs.h"
1389 /* Override any gcc2 internal prototype to avoid an error. */
1390 /* We use char because int might match the return type of a gcc2
1391 builtin and then its argument prototype would still apply. */
1398 if { (eval echo configure:1399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1400 eval "ac_cv_lib_$ac_lib_var=yes"
1402 echo "configure: failed program was:" >&5
1403 cat conftest.$ac_ext >&5
1405 eval "ac_cv_lib_$ac_lib_var=no"
1408 LIBS="$ac_save_LIBS"
1411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1412 echo "$ac_t""yes" 1>&6
1415 echo "$ac_t""no" 1>&6
1420 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1421 echo "configure:1422: checking whether time.h and sys/time.h may both be included" >&5
1422 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1423 echo $ac_n "(cached) $ac_c" 1>&6
1425 cat > conftest.$ac_ext <<EOF
1426 #line 1427 "configure"
1427 #include "confdefs.h"
1428 #include <sys/types.h>
1429 #include <sys/time.h>
1435 if { (eval echo configure:1436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1437 ac_cv_header_time=yes
1439 echo "configure: failed program was:" >&5
1440 cat conftest.$ac_ext >&5
1442 ac_cv_header_time=no
1447 echo "$ac_t""$ac_cv_header_time" 1>&6
1448 if test $ac_cv_header_time = yes; then
1449 cat >> confdefs.h <<\EOF
1450 #define TIME_WITH_SYS_TIME 1
1455 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1456 echo "configure:1457: checking for sys/wait.h that is POSIX.1 compatible" >&5
1457 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1460 cat > conftest.$ac_ext <<EOF
1461 #line 1462 "configure"
1462 #include "confdefs.h"
1463 #include <sys/types.h>
1464 #include <sys/wait.h>
1466 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1469 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1474 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1477 if { (eval echo configure:1478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1479 ac_cv_header_sys_wait_h=yes
1481 echo "configure: failed program was:" >&5
1482 cat conftest.$ac_ext >&5
1484 ac_cv_header_sys_wait_h=no
1489 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1490 if test $ac_cv_header_sys_wait_h = yes; then
1491 cat >> confdefs.h <<\EOF
1492 #define HAVE_SYS_WAIT_H 1
1497 for ac_hdr in sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1499 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1500 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1501 echo "configure:1502: checking for $ac_hdr" >&5
1502 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1503 echo $ac_n "(cached) $ac_c" 1>&6
1505 cat > conftest.$ac_ext <<EOF
1506 #line 1507 "configure"
1507 #include "confdefs.h"
1510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1511 { (eval echo configure:1512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1512 ac_err=`grep -v '^ *+' conftest.out`
1513 if test -z "$ac_err"; then
1515 eval "ac_cv_header_$ac_safe=yes"
1518 echo "configure: failed program was:" >&5
1519 cat conftest.$ac_ext >&5
1521 eval "ac_cv_header_$ac_safe=no"
1525 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1526 echo "$ac_t""yes" 1>&6
1527 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1528 cat >> confdefs.h <<EOF
1529 #define $ac_tr_hdr 1
1533 echo "$ac_t""no" 1>&6
1537 for ac_hdr in sys/param.h ctype.h
1539 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1540 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1541 echo "configure:1542: checking for $ac_hdr" >&5
1542 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1543 echo $ac_n "(cached) $ac_c" 1>&6
1545 cat > conftest.$ac_ext <<EOF
1546 #line 1547 "configure"
1547 #include "confdefs.h"
1550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1551 { (eval echo configure:1552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1552 ac_err=`grep -v '^ *+' conftest.out`
1553 if test -z "$ac_err"; then
1555 eval "ac_cv_header_$ac_safe=yes"
1558 echo "configure: failed program was:" >&5
1559 cat conftest.$ac_ext >&5
1561 eval "ac_cv_header_$ac_safe=no"
1565 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1566 echo "$ac_t""yes" 1>&6
1567 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1568 cat >> confdefs.h <<EOF
1569 #define $ac_tr_hdr 1
1573 echo "$ac_t""no" 1>&6
1577 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/route.h net/if.h
1579 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1581 echo "configure:1582: checking for $ac_hdr" >&5
1582 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1583 echo $ac_n "(cached) $ac_c" 1>&6
1585 cat > conftest.$ac_ext <<EOF
1586 #line 1587 "configure"
1587 #include "confdefs.h"
1590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1591 { (eval echo configure:1592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1592 ac_err=`grep -v '^ *+' conftest.out`
1593 if test -z "$ac_err"; then
1595 eval "ac_cv_header_$ac_safe=yes"
1598 echo "configure: failed program was:" >&5
1599 cat conftest.$ac_ext >&5
1601 eval "ac_cv_header_$ac_safe=no"
1605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1606 echo "$ac_t""yes" 1>&6
1607 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1608 cat >> confdefs.h <<EOF
1609 #define $ac_tr_hdr 1
1613 echo "$ac_t""no" 1>&6
1617 for ac_hdr in compat.h rpc/rpc.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h sys/param.h ctype.h
1619 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1620 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1621 echo "configure:1622: checking for $ac_hdr" >&5
1622 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1623 echo $ac_n "(cached) $ac_c" 1>&6
1625 cat > conftest.$ac_ext <<EOF
1626 #line 1627 "configure"
1627 #include "confdefs.h"
1630 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1631 { (eval echo configure:1632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1632 ac_err=`grep -v '^ *+' conftest.out`
1633 if test -z "$ac_err"; then
1635 eval "ac_cv_header_$ac_safe=yes"
1638 echo "configure: failed program was:" >&5
1639 cat conftest.$ac_ext >&5
1641 eval "ac_cv_header_$ac_safe=no"
1645 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1646 echo "$ac_t""yes" 1>&6
1647 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1648 cat >> confdefs.h <<EOF
1649 #define $ac_tr_hdr 1
1653 echo "$ac_t""no" 1>&6
1657 for ac_hdr in sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h sys/mman.h
1659 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1660 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1661 echo "configure:1662: checking for $ac_hdr" >&5
1662 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1663 echo $ac_n "(cached) $ac_c" 1>&6
1665 cat > conftest.$ac_ext <<EOF
1666 #line 1667 "configure"
1667 #include "confdefs.h"
1670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1671 { (eval echo configure:1672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1672 ac_err=`grep -v '^ *+' conftest.out`
1673 if test -z "$ac_err"; then
1675 eval "ac_cv_header_$ac_safe=yes"
1678 echo "configure: failed program was:" >&5
1679 cat conftest.$ac_ext >&5
1681 eval "ac_cv_header_$ac_safe=no"
1685 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1686 echo "$ac_t""yes" 1>&6
1687 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1688 cat >> confdefs.h <<EOF
1689 #define $ac_tr_hdr 1
1693 echo "$ac_t""no" 1>&6
1697 for ac_hdr in sys/filio.h string.h strings.h stdlib.h sys/socket.h sys/un.h
1699 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1700 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1701 echo "configure:1702: checking for $ac_hdr" >&5
1702 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1703 echo $ac_n "(cached) $ac_c" 1>&6
1705 cat > conftest.$ac_ext <<EOF
1706 #line 1707 "configure"
1707 #include "confdefs.h"
1710 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1711 { (eval echo configure:1712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1712 ac_err=`grep -v '^ *+' conftest.out`
1713 if test -z "$ac_err"; then
1715 eval "ac_cv_header_$ac_safe=yes"
1718 echo "configure: failed program was:" >&5
1719 cat conftest.$ac_ext >&5
1721 eval "ac_cv_header_$ac_safe=no"
1725 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1726 echo "$ac_t""yes" 1>&6
1727 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1728 cat >> confdefs.h <<EOF
1729 #define $ac_tr_hdr 1
1733 echo "$ac_t""no" 1>&6
1737 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h
1739 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1740 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1741 echo "configure:1742: checking for $ac_hdr" >&5
1742 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1743 echo $ac_n "(cached) $ac_c" 1>&6
1745 cat > conftest.$ac_ext <<EOF
1746 #line 1747 "configure"
1747 #include "confdefs.h"
1750 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1751 { (eval echo configure:1752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1752 ac_err=`grep -v '^ *+' conftest.out`
1753 if test -z "$ac_err"; then
1755 eval "ac_cv_header_$ac_safe=yes"
1758 echo "configure: failed program was:" >&5
1759 cat conftest.$ac_ext >&5
1761 eval "ac_cv_header_$ac_safe=no"
1765 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1766 echo "$ac_t""yes" 1>&6
1767 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1768 cat >> confdefs.h <<EOF
1769 #define $ac_tr_hdr 1
1773 echo "$ac_t""no" 1>&6
1777 for ac_hdr in sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
1779 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1780 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1781 echo "configure:1782: checking for $ac_hdr" >&5
1782 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1783 echo $ac_n "(cached) $ac_c" 1>&6
1785 cat > conftest.$ac_ext <<EOF
1786 #line 1787 "configure"
1787 #include "confdefs.h"
1790 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1791 { (eval echo configure:1792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1792 ac_err=`grep -v '^ *+' conftest.out`
1793 if test -z "$ac_err"; then
1795 eval "ac_cv_header_$ac_safe=yes"
1798 echo "configure: failed program was:" >&5
1799 cat conftest.$ac_ext >&5
1801 eval "ac_cv_header_$ac_safe=no"
1805 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1806 echo "$ac_t""yes" 1>&6
1807 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1808 cat >> confdefs.h <<EOF
1809 #define $ac_tr_hdr 1
1813 echo "$ac_t""no" 1>&6
1817 for ac_hdr in shadow.h netinet/tcp.h sys/security.h security/pam_appl.h
1819 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1820 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1821 echo "configure:1822: checking for $ac_hdr" >&5
1822 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1823 echo $ac_n "(cached) $ac_c" 1>&6
1825 cat > conftest.$ac_ext <<EOF
1826 #line 1827 "configure"
1827 #include "confdefs.h"
1830 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1831 { (eval echo configure:1832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1832 ac_err=`grep -v '^ *+' conftest.out`
1833 if test -z "$ac_err"; then
1835 eval "ac_cv_header_$ac_safe=yes"
1838 echo "configure: failed program was:" >&5
1839 cat conftest.$ac_ext >&5
1841 eval "ac_cv_header_$ac_safe=no"
1845 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1846 echo "$ac_t""yes" 1>&6
1847 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1848 cat >> confdefs.h <<EOF
1849 #define $ac_tr_hdr 1
1853 echo "$ac_t""no" 1>&6
1857 for ac_hdr in stropts.h poll.h readline.h history.h readline/readline.h
1859 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1860 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1861 echo "configure:1862: checking for $ac_hdr" >&5
1862 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1863 echo $ac_n "(cached) $ac_c" 1>&6
1865 cat > conftest.$ac_ext <<EOF
1866 #line 1867 "configure"
1867 #include "confdefs.h"
1870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1871 { (eval echo configure:1872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1872 ac_err=`grep -v '^ *+' conftest.out`
1873 if test -z "$ac_err"; then
1875 eval "ac_cv_header_$ac_safe=yes"
1878 echo "configure: failed program was:" >&5
1879 cat conftest.$ac_ext >&5
1881 eval "ac_cv_header_$ac_safe=no"
1885 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1886 echo "$ac_t""yes" 1>&6
1887 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1888 cat >> confdefs.h <<EOF
1889 #define $ac_tr_hdr 1
1893 echo "$ac_t""no" 1>&6
1897 for ac_hdr in readline/history.h sys/capability.h syscall.h sys/syscall.h
1899 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1900 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1901 echo "configure:1902: checking for $ac_hdr" >&5
1902 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1903 echo $ac_n "(cached) $ac_c" 1>&6
1905 cat > conftest.$ac_ext <<EOF
1906 #line 1907 "configure"
1907 #include "confdefs.h"
1910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1911 { (eval echo configure:1912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1912 ac_err=`grep -v '^ *+' conftest.out`
1913 if test -z "$ac_err"; then
1915 eval "ac_cv_header_$ac_safe=yes"
1918 echo "configure: failed program was:" >&5
1919 cat conftest.$ac_ext >&5
1921 eval "ac_cv_header_$ac_safe=no"
1925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1926 echo "$ac_t""yes" 1>&6
1927 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1928 cat >> confdefs.h <<EOF
1929 #define $ac_tr_hdr 1
1933 echo "$ac_t""no" 1>&6
1937 for ac_hdr in sys/acl.h sys/cdefs.h glob.h mysql.h
1939 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1940 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1941 echo "configure:1942: checking for $ac_hdr" >&5
1942 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1943 echo $ac_n "(cached) $ac_c" 1>&6
1945 cat > conftest.$ac_ext <<EOF
1946 #line 1947 "configure"
1947 #include "confdefs.h"
1950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1951 { (eval echo configure:1952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1952 ac_err=`grep -v '^ *+' conftest.out`
1953 if test -z "$ac_err"; then
1955 eval "ac_cv_header_$ac_safe=yes"
1958 echo "configure: failed program was:" >&5
1959 cat conftest.$ac_ext >&5
1961 eval "ac_cv_header_$ac_safe=no"
1965 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1966 echo "$ac_t""yes" 1>&6
1967 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1968 cat >> confdefs.h <<EOF
1969 #define $ac_tr_hdr 1
1973 echo "$ac_t""no" 1>&6
1978 echo $ac_n "checking size of int""... $ac_c" 1>&6
1979 echo "configure:1980: checking size of int" >&5
1980 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1981 echo $ac_n "(cached) $ac_c" 1>&6
1983 if test "$cross_compiling" = yes; then
1984 ac_cv_sizeof_int=cross
1986 cat > conftest.$ac_ext <<EOF
1987 #line 1988 "configure"
1988 #include "confdefs.h"
1992 FILE *f=fopen("conftestval", "w");
1994 fprintf(f, "%d\n", sizeof(int));
1998 if { (eval echo configure:1999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2000 ac_cv_sizeof_int=`cat conftestval`
2002 echo "configure: failed program was:" >&5
2003 cat conftest.$ac_ext >&5
2011 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2012 cat >> confdefs.h <<EOF
2013 #define SIZEOF_INT $ac_cv_sizeof_int
2017 echo $ac_n "checking size of long""... $ac_c" 1>&6
2018 echo "configure:2019: checking size of long" >&5
2019 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2020 echo $ac_n "(cached) $ac_c" 1>&6
2022 if test "$cross_compiling" = yes; then
2023 ac_cv_sizeof_long=cross
2025 cat > conftest.$ac_ext <<EOF
2026 #line 2027 "configure"
2027 #include "confdefs.h"
2031 FILE *f=fopen("conftestval", "w");
2033 fprintf(f, "%d\n", sizeof(long));
2037 if { (eval echo configure:2038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2039 ac_cv_sizeof_long=`cat conftestval`
2041 echo "configure: failed program was:" >&5
2042 cat conftest.$ac_ext >&5
2050 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2051 cat >> confdefs.h <<EOF
2052 #define SIZEOF_LONG $ac_cv_sizeof_long
2056 echo $ac_n "checking size of short""... $ac_c" 1>&6
2057 echo "configure:2058: checking size of short" >&5
2058 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2059 echo $ac_n "(cached) $ac_c" 1>&6
2061 if test "$cross_compiling" = yes; then
2062 ac_cv_sizeof_short=cross
2064 cat > conftest.$ac_ext <<EOF
2065 #line 2066 "configure"
2066 #include "confdefs.h"
2070 FILE *f=fopen("conftestval", "w");
2072 fprintf(f, "%d\n", sizeof(short));
2076 if { (eval echo configure:2077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2078 ac_cv_sizeof_short=`cat conftestval`
2080 echo "configure: failed program was:" >&5
2081 cat conftest.$ac_ext >&5
2083 ac_cv_sizeof_short=0
2089 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2090 cat >> confdefs.h <<EOF
2091 #define SIZEOF_SHORT $ac_cv_sizeof_short
2096 echo $ac_n "checking for working const""... $ac_c" 1>&6
2097 echo "configure:2098: checking for working const" >&5
2098 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2101 cat > conftest.$ac_ext <<EOF
2102 #line 2103 "configure"
2103 #include "confdefs.h"
2107 /* Ultrix mips cc rejects this. */
2108 typedef int charset[2]; const charset x;
2109 /* SunOS 4.1.1 cc rejects this. */
2110 char const *const *ccp;
2112 /* NEC SVR4.0.2 mips cc rejects this. */
2113 struct point {int x, y;};
2114 static struct point const zero = {0,0};
2115 /* AIX XL C 1.02.0.0 rejects this.
2116 It does not let you subtract one const X* pointer from another in an arm
2117 of an if-expression whose if-part is not a constant expression */
2118 const char *g = "string";
2119 ccp = &g + (g ? g-g : 0);
2120 /* HPUX 7.0 cc rejects these. */
2123 ccp = (char const *const *) p;
2124 { /* SCO 3.2v4 cc rejects this. */
2126 char const *s = 0 ? (char *) 0 : (char const *) 0;
2130 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2132 const int *foo = &x[0];
2135 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2136 typedef const int *iptr;
2140 { /* AIX XL C 1.02.0.0 rejects this saying
2141 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2142 struct s { int j; const int *ap[3]; };
2143 struct s *b; b->j = 5;
2145 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2151 if { (eval echo configure:2152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2155 echo "configure: failed program was:" >&5
2156 cat conftest.$ac_ext >&5
2163 echo "$ac_t""$ac_cv_c_const" 1>&6
2164 if test $ac_cv_c_const = no; then
2165 cat >> confdefs.h <<\EOF
2171 echo $ac_n "checking for inline""... $ac_c" 1>&6
2172 echo "configure:2173: checking for inline" >&5
2173 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2174 echo $ac_n "(cached) $ac_c" 1>&6
2177 for ac_kw in inline __inline__ __inline; do
2178 cat > conftest.$ac_ext <<EOF
2179 #line 2180 "configure"
2180 #include "confdefs.h"
2186 if { (eval echo configure:2187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2188 ac_cv_c_inline=$ac_kw; break
2190 echo "configure: failed program was:" >&5
2191 cat conftest.$ac_ext >&5
2198 echo "$ac_t""$ac_cv_c_inline" 1>&6
2199 case "$ac_cv_c_inline" in
2201 no) cat >> confdefs.h <<\EOF
2205 *) cat >> confdefs.h <<EOF
2206 #define inline $ac_cv_c_inline
2211 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2212 echo "configure:2213: checking whether byte ordering is bigendian" >&5
2213 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2216 ac_cv_c_bigendian=unknown
2217 # See if sys/param.h defines the BYTE_ORDER macro.
2218 cat > conftest.$ac_ext <<EOF
2219 #line 2220 "configure"
2220 #include "confdefs.h"
2221 #include <sys/types.h>
2222 #include <sys/param.h>
2225 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2230 if { (eval echo configure:2231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2232 # It does; now see whether it defined to BIG_ENDIAN or not.
2233 cat > conftest.$ac_ext <<EOF
2234 #line 2235 "configure"
2235 #include "confdefs.h"
2236 #include <sys/types.h>
2237 #include <sys/param.h>
2240 #if BYTE_ORDER != BIG_ENDIAN
2245 if { (eval echo configure:2246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2247 ac_cv_c_bigendian=yes
2249 echo "configure: failed program was:" >&5
2250 cat conftest.$ac_ext >&5
2252 ac_cv_c_bigendian=no
2256 echo "configure: failed program was:" >&5
2257 cat conftest.$ac_ext >&5
2260 if test $ac_cv_c_bigendian = unknown; then
2261 if test "$cross_compiling" = yes; then
2262 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2264 cat > conftest.$ac_ext <<EOF
2265 #line 2266 "configure"
2266 #include "confdefs.h"
2268 /* Are we little or big endian? From Harbison&Steele. */
2272 char c[sizeof (long)];
2275 exit (u.c[sizeof (long) - 1] == 1);
2278 if { (eval echo configure:2279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2280 ac_cv_c_bigendian=no
2282 echo "configure: failed program was:" >&5
2283 cat conftest.$ac_ext >&5
2285 ac_cv_c_bigendian=yes
2293 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2294 if test $ac_cv_c_bigendian = yes; then
2295 cat >> confdefs.h <<\EOF
2296 #define WORDS_BIGENDIAN 1
2301 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2302 echo "configure:2303: checking whether char is unsigned" >&5
2303 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2304 echo $ac_n "(cached) $ac_c" 1>&6
2306 if test "$GCC" = yes; then
2307 # GCC predefines this symbol on systems where it applies.
2308 cat > conftest.$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2311 #ifdef __CHAR_UNSIGNED__
2316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2317 egrep "yes" >/dev/null 2>&1; then
2319 ac_cv_c_char_unsigned=yes
2322 ac_cv_c_char_unsigned=no
2327 if test "$cross_compiling" = yes; then
2328 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2330 cat > conftest.$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2333 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2334 #if !defined(__STDC__) || __STDC__ != 1
2338 volatile char c = 255; exit(c < 0);
2341 if { (eval echo configure:2342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2343 ac_cv_c_char_unsigned=yes
2345 echo "configure: failed program was:" >&5
2346 cat conftest.$ac_ext >&5
2348 ac_cv_c_char_unsigned=no
2356 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2357 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2358 cat >> confdefs.h <<\EOF
2359 #define __CHAR_UNSIGNED__ 1
2365 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2366 echo "configure:2367: checking return type of signal handlers" >&5
2367 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2368 echo $ac_n "(cached) $ac_c" 1>&6
2370 cat > conftest.$ac_ext <<EOF
2371 #line 2372 "configure"
2372 #include "confdefs.h"
2373 #include <sys/types.h>
2379 extern "C" void (*signal (int, void (*)(int)))(int);
2381 void (*signal ()) ();
2388 if { (eval echo configure:2389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2390 ac_cv_type_signal=void
2392 echo "configure: failed program was:" >&5
2393 cat conftest.$ac_ext >&5
2395 ac_cv_type_signal=int
2400 echo "$ac_t""$ac_cv_type_signal" 1>&6
2401 cat >> confdefs.h <<EOF
2402 #define RETSIGTYPE $ac_cv_type_signal
2406 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2407 echo "configure:2408: checking for uid_t in sys/types.h" >&5
2408 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2409 echo $ac_n "(cached) $ac_c" 1>&6
2411 cat > conftest.$ac_ext <<EOF
2412 #line 2413 "configure"
2413 #include "confdefs.h"
2414 #include <sys/types.h>
2416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2417 egrep "uid_t" >/dev/null 2>&1; then
2419 ac_cv_type_uid_t=yes
2428 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2429 if test $ac_cv_type_uid_t = no; then
2430 cat >> confdefs.h <<\EOF
2434 cat >> confdefs.h <<\EOF
2440 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2441 echo "configure:2442: checking for mode_t" >&5
2442 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6
2445 cat > conftest.$ac_ext <<EOF
2446 #line 2447 "configure"
2447 #include "confdefs.h"
2448 #include <sys/types.h>
2454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2455 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2457 ac_cv_type_mode_t=yes
2460 ac_cv_type_mode_t=no
2465 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2466 if test $ac_cv_type_mode_t = no; then
2467 cat >> confdefs.h <<\EOF
2473 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2474 echo "configure:2475: checking for off_t" >&5
2475 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2476 echo $ac_n "(cached) $ac_c" 1>&6
2478 cat > conftest.$ac_ext <<EOF
2479 #line 2480 "configure"
2480 #include "confdefs.h"
2481 #include <sys/types.h>
2487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2488 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2490 ac_cv_type_off_t=yes
2498 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2499 if test $ac_cv_type_off_t = no; then
2500 cat >> confdefs.h <<\EOF
2506 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2507 echo "configure:2508: checking for size_t" >&5
2508 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2509 echo $ac_n "(cached) $ac_c" 1>&6
2511 cat > conftest.$ac_ext <<EOF
2512 #line 2513 "configure"
2513 #include "confdefs.h"
2514 #include <sys/types.h>
2520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2521 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2523 ac_cv_type_size_t=yes
2526 ac_cv_type_size_t=no
2531 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2532 if test $ac_cv_type_size_t = no; then
2533 cat >> confdefs.h <<\EOF
2534 #define size_t unsigned
2539 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2540 echo "configure:2541: checking for pid_t" >&5
2541 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2542 echo $ac_n "(cached) $ac_c" 1>&6
2544 cat > conftest.$ac_ext <<EOF
2545 #line 2546 "configure"
2546 #include "confdefs.h"
2547 #include <sys/types.h>
2553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2554 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2556 ac_cv_type_pid_t=yes
2564 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2565 if test $ac_cv_type_pid_t = no; then
2566 cat >> confdefs.h <<\EOF
2572 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2573 echo "configure:2574: checking for st_rdev in struct stat" >&5
2574 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2575 echo $ac_n "(cached) $ac_c" 1>&6
2577 cat > conftest.$ac_ext <<EOF
2578 #line 2579 "configure"
2579 #include "confdefs.h"
2580 #include <sys/types.h>
2581 #include <sys/stat.h>
2583 struct stat s; s.st_rdev;
2586 if { (eval echo configure:2587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2588 ac_cv_struct_st_rdev=yes
2590 echo "configure: failed program was:" >&5
2591 cat conftest.$ac_ext >&5
2593 ac_cv_struct_st_rdev=no
2598 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2599 if test $ac_cv_struct_st_rdev = yes; then
2600 cat >> confdefs.h <<\EOF
2601 #define HAVE_ST_RDEV 1
2606 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
2607 echo "configure:2608: checking for d_off in dirent" >&5
2608 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
2609 echo $ac_n "(cached) $ac_c" 1>&6
2611 cat > conftest.$ac_ext <<EOF
2612 #line 2613 "configure"
2613 #include "confdefs.h"
2616 #include <sys/types.h>
2619 struct dirent d; d.d_off;
2622 if { (eval echo configure:2623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2624 ac_cv_dirent_d_off=yes
2626 echo "configure: failed program was:" >&5
2627 cat conftest.$ac_ext >&5
2629 ac_cv_dirent_d_off=no
2634 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
2635 if test $ac_cv_dirent_d_off = yes; then
2636 cat >> confdefs.h <<\EOF
2637 #define HAVE_DIRENT_D_OFF 1
2642 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
2643 echo "configure:2644: checking for ino_t" >&5
2644 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
2645 echo $ac_n "(cached) $ac_c" 1>&6
2647 cat > conftest.$ac_ext <<EOF
2648 #line 2649 "configure"
2649 #include "confdefs.h"
2650 #include <sys/types.h>
2656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2657 egrep "ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2659 ac_cv_type_ino_t=yes
2667 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
2668 if test $ac_cv_type_ino_t = no; then
2669 cat >> confdefs.h <<\EOF
2670 #define ino_t unsigned
2675 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
2676 echo "configure:2677: checking for loff_t" >&5
2677 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
2678 echo $ac_n "(cached) $ac_c" 1>&6
2680 cat > conftest.$ac_ext <<EOF
2681 #line 2682 "configure"
2682 #include "confdefs.h"
2683 #include <sys/types.h>
2689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2690 egrep "loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2692 ac_cv_type_loff_t=yes
2695 ac_cv_type_loff_t=no
2700 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
2701 if test $ac_cv_type_loff_t = no; then
2702 cat >> confdefs.h <<\EOF
2703 #define loff_t off_t
2708 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
2709 echo "configure:2710: checking for offset_t" >&5
2710 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2713 cat > conftest.$ac_ext <<EOF
2714 #line 2715 "configure"
2715 #include "confdefs.h"
2716 #include <sys/types.h>
2722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2723 egrep "offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2725 ac_cv_type_offset_t=yes
2728 ac_cv_type_offset_t=no
2733 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
2734 if test $ac_cv_type_offset_t = no; then
2735 cat >> confdefs.h <<\EOF
2736 #define offset_t loff_t
2741 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2742 echo "configure:2743: checking for ssize_t" >&5
2743 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2744 echo $ac_n "(cached) $ac_c" 1>&6
2746 cat > conftest.$ac_ext <<EOF
2747 #line 2748 "configure"
2748 #include "confdefs.h"
2749 #include <sys/types.h>
2755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2756 egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2758 ac_cv_type_ssize_t=yes
2761 ac_cv_type_ssize_t=no
2766 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2767 if test $ac_cv_type_ssize_t = no; then
2768 cat >> confdefs.h <<\EOF
2775 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
2776 echo "configure:2777: checking for errno in errno.h" >&5
2777 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
2778 echo $ac_n "(cached) $ac_c" 1>&6
2781 cat > conftest.$ac_ext <<EOF
2782 #line 2783 "configure"
2783 #include "confdefs.h"
2789 if { (eval echo configure:2790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2793 echo "configure: failed program was:" >&5
2794 cat conftest.$ac_ext >&5
2796 samba_cv_have_errno_decl=no
2801 echo "$ac_t""$samba_cv_errno" 1>&6
2802 if test x"$samba_cv_errno" = x"yes"; then
2803 cat >> confdefs.h <<\EOF
2804 #define HAVE_ERRNO_DECL 1
2809 # stupid glibc has the functions but no declaration. grrrr.
2810 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
2811 echo "configure:2812: checking for setresuid declaration" >&5
2812 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
2813 echo $ac_n "(cached) $ac_c" 1>&6
2816 cat > conftest.$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2821 int i = (int)setresuid
2824 if { (eval echo configure:2825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2826 samba_cv_have_setresuid_decl=yes
2828 echo "configure: failed program was:" >&5
2829 cat conftest.$ac_ext >&5
2831 samba_cv_have_setresuid_decl=no
2836 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
2837 if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
2838 cat >> confdefs.h <<\EOF
2839 #define HAVE_SETRESUID_DECL 1
2844 # stupid glibc has the functions but no declaration. grrrr.
2845 echo $ac_n "checking for crypt declaration""... $ac_c" 1>&6
2846 echo "configure:2847: checking for crypt declaration" >&5
2847 if eval "test \"`echo '$''{'samba_cv_have_crypt_decl'+set}'`\" = set"; then
2848 echo $ac_n "(cached) $ac_c" 1>&6
2851 cat > conftest.$ac_ext <<EOF
2852 #line 2853 "configure"
2853 #include "confdefs.h"
2859 if { (eval echo configure:2860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2861 samba_cv_have_crypt_decl=yes
2863 echo "configure: failed program was:" >&5
2864 cat conftest.$ac_ext >&5
2866 samba_cv_have_crypt_decl=no
2871 echo "$ac_t""$samba_cv_have_crypt_decl" 1>&6
2872 if test x"$samba_cv_have_crypt_decl" = x"yes"; then
2873 cat >> confdefs.h <<\EOF
2874 #define HAVE_CRYPT_DECL 1
2879 # and glibc has setresuid under linux but the function does
2880 # nothing until kernel 2.1.44! very dumb.
2881 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
2882 echo "configure:2883: checking for real setresuid" >&5
2883 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
2884 echo $ac_n "(cached) $ac_c" 1>&6
2887 if test "$cross_compiling" = yes; then
2888 samba_cv_have_setresuid=cross
2890 cat > conftest.$ac_ext <<EOF
2891 #line 2892 "configure"
2892 #include "confdefs.h"
2894 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
2896 if { (eval echo configure:2897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2898 samba_cv_have_setresuid=yes
2900 echo "configure: failed program was:" >&5
2901 cat conftest.$ac_ext >&5
2903 samba_cv_have_setresuid=no
2910 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
2911 if test x"$samba_cv_have_setresuid" = x"yes"; then
2912 cat >> confdefs.h <<\EOF
2913 #define HAVE_SETRESUID 1
2918 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2919 echo "configure:2920: checking for 8-bit clean memcmp" >&5
2920 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2921 echo $ac_n "(cached) $ac_c" 1>&6
2923 if test "$cross_compiling" = yes; then
2924 ac_cv_func_memcmp_clean=no
2926 cat > conftest.$ac_ext <<EOF
2927 #line 2928 "configure"
2928 #include "confdefs.h"
2932 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2933 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2937 if { (eval echo configure:2938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2939 ac_cv_func_memcmp_clean=yes
2941 echo "configure: failed program was:" >&5
2942 cat conftest.$ac_ext >&5
2944 ac_cv_func_memcmp_clean=no
2951 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2952 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
2955 ###############################################
2956 # test for where we get crypt() from
2957 for ac_func in crypt
2959 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2960 echo "configure:2961: checking for $ac_func" >&5
2961 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2962 echo $ac_n "(cached) $ac_c" 1>&6
2964 cat > conftest.$ac_ext <<EOF
2965 #line 2966 "configure"
2966 #include "confdefs.h"
2967 /* System header to define __stub macros and hopefully few prototypes,
2968 which can conflict with char $ac_func(); below. */
2970 /* Override any gcc2 internal prototype to avoid an error. */
2971 /* We use char because int might match the return type of a gcc2
2972 builtin and then its argument prototype would still apply. */
2977 /* The GNU C library defines this for functions which it implements
2978 to always fail with ENOSYS. Some functions are actually named
2979 something starting with __ and the normal name is an alias. */
2980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2988 if { (eval echo configure:2989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2990 eval "ac_cv_func_$ac_func=yes"
2992 echo "configure: failed program was:" >&5
2993 cat conftest.$ac_ext >&5
2995 eval "ac_cv_func_$ac_func=no"
3000 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3001 echo "$ac_t""yes" 1>&6
3002 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3003 cat >> confdefs.h <<EOF
3004 #define $ac_tr_func 1
3008 echo "$ac_t""no" 1>&6
3012 if test x"$ac_cv_func_crypt" = x"no"; then
3013 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3014 echo "configure:3015: checking for crypt in -lcrypt" >&5
3015 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3016 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3017 echo $ac_n "(cached) $ac_c" 1>&6
3019 ac_save_LIBS="$LIBS"
3020 LIBS="-lcrypt $LIBS"
3021 cat > conftest.$ac_ext <<EOF
3022 #line 3023 "configure"
3023 #include "confdefs.h"
3024 /* Override any gcc2 internal prototype to avoid an error. */
3025 /* We use char because int might match the return type of a gcc2
3026 builtin and then its argument prototype would still apply. */
3033 if { (eval echo configure:3034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3035 eval "ac_cv_lib_$ac_lib_var=yes"
3037 echo "configure: failed program was:" >&5
3038 cat conftest.$ac_ext >&5
3040 eval "ac_cv_lib_$ac_lib_var=no"
3043 LIBS="$ac_save_LIBS"
3046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3047 echo "$ac_t""yes" 1>&6
3048 LIBS="$LIBS -lcrypt";
3049 cat >> confdefs.h <<\EOF
3050 #define HAVE_CRYPT 1
3054 echo "$ac_t""no" 1>&6
3060 ###############################################
3061 # test for where we get pam_authenticate() from
3062 # might need libdl for this to work
3063 if test "$ac_cv_header_security_pam_appl_h" = "yes"; then
3064 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3065 echo "configure:3066: checking for main in -ldl" >&5
3066 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3067 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3068 echo $ac_n "(cached) $ac_c" 1>&6
3070 ac_save_LIBS="$LIBS"
3072 cat > conftest.$ac_ext <<EOF
3073 #line 3074 "configure"
3074 #include "confdefs.h"
3080 if { (eval echo configure:3081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3082 eval "ac_cv_lib_$ac_lib_var=yes"
3084 echo "configure: failed program was:" >&5
3085 cat conftest.$ac_ext >&5
3087 eval "ac_cv_lib_$ac_lib_var=no"
3090 LIBS="$ac_save_LIBS"
3093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3094 echo "$ac_t""yes" 1>&6
3095 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3096 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3097 cat >> confdefs.h <<EOF
3098 #define $ac_tr_lib 1
3104 echo "$ac_t""no" 1>&6
3108 for ac_func in pam_authenticate
3110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3111 echo "configure:3112: checking for $ac_func" >&5
3112 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3113 echo $ac_n "(cached) $ac_c" 1>&6
3115 cat > conftest.$ac_ext <<EOF
3116 #line 3117 "configure"
3117 #include "confdefs.h"
3118 /* System header to define __stub macros and hopefully few prototypes,
3119 which can conflict with char $ac_func(); below. */
3121 /* Override any gcc2 internal prototype to avoid an error. */
3122 /* We use char because int might match the return type of a gcc2
3123 builtin and then its argument prototype would still apply. */
3128 /* The GNU C library defines this for functions which it implements
3129 to always fail with ENOSYS. Some functions are actually named
3130 something starting with __ and the normal name is an alias. */
3131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3139 if { (eval echo configure:3140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3141 eval "ac_cv_func_$ac_func=yes"
3143 echo "configure: failed program was:" >&5
3144 cat conftest.$ac_ext >&5
3146 eval "ac_cv_func_$ac_func=no"
3151 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3152 echo "$ac_t""yes" 1>&6
3153 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3154 cat >> confdefs.h <<EOF
3155 #define $ac_tr_func 1
3159 echo "$ac_t""no" 1>&6
3163 if test x"$ac_cv_func_pam_authenticate" = x"no"; then
3164 echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
3165 echo "configure:3166: checking for pam_authenticate in -lpam" >&5
3166 ac_lib_var=`echo pam'_'pam_authenticate | sed 'y%./+-%__p_%'`
3167 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3168 echo $ac_n "(cached) $ac_c" 1>&6
3170 ac_save_LIBS="$LIBS"
3172 cat > conftest.$ac_ext <<EOF
3173 #line 3174 "configure"
3174 #include "confdefs.h"
3175 /* Override any gcc2 internal prototype to avoid an error. */
3176 /* We use char because int might match the return type of a gcc2
3177 builtin and then its argument prototype would still apply. */
3178 char pam_authenticate();
3184 if { (eval echo configure:3185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3186 eval "ac_cv_lib_$ac_lib_var=yes"
3188 echo "configure: failed program was:" >&5
3189 cat conftest.$ac_ext >&5
3191 eval "ac_cv_lib_$ac_lib_var=no"
3194 LIBS="$ac_save_LIBS"
3197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3198 echo "$ac_t""yes" 1>&6
3200 cat >> confdefs.h <<\EOF
3201 #define HAVE_PAM_AUTHENTICATE 1
3205 echo "$ac_t""no" 1>&6
3210 ###############################################
3211 # readline requires some curses routines
3212 if test "$ac_cv_header_readline_h" = "yes" ||
3213 test "$ac_cv_header_readline_readline_h" = "yes"; then
3214 for ac_func in tputs
3216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3217 echo "configure:3218: checking for $ac_func" >&5
3218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3219 echo $ac_n "(cached) $ac_c" 1>&6
3221 cat > conftest.$ac_ext <<EOF
3222 #line 3223 "configure"
3223 #include "confdefs.h"
3224 /* System header to define __stub macros and hopefully few prototypes,
3225 which can conflict with char $ac_func(); below. */
3227 /* Override any gcc2 internal prototype to avoid an error. */
3228 /* We use char because int might match the return type of a gcc2
3229 builtin and then its argument prototype would still apply. */
3234 /* The GNU C library defines this for functions which it implements
3235 to always fail with ENOSYS. Some functions are actually named
3236 something starting with __ and the normal name is an alias. */
3237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3245 if { (eval echo configure:3246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3247 eval "ac_cv_func_$ac_func=yes"
3249 echo "configure: failed program was:" >&5
3250 cat conftest.$ac_ext >&5
3252 eval "ac_cv_func_$ac_func=no"
3257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3258 echo "$ac_t""yes" 1>&6
3259 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3260 cat >> confdefs.h <<EOF
3261 #define $ac_tr_func 1
3265 echo "$ac_t""no" 1>&6
3269 echo $ac_n "checking for tputs in -lcurses""... $ac_c" 1>&6
3270 echo "configure:3271: checking for tputs in -lcurses" >&5
3271 ac_lib_var=`echo curses'_'tputs | sed 'y%./+-%__p_%'`
3272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3273 echo $ac_n "(cached) $ac_c" 1>&6
3275 ac_save_LIBS="$LIBS"
3276 LIBS="-lcurses $LIBS"
3277 cat > conftest.$ac_ext <<EOF
3278 #line 3279 "configure"
3279 #include "confdefs.h"
3280 /* Override any gcc2 internal prototype to avoid an error. */
3281 /* We use char because int might match the return type of a gcc2
3282 builtin and then its argument prototype would still apply. */
3289 if { (eval echo configure:3290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3291 eval "ac_cv_lib_$ac_lib_var=yes"
3293 echo "configure: failed program was:" >&5
3294 cat conftest.$ac_ext >&5
3296 eval "ac_cv_lib_$ac_lib_var=no"
3299 LIBS="$ac_save_LIBS"
3302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3303 echo "$ac_t""yes" 1>&6
3304 LIBS="$LIBS -lcurses"
3306 echo "$ac_t""no" 1>&6
3309 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3310 echo "configure:3311: checking for readline in -lreadline" >&5
3311 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3312 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3313 echo $ac_n "(cached) $ac_c" 1>&6
3315 ac_save_LIBS="$LIBS"
3316 LIBS="-lreadline $LIBS"
3317 cat > conftest.$ac_ext <<EOF
3318 #line 3319 "configure"
3319 #include "confdefs.h"
3320 /* Override any gcc2 internal prototype to avoid an error. */
3321 /* We use char because int might match the return type of a gcc2
3322 builtin and then its argument prototype would still apply. */
3329 if { (eval echo configure:3330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3331 eval "ac_cv_lib_$ac_lib_var=yes"
3333 echo "configure: failed program was:" >&5
3334 cat conftest.$ac_ext >&5
3336 eval "ac_cv_lib_$ac_lib_var=no"
3339 LIBS="$ac_save_LIBS"
3342 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3343 echo "$ac_t""yes" 1>&6
3344 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3345 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3346 cat >> confdefs.h <<EOF
3347 #define $ac_tr_lib 1
3350 LIBS="-lreadline $LIBS"
3353 echo "$ac_t""no" 1>&6
3356 echo $ac_n "checking for filename_completion_function proto""... $ac_c" 1>&6
3357 echo "configure:3358: checking for filename_completion_function proto" >&5
3358 if eval "test \"`echo '$''{'samba_cv_have_fcf_proto'+set}'`\" = set"; then
3359 echo $ac_n "(cached) $ac_c" 1>&6
3362 cat > conftest.$ac_ext <<EOF
3363 #line 3364 "configure"
3364 #include "confdefs.h"
3366 #ifdef HAVE_READLINE_H
3367 #include <readline.h>
3369 #include <readline/readline.h>
3372 filename_completion_function
3375 if { (eval echo configure:3376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3377 samba_cv_have_fcf_proto=yes
3379 echo "configure: failed program was:" >&5
3380 cat conftest.$ac_ext >&5
3382 samba_cv_have_fcf_proto=no
3387 echo "$ac_t""$samba_cv_have_fcf_proto" 1>&6
3388 if test x"$samba_cv_have_fcf_proto" = x"yes"; then
3389 cat >> confdefs.h <<\EOF
3390 #define HAVE_READLINE_FCF_PROTO 1
3396 # The following test taken from the cvs sources
3397 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
3398 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
3399 # libsocket.so which has a bad implementation of gethostbyname (it
3400 # only looks in /etc/hosts), so we only look for -lsocket if we need
3402 for ac_func in connect
3404 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3405 echo "configure:3406: checking for $ac_func" >&5
3406 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3407 echo $ac_n "(cached) $ac_c" 1>&6
3409 cat > conftest.$ac_ext <<EOF
3410 #line 3411 "configure"
3411 #include "confdefs.h"
3412 /* System header to define __stub macros and hopefully few prototypes,
3413 which can conflict with char $ac_func(); below. */
3415 /* Override any gcc2 internal prototype to avoid an error. */
3416 /* We use char because int might match the return type of a gcc2
3417 builtin and then its argument prototype would still apply. */
3422 /* The GNU C library defines this for functions which it implements
3423 to always fail with ENOSYS. Some functions are actually named
3424 something starting with __ and the normal name is an alias. */
3425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3433 if { (eval echo configure:3434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3435 eval "ac_cv_func_$ac_func=yes"
3437 echo "configure: failed program was:" >&5
3438 cat conftest.$ac_ext >&5
3440 eval "ac_cv_func_$ac_func=no"
3445 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3446 echo "$ac_t""yes" 1>&6
3447 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3448 cat >> confdefs.h <<EOF
3449 #define $ac_tr_func 1
3453 echo "$ac_t""no" 1>&6
3457 if test x"$ac_cv_func_connect" = x"no"; then
3460 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
3461 echo "configure:3462: checking for printf in -lnsl_s" >&5
3462 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
3463 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3464 echo $ac_n "(cached) $ac_c" 1>&6
3466 ac_save_LIBS="$LIBS"
3467 LIBS="-lnsl_s $LIBS"
3468 cat > conftest.$ac_ext <<EOF
3469 #line 3470 "configure"
3470 #include "confdefs.h"
3471 /* Override any gcc2 internal prototype to avoid an error. */
3472 /* We use char because int might match the return type of a gcc2
3473 builtin and then its argument prototype would still apply. */
3480 if { (eval echo configure:3481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3482 eval "ac_cv_lib_$ac_lib_var=yes"
3484 echo "configure: failed program was:" >&5
3485 cat conftest.$ac_ext >&5
3487 eval "ac_cv_lib_$ac_lib_var=no"
3490 LIBS="$ac_save_LIBS"
3493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3494 echo "$ac_t""yes" 1>&6
3495 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3496 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3497 cat >> confdefs.h <<EOF
3498 #define $ac_tr_lib 1
3501 LIBS="-lnsl_s $LIBS"
3504 echo "$ac_t""no" 1>&6
3510 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
3511 echo "configure:3512: checking for printf in -lnsl" >&5
3512 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
3513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3514 echo $ac_n "(cached) $ac_c" 1>&6
3516 ac_save_LIBS="$LIBS"
3518 cat > conftest.$ac_ext <<EOF
3519 #line 3520 "configure"
3520 #include "confdefs.h"
3521 /* Override any gcc2 internal prototype to avoid an error. */
3522 /* We use char because int might match the return type of a gcc2
3523 builtin and then its argument prototype would still apply. */
3530 if { (eval echo configure:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3532 eval "ac_cv_lib_$ac_lib_var=yes"
3534 echo "configure: failed program was:" >&5
3535 cat conftest.$ac_ext >&5
3537 eval "ac_cv_lib_$ac_lib_var=no"
3540 LIBS="$ac_save_LIBS"
3543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3544 echo "$ac_t""yes" 1>&6
3545 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3546 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3547 cat >> confdefs.h <<EOF
3548 #define $ac_tr_lib 1
3554 echo "$ac_t""no" 1>&6
3560 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3561 echo "configure:3562: checking for connect in -lsocket" >&5
3562 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3563 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3564 echo $ac_n "(cached) $ac_c" 1>&6
3566 ac_save_LIBS="$LIBS"
3567 LIBS="-lsocket $LIBS"
3568 cat > conftest.$ac_ext <<EOF
3569 #line 3570 "configure"
3570 #include "confdefs.h"
3571 /* Override any gcc2 internal prototype to avoid an error. */
3572 /* We use char because int might match the return type of a gcc2
3573 builtin and then its argument prototype would still apply. */
3580 if { (eval echo configure:3581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3582 eval "ac_cv_lib_$ac_lib_var=yes"
3584 echo "configure: failed program was:" >&5
3585 cat conftest.$ac_ext >&5
3587 eval "ac_cv_lib_$ac_lib_var=no"
3590 LIBS="$ac_save_LIBS"
3593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3594 echo "$ac_t""yes" 1>&6
3595 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3596 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3597 cat >> confdefs.h <<EOF
3598 #define $ac_tr_lib 1
3601 LIBS="-lsocket $LIBS"
3604 echo "$ac_t""no" 1>&6
3610 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
3611 echo "configure:3612: checking for connect in -linet" >&5
3612 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
3613 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3614 echo $ac_n "(cached) $ac_c" 1>&6
3616 ac_save_LIBS="$LIBS"
3618 cat > conftest.$ac_ext <<EOF
3619 #line 3620 "configure"
3620 #include "confdefs.h"
3621 /* Override any gcc2 internal prototype to avoid an error. */
3622 /* We use char because int might match the return type of a gcc2
3623 builtin and then its argument prototype would still apply. */
3630 if { (eval echo configure:3631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3632 eval "ac_cv_lib_$ac_lib_var=yes"
3634 echo "configure: failed program was:" >&5
3635 cat conftest.$ac_ext >&5
3637 eval "ac_cv_lib_$ac_lib_var=no"
3640 LIBS="$ac_save_LIBS"
3643 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3644 echo "$ac_t""yes" 1>&6
3645 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3646 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3647 cat >> confdefs.h <<EOF
3648 #define $ac_tr_lib 1
3654 echo "$ac_t""no" 1>&6
3658 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
3659 test x"$ac_cv_lib_inet_connect" = x"yes"; then
3660 # ac_cv_func_connect=yes
3661 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
3662 cat >> confdefs.h <<\EOF
3663 #define HAVE_CONNECT 1
3670 for ac_func in waitpid getcwd strdup strtoul strerror chown chmod chroot
3672 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3673 echo "configure:3674: checking for $ac_func" >&5
3674 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3675 echo $ac_n "(cached) $ac_c" 1>&6
3677 cat > conftest.$ac_ext <<EOF
3678 #line 3679 "configure"
3679 #include "confdefs.h"
3680 /* System header to define __stub macros and hopefully few prototypes,
3681 which can conflict with char $ac_func(); below. */
3683 /* Override any gcc2 internal prototype to avoid an error. */
3684 /* We use char because int might match the return type of a gcc2
3685 builtin and then its argument prototype would still apply. */
3690 /* The GNU C library defines this for functions which it implements
3691 to always fail with ENOSYS. Some functions are actually named
3692 something starting with __ and the normal name is an alias. */
3693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3701 if { (eval echo configure:3702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3703 eval "ac_cv_func_$ac_func=yes"
3705 echo "configure: failed program was:" >&5
3706 cat conftest.$ac_ext >&5
3708 eval "ac_cv_func_$ac_func=no"
3713 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3714 echo "$ac_t""yes" 1>&6
3715 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3716 cat >> confdefs.h <<EOF
3717 #define $ac_tr_func 1
3721 echo "$ac_t""no" 1>&6
3725 for ac_func in fstat strchr utime utimes getrlimit fsync execl bzero memset
3727 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3728 echo "configure:3729: checking for $ac_func" >&5
3729 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3730 echo $ac_n "(cached) $ac_c" 1>&6
3732 cat > conftest.$ac_ext <<EOF
3733 #line 3734 "configure"
3734 #include "confdefs.h"
3735 /* System header to define __stub macros and hopefully few prototypes,
3736 which can conflict with char $ac_func(); below. */
3738 /* Override any gcc2 internal prototype to avoid an error. */
3739 /* We use char because int might match the return type of a gcc2
3740 builtin and then its argument prototype would still apply. */
3745 /* The GNU C library defines this for functions which it implements
3746 to always fail with ENOSYS. Some functions are actually named
3747 something starting with __ and the normal name is an alias. */
3748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3756 if { (eval echo configure:3757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3758 eval "ac_cv_func_$ac_func=yes"
3760 echo "configure: failed program was:" >&5
3761 cat conftest.$ac_ext >&5
3763 eval "ac_cv_func_$ac_func=no"
3768 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3769 echo "$ac_t""yes" 1>&6
3770 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3771 cat >> confdefs.h <<EOF
3772 #define $ac_tr_func 1
3776 echo "$ac_t""no" 1>&6
3780 for ac_func in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
3782 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3783 echo "configure:3784: checking for $ac_func" >&5
3784 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3785 echo $ac_n "(cached) $ac_c" 1>&6
3787 cat > conftest.$ac_ext <<EOF
3788 #line 3789 "configure"
3789 #include "confdefs.h"
3790 /* System header to define __stub macros and hopefully few prototypes,
3791 which can conflict with char $ac_func(); below. */
3793 /* Override any gcc2 internal prototype to avoid an error. */
3794 /* We use char because int might match the return type of a gcc2
3795 builtin and then its argument prototype would still apply. */
3800 /* The GNU C library defines this for functions which it implements
3801 to always fail with ENOSYS. Some functions are actually named
3802 something starting with __ and the normal name is an alias. */
3803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3811 if { (eval echo configure:3812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3813 eval "ac_cv_func_$ac_func=yes"
3815 echo "configure: failed program was:" >&5
3816 cat conftest.$ac_ext >&5
3818 eval "ac_cv_func_$ac_func=no"
3823 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3824 echo "$ac_t""yes" 1>&6
3825 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3826 cat >> confdefs.h <<EOF
3827 #define $ac_tr_func 1
3831 echo "$ac_t""no" 1>&6
3835 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
3837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3838 echo "configure:3839: checking for $ac_func" >&5
3839 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3840 echo $ac_n "(cached) $ac_c" 1>&6
3842 cat > conftest.$ac_ext <<EOF
3843 #line 3844 "configure"
3844 #include "confdefs.h"
3845 /* System header to define __stub macros and hopefully few prototypes,
3846 which can conflict with char $ac_func(); below. */
3848 /* Override any gcc2 internal prototype to avoid an error. */
3849 /* We use char because int might match the return type of a gcc2
3850 builtin and then its argument prototype would still apply. */
3855 /* The GNU C library defines this for functions which it implements
3856 to always fail with ENOSYS. Some functions are actually named
3857 something starting with __ and the normal name is an alias. */
3858 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3866 if { (eval echo configure:3867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3868 eval "ac_cv_func_$ac_func=yes"
3870 echo "configure: failed program was:" >&5
3871 cat conftest.$ac_ext >&5
3873 eval "ac_cv_func_$ac_func=no"
3878 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3879 echo "$ac_t""yes" 1>&6
3880 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3881 cat >> confdefs.h <<EOF
3882 #define $ac_tr_func 1
3886 echo "$ac_t""no" 1>&6
3890 for ac_func in initgroups select rdchk getgrnam pathconf
3892 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3893 echo "configure:3894: checking for $ac_func" >&5
3894 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3895 echo $ac_n "(cached) $ac_c" 1>&6
3897 cat > conftest.$ac_ext <<EOF
3898 #line 3899 "configure"
3899 #include "confdefs.h"
3900 /* System header to define __stub macros and hopefully few prototypes,
3901 which can conflict with char $ac_func(); below. */
3903 /* Override any gcc2 internal prototype to avoid an error. */
3904 /* We use char because int might match the return type of a gcc2
3905 builtin and then its argument prototype would still apply. */
3910 /* The GNU C library defines this for functions which it implements
3911 to always fail with ENOSYS. Some functions are actually named
3912 something starting with __ and the normal name is an alias. */
3913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3921 if { (eval echo configure:3922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3923 eval "ac_cv_func_$ac_func=yes"
3925 echo "configure: failed program was:" >&5
3926 cat conftest.$ac_ext >&5
3928 eval "ac_cv_func_$ac_func=no"
3933 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3934 echo "$ac_t""yes" 1>&6
3935 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3936 cat >> confdefs.h <<EOF
3937 #define $ac_tr_func 1
3941 echo "$ac_t""no" 1>&6
3945 for ac_func in setuidx setgroups mktime rename ftruncate stat64 fstat64 lstat64 fopen64
3947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3948 echo "configure:3949: checking for $ac_func" >&5
3949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3950 echo $ac_n "(cached) $ac_c" 1>&6
3952 cat > conftest.$ac_ext <<EOF
3953 #line 3954 "configure"
3954 #include "confdefs.h"
3955 /* System header to define __stub macros and hopefully few prototypes,
3956 which can conflict with char $ac_func(); below. */
3958 /* Override any gcc2 internal prototype to avoid an error. */
3959 /* We use char because int might match the return type of a gcc2
3960 builtin and then its argument prototype would still apply. */
3965 /* The GNU C library defines this for functions which it implements
3966 to always fail with ENOSYS. Some functions are actually named
3967 something starting with __ and the normal name is an alias. */
3968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3976 if { (eval echo configure:3977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3978 eval "ac_cv_func_$ac_func=yes"
3980 echo "configure: failed program was:" >&5
3981 cat conftest.$ac_ext >&5
3983 eval "ac_cv_func_$ac_func=no"
3988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3989 echo "$ac_t""yes" 1>&6
3990 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3991 cat >> confdefs.h <<EOF
3992 #define $ac_tr_func 1
3996 echo "$ac_t""no" 1>&6
4000 for ac_func in atexit grantpt dup2 lseek64 ftruncate64
4002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4003 echo "configure:4004: checking for $ac_func" >&5
4004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4005 echo $ac_n "(cached) $ac_c" 1>&6
4007 cat > conftest.$ac_ext <<EOF
4008 #line 4009 "configure"
4009 #include "confdefs.h"
4010 /* System header to define __stub macros and hopefully few prototypes,
4011 which can conflict with char $ac_func(); below. */
4013 /* Override any gcc2 internal prototype to avoid an error. */
4014 /* We use char because int might match the return type of a gcc2
4015 builtin and then its argument prototype would still apply. */
4020 /* The GNU C library defines this for functions which it implements
4021 to always fail with ENOSYS. Some functions are actually named
4022 something starting with __ and the normal name is an alias. */
4023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4031 if { (eval echo configure:4032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4033 eval "ac_cv_func_$ac_func=yes"
4035 echo "configure: failed program was:" >&5
4036 cat conftest.$ac_ext >&5
4038 eval "ac_cv_func_$ac_func=no"
4043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4044 echo "$ac_t""yes" 1>&6
4045 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4046 cat >> confdefs.h <<EOF
4047 #define $ac_tr_func 1
4051 echo "$ac_t""no" 1>&6
4055 for ac_func in fseek64 ftell64 setluid yp_get_default_domain getpwanam
4057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4058 echo "configure:4059: checking for $ac_func" >&5
4059 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4060 echo $ac_n "(cached) $ac_c" 1>&6
4062 cat > conftest.$ac_ext <<EOF
4063 #line 4064 "configure"
4064 #include "confdefs.h"
4065 /* System header to define __stub macros and hopefully few prototypes,
4066 which can conflict with char $ac_func(); below. */
4068 /* Override any gcc2 internal prototype to avoid an error. */
4069 /* We use char because int might match the return type of a gcc2
4070 builtin and then its argument prototype would still apply. */
4075 /* The GNU C library defines this for functions which it implements
4076 to always fail with ENOSYS. Some functions are actually named
4077 something starting with __ and the normal name is an alias. */
4078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4086 if { (eval echo configure:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4088 eval "ac_cv_func_$ac_func=yes"
4090 echo "configure: failed program was:" >&5
4091 cat conftest.$ac_ext >&5
4093 eval "ac_cv_func_$ac_func=no"
4098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4099 echo "$ac_t""yes" 1>&6
4100 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4101 cat >> confdefs.h <<EOF
4102 #define $ac_tr_func 1
4106 echo "$ac_t""no" 1>&6
4110 for ac_func in srandom random srand rand setenv mmap64
4112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4113 echo "configure:4114: checking for $ac_func" >&5
4114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4115 echo $ac_n "(cached) $ac_c" 1>&6
4117 cat > conftest.$ac_ext <<EOF
4118 #line 4119 "configure"
4119 #include "confdefs.h"
4120 /* System header to define __stub macros and hopefully few prototypes,
4121 which can conflict with char $ac_func(); below. */
4123 /* Override any gcc2 internal prototype to avoid an error. */
4124 /* We use char because int might match the return type of a gcc2
4125 builtin and then its argument prototype would still apply. */
4130 /* The GNU C library defines this for functions which it implements
4131 to always fail with ENOSYS. Some functions are actually named
4132 something starting with __ and the normal name is an alias. */
4133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4141 if { (eval echo configure:4142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4143 eval "ac_cv_func_$ac_func=yes"
4145 echo "configure: failed program was:" >&5
4146 cat conftest.$ac_ext >&5
4148 eval "ac_cv_func_$ac_func=no"
4153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4154 echo "$ac_t""yes" 1>&6
4155 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4156 cat >> confdefs.h <<EOF
4157 #define $ac_tr_func 1
4161 echo "$ac_t""no" 1>&6
4165 # syscall() is needed for smbwrapper.
4166 for ac_func in syscall
4168 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4169 echo "configure:4170: checking for $ac_func" >&5
4170 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4171 echo $ac_n "(cached) $ac_c" 1>&6
4173 cat > conftest.$ac_ext <<EOF
4174 #line 4175 "configure"
4175 #include "confdefs.h"
4176 /* System header to define __stub macros and hopefully few prototypes,
4177 which can conflict with char $ac_func(); below. */
4179 /* Override any gcc2 internal prototype to avoid an error. */
4180 /* We use char because int might match the return type of a gcc2
4181 builtin and then its argument prototype would still apply. */
4186 /* The GNU C library defines this for functions which it implements
4187 to always fail with ENOSYS. Some functions are actually named
4188 something starting with __ and the normal name is an alias. */
4189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4197 if { (eval echo configure:4198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4199 eval "ac_cv_func_$ac_func=yes"
4201 echo "configure: failed program was:" >&5
4202 cat conftest.$ac_ext >&5
4204 eval "ac_cv_func_$ac_func=no"
4209 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4210 echo "$ac_t""yes" 1>&6
4211 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4212 cat >> confdefs.h <<EOF
4213 #define $ac_tr_func 1
4217 echo "$ac_t""no" 1>&6
4222 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
4224 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4225 echo "configure:4226: checking for $ac_func" >&5
4226 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4227 echo $ac_n "(cached) $ac_c" 1>&6
4229 cat > conftest.$ac_ext <<EOF
4230 #line 4231 "configure"
4231 #include "confdefs.h"
4232 /* System header to define __stub macros and hopefully few prototypes,
4233 which can conflict with char $ac_func(); below. */
4235 /* Override any gcc2 internal prototype to avoid an error. */
4236 /* We use char because int might match the return type of a gcc2
4237 builtin and then its argument prototype would still apply. */
4242 /* The GNU C library defines this for functions which it implements
4243 to always fail with ENOSYS. Some functions are actually named
4244 something starting with __ and the normal name is an alias. */
4245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4253 if { (eval echo configure:4254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4255 eval "ac_cv_func_$ac_func=yes"
4257 echo "configure: failed program was:" >&5
4258 cat conftest.$ac_ext >&5
4260 eval "ac_cv_func_$ac_func=no"
4265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4266 echo "$ac_t""yes" 1>&6
4267 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4268 cat >> confdefs.h <<EOF
4269 #define $ac_tr_func 1
4273 echo "$ac_t""no" 1>&6
4277 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
4279 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4280 echo "configure:4281: checking for $ac_func" >&5
4281 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4282 echo $ac_n "(cached) $ac_c" 1>&6
4284 cat > conftest.$ac_ext <<EOF
4285 #line 4286 "configure"
4286 #include "confdefs.h"
4287 /* System header to define __stub macros and hopefully few prototypes,
4288 which can conflict with char $ac_func(); below. */
4290 /* Override any gcc2 internal prototype to avoid an error. */
4291 /* We use char because int might match the return type of a gcc2
4292 builtin and then its argument prototype would still apply. */
4297 /* The GNU C library defines this for functions which it implements
4298 to always fail with ENOSYS. Some functions are actually named
4299 something starting with __ and the normal name is an alias. */
4300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4308 if { (eval echo configure:4309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4310 eval "ac_cv_func_$ac_func=yes"
4312 echo "configure: failed program was:" >&5
4313 cat conftest.$ac_ext >&5
4315 eval "ac_cv_func_$ac_func=no"
4320 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4321 echo "$ac_t""yes" 1>&6
4322 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4323 cat >> confdefs.h <<EOF
4324 #define $ac_tr_func 1
4328 echo "$ac_t""no" 1>&6
4332 for ac_func in __getcwd _getcwd
4334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4335 echo "configure:4336: checking for $ac_func" >&5
4336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4337 echo $ac_n "(cached) $ac_c" 1>&6
4339 cat > conftest.$ac_ext <<EOF
4340 #line 4341 "configure"
4341 #include "confdefs.h"
4342 /* System header to define __stub macros and hopefully few prototypes,
4343 which can conflict with char $ac_func(); below. */
4345 /* Override any gcc2 internal prototype to avoid an error. */
4346 /* We use char because int might match the return type of a gcc2
4347 builtin and then its argument prototype would still apply. */
4352 /* The GNU C library defines this for functions which it implements
4353 to always fail with ENOSYS. Some functions are actually named
4354 something starting with __ and the normal name is an alias. */
4355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4363 if { (eval echo configure:4364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4365 eval "ac_cv_func_$ac_func=yes"
4367 echo "configure: failed program was:" >&5
4368 cat conftest.$ac_ext >&5
4370 eval "ac_cv_func_$ac_func=no"
4375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4376 echo "$ac_t""yes" 1>&6
4377 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4378 cat >> confdefs.h <<EOF
4379 #define $ac_tr_func 1
4383 echo "$ac_t""no" 1>&6
4387 for ac_func in __xstat __fxstat __lxstat
4389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4390 echo "configure:4391: checking for $ac_func" >&5
4391 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4392 echo $ac_n "(cached) $ac_c" 1>&6
4394 cat > conftest.$ac_ext <<EOF
4395 #line 4396 "configure"
4396 #include "confdefs.h"
4397 /* System header to define __stub macros and hopefully few prototypes,
4398 which can conflict with char $ac_func(); below. */
4400 /* Override any gcc2 internal prototype to avoid an error. */
4401 /* We use char because int might match the return type of a gcc2
4402 builtin and then its argument prototype would still apply. */
4407 /* The GNU C library defines this for functions which it implements
4408 to always fail with ENOSYS. Some functions are actually named
4409 something starting with __ and the normal name is an alias. */
4410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4418 if { (eval echo configure:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4420 eval "ac_cv_func_$ac_func=yes"
4422 echo "configure: failed program was:" >&5
4423 cat conftest.$ac_ext >&5
4425 eval "ac_cv_func_$ac_func=no"
4430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4431 echo "$ac_t""yes" 1>&6
4432 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4433 cat >> confdefs.h <<EOF
4434 #define $ac_tr_func 1
4438 echo "$ac_t""no" 1>&6
4442 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
4444 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4445 echo "configure:4446: checking for $ac_func" >&5
4446 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4447 echo $ac_n "(cached) $ac_c" 1>&6
4449 cat > conftest.$ac_ext <<EOF
4450 #line 4451 "configure"
4451 #include "confdefs.h"
4452 /* System header to define __stub macros and hopefully few prototypes,
4453 which can conflict with char $ac_func(); below. */
4455 /* Override any gcc2 internal prototype to avoid an error. */
4456 /* We use char because int might match the return type of a gcc2
4457 builtin and then its argument prototype would still apply. */
4462 /* The GNU C library defines this for functions which it implements
4463 to always fail with ENOSYS. Some functions are actually named
4464 something starting with __ and the normal name is an alias. */
4465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4473 if { (eval echo configure:4474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4475 eval "ac_cv_func_$ac_func=yes"
4477 echo "configure: failed program was:" >&5
4478 cat conftest.$ac_ext >&5
4480 eval "ac_cv_func_$ac_func=no"
4485 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4486 echo "$ac_t""yes" 1>&6
4487 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4488 cat >> confdefs.h <<EOF
4489 #define $ac_tr_func 1
4493 echo "$ac_t""no" 1>&6
4497 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
4499 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4500 echo "configure:4501: checking for $ac_func" >&5
4501 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4502 echo $ac_n "(cached) $ac_c" 1>&6
4504 cat > conftest.$ac_ext <<EOF
4505 #line 4506 "configure"
4506 #include "confdefs.h"
4507 /* System header to define __stub macros and hopefully few prototypes,
4508 which can conflict with char $ac_func(); below. */
4510 /* Override any gcc2 internal prototype to avoid an error. */
4511 /* We use char because int might match the return type of a gcc2
4512 builtin and then its argument prototype would still apply. */
4517 /* The GNU C library defines this for functions which it implements
4518 to always fail with ENOSYS. Some functions are actually named
4519 something starting with __ and the normal name is an alias. */
4520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4528 if { (eval echo configure:4529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4530 eval "ac_cv_func_$ac_func=yes"
4532 echo "configure: failed program was:" >&5
4533 cat conftest.$ac_ext >&5
4535 eval "ac_cv_func_$ac_func=no"
4540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4541 echo "$ac_t""yes" 1>&6
4542 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4543 cat >> confdefs.h <<EOF
4544 #define $ac_tr_func 1
4548 echo "$ac_t""no" 1>&6
4552 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
4554 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4555 echo "configure:4556: checking for $ac_func" >&5
4556 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4557 echo $ac_n "(cached) $ac_c" 1>&6
4559 cat > conftest.$ac_ext <<EOF
4560 #line 4561 "configure"
4561 #include "confdefs.h"
4562 /* System header to define __stub macros and hopefully few prototypes,
4563 which can conflict with char $ac_func(); below. */
4565 /* Override any gcc2 internal prototype to avoid an error. */
4566 /* We use char because int might match the return type of a gcc2
4567 builtin and then its argument prototype would still apply. */
4572 /* The GNU C library defines this for functions which it implements
4573 to always fail with ENOSYS. Some functions are actually named
4574 something starting with __ and the normal name is an alias. */
4575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4583 if { (eval echo configure:4584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4585 eval "ac_cv_func_$ac_func=yes"
4587 echo "configure: failed program was:" >&5
4588 cat conftest.$ac_ext >&5
4590 eval "ac_cv_func_$ac_func=no"
4595 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4596 echo "$ac_t""yes" 1>&6
4597 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4598 cat >> confdefs.h <<EOF
4599 #define $ac_tr_func 1
4603 echo "$ac_t""no" 1>&6
4607 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
4609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4610 echo "configure:4611: checking for $ac_func" >&5
4611 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4612 echo $ac_n "(cached) $ac_c" 1>&6
4614 cat > conftest.$ac_ext <<EOF
4615 #line 4616 "configure"
4616 #include "confdefs.h"
4617 /* System header to define __stub macros and hopefully few prototypes,
4618 which can conflict with char $ac_func(); below. */
4620 /* Override any gcc2 internal prototype to avoid an error. */
4621 /* We use char because int might match the return type of a gcc2
4622 builtin and then its argument prototype would still apply. */
4627 /* The GNU C library defines this for functions which it implements
4628 to always fail with ENOSYS. Some functions are actually named
4629 something starting with __ and the normal name is an alias. */
4630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4638 if { (eval echo configure:4639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4640 eval "ac_cv_func_$ac_func=yes"
4642 echo "configure: failed program was:" >&5
4643 cat conftest.$ac_ext >&5
4645 eval "ac_cv_func_$ac_func=no"
4650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4651 echo "$ac_t""yes" 1>&6
4652 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4653 cat >> confdefs.h <<EOF
4654 #define $ac_tr_func 1
4658 echo "$ac_t""no" 1>&6
4662 for ac_func in _write __write _fork __fork
4664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4665 echo "configure:4666: checking for $ac_func" >&5
4666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4667 echo $ac_n "(cached) $ac_c" 1>&6
4669 cat > conftest.$ac_ext <<EOF
4670 #line 4671 "configure"
4671 #include "confdefs.h"
4672 /* System header to define __stub macros and hopefully few prototypes,
4673 which can conflict with char $ac_func(); below. */
4675 /* Override any gcc2 internal prototype to avoid an error. */
4676 /* We use char because int might match the return type of a gcc2
4677 builtin and then its argument prototype would still apply. */
4682 /* The GNU C library defines this for functions which it implements
4683 to always fail with ENOSYS. Some functions are actually named
4684 something starting with __ and the normal name is an alias. */
4685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4693 if { (eval echo configure:4694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4695 eval "ac_cv_func_$ac_func=yes"
4697 echo "configure: failed program was:" >&5
4698 cat conftest.$ac_ext >&5
4700 eval "ac_cv_func_$ac_func=no"
4705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4706 echo "$ac_t""yes" 1>&6
4707 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4708 cat >> confdefs.h <<EOF
4709 #define $ac_tr_func 1
4713 echo "$ac_t""no" 1>&6
4717 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
4719 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4720 echo "configure:4721: checking for $ac_func" >&5
4721 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4722 echo $ac_n "(cached) $ac_c" 1>&6
4724 cat > conftest.$ac_ext <<EOF
4725 #line 4726 "configure"
4726 #include "confdefs.h"
4727 /* System header to define __stub macros and hopefully few prototypes,
4728 which can conflict with char $ac_func(); below. */
4730 /* Override any gcc2 internal prototype to avoid an error. */
4731 /* We use char because int might match the return type of a gcc2
4732 builtin and then its argument prototype would still apply. */
4737 /* The GNU C library defines this for functions which it implements
4738 to always fail with ENOSYS. Some functions are actually named
4739 something starting with __ and the normal name is an alias. */
4740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4748 if { (eval echo configure:4749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4750 eval "ac_cv_func_$ac_func=yes"
4752 echo "configure: failed program was:" >&5
4753 cat conftest.$ac_ext >&5
4755 eval "ac_cv_func_$ac_func=no"
4760 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4761 echo "$ac_t""yes" 1>&6
4762 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4763 cat >> confdefs.h <<EOF
4764 #define $ac_tr_func 1
4768 echo "$ac_t""no" 1>&6
4772 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
4774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4775 echo "configure:4776: checking for $ac_func" >&5
4776 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4777 echo $ac_n "(cached) $ac_c" 1>&6
4779 cat > conftest.$ac_ext <<EOF
4780 #line 4781 "configure"
4781 #include "confdefs.h"
4782 /* System header to define __stub macros and hopefully few prototypes,
4783 which can conflict with char $ac_func(); below. */
4785 /* Override any gcc2 internal prototype to avoid an error. */
4786 /* We use char because int might match the return type of a gcc2
4787 builtin and then its argument prototype would still apply. */
4792 /* The GNU C library defines this for functions which it implements
4793 to always fail with ENOSYS. Some functions are actually named
4794 something starting with __ and the normal name is an alias. */
4795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4803 if { (eval echo configure:4804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4805 eval "ac_cv_func_$ac_func=yes"
4807 echo "configure: failed program was:" >&5
4808 cat conftest.$ac_ext >&5
4810 eval "ac_cv_func_$ac_func=no"
4815 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4816 echo "$ac_t""yes" 1>&6
4817 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4818 cat >> confdefs.h <<EOF
4819 #define $ac_tr_func 1
4823 echo "$ac_t""no" 1>&6
4827 for ac_func in pread _pread __pread pread64 _pread64 __pread64
4829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4830 echo "configure:4831: checking for $ac_func" >&5
4831 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4832 echo $ac_n "(cached) $ac_c" 1>&6
4834 cat > conftest.$ac_ext <<EOF
4835 #line 4836 "configure"
4836 #include "confdefs.h"
4837 /* System header to define __stub macros and hopefully few prototypes,
4838 which can conflict with char $ac_func(); below. */
4840 /* Override any gcc2 internal prototype to avoid an error. */
4841 /* We use char because int might match the return type of a gcc2
4842 builtin and then its argument prototype would still apply. */
4847 /* The GNU C library defines this for functions which it implements
4848 to always fail with ENOSYS. Some functions are actually named
4849 something starting with __ and the normal name is an alias. */
4850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4858 if { (eval echo configure:4859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4860 eval "ac_cv_func_$ac_func=yes"
4862 echo "configure: failed program was:" >&5
4863 cat conftest.$ac_ext >&5
4865 eval "ac_cv_func_$ac_func=no"
4870 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4871 echo "$ac_t""yes" 1>&6
4872 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4873 cat >> confdefs.h <<EOF
4874 #define $ac_tr_func 1
4878 echo "$ac_t""no" 1>&6
4882 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
4884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4885 echo "configure:4886: checking for $ac_func" >&5
4886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4887 echo $ac_n "(cached) $ac_c" 1>&6
4889 cat > conftest.$ac_ext <<EOF
4890 #line 4891 "configure"
4891 #include "confdefs.h"
4892 /* System header to define __stub macros and hopefully few prototypes,
4893 which can conflict with char $ac_func(); below. */
4895 /* Override any gcc2 internal prototype to avoid an error. */
4896 /* We use char because int might match the return type of a gcc2
4897 builtin and then its argument prototype would still apply. */
4902 /* The GNU C library defines this for functions which it implements
4903 to always fail with ENOSYS. Some functions are actually named
4904 something starting with __ and the normal name is an alias. */
4905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4913 if { (eval echo configure:4914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4915 eval "ac_cv_func_$ac_func=yes"
4917 echo "configure: failed program was:" >&5
4918 cat conftest.$ac_ext >&5
4920 eval "ac_cv_func_$ac_func=no"
4925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4926 echo "$ac_t""yes" 1>&6
4927 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4928 cat >> confdefs.h <<EOF
4929 #define $ac_tr_func 1
4933 echo "$ac_t""no" 1>&6
4937 for ac_func in open64 _open64 __open64 creat64
4939 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4940 echo "configure:4941: checking for $ac_func" >&5
4941 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4942 echo $ac_n "(cached) $ac_c" 1>&6
4944 cat > conftest.$ac_ext <<EOF
4945 #line 4946 "configure"
4946 #include "confdefs.h"
4947 /* System header to define __stub macros and hopefully few prototypes,
4948 which can conflict with char $ac_func(); below. */
4950 /* Override any gcc2 internal prototype to avoid an error. */
4951 /* We use char because int might match the return type of a gcc2
4952 builtin and then its argument prototype would still apply. */
4957 /* The GNU C library defines this for functions which it implements
4958 to always fail with ENOSYS. Some functions are actually named
4959 something starting with __ and the normal name is an alias. */
4960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4968 if { (eval echo configure:4969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4970 eval "ac_cv_func_$ac_func=yes"
4972 echo "configure: failed program was:" >&5
4973 cat conftest.$ac_ext >&5
4975 eval "ac_cv_func_$ac_func=no"
4980 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4981 echo "$ac_t""yes" 1>&6
4982 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4983 cat >> confdefs.h <<EOF
4984 #define $ac_tr_func 1
4988 echo "$ac_t""no" 1>&6
4994 # Check for the functions putprpwnam, set_auth_parameters,
4995 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
4996 # Needed for OSF1 and HPUX.
5000 *-lsecurity*) for ac_func in putprpwnam
5002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5003 echo "configure:5004: checking for $ac_func" >&5
5004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5005 echo $ac_n "(cached) $ac_c" 1>&6
5007 cat > conftest.$ac_ext <<EOF
5008 #line 5009 "configure"
5009 #include "confdefs.h"
5010 /* System header to define __stub macros and hopefully few prototypes,
5011 which can conflict with char $ac_func(); below. */
5013 /* Override any gcc2 internal prototype to avoid an error. */
5014 /* We use char because int might match the return type of a gcc2
5015 builtin and then its argument prototype would still apply. */
5020 /* The GNU C library defines this for functions which it implements
5021 to always fail with ENOSYS. Some functions are actually named
5022 something starting with __ and the normal name is an alias. */
5023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5031 if { (eval echo configure:5032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5033 eval "ac_cv_func_$ac_func=yes"
5035 echo "configure: failed program was:" >&5
5036 cat conftest.$ac_ext >&5
5038 eval "ac_cv_func_$ac_func=no"
5043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5044 echo "$ac_t""yes" 1>&6
5045 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5046 cat >> confdefs.h <<EOF
5047 #define $ac_tr_func 1
5051 echo "$ac_t""no" 1>&6
5055 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
5056 echo "configure:5057: checking for putprpwnam in -lsecurity" >&5
5057 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
5058 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5059 echo $ac_n "(cached) $ac_c" 1>&6
5061 ac_save_LIBS="$LIBS"
5062 LIBS="-lsecurity $LIBS"
5063 cat > conftest.$ac_ext <<EOF
5064 #line 5065 "configure"
5065 #include "confdefs.h"
5066 /* Override any gcc2 internal prototype to avoid an error. */
5067 /* We use char because int might match the return type of a gcc2
5068 builtin and then its argument prototype would still apply. */
5075 if { (eval echo configure:5076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5077 eval "ac_cv_lib_$ac_lib_var=yes"
5079 echo "configure: failed program was:" >&5
5080 cat conftest.$ac_ext >&5
5082 eval "ac_cv_lib_$ac_lib_var=no"
5085 LIBS="$ac_save_LIBS"
5088 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5089 echo "$ac_t""yes" 1>&6
5090 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5091 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5092 cat >> confdefs.h <<EOF
5093 #define $ac_tr_lib 1
5096 LIBS="-lsecurity $LIBS"
5099 echo "$ac_t""no" 1>&6
5102 for ac_func in putprpwnam
5104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5105 echo "configure:5106: checking for $ac_func" >&5
5106 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5107 echo $ac_n "(cached) $ac_c" 1>&6
5109 cat > conftest.$ac_ext <<EOF
5110 #line 5111 "configure"
5111 #include "confdefs.h"
5112 /* System header to define __stub macros and hopefully few prototypes,
5113 which can conflict with char $ac_func(); below. */
5115 /* Override any gcc2 internal prototype to avoid an error. */
5116 /* We use char because int might match the return type of a gcc2
5117 builtin and then its argument prototype would still apply. */
5122 /* The GNU C library defines this for functions which it implements
5123 to always fail with ENOSYS. Some functions are actually named
5124 something starting with __ and the normal name is an alias. */
5125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5133 if { (eval echo configure:5134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5135 eval "ac_cv_func_$ac_func=yes"
5137 echo "configure: failed program was:" >&5
5138 cat conftest.$ac_ext >&5
5140 eval "ac_cv_func_$ac_func=no"
5145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5146 echo "$ac_t""yes" 1>&6
5147 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5148 cat >> confdefs.h <<EOF
5149 #define $ac_tr_func 1
5153 echo "$ac_t""no" 1>&6
5161 *-lsec*) for ac_func in putprpwnam
5163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5164 echo "configure:5165: checking for $ac_func" >&5
5165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5166 echo $ac_n "(cached) $ac_c" 1>&6
5168 cat > conftest.$ac_ext <<EOF
5169 #line 5170 "configure"
5170 #include "confdefs.h"
5171 /* System header to define __stub macros and hopefully few prototypes,
5172 which can conflict with char $ac_func(); below. */
5174 /* Override any gcc2 internal prototype to avoid an error. */
5175 /* We use char because int might match the return type of a gcc2
5176 builtin and then its argument prototype would still apply. */
5181 /* The GNU C library defines this for functions which it implements
5182 to always fail with ENOSYS. Some functions are actually named
5183 something starting with __ and the normal name is an alias. */
5184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5192 if { (eval echo configure:5193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5194 eval "ac_cv_func_$ac_func=yes"
5196 echo "configure: failed program was:" >&5
5197 cat conftest.$ac_ext >&5
5199 eval "ac_cv_func_$ac_func=no"
5204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5205 echo "$ac_t""yes" 1>&6
5206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5207 cat >> confdefs.h <<EOF
5208 #define $ac_tr_func 1
5212 echo "$ac_t""no" 1>&6
5216 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
5217 echo "configure:5218: checking for putprpwnam in -lsec" >&5
5218 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
5219 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5220 echo $ac_n "(cached) $ac_c" 1>&6
5222 ac_save_LIBS="$LIBS"
5224 cat > conftest.$ac_ext <<EOF
5225 #line 5226 "configure"
5226 #include "confdefs.h"
5227 /* Override any gcc2 internal prototype to avoid an error. */
5228 /* We use char because int might match the return type of a gcc2
5229 builtin and then its argument prototype would still apply. */
5236 if { (eval echo configure:5237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5238 eval "ac_cv_lib_$ac_lib_var=yes"
5240 echo "configure: failed program was:" >&5
5241 cat conftest.$ac_ext >&5
5243 eval "ac_cv_lib_$ac_lib_var=no"
5246 LIBS="$ac_save_LIBS"
5249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5250 echo "$ac_t""yes" 1>&6
5251 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5252 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5253 cat >> confdefs.h <<EOF
5254 #define $ac_tr_lib 1
5260 echo "$ac_t""no" 1>&6
5263 for ac_func in putprpwnam
5265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5266 echo "configure:5267: checking for $ac_func" >&5
5267 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5268 echo $ac_n "(cached) $ac_c" 1>&6
5270 cat > conftest.$ac_ext <<EOF
5271 #line 5272 "configure"
5272 #include "confdefs.h"
5273 /* System header to define __stub macros and hopefully few prototypes,
5274 which can conflict with char $ac_func(); below. */
5276 /* Override any gcc2 internal prototype to avoid an error. */
5277 /* We use char because int might match the return type of a gcc2
5278 builtin and then its argument prototype would still apply. */
5283 /* The GNU C library defines this for functions which it implements
5284 to always fail with ENOSYS. Some functions are actually named
5285 something starting with __ and the normal name is an alias. */
5286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5294 if { (eval echo configure:5295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5296 eval "ac_cv_func_$ac_func=yes"
5298 echo "configure: failed program was:" >&5
5299 cat conftest.$ac_ext >&5
5301 eval "ac_cv_func_$ac_func=no"
5306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5307 echo "$ac_t""yes" 1>&6
5308 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5309 cat >> confdefs.h <<EOF
5310 #define $ac_tr_func 1
5314 echo "$ac_t""no" 1>&6
5323 *-lsecurity*) for ac_func in set_auth_parameters
5325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5326 echo "configure:5327: checking for $ac_func" >&5
5327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5328 echo $ac_n "(cached) $ac_c" 1>&6
5330 cat > conftest.$ac_ext <<EOF
5331 #line 5332 "configure"
5332 #include "confdefs.h"
5333 /* System header to define __stub macros and hopefully few prototypes,
5334 which can conflict with char $ac_func(); below. */
5336 /* Override any gcc2 internal prototype to avoid an error. */
5337 /* We use char because int might match the return type of a gcc2
5338 builtin and then its argument prototype would still apply. */
5343 /* The GNU C library defines this for functions which it implements
5344 to always fail with ENOSYS. Some functions are actually named
5345 something starting with __ and the normal name is an alias. */
5346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5354 if { (eval echo configure:5355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5356 eval "ac_cv_func_$ac_func=yes"
5358 echo "configure: failed program was:" >&5
5359 cat conftest.$ac_ext >&5
5361 eval "ac_cv_func_$ac_func=no"
5366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5367 echo "$ac_t""yes" 1>&6
5368 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5369 cat >> confdefs.h <<EOF
5370 #define $ac_tr_func 1
5374 echo "$ac_t""no" 1>&6
5378 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
5379 echo "configure:5380: checking for set_auth_parameters in -lsecurity" >&5
5380 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
5381 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5382 echo $ac_n "(cached) $ac_c" 1>&6
5384 ac_save_LIBS="$LIBS"
5385 LIBS="-lsecurity $LIBS"
5386 cat > conftest.$ac_ext <<EOF
5387 #line 5388 "configure"
5388 #include "confdefs.h"
5389 /* Override any gcc2 internal prototype to avoid an error. */
5390 /* We use char because int might match the return type of a gcc2
5391 builtin and then its argument prototype would still apply. */
5392 char set_auth_parameters();
5395 set_auth_parameters()
5398 if { (eval echo configure:5399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5400 eval "ac_cv_lib_$ac_lib_var=yes"
5402 echo "configure: failed program was:" >&5
5403 cat conftest.$ac_ext >&5
5405 eval "ac_cv_lib_$ac_lib_var=no"
5408 LIBS="$ac_save_LIBS"
5411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5412 echo "$ac_t""yes" 1>&6
5413 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5414 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5415 cat >> confdefs.h <<EOF
5416 #define $ac_tr_lib 1
5419 LIBS="-lsecurity $LIBS"
5422 echo "$ac_t""no" 1>&6
5425 for ac_func in set_auth_parameters
5427 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5428 echo "configure:5429: checking for $ac_func" >&5
5429 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5430 echo $ac_n "(cached) $ac_c" 1>&6
5432 cat > conftest.$ac_ext <<EOF
5433 #line 5434 "configure"
5434 #include "confdefs.h"
5435 /* System header to define __stub macros and hopefully few prototypes,
5436 which can conflict with char $ac_func(); below. */
5438 /* Override any gcc2 internal prototype to avoid an error. */
5439 /* We use char because int might match the return type of a gcc2
5440 builtin and then its argument prototype would still apply. */
5445 /* The GNU C library defines this for functions which it implements
5446 to always fail with ENOSYS. Some functions are actually named
5447 something starting with __ and the normal name is an alias. */
5448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5456 if { (eval echo configure:5457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5458 eval "ac_cv_func_$ac_func=yes"
5460 echo "configure: failed program was:" >&5
5461 cat conftest.$ac_ext >&5
5463 eval "ac_cv_func_$ac_func=no"
5468 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5469 echo "$ac_t""yes" 1>&6
5470 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5471 cat >> confdefs.h <<EOF
5472 #define $ac_tr_func 1
5476 echo "$ac_t""no" 1>&6
5484 *-lsec*) for ac_func in set_auth_parameters
5486 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5487 echo "configure:5488: checking for $ac_func" >&5
5488 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5489 echo $ac_n "(cached) $ac_c" 1>&6
5491 cat > conftest.$ac_ext <<EOF
5492 #line 5493 "configure"
5493 #include "confdefs.h"
5494 /* System header to define __stub macros and hopefully few prototypes,
5495 which can conflict with char $ac_func(); below. */
5497 /* Override any gcc2 internal prototype to avoid an error. */
5498 /* We use char because int might match the return type of a gcc2
5499 builtin and then its argument prototype would still apply. */
5504 /* The GNU C library defines this for functions which it implements
5505 to always fail with ENOSYS. Some functions are actually named
5506 something starting with __ and the normal name is an alias. */
5507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5515 if { (eval echo configure:5516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5517 eval "ac_cv_func_$ac_func=yes"
5519 echo "configure: failed program was:" >&5
5520 cat conftest.$ac_ext >&5
5522 eval "ac_cv_func_$ac_func=no"
5527 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5528 echo "$ac_t""yes" 1>&6
5529 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5530 cat >> confdefs.h <<EOF
5531 #define $ac_tr_func 1
5535 echo "$ac_t""no" 1>&6
5539 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
5540 echo "configure:5541: checking for set_auth_parameters in -lsec" >&5
5541 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
5542 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5543 echo $ac_n "(cached) $ac_c" 1>&6
5545 ac_save_LIBS="$LIBS"
5547 cat > conftest.$ac_ext <<EOF
5548 #line 5549 "configure"
5549 #include "confdefs.h"
5550 /* Override any gcc2 internal prototype to avoid an error. */
5551 /* We use char because int might match the return type of a gcc2
5552 builtin and then its argument prototype would still apply. */
5553 char set_auth_parameters();
5556 set_auth_parameters()
5559 if { (eval echo configure:5560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5561 eval "ac_cv_lib_$ac_lib_var=yes"
5563 echo "configure: failed program was:" >&5
5564 cat conftest.$ac_ext >&5
5566 eval "ac_cv_lib_$ac_lib_var=no"
5569 LIBS="$ac_save_LIBS"
5572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5573 echo "$ac_t""yes" 1>&6
5574 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5575 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5576 cat >> confdefs.h <<EOF
5577 #define $ac_tr_lib 1
5583 echo "$ac_t""no" 1>&6
5586 for ac_func in set_auth_parameters
5588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5589 echo "configure:5590: checking for $ac_func" >&5
5590 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5591 echo $ac_n "(cached) $ac_c" 1>&6
5593 cat > conftest.$ac_ext <<EOF
5594 #line 5595 "configure"
5595 #include "confdefs.h"
5596 /* System header to define __stub macros and hopefully few prototypes,
5597 which can conflict with char $ac_func(); below. */
5599 /* Override any gcc2 internal prototype to avoid an error. */
5600 /* We use char because int might match the return type of a gcc2
5601 builtin and then its argument prototype would still apply. */
5606 /* The GNU C library defines this for functions which it implements
5607 to always fail with ENOSYS. Some functions are actually named
5608 something starting with __ and the normal name is an alias. */
5609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5617 if { (eval echo configure:5618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5619 eval "ac_cv_func_$ac_func=yes"
5621 echo "configure: failed program was:" >&5
5622 cat conftest.$ac_ext >&5
5624 eval "ac_cv_func_$ac_func=no"
5629 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5630 echo "$ac_t""yes" 1>&6
5631 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5632 cat >> confdefs.h <<EOF
5633 #define $ac_tr_func 1
5637 echo "$ac_t""no" 1>&6
5646 *-lsecurity*) for ac_func in getspnam
5648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5649 echo "configure:5650: checking for $ac_func" >&5
5650 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5651 echo $ac_n "(cached) $ac_c" 1>&6
5653 cat > conftest.$ac_ext <<EOF
5654 #line 5655 "configure"
5655 #include "confdefs.h"
5656 /* System header to define __stub macros and hopefully few prototypes,
5657 which can conflict with char $ac_func(); below. */
5659 /* Override any gcc2 internal prototype to avoid an error. */
5660 /* We use char because int might match the return type of a gcc2
5661 builtin and then its argument prototype would still apply. */
5666 /* The GNU C library defines this for functions which it implements
5667 to always fail with ENOSYS. Some functions are actually named
5668 something starting with __ and the normal name is an alias. */
5669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5677 if { (eval echo configure:5678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5679 eval "ac_cv_func_$ac_func=yes"
5681 echo "configure: failed program was:" >&5
5682 cat conftest.$ac_ext >&5
5684 eval "ac_cv_func_$ac_func=no"
5689 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5690 echo "$ac_t""yes" 1>&6
5691 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5692 cat >> confdefs.h <<EOF
5693 #define $ac_tr_func 1
5697 echo "$ac_t""no" 1>&6
5701 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
5702 echo "configure:5703: checking for getspnam in -lsecurity" >&5
5703 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
5704 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5705 echo $ac_n "(cached) $ac_c" 1>&6
5707 ac_save_LIBS="$LIBS"
5708 LIBS="-lsecurity $LIBS"
5709 cat > conftest.$ac_ext <<EOF
5710 #line 5711 "configure"
5711 #include "confdefs.h"
5712 /* Override any gcc2 internal prototype to avoid an error. */
5713 /* We use char because int might match the return type of a gcc2
5714 builtin and then its argument prototype would still apply. */
5721 if { (eval echo configure:5722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5723 eval "ac_cv_lib_$ac_lib_var=yes"
5725 echo "configure: failed program was:" >&5
5726 cat conftest.$ac_ext >&5
5728 eval "ac_cv_lib_$ac_lib_var=no"
5731 LIBS="$ac_save_LIBS"
5734 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5735 echo "$ac_t""yes" 1>&6
5736 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5737 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5738 cat >> confdefs.h <<EOF
5739 #define $ac_tr_lib 1
5742 LIBS="-lsecurity $LIBS"
5745 echo "$ac_t""no" 1>&6
5748 for ac_func in getspnam
5750 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5751 echo "configure:5752: checking for $ac_func" >&5
5752 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5753 echo $ac_n "(cached) $ac_c" 1>&6
5755 cat > conftest.$ac_ext <<EOF
5756 #line 5757 "configure"
5757 #include "confdefs.h"
5758 /* System header to define __stub macros and hopefully few prototypes,
5759 which can conflict with char $ac_func(); below. */
5761 /* Override any gcc2 internal prototype to avoid an error. */
5762 /* We use char because int might match the return type of a gcc2
5763 builtin and then its argument prototype would still apply. */
5768 /* The GNU C library defines this for functions which it implements
5769 to always fail with ENOSYS. Some functions are actually named
5770 something starting with __ and the normal name is an alias. */
5771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5779 if { (eval echo configure:5780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5781 eval "ac_cv_func_$ac_func=yes"
5783 echo "configure: failed program was:" >&5
5784 cat conftest.$ac_ext >&5
5786 eval "ac_cv_func_$ac_func=no"
5791 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5792 echo "$ac_t""yes" 1>&6
5793 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5794 cat >> confdefs.h <<EOF
5795 #define $ac_tr_func 1
5799 echo "$ac_t""no" 1>&6
5807 *-lsec*) for ac_func in getspnam
5809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5810 echo "configure:5811: checking for $ac_func" >&5
5811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5812 echo $ac_n "(cached) $ac_c" 1>&6
5814 cat > conftest.$ac_ext <<EOF
5815 #line 5816 "configure"
5816 #include "confdefs.h"
5817 /* System header to define __stub macros and hopefully few prototypes,
5818 which can conflict with char $ac_func(); below. */
5820 /* Override any gcc2 internal prototype to avoid an error. */
5821 /* We use char because int might match the return type of a gcc2
5822 builtin and then its argument prototype would still apply. */
5827 /* The GNU C library defines this for functions which it implements
5828 to always fail with ENOSYS. Some functions are actually named
5829 something starting with __ and the normal name is an alias. */
5830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5838 if { (eval echo configure:5839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5840 eval "ac_cv_func_$ac_func=yes"
5842 echo "configure: failed program was:" >&5
5843 cat conftest.$ac_ext >&5
5845 eval "ac_cv_func_$ac_func=no"
5850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5851 echo "$ac_t""yes" 1>&6
5852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5853 cat >> confdefs.h <<EOF
5854 #define $ac_tr_func 1
5858 echo "$ac_t""no" 1>&6
5862 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
5863 echo "configure:5864: checking for getspnam in -lsec" >&5
5864 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
5865 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5866 echo $ac_n "(cached) $ac_c" 1>&6
5868 ac_save_LIBS="$LIBS"
5870 cat > conftest.$ac_ext <<EOF
5871 #line 5872 "configure"
5872 #include "confdefs.h"
5873 /* Override any gcc2 internal prototype to avoid an error. */
5874 /* We use char because int might match the return type of a gcc2
5875 builtin and then its argument prototype would still apply. */
5882 if { (eval echo configure:5883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5884 eval "ac_cv_lib_$ac_lib_var=yes"
5886 echo "configure: failed program was:" >&5
5887 cat conftest.$ac_ext >&5
5889 eval "ac_cv_lib_$ac_lib_var=no"
5892 LIBS="$ac_save_LIBS"
5895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5896 echo "$ac_t""yes" 1>&6
5897 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5898 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5899 cat >> confdefs.h <<EOF
5900 #define $ac_tr_lib 1
5906 echo "$ac_t""no" 1>&6
5909 for ac_func in getspnam
5911 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5912 echo "configure:5913: checking for $ac_func" >&5
5913 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5914 echo $ac_n "(cached) $ac_c" 1>&6
5916 cat > conftest.$ac_ext <<EOF
5917 #line 5918 "configure"
5918 #include "confdefs.h"
5919 /* System header to define __stub macros and hopefully few prototypes,
5920 which can conflict with char $ac_func(); below. */
5922 /* Override any gcc2 internal prototype to avoid an error. */
5923 /* We use char because int might match the return type of a gcc2
5924 builtin and then its argument prototype would still apply. */
5929 /* The GNU C library defines this for functions which it implements
5930 to always fail with ENOSYS. Some functions are actually named
5931 something starting with __ and the normal name is an alias. */
5932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5940 if { (eval echo configure:5941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5942 eval "ac_cv_func_$ac_func=yes"
5944 echo "configure: failed program was:" >&5
5945 cat conftest.$ac_ext >&5
5947 eval "ac_cv_func_$ac_func=no"
5952 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5953 echo "$ac_t""yes" 1>&6
5954 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5955 cat >> confdefs.h <<EOF
5956 #define $ac_tr_func 1
5960 echo "$ac_t""no" 1>&6
5969 *-lsecurity*) for ac_func in bigcrypt
5971 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5972 echo "configure:5973: checking for $ac_func" >&5
5973 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5974 echo $ac_n "(cached) $ac_c" 1>&6
5976 cat > conftest.$ac_ext <<EOF
5977 #line 5978 "configure"
5978 #include "confdefs.h"
5979 /* System header to define __stub macros and hopefully few prototypes,
5980 which can conflict with char $ac_func(); below. */
5982 /* Override any gcc2 internal prototype to avoid an error. */
5983 /* We use char because int might match the return type of a gcc2
5984 builtin and then its argument prototype would still apply. */
5989 /* The GNU C library defines this for functions which it implements
5990 to always fail with ENOSYS. Some functions are actually named
5991 something starting with __ and the normal name is an alias. */
5992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6000 if { (eval echo configure:6001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6002 eval "ac_cv_func_$ac_func=yes"
6004 echo "configure: failed program was:" >&5
6005 cat conftest.$ac_ext >&5
6007 eval "ac_cv_func_$ac_func=no"
6012 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6013 echo "$ac_t""yes" 1>&6
6014 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6015 cat >> confdefs.h <<EOF
6016 #define $ac_tr_func 1
6020 echo "$ac_t""no" 1>&6
6024 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
6025 echo "configure:6026: checking for bigcrypt in -lsecurity" >&5
6026 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
6027 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6028 echo $ac_n "(cached) $ac_c" 1>&6
6030 ac_save_LIBS="$LIBS"
6031 LIBS="-lsecurity $LIBS"
6032 cat > conftest.$ac_ext <<EOF
6033 #line 6034 "configure"
6034 #include "confdefs.h"
6035 /* Override any gcc2 internal prototype to avoid an error. */
6036 /* We use char because int might match the return type of a gcc2
6037 builtin and then its argument prototype would still apply. */
6044 if { (eval echo configure:6045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6046 eval "ac_cv_lib_$ac_lib_var=yes"
6048 echo "configure: failed program was:" >&5
6049 cat conftest.$ac_ext >&5
6051 eval "ac_cv_lib_$ac_lib_var=no"
6054 LIBS="$ac_save_LIBS"
6057 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6058 echo "$ac_t""yes" 1>&6
6059 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6060 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6061 cat >> confdefs.h <<EOF
6062 #define $ac_tr_lib 1
6065 LIBS="-lsecurity $LIBS"
6068 echo "$ac_t""no" 1>&6
6071 for ac_func in bigcrypt
6073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6074 echo "configure:6075: checking for $ac_func" >&5
6075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6076 echo $ac_n "(cached) $ac_c" 1>&6
6078 cat > conftest.$ac_ext <<EOF
6079 #line 6080 "configure"
6080 #include "confdefs.h"
6081 /* System header to define __stub macros and hopefully few prototypes,
6082 which can conflict with char $ac_func(); below. */
6084 /* Override any gcc2 internal prototype to avoid an error. */
6085 /* We use char because int might match the return type of a gcc2
6086 builtin and then its argument prototype would still apply. */
6091 /* The GNU C library defines this for functions which it implements
6092 to always fail with ENOSYS. Some functions are actually named
6093 something starting with __ and the normal name is an alias. */
6094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6102 if { (eval echo configure:6103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6104 eval "ac_cv_func_$ac_func=yes"
6106 echo "configure: failed program was:" >&5
6107 cat conftest.$ac_ext >&5
6109 eval "ac_cv_func_$ac_func=no"
6114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6115 echo "$ac_t""yes" 1>&6
6116 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6117 cat >> confdefs.h <<EOF
6118 #define $ac_tr_func 1
6122 echo "$ac_t""no" 1>&6
6130 *-lsec*) for ac_func in bigcrypt
6132 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6133 echo "configure:6134: checking for $ac_func" >&5
6134 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6135 echo $ac_n "(cached) $ac_c" 1>&6
6137 cat > conftest.$ac_ext <<EOF
6138 #line 6139 "configure"
6139 #include "confdefs.h"
6140 /* System header to define __stub macros and hopefully few prototypes,
6141 which can conflict with char $ac_func(); below. */
6143 /* Override any gcc2 internal prototype to avoid an error. */
6144 /* We use char because int might match the return type of a gcc2
6145 builtin and then its argument prototype would still apply. */
6150 /* The GNU C library defines this for functions which it implements
6151 to always fail with ENOSYS. Some functions are actually named
6152 something starting with __ and the normal name is an alias. */
6153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6161 if { (eval echo configure:6162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6163 eval "ac_cv_func_$ac_func=yes"
6165 echo "configure: failed program was:" >&5
6166 cat conftest.$ac_ext >&5
6168 eval "ac_cv_func_$ac_func=no"
6173 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6174 echo "$ac_t""yes" 1>&6
6175 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6176 cat >> confdefs.h <<EOF
6177 #define $ac_tr_func 1
6181 echo "$ac_t""no" 1>&6
6185 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
6186 echo "configure:6187: checking for bigcrypt in -lsec" >&5
6187 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
6188 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6189 echo $ac_n "(cached) $ac_c" 1>&6
6191 ac_save_LIBS="$LIBS"
6193 cat > conftest.$ac_ext <<EOF
6194 #line 6195 "configure"
6195 #include "confdefs.h"
6196 /* Override any gcc2 internal prototype to avoid an error. */
6197 /* We use char because int might match the return type of a gcc2
6198 builtin and then its argument prototype would still apply. */
6205 if { (eval echo configure:6206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6207 eval "ac_cv_lib_$ac_lib_var=yes"
6209 echo "configure: failed program was:" >&5
6210 cat conftest.$ac_ext >&5
6212 eval "ac_cv_lib_$ac_lib_var=no"
6215 LIBS="$ac_save_LIBS"
6218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6219 echo "$ac_t""yes" 1>&6
6220 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6221 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6222 cat >> confdefs.h <<EOF
6223 #define $ac_tr_lib 1
6229 echo "$ac_t""no" 1>&6
6232 for ac_func in bigcrypt
6234 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6235 echo "configure:6236: checking for $ac_func" >&5
6236 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6237 echo $ac_n "(cached) $ac_c" 1>&6
6239 cat > conftest.$ac_ext <<EOF
6240 #line 6241 "configure"
6241 #include "confdefs.h"
6242 /* System header to define __stub macros and hopefully few prototypes,
6243 which can conflict with char $ac_func(); below. */
6245 /* Override any gcc2 internal prototype to avoid an error. */
6246 /* We use char because int might match the return type of a gcc2
6247 builtin and then its argument prototype would still apply. */
6252 /* The GNU C library defines this for functions which it implements
6253 to always fail with ENOSYS. Some functions are actually named
6254 something starting with __ and the normal name is an alias. */
6255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6263 if { (eval echo configure:6264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6265 eval "ac_cv_func_$ac_func=yes"
6267 echo "configure: failed program was:" >&5
6268 cat conftest.$ac_ext >&5
6270 eval "ac_cv_func_$ac_func=no"
6275 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6276 echo "$ac_t""yes" 1>&6
6277 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6278 cat >> confdefs.h <<EOF
6279 #define $ac_tr_func 1
6283 echo "$ac_t""no" 1>&6
6292 *-lsecurity*) for ac_func in getprpwnam
6294 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6295 echo "configure:6296: checking for $ac_func" >&5
6296 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6297 echo $ac_n "(cached) $ac_c" 1>&6
6299 cat > conftest.$ac_ext <<EOF
6300 #line 6301 "configure"
6301 #include "confdefs.h"
6302 /* System header to define __stub macros and hopefully few prototypes,
6303 which can conflict with char $ac_func(); below. */
6305 /* Override any gcc2 internal prototype to avoid an error. */
6306 /* We use char because int might match the return type of a gcc2
6307 builtin and then its argument prototype would still apply. */
6312 /* The GNU C library defines this for functions which it implements
6313 to always fail with ENOSYS. Some functions are actually named
6314 something starting with __ and the normal name is an alias. */
6315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6323 if { (eval echo configure:6324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6325 eval "ac_cv_func_$ac_func=yes"
6327 echo "configure: failed program was:" >&5
6328 cat conftest.$ac_ext >&5
6330 eval "ac_cv_func_$ac_func=no"
6335 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6336 echo "$ac_t""yes" 1>&6
6337 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6338 cat >> confdefs.h <<EOF
6339 #define $ac_tr_func 1
6343 echo "$ac_t""no" 1>&6
6347 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
6348 echo "configure:6349: checking for getprpwnam in -lsecurity" >&5
6349 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
6350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6351 echo $ac_n "(cached) $ac_c" 1>&6
6353 ac_save_LIBS="$LIBS"
6354 LIBS="-lsecurity $LIBS"
6355 cat > conftest.$ac_ext <<EOF
6356 #line 6357 "configure"
6357 #include "confdefs.h"
6358 /* Override any gcc2 internal prototype to avoid an error. */
6359 /* We use char because int might match the return type of a gcc2
6360 builtin and then its argument prototype would still apply. */
6367 if { (eval echo configure:6368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6369 eval "ac_cv_lib_$ac_lib_var=yes"
6371 echo "configure: failed program was:" >&5
6372 cat conftest.$ac_ext >&5
6374 eval "ac_cv_lib_$ac_lib_var=no"
6377 LIBS="$ac_save_LIBS"
6380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6381 echo "$ac_t""yes" 1>&6
6382 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6383 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6384 cat >> confdefs.h <<EOF
6385 #define $ac_tr_lib 1
6388 LIBS="-lsecurity $LIBS"
6391 echo "$ac_t""no" 1>&6
6394 for ac_func in getprpwnam
6396 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6397 echo "configure:6398: checking for $ac_func" >&5
6398 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6399 echo $ac_n "(cached) $ac_c" 1>&6
6401 cat > conftest.$ac_ext <<EOF
6402 #line 6403 "configure"
6403 #include "confdefs.h"
6404 /* System header to define __stub macros and hopefully few prototypes,
6405 which can conflict with char $ac_func(); below. */
6407 /* Override any gcc2 internal prototype to avoid an error. */
6408 /* We use char because int might match the return type of a gcc2
6409 builtin and then its argument prototype would still apply. */
6414 /* The GNU C library defines this for functions which it implements
6415 to always fail with ENOSYS. Some functions are actually named
6416 something starting with __ and the normal name is an alias. */
6417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6425 if { (eval echo configure:6426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6427 eval "ac_cv_func_$ac_func=yes"
6429 echo "configure: failed program was:" >&5
6430 cat conftest.$ac_ext >&5
6432 eval "ac_cv_func_$ac_func=no"
6437 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6438 echo "$ac_t""yes" 1>&6
6439 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6440 cat >> confdefs.h <<EOF
6441 #define $ac_tr_func 1
6445 echo "$ac_t""no" 1>&6
6453 *-lsec*) for ac_func in getprpwnam
6455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6456 echo "configure:6457: checking for $ac_func" >&5
6457 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6458 echo $ac_n "(cached) $ac_c" 1>&6
6460 cat > conftest.$ac_ext <<EOF
6461 #line 6462 "configure"
6462 #include "confdefs.h"
6463 /* System header to define __stub macros and hopefully few prototypes,
6464 which can conflict with char $ac_func(); below. */
6466 /* Override any gcc2 internal prototype to avoid an error. */
6467 /* We use char because int might match the return type of a gcc2
6468 builtin and then its argument prototype would still apply. */
6473 /* The GNU C library defines this for functions which it implements
6474 to always fail with ENOSYS. Some functions are actually named
6475 something starting with __ and the normal name is an alias. */
6476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6484 if { (eval echo configure:6485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6486 eval "ac_cv_func_$ac_func=yes"
6488 echo "configure: failed program was:" >&5
6489 cat conftest.$ac_ext >&5
6491 eval "ac_cv_func_$ac_func=no"
6496 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6497 echo "$ac_t""yes" 1>&6
6498 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6499 cat >> confdefs.h <<EOF
6500 #define $ac_tr_func 1
6504 echo "$ac_t""no" 1>&6
6508 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
6509 echo "configure:6510: checking for getprpwnam in -lsec" >&5
6510 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
6511 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6512 echo $ac_n "(cached) $ac_c" 1>&6
6514 ac_save_LIBS="$LIBS"
6516 cat > conftest.$ac_ext <<EOF
6517 #line 6518 "configure"
6518 #include "confdefs.h"
6519 /* Override any gcc2 internal prototype to avoid an error. */
6520 /* We use char because int might match the return type of a gcc2
6521 builtin and then its argument prototype would still apply. */
6528 if { (eval echo configure:6529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6530 eval "ac_cv_lib_$ac_lib_var=yes"
6532 echo "configure: failed program was:" >&5
6533 cat conftest.$ac_ext >&5
6535 eval "ac_cv_lib_$ac_lib_var=no"
6538 LIBS="$ac_save_LIBS"
6541 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6542 echo "$ac_t""yes" 1>&6
6543 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6544 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6545 cat >> confdefs.h <<EOF
6546 #define $ac_tr_lib 1
6552 echo "$ac_t""no" 1>&6
6555 for ac_func in getprpwnam
6557 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6558 echo "configure:6559: checking for $ac_func" >&5
6559 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6560 echo $ac_n "(cached) $ac_c" 1>&6
6562 cat > conftest.$ac_ext <<EOF
6563 #line 6564 "configure"
6564 #include "confdefs.h"
6565 /* System header to define __stub macros and hopefully few prototypes,
6566 which can conflict with char $ac_func(); below. */
6568 /* Override any gcc2 internal prototype to avoid an error. */
6569 /* We use char because int might match the return type of a gcc2
6570 builtin and then its argument prototype would still apply. */
6575 /* The GNU C library defines this for functions which it implements
6576 to always fail with ENOSYS. Some functions are actually named
6577 something starting with __ and the normal name is an alias. */
6578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6586 if { (eval echo configure:6587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6588 eval "ac_cv_func_$ac_func=yes"
6590 echo "configure: failed program was:" >&5
6591 cat conftest.$ac_ext >&5
6593 eval "ac_cv_func_$ac_func=no"
6598 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6599 echo "$ac_t""yes" 1>&6
6600 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6601 cat >> confdefs.h <<EOF
6602 #define $ac_tr_func 1
6606 echo "$ac_t""no" 1>&6
6614 # this bit needs to be modified for each OS that is suported by
6615 # smbwrapper. You need to specify how to created a shared library and
6616 # how to compile C code to produce PIC object files
6618 # these are the defaults, good for lots of systems
6622 # and these are for particular systems
6624 *linux*) cat >> confdefs.h <<\EOF
6628 *solaris*) cat >> confdefs.h <<\EOF
6634 *sunos*) cat >> confdefs.h <<\EOF
6640 *bsd*) LDSHFLAGS="-shared -Bshareable"
6642 *irix*) cat >> confdefs.h <<\EOF
6646 ATTEMPT_WRAP32_BUILD=yes
6648 *aix*) cat >> confdefs.h <<\EOF
6652 *hpux*) cat >> confdefs.h <<\EOF
6656 *qnx*) cat >> confdefs.h <<\EOF
6660 *osf*) cat >> confdefs.h <<\EOF
6664 *sco*) cat >> confdefs.h <<\EOF
6668 *next2*) cat >> confdefs.h <<\EOF
6672 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
6673 set dummy groff; ac_word=$2
6674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6675 echo "configure:6676: checking for $ac_word" >&5
6676 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
6677 echo $ac_n "(cached) $ac_c" 1>&6
6679 if test -n "$ROFF"; then
6680 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
6682 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6683 for ac_dir in $PATH; do
6684 test -z "$ac_dir" && ac_dir=.
6685 if test -f $ac_dir/$ac_word; then
6686 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
6693 ROFF="$ac_cv_prog_ROFF"
6694 if test -n "$ROFF"; then
6695 echo "$ac_t""$ROFF" 1>&6
6697 echo "$ac_t""no" 1>&6
6700 *sysv4.2*) echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6701 echo "configure:6702: checking for strcasecmp in -lresolv" >&5
6702 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6703 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6704 echo $ac_n "(cached) $ac_c" 1>&6
6706 ac_save_LIBS="$LIBS"
6707 LIBS="-lresolv $LIBS"
6708 cat > conftest.$ac_ext <<EOF
6709 #line 6710 "configure"
6710 #include "confdefs.h"
6711 /* Override any gcc2 internal prototype to avoid an error. */
6712 /* We use char because int might match the return type of a gcc2
6713 builtin and then its argument prototype would still apply. */
6720 if { (eval echo configure:6721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6722 eval "ac_cv_lib_$ac_lib_var=yes"
6724 echo "configure: failed program was:" >&5
6725 cat conftest.$ac_ext >&5
6727 eval "ac_cv_lib_$ac_lib_var=no"
6730 LIBS="$ac_save_LIBS"
6733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6734 echo "$ac_t""yes" 1>&6
6735 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6736 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6737 cat >> confdefs.h <<EOF
6738 #define $ac_tr_lib 1
6741 LIBS="-lresolv $LIBS"
6744 echo "$ac_t""no" 1>&6
6749 # try to work out how to produce pic code with this compiler
6751 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
6752 echo "configure:6753: checking whether ${CC-cc} accepts -fpic" >&5
6753 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
6754 echo $ac_n "(cached) $ac_c" 1>&6
6756 echo 'void f(){}' > conftest.c
6757 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
6758 ac_cv_prog_cc_fpic=yes
6760 ac_cv_prog_cc_fpic=no
6766 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
6767 if test $ac_cv_prog_cc_fpic = yes; then
6770 if test x$PICFLAG = x; then
6771 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
6772 echo "configure:6773: checking whether ${CC-cc} accepts -Kpic" >&5
6773 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
6774 echo $ac_n "(cached) $ac_c" 1>&6
6776 echo 'void f(){}' > conftest.c
6777 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
6778 ac_cv_prog_cc_Kpic=yes
6780 ac_cv_prog_cc_Kpic=no
6786 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
6787 if test $ac_cv_prog_cc_Kpic = yes; then
6791 if test x$PICFLAG = x; then
6792 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
6793 echo "configure:6794: checking whether ${CC-cc} accepts -KPIC" >&5
6794 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
6795 echo $ac_n "(cached) $ac_c" 1>&6
6797 echo 'void f(){}' > conftest.c
6798 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
6799 ac_cv_prog_cc_KPIC=yes
6801 ac_cv_prog_cc_KPIC=no
6807 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
6808 if test $ac_cv_prog_cc_KPIC = yes; then
6815 echo $ac_n "checking for long long""... $ac_c" 1>&6
6816 echo "configure:6817: checking for long long" >&5
6817 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
6818 echo $ac_n "(cached) $ac_c" 1>&6
6821 if test "$cross_compiling" = yes; then
6822 samba_cv_have_longlong=cross
6824 cat > conftest.$ac_ext <<EOF
6825 #line 6826 "configure"
6826 #include "confdefs.h"
6828 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
6830 if { (eval echo configure:6831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6832 samba_cv_have_longlong=yes
6834 echo "configure: failed program was:" >&5
6835 cat conftest.$ac_ext >&5
6837 samba_cv_have_longlong=no
6844 echo "$ac_t""$samba_cv_have_longlong" 1>&6
6845 if test x"$samba_cv_have_longlong" = x"yes"; then
6846 cat >> confdefs.h <<\EOF
6847 #define HAVE_LONGLONG 1
6852 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
6853 echo "configure:6854: checking for 64 bit off_t" >&5
6854 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
6855 echo $ac_n "(cached) $ac_c" 1>&6
6858 if test "$cross_compiling" = yes; then
6859 samba_cv_SIZEOF_OFF_T=cross
6861 cat > conftest.$ac_ext <<EOF
6862 #line 6863 "configure"
6863 #include "confdefs.h"
6865 #include <sys/stat.h>
6866 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
6868 if { (eval echo configure:6869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6870 samba_cv_SIZEOF_OFF_T=yes
6872 echo "configure: failed program was:" >&5
6873 cat conftest.$ac_ext >&5
6875 samba_cv_SIZEOF_OFF_T=no
6882 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
6883 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
6884 cat >> confdefs.h <<\EOF
6885 #define SIZEOF_OFF_T 8
6890 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
6891 echo "configure:6892: checking for off64_t" >&5
6892 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
6893 echo $ac_n "(cached) $ac_c" 1>&6
6896 if test "$cross_compiling" = yes; then
6897 samba_cv_HAVE_OFF64_T=cross
6899 cat > conftest.$ac_ext <<EOF
6900 #line 6901 "configure"
6901 #include "confdefs.h"
6903 #include <sys/stat.h>
6904 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
6906 if { (eval echo configure:6907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6908 samba_cv_HAVE_OFF64_T=yes
6910 echo "configure: failed program was:" >&5
6911 cat conftest.$ac_ext >&5
6913 samba_cv_HAVE_OFF64_T=no
6920 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
6921 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
6922 cat >> confdefs.h <<\EOF
6923 #define HAVE_OFF64_T 1
6928 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
6929 echo "configure:6930: checking for 64 bit ino_t" >&5
6930 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
6931 echo $ac_n "(cached) $ac_c" 1>&6
6934 if test "$cross_compiling" = yes; then
6935 samba_cv_SIZEOF_INO_T=cross
6937 cat > conftest.$ac_ext <<EOF
6938 #line 6939 "configure"
6939 #include "confdefs.h"
6941 #include <sys/stat.h>
6942 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
6944 if { (eval echo configure:6945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6946 samba_cv_SIZEOF_INO_T=yes
6948 echo "configure: failed program was:" >&5
6949 cat conftest.$ac_ext >&5
6951 samba_cv_SIZEOF_INO_T=no
6958 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
6959 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
6960 cat >> confdefs.h <<\EOF
6961 #define SIZEOF_INO_T 8
6966 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
6967 echo "configure:6968: checking for ino64_t" >&5
6968 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
6969 echo $ac_n "(cached) $ac_c" 1>&6
6972 if test "$cross_compiling" = yes; then
6973 samba_cv_HAVE_INO64_T=cross
6975 cat > conftest.$ac_ext <<EOF
6976 #line 6977 "configure"
6977 #include "confdefs.h"
6979 #include <sys/stat.h>
6980 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
6982 if { (eval echo configure:6983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6984 samba_cv_HAVE_INO64_T=yes
6986 echo "configure: failed program was:" >&5
6987 cat conftest.$ac_ext >&5
6989 samba_cv_HAVE_INO64_T=no
6996 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
6997 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
6998 cat >> confdefs.h <<\EOF
6999 #define HAVE_INO64_T 1
7004 echo $ac_n "checking for union semun""... $ac_c" 1>&6
7005 echo "configure:7006: checking for union semun" >&5
7006 if eval "test \"`echo '$''{'samba_cv_HAVE_UNION_SEMUN'+set}'`\" = set"; then
7007 echo $ac_n "(cached) $ac_c" 1>&6
7010 if test "$cross_compiling" = yes; then
7011 samba_cv_HAVE_UNION_SEMUN=cross
7013 cat > conftest.$ac_ext <<EOF
7014 #line 7015 "configure"
7015 #include "confdefs.h"
7017 #include <sys/types.h>
7018 #include <sys/ipc.h>
7019 #include <sys/sem.h>
7020 main() { union semun ss; exit(0); }
7022 if { (eval echo configure:7023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7024 samba_cv_HAVE_UNION_SEMUN=yes
7026 echo "configure: failed program was:" >&5
7027 cat conftest.$ac_ext >&5
7029 samba_cv_HAVE_UNION_SEMUN=no
7036 echo "$ac_t""$samba_cv_HAVE_UNION_SEMUN" 1>&6
7037 if test x"$samba_cv_HAVE_UNION_SEMUN" = x"yes"; then
7038 cat >> confdefs.h <<\EOF
7039 #define HAVE_UNION_SEMUN 1
7044 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
7045 echo "configure:7046: checking for unsigned char" >&5
7046 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
7047 echo $ac_n "(cached) $ac_c" 1>&6
7050 if test "$cross_compiling" = yes; then
7051 samba_cv_HAVE_UNSIGNED_CHAR=cross
7053 cat > conftest.$ac_ext <<EOF
7054 #line 7055 "configure"
7055 #include "confdefs.h"
7057 main() { char c; c=250; exit((c > 0)?0:1); }
7059 if { (eval echo configure:7060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7061 samba_cv_HAVE_UNSIGNED_CHAR=yes
7063 echo "configure: failed program was:" >&5
7064 cat conftest.$ac_ext >&5
7066 samba_cv_HAVE_UNSIGNED_CHAR=no
7073 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
7074 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
7075 cat >> confdefs.h <<\EOF
7076 #define HAVE_UNSIGNED_CHAR 1
7081 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
7082 echo "configure:7083: checking for sin_len in sock" >&5
7083 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
7084 echo $ac_n "(cached) $ac_c" 1>&6
7087 cat > conftest.$ac_ext <<EOF
7088 #line 7089 "configure"
7089 #include "confdefs.h"
7090 #include <sys/types.h>
7091 #include <sys/socket.h>
7092 #include <netinet/in.h>
7094 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
7097 if { (eval echo configure:7098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7099 samba_cv_HAVE_SOCK_SIN_LEN=yes
7101 echo "configure: failed program was:" >&5
7102 cat conftest.$ac_ext >&5
7104 samba_cv_HAVE_SOCK_SIN_LEN=no
7109 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
7110 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
7111 cat >> confdefs.h <<\EOF
7112 #define HAVE_SOCK_SIN_LEN 1
7117 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
7118 echo "configure:7119: checking whether seekdir returns void" >&5
7119 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
7120 echo $ac_n "(cached) $ac_c" 1>&6
7123 cat > conftest.$ac_ext <<EOF
7124 #line 7125 "configure"
7125 #include "confdefs.h"
7126 #include <sys/types.h>
7128 void seekdir(DIR *d, long loc) { return; }
7133 if { (eval echo configure:7134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7135 samba_cv_SEEKDIR_RETURNS_VOID=yes
7137 echo "configure: failed program was:" >&5
7138 cat conftest.$ac_ext >&5
7140 samba_cv_SEEKDIR_RETURNS_VOID=no
7145 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
7146 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
7147 cat >> confdefs.h <<\EOF
7148 #define SEEKDIR_RETURNS_VOID 1
7153 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
7154 echo "configure:7155: checking for __FILE__ macro" >&5
7155 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
7156 echo $ac_n "(cached) $ac_c" 1>&6
7159 cat > conftest.$ac_ext <<EOF
7160 #line 7161 "configure"
7161 #include "confdefs.h"
7164 printf("%s\n", __FILE__);
7167 if { (eval echo configure:7168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7169 samba_cv_HAVE_FILE_MACRO=yes
7171 echo "configure: failed program was:" >&5
7172 cat conftest.$ac_ext >&5
7174 samba_cv_HAVE_FILE_MACRO=no
7179 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
7180 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
7181 cat >> confdefs.h <<\EOF
7182 #define HAVE_FILE_MACRO 1
7187 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
7188 echo "configure:7189: checking for __FUNCTION__ macro" >&5
7189 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
7190 echo $ac_n "(cached) $ac_c" 1>&6
7193 cat > conftest.$ac_ext <<EOF
7194 #line 7195 "configure"
7195 #include "confdefs.h"
7198 printf("%s\n", __FUNCTION__);
7201 if { (eval echo configure:7202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7203 samba_cv_HAVE_FUNCTION_MACRO=yes
7205 echo "configure: failed program was:" >&5
7206 cat conftest.$ac_ext >&5
7208 samba_cv_HAVE_FUNCTION_MACRO=no
7213 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
7214 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
7215 cat >> confdefs.h <<\EOF
7216 #define HAVE_FUNCTION_MACRO 1
7221 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
7222 echo "configure:7223: checking if gettimeofday takes tz argument" >&5
7223 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
7224 echo $ac_n "(cached) $ac_c" 1>&6
7227 if test "$cross_compiling" = yes; then
7228 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
7230 cat > conftest.$ac_ext <<EOF
7231 #line 7232 "configure"
7232 #include "confdefs.h"
7234 #include <sys/time.h>
7236 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
7238 if { (eval echo configure:7239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7240 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
7242 echo "configure: failed program was:" >&5
7243 cat conftest.$ac_ext >&5
7245 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
7252 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
7253 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
7254 cat >> confdefs.h <<\EOF
7255 #define HAVE_GETTIMEOFDAY_TZ 1
7261 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
7262 echo "configure:7263: checking for broken readdir" >&5
7263 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
7264 echo $ac_n "(cached) $ac_c" 1>&6
7267 if test "$cross_compiling" = yes; then
7268 samba_cv_HAVE_BROKEN_READDIR=cross
7270 cat > conftest.$ac_ext <<EOF
7271 #line 7272 "configure"
7272 #include "confdefs.h"
7273 #include <sys/types.h>
7275 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
7276 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
7277 di->d_name[0] == 0) exit(0); exit(1);}
7279 if { (eval echo configure:7280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7281 samba_cv_HAVE_BROKEN_READDIR=yes
7283 echo "configure: failed program was:" >&5
7284 cat conftest.$ac_ext >&5
7286 samba_cv_HAVE_BROKEN_READDIR=no
7293 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
7294 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
7295 cat >> confdefs.h <<\EOF
7296 #define HAVE_BROKEN_READDIR 1
7301 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
7302 echo "configure:7303: checking for utimbuf" >&5
7303 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
7304 echo $ac_n "(cached) $ac_c" 1>&6
7307 cat > conftest.$ac_ext <<EOF
7308 #line 7309 "configure"
7309 #include "confdefs.h"
7310 #include <sys/types.h>
7313 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
7316 if { (eval echo configure:7317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7318 samba_cv_HAVE_UTIMBUF=yes
7320 echo "configure: failed program was:" >&5
7321 cat conftest.$ac_ext >&5
7323 samba_cv_HAVE_UTIMBUF=no
7328 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
7329 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
7330 cat >> confdefs.h <<\EOF
7331 #define HAVE_UTIMBUF 1
7336 echo $ac_n "checking for kernel oplock type definitions""... $ac_c" 1>&6
7337 echo "configure:7338: checking for kernel oplock type definitions" >&5
7338 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS'+set}'`\" = set"; then
7339 echo $ac_n "(cached) $ac_c" 1>&6
7342 cat > conftest.$ac_ext <<EOF
7343 #line 7344 "configure"
7344 #include "confdefs.h"
7345 #include <sys/types.h>
7348 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
7351 if { (eval echo configure:7352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7353 samba_cv_HAVE_KERNEL_OPLOCKS=yes
7355 echo "configure: failed program was:" >&5
7356 cat conftest.$ac_ext >&5
7358 samba_cv_HAVE_KERNEL_OPLOCKS=no
7363 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS" 1>&6
7364 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS" = x"yes"; then
7365 cat >> confdefs.h <<\EOF
7366 #define HAVE_KERNEL_OPLOCKS 1
7371 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
7372 echo "configure:7373: checking for irix specific capabilities" >&5
7373 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
7374 echo $ac_n "(cached) $ac_c" 1>&6
7377 if test "$cross_compiling" = yes; then
7378 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
7380 cat > conftest.$ac_ext <<EOF
7381 #line 7382 "configure"
7382 #include "confdefs.h"
7383 #include <sys/types.h>
7384 #include <sys/capability.h>
7387 if ((cap = cap_get_proc()) == NULL)
7389 cap->cap_effective |= CAP_NETWORK_MGT;
7390 cap->cap_inheritable |= CAP_NETWORK_MGT;
7396 if { (eval echo configure:7397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7398 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
7400 echo "configure: failed program was:" >&5
7401 cat conftest.$ac_ext >&5
7403 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
7410 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
7411 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
7412 cat >> confdefs.h <<\EOF
7413 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
7419 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
7420 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
7423 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7424 echo "configure:7425: checking for int16 typedef included by rpc/rpc.h" >&5
7425 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
7426 echo $ac_n "(cached) $ac_c" 1>&6
7429 cat > conftest.$ac_ext <<EOF
7430 #line 7431 "configure"
7431 #include "confdefs.h"
7432 #include <sys/types.h>
7433 #if defined(HAVE_RPC_RPC_H)
7434 #include <rpc/rpc.h>
7440 if { (eval echo configure:7441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7442 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
7444 echo "configure: failed program was:" >&5
7445 cat conftest.$ac_ext >&5
7447 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
7452 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
7453 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
7454 cat >> confdefs.h <<\EOF
7455 #define HAVE_INT16_FROM_RPC_RPC_H 1
7460 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7461 echo "configure:7462: checking for uint16 typedef included by rpc/rpc.h" >&5
7462 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
7463 echo $ac_n "(cached) $ac_c" 1>&6
7466 cat > conftest.$ac_ext <<EOF
7467 #line 7468 "configure"
7468 #include "confdefs.h"
7469 #include <sys/types.h>
7470 #if defined(HAVE_RPC_RPC_H)
7471 #include <rpc/rpc.h>
7477 if { (eval echo configure:7478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7479 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
7481 echo "configure: failed program was:" >&5
7482 cat conftest.$ac_ext >&5
7484 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
7489 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
7490 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
7491 cat >> confdefs.h <<\EOF
7492 #define HAVE_UINT16_FROM_RPC_RPC_H 1
7497 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7498 echo "configure:7499: checking for int32 typedef included by rpc/rpc.h" >&5
7499 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
7500 echo $ac_n "(cached) $ac_c" 1>&6
7503 cat > conftest.$ac_ext <<EOF
7504 #line 7505 "configure"
7505 #include "confdefs.h"
7506 #include <sys/types.h>
7507 #if defined(HAVE_RPC_RPC_H)
7508 #include <rpc/rpc.h>
7514 if { (eval echo configure:7515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7516 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
7518 echo "configure: failed program was:" >&5
7519 cat conftest.$ac_ext >&5
7521 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
7526 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
7527 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
7528 cat >> confdefs.h <<\EOF
7529 #define HAVE_INT32_FROM_RPC_RPC_H 1
7534 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7535 echo "configure:7536: checking for uint32 typedef included by rpc/rpc.h" >&5
7536 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
7537 echo $ac_n "(cached) $ac_c" 1>&6
7540 cat > conftest.$ac_ext <<EOF
7541 #line 7542 "configure"
7542 #include "confdefs.h"
7543 #include <sys/types.h>
7544 #if defined(HAVE_RPC_RPC_H)
7545 #include <rpc/rpc.h>
7551 if { (eval echo configure:7552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7553 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
7555 echo "configure: failed program was:" >&5
7556 cat conftest.$ac_ext >&5
7558 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
7563 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
7564 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
7565 cat >> confdefs.h <<\EOF
7566 #define HAVE_UINT32_FROM_RPC_RPC_H 1
7571 echo $ac_n "checking for test routines""... $ac_c" 1>&6
7572 echo "configure:7573: checking for test routines" >&5
7573 if test "$cross_compiling" = yes; then
7574 echo "configure: warning: cannot run when cross-compiling" 1>&2
7576 cat > conftest.$ac_ext <<EOF
7577 #line 7578 "configure"
7578 #include "confdefs.h"
7579 #include "${srcdir-.}/tests/trivial.c"
7581 if { (eval echo configure:7582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7583 echo "$ac_t""yes" 1>&6
7585 echo "configure: failed program was:" >&5
7586 cat conftest.$ac_ext >&5
7588 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
7594 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
7595 echo "configure:7596: checking for ftruncate extend" >&5
7596 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
7597 echo $ac_n "(cached) $ac_c" 1>&6
7600 if test "$cross_compiling" = yes; then
7601 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
7603 cat > conftest.$ac_ext <<EOF
7604 #line 7605 "configure"
7605 #include "confdefs.h"
7606 #include "${srcdir-.}/tests/ftruncate.c"
7608 if { (eval echo configure:7609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7610 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
7612 echo "configure: failed program was:" >&5
7613 cat conftest.$ac_ext >&5
7615 samba_cv_HAVE_FTRUNCATE_EXTEND=no
7622 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
7623 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
7624 cat >> confdefs.h <<\EOF
7625 #define HAVE_FTRUNCATE_EXTEND 1
7630 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
7631 echo "configure:7632: checking for broken getgroups" >&5
7632 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
7633 echo $ac_n "(cached) $ac_c" 1>&6
7636 if test "$cross_compiling" = yes; then
7637 samba_cv_HAVE_BROKEN_GETGROUPS=cross
7639 cat > conftest.$ac_ext <<EOF
7640 #line 7641 "configure"
7641 #include "confdefs.h"
7642 #include "${srcdir-.}/tests/getgroups.c"
7644 if { (eval echo configure:7645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7646 samba_cv_HAVE_BROKEN_GETGROUPS=yes
7648 echo "configure: failed program was:" >&5
7649 cat conftest.$ac_ext >&5
7651 samba_cv_HAVE_BROKEN_GETGROUPS=no
7658 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
7659 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
7660 cat >> confdefs.h <<\EOF
7661 #define HAVE_BROKEN_GETGROUPS 1
7666 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
7667 echo "configure:7668: checking whether getpass should be replaced" >&5
7668 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
7669 echo $ac_n "(cached) $ac_c" 1>&6
7672 SAVE_CPPFLAGS="$CPPFLAGS"
7673 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx"
7674 cat > conftest.$ac_ext <<EOF
7675 #line 7676 "configure"
7676 #include "confdefs.h"
7678 #define REPLACE_GETPASS 1
7679 #define NO_CONFIG_H 1
7680 #define main dont_declare_main
7681 #include "${srcdir-.}/lib/getsmbpass.c"
7688 if { (eval echo configure:7689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7690 samba_cv_REPLACE_GETPASS=yes
7692 echo "configure: failed program was:" >&5
7693 cat conftest.$ac_ext >&5
7695 samba_cv_REPLACE_GETPASS=no
7698 CPPFLAGS="$SAVE_CPPFLAGS"
7702 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
7703 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
7704 cat >> confdefs.h <<\EOF
7705 #define REPLACE_GETPASS 1
7710 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
7711 echo "configure:7712: checking for broken inet_ntoa" >&5
7712 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
7713 echo $ac_n "(cached) $ac_c" 1>&6
7716 if test "$cross_compiling" = yes; then
7717 samba_cv_REPLACE_INET_NTOA=cross
7719 cat > conftest.$ac_ext <<EOF
7720 #line 7721 "configure"
7721 #include "confdefs.h"
7724 #include <sys/types.h>
7725 #include <netinet/in.h>
7726 #include <arpa/inet.h>
7727 main() { struct in_addr ip; ip.s_addr = 0x12345678;
7728 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
7729 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
7732 if { (eval echo configure:7733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7734 samba_cv_REPLACE_INET_NTOA=yes
7736 echo "configure: failed program was:" >&5
7737 cat conftest.$ac_ext >&5
7739 samba_cv_REPLACE_INET_NTOA=no
7746 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
7747 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
7748 cat >> confdefs.h <<\EOF
7749 #define REPLACE_INET_NTOA 1
7754 echo $ac_n "checking for root""... $ac_c" 1>&6
7755 echo "configure:7756: checking for root" >&5
7756 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
7757 echo $ac_n "(cached) $ac_c" 1>&6
7760 if test "$cross_compiling" = yes; then
7761 samba_cv_HAVE_ROOT=cross
7763 cat > conftest.$ac_ext <<EOF
7764 #line 7765 "configure"
7765 #include "confdefs.h"
7766 main() { exit(getuid() != 0); }
7768 if { (eval echo configure:7769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7770 samba_cv_HAVE_ROOT=yes
7772 echo "configure: failed program was:" >&5
7773 cat conftest.$ac_ext >&5
7775 samba_cv_HAVE_ROOT=no
7782 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
7783 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
7784 cat >> confdefs.h <<\EOF
7789 echo "configure: warning: running as non-root will disable some tests" 1>&2
7793 echo $ac_n "checking for netmask ifconf""... $ac_c" 1>&6
7794 echo "configure:7795: checking for netmask ifconf" >&5
7795 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFCONF'+set}'`\" = set"; then
7796 echo $ac_n "(cached) $ac_c" 1>&6
7799 if test "$cross_compiling" = yes; then
7800 samba_cv_HAVE_NETMASK_IFCONF=cross
7802 cat > conftest.$ac_ext <<EOF
7803 #line 7804 "configure"
7804 #include "confdefs.h"
7806 #define HAVE_NETMASK_IFCONF 1
7808 #include "${srcdir-.}/lib/netmask.c"
7810 if { (eval echo configure:7811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7812 samba_cv_HAVE_NETMASK_IFCONF=yes
7814 echo "configure: failed program was:" >&5
7815 cat conftest.$ac_ext >&5
7817 samba_cv_HAVE_NETMASK_IFCONF=no
7824 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFCONF" 1>&6
7825 if test x"$samba_cv_HAVE_NETMASK_IFCONF" = x"yes"; then
7826 netmask=yes;cat >> confdefs.h <<\EOF
7827 #define HAVE_NETMASK_IFCONF 1
7832 if test $netmask = no; then
7833 echo $ac_n "checking for netmask ifreq""... $ac_c" 1>&6
7834 echo "configure:7835: checking for netmask ifreq" >&5
7835 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFREQ'+set}'`\" = set"; then
7836 echo $ac_n "(cached) $ac_c" 1>&6
7839 if test "$cross_compiling" = yes; then
7840 samba_cv_HAVE_NETMASK_IFREQ=cross
7842 cat > conftest.$ac_ext <<EOF
7843 #line 7844 "configure"
7844 #include "confdefs.h"
7846 #define HAVE_NETMASK_IFREQ 1
7848 #include "${srcdir-.}/lib/netmask.c"
7850 if { (eval echo configure:7851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7852 samba_cv_HAVE_NETMASK_IFREQ=yes
7854 echo "configure: failed program was:" >&5
7855 cat conftest.$ac_ext >&5
7857 samba_cv_HAVE_NETMASK_IFREQ=no
7864 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFREQ" 1>&6
7865 if test x"$samba_cv_HAVE_NETMASK_IFREQ" = x"yes"; then
7866 netmask=yes;cat >> confdefs.h <<\EOF
7867 #define HAVE_NETMASK_IFREQ 1
7873 if test $netmask = no; then
7874 echo $ac_n "checking for netmask AIX""... $ac_c" 1>&6
7875 echo "configure:7876: checking for netmask AIX" >&5
7876 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_AIX'+set}'`\" = set"; then
7877 echo $ac_n "(cached) $ac_c" 1>&6
7880 if test "$cross_compiling" = yes; then
7881 samba_cv_HAVE_NETMASK_AIX=cross
7883 cat > conftest.$ac_ext <<EOF
7884 #line 7885 "configure"
7885 #include "confdefs.h"
7887 #define HAVE_NETMASK_AIX 1
7889 #include "${srcdir-.}/lib/netmask.c"
7891 if { (eval echo configure:7892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7893 samba_cv_HAVE_NETMASK_AIX=yes
7895 echo "configure: failed program was:" >&5
7896 cat conftest.$ac_ext >&5
7898 samba_cv_HAVE_NETMASK_AIX=no
7905 echo "$ac_t""$samba_cv_HAVE_NETMASK_AIX" 1>&6
7906 if test x"$samba_cv_HAVE_NETMASK_AIX" = x"yes"; then
7907 netmask=yes;cat >> confdefs.h <<\EOF
7908 #define HAVE_NETMASK_AIX 1
7914 echo $ac_n "checking for trapdoor seteuid""... $ac_c" 1>&6
7915 echo "configure:7916: checking for trapdoor seteuid" >&5
7916 if eval "test \"`echo '$''{'samba_cv_HAVE_TRAPDOOR_UID'+set}'`\" = set"; then
7917 echo $ac_n "(cached) $ac_c" 1>&6
7920 if test "$cross_compiling" = yes; then
7923 cat > conftest.$ac_ext <<EOF
7924 #line 7925 "configure"
7925 #include "confdefs.h"
7926 #include "${srcdir-.}/tests/trapdoor.c"
7928 if { (eval echo configure:7929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7930 samba_cv_HAVE_TRAPDOOR_UID=no
7932 echo "configure: failed program was:" >&5
7933 cat conftest.$ac_ext >&5
7935 samba_cv_HAVE_TRAPDOOR_UID=yes
7942 echo "$ac_t""$samba_cv_HAVE_TRAPDOOR_UID" 1>&6
7943 if test x"$samba_cv_HAVE_TRAPDOOR_UID" = x"yes"; then
7944 cat >> confdefs.h <<\EOF
7945 #define HAVE_TRAPDOOR_UID 1
7950 echo $ac_n "checking for shared mmap""... $ac_c" 1>&6
7951 echo "configure:7952: checking for shared mmap" >&5
7952 if eval "test \"`echo '$''{'samba_cv_HAVE_SHARED_MMAP'+set}'`\" = set"; then
7953 echo $ac_n "(cached) $ac_c" 1>&6
7956 if test "$cross_compiling" = yes; then
7957 samba_cv_HAVE_SHARED_MMAP=cross
7959 cat > conftest.$ac_ext <<EOF
7960 #line 7961 "configure"
7961 #include "confdefs.h"
7962 #include "${srcdir-.}/tests/shared_mmap.c"
7964 if { (eval echo configure:7965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
7966 samba_cv_HAVE_SHARED_MMAP=yes
7968 echo "configure: failed program was:" >&5
7969 cat conftest.$ac_ext >&5
7971 samba_cv_HAVE_SHARED_MMAP=no
7978 echo "$ac_t""$samba_cv_HAVE_SHARED_MMAP" 1>&6
7979 if test x"$samba_cv_HAVE_SHARED_MMAP" = x"yes"; then
7980 cat >> confdefs.h <<\EOF
7981 #define HAVE_SHARED_MMAP 1
7986 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
7987 echo "configure:7988: checking for fcntl locking" >&5
7988 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
7989 echo $ac_n "(cached) $ac_c" 1>&6
7992 if test "$cross_compiling" = yes; then
7993 samba_cv_HAVE_FCNTL_LOCK=cross
7995 cat > conftest.$ac_ext <<EOF
7996 #line 7997 "configure"
7997 #include "confdefs.h"
7998 #include "${srcdir-.}/tests/fcntl_lock.c"
8000 if { (eval echo configure:8001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8002 samba_cv_HAVE_FCNTL_LOCK=yes
8004 echo "configure: failed program was:" >&5
8005 cat conftest.$ac_ext >&5
8007 samba_cv_HAVE_FCNTL_LOCK=no
8014 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
8015 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
8016 cat >> confdefs.h <<\EOF
8017 #define HAVE_FCNTL_LOCK 1
8022 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
8023 echo "configure:8024: checking for 64 bit fcntl locking" >&5
8024 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
8025 echo $ac_n "(cached) $ac_c" 1>&6
8028 if test "$cross_compiling" = yes; then
8029 samba_cv_HAVE_STRUCT_FLOCK64=cross
8031 cat > conftest.$ac_ext <<EOF
8032 #line 8033 "configure"
8033 #include "confdefs.h"
8042 #ifdef HAVE_SYS_FCNTL_H
8043 #include <sys/fcntl.h>
8045 main() { struct flock64 fl64;
8046 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
8053 if { (eval echo configure:8054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8055 samba_cv_HAVE_STRUCT_FLOCK64=yes
8057 echo "configure: failed program was:" >&5
8058 cat conftest.$ac_ext >&5
8060 samba_cv_HAVE_STRUCT_FLOCK64=no
8067 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
8068 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
8069 cat >> confdefs.h <<\EOF
8070 #define HAVE_STRUCT_FLOCK64 1
8075 echo $ac_n "checking for sysv ipc""... $ac_c" 1>&6
8076 echo "configure:8077: checking for sysv ipc" >&5
8077 if eval "test \"`echo '$''{'samba_cv_HAVE_SYSV_IPC'+set}'`\" = set"; then
8078 echo $ac_n "(cached) $ac_c" 1>&6
8081 if test "$cross_compiling" = yes; then
8082 samba_cv_HAVE_SYSV_IPC=cross
8084 cat > conftest.$ac_ext <<EOF
8085 #line 8086 "configure"
8086 #include "confdefs.h"
8087 #include "${srcdir-.}/tests/sysv_ipc.c"
8089 if { (eval echo configure:8090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8091 samba_cv_HAVE_SYSV_IPC=yes
8093 echo "configure: failed program was:" >&5
8094 cat conftest.$ac_ext >&5
8096 samba_cv_HAVE_SYSV_IPC=no
8103 echo "$ac_t""$samba_cv_HAVE_SYSV_IPC" 1>&6
8104 if test x"$samba_cv_HAVE_SYSV_IPC" = x"yes"; then
8105 cat >> confdefs.h <<\EOF
8106 #define HAVE_SYSV_IPC 1
8111 #################################################
8112 # check for smbwrapper support
8113 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
8114 echo "configure:8115: checking whether to use smbwrapper" >&5
8115 # Check whether --with-smbwrapper or --without-smbwrapper was given.
8116 if test "${with_smbwrapper+set}" = set; then
8117 withval="$with_smbwrapper"
8120 echo "$ac_t""yes" 1>&6
8121 cat >> confdefs.h <<\EOF
8122 #define WITH_SMBWRAPPER 1
8125 WRAP="bin/smbsh bin/smbwrapper.so"
8127 if test x$ATTEMPT_WRAP32_BUILD = x; then
8130 WRAP32=bin/smbwrapper.32.so
8133 # Conditions under which smbwrapper should not be built.
8135 if test x$PICFLAG = x; then
8136 echo No support for PIC code - disabling smbwrapper and smbsh
8139 elif test x$ac_cv_func_syscall = xno; then
8140 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
8146 echo "$ac_t""no" 1>&6
8150 echo "$ac_t""no" 1>&6
8155 #################################################
8156 # check for the AFS filesystem
8157 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
8158 echo "configure:8159: checking whether to use AFS" >&5
8159 # Check whether --with-afs or --without-afs was given.
8160 if test "${with_afs+set}" = set; then
8164 echo "$ac_t""yes" 1>&6
8165 cat >> confdefs.h <<\EOF
8171 echo "$ac_t""no" 1>&6
8175 echo "$ac_t""no" 1>&6
8181 #################################################
8182 # check for the DFS auth system
8183 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
8184 echo "configure:8185: checking whether to use DFS auth" >&5
8185 # Check whether --with-dfs or --without-dfs was given.
8186 if test "${with_dfs+set}" = set; then
8190 echo "$ac_t""yes" 1>&6
8191 cat >> confdefs.h <<\EOF
8197 echo "$ac_t""no" 1>&6
8201 echo "$ac_t""no" 1>&6
8206 #################################################
8207 # check for Kerberos IV auth system
8208 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
8209 echo "configure:8210: checking whether to use Kerberos IV" >&5
8210 # Check whether --with-krb4 or --without-krb4 was given.
8211 if test "${with_krb4+set}" = set; then
8212 withval="$with_krb4"
8213 echo "$ac_t""yes" 1>&6
8214 cat >> confdefs.h <<\EOF
8218 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
8219 echo "configure:8220: checking for dn_expand in -lresolv" >&5
8220 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
8221 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8222 echo $ac_n "(cached) $ac_c" 1>&6
8224 ac_save_LIBS="$LIBS"
8225 LIBS="-lresolv $LIBS"
8226 cat > conftest.$ac_ext <<EOF
8227 #line 8228 "configure"
8228 #include "confdefs.h"
8229 /* Override any gcc2 internal prototype to avoid an error. */
8230 /* We use char because int might match the return type of a gcc2
8231 builtin and then its argument prototype would still apply. */
8238 if { (eval echo configure:8239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8240 eval "ac_cv_lib_$ac_lib_var=yes"
8242 echo "configure: failed program was:" >&5
8243 cat conftest.$ac_ext >&5
8245 eval "ac_cv_lib_$ac_lib_var=no"
8248 LIBS="$ac_save_LIBS"
8251 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8252 echo "$ac_t""yes" 1>&6
8253 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8254 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8255 cat >> confdefs.h <<EOF
8256 #define $ac_tr_lib 1
8259 LIBS="-lresolv $LIBS"
8262 echo "$ac_t""no" 1>&6
8265 LIBS="$LIBS -lkrb -ldes"
8266 CFLAGS="$CFLAGS -I$withval/include"
8267 LDFLAGS="$LDFLAGS -L$withval/lib"
8269 echo "$ac_t""no" 1>&6
8274 #################################################
8275 # check for automount support
8276 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
8277 echo "configure:8278: checking whether to use AUTOMOUNT" >&5
8278 # Check whether --with-automount or --without-automount was given.
8279 if test "${with_automount+set}" = set; then
8280 withval="$with_automount"
8283 echo "$ac_t""yes" 1>&6
8284 cat >> confdefs.h <<\EOF
8285 #define WITH_AUTOMOUNT 1
8290 echo "$ac_t""no" 1>&6
8294 echo "$ac_t""no" 1>&6
8299 #################################################
8300 # check for smbmount support
8301 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
8302 echo "configure:8303: checking whether to use SMBMOUNT" >&5
8303 # Check whether --with-smbmount or --without-smbmount was given.
8304 if test "${with_smbmount+set}" = set; then
8305 withval="$with_smbmount"
8308 echo "$ac_t""yes" 1>&6
8309 cat >> confdefs.h <<\EOF
8310 #define WITH_SMBMOUNT 1
8313 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
8316 echo "$ac_t""no" 1>&6
8321 echo "$ac_t""no" 1>&6
8327 #################################################
8328 # check for a LDAP password database
8329 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
8330 echo "configure:8331: checking whether to use LDAP password database" >&5
8331 # Check whether --with-ldap or --without-ldap was given.
8332 if test "${with_ldap+set}" = set; then
8333 withval="$with_ldap"
8336 echo "$ac_t""yes" 1>&6
8337 cat >> confdefs.h <<\EOF
8341 LIBS="$LIBS -lldap -llber"
8344 echo "$ac_t""no" 1>&6
8348 echo "$ac_t""no" 1>&6
8353 #################################################
8354 # check for a NISPLUS password database
8355 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
8356 echo "configure:8357: checking whether to use NISPLUS password database" >&5
8357 # Check whether --with-nisplus or --without-nisplus was given.
8358 if test "${with_nisplus+set}" = set; then
8359 withval="$with_nisplus"
8362 echo "$ac_t""yes" 1>&6
8363 cat >> confdefs.h <<\EOF
8364 #define WITH_NISPLUS 1
8369 echo "$ac_t""no" 1>&6
8373 echo "$ac_t""no" 1>&6
8378 #################################################
8379 # check for a NISPLUS_HOME support
8380 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
8381 echo "configure:8382: checking whether to use NISPLUS_HOME" >&5
8382 # Check whether --with-nisplus-home or --without-nisplus-home was given.
8383 if test "${with_nisplus_home+set}" = set; then
8384 withval="$with_nisplus_home"
8387 echo "$ac_t""yes" 1>&6
8388 cat >> confdefs.h <<\EOF
8389 #define WITH_NISPLUS_HOME 1
8394 echo "$ac_t""no" 1>&6
8398 echo "$ac_t""no" 1>&6
8403 #################################################
8404 # check for the secure socket layer
8405 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
8406 echo "configure:8407: checking whether to use SSL" >&5
8407 # Check whether --with-ssl or --without-ssl was given.
8408 if test "${with_ssl+set}" = set; then
8412 echo "$ac_t""yes" 1>&6
8413 cat >> confdefs.h <<\EOF
8419 echo "$ac_t""no" 1>&6
8423 echo "$ac_t""no" 1>&6
8428 #################################################
8429 # check for experimental mmap support
8430 echo $ac_n "checking whether to use MMAP""... $ac_c" 1>&6
8431 echo "configure:8432: checking whether to use MMAP" >&5
8432 # Check whether --with-mmap or --without-mmap was given.
8433 if test "${with_mmap+set}" = set; then
8434 withval="$with_mmap"
8437 echo "$ac_t""yes" 1>&6
8438 cat >> confdefs.h <<\EOF
8444 echo "$ac_t""no" 1>&6
8448 echo "$ac_t""no" 1>&6
8453 #################################################
8454 # check for syslog logging
8455 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
8456 echo "configure:8457: checking whether to use syslog logging" >&5
8457 # Check whether --with-syslog or --without-syslog was given.
8458 if test "${with_syslog+set}" = set; then
8459 withval="$with_syslog"
8462 echo "$ac_t""yes" 1>&6
8463 cat >> confdefs.h <<\EOF
8464 #define WITH_SYSLOG 1
8469 echo "$ac_t""no" 1>&6
8473 echo "$ac_t""no" 1>&6
8478 #################################################
8479 # check for a shared memory profiling support
8480 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
8481 echo "configure:8482: checking whether to use profiling" >&5
8482 # Check whether --with-profile or --without-profile was given.
8483 if test "${with_profile+set}" = set; then
8484 withval="$with_profile"
8487 echo "$ac_t""yes" 1>&6
8488 cat >> confdefs.h <<\EOF
8489 #define WITH_PROFILE 1
8494 echo "$ac_t""no" 1>&6
8498 echo "$ac_t""no" 1>&6
8504 #################################################
8505 # check for experimental netatalk resource fork support
8506 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
8507 echo "configure:8508: checking whether to support netatalk" >&5
8508 # Check whether --with-netatalk or --without-netatalk was given.
8509 if test "${with_netatalk+set}" = set; then
8510 withval="$with_netatalk"
8513 echo "$ac_t""yes" 1>&6
8514 cat >> confdefs.h <<\EOF
8515 #define WITH_NETATALK 1
8520 echo "$ac_t""no" 1>&6
8524 echo "$ac_t""no" 1>&6
8529 #################################################
8530 # check for experimental disk-quotas support
8531 QUOTAOBJS=noquotas.o
8533 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
8534 echo "configure:8535: checking whether to support disk-quotas" >&5
8535 # Check whether --with-quotas or --without-quotas was given.
8536 if test "${with_quotas+set}" = set; then
8537 withval="$with_quotas"
8540 echo "$ac_t""yes" 1>&6
8544 echo "$ac_t""no" 1>&6
8548 echo "$ac_t""no" 1>&6
8554 #################################################
8555 # these tests are taken from the GNU fileutils package
8556 echo "checking how to get filesystem space usage" 1>&6
8557 echo "configure:8558: checking how to get filesystem space usage" >&5
8560 # Test for statvfs64.
8561 if test $space = no; then
8563 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
8564 echo "configure:8565: checking statvfs64 function (SVR4)" >&5
8565 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
8566 echo $ac_n "(cached) $ac_c" 1>&6
8568 if test "$cross_compiling" = yes; then
8569 fu_cv_sys_stat_statvfs64=cross
8571 cat > conftest.$ac_ext <<EOF
8572 #line 8573 "configure"
8573 #include "confdefs.h"
8575 #include <sys/types.h>
8576 #include <sys/statvfs.h>
8579 struct statvfs64 fsd;
8580 exit (statfs64 (".", &fsd));
8583 if { (eval echo configure:8584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8585 fu_cv_sys_stat_statvfs64=yes
8587 echo "configure: failed program was:" >&5
8588 cat conftest.$ac_ext >&5
8590 fu_cv_sys_stat_statvfs64=no
8597 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
8598 if test $fu_cv_sys_stat_statvfs64 = yes; then
8600 cat >> confdefs.h <<\EOF
8601 #define STAT_STATVFS64 1
8607 # Perform only the link test since it seems there are no variants of the
8608 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
8609 # because that got a false positive on SCO OSR5. Adding the declaration
8610 # of a `struct statvfs' causes this test to fail (as it should) on such
8611 # systems. That system is reported to work fine with STAT_STATFS4 which
8612 # is what it gets when this test fails.
8613 if test $space = no; then
8615 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
8616 echo "configure:8617: checking statvfs function (SVR4)" >&5
8617 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
8618 echo $ac_n "(cached) $ac_c" 1>&6
8620 cat > conftest.$ac_ext <<EOF
8621 #line 8622 "configure"
8622 #include "confdefs.h"
8623 #include <sys/types.h>
8624 #include <sys/statvfs.h>
8626 struct statvfs fsd; statvfs (0, &fsd);
8629 if { (eval echo configure:8630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8631 fu_cv_sys_stat_statvfs=yes
8633 echo "configure: failed program was:" >&5
8634 cat conftest.$ac_ext >&5
8636 fu_cv_sys_stat_statvfs=no
8641 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
8642 if test $fu_cv_sys_stat_statvfs = yes; then
8644 cat >> confdefs.h <<\EOF
8645 #define STAT_STATVFS 1
8651 if test $space = no; then
8652 # DEC Alpha running OSF/1
8653 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
8654 echo "configure:8655: checking for 3-argument statfs function (DEC OSF/1)" >&5
8655 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
8656 echo $ac_n "(cached) $ac_c" 1>&6
8658 if test "$cross_compiling" = yes; then
8659 fu_cv_sys_stat_statfs3_osf1=no
8661 cat > conftest.$ac_ext <<EOF
8662 #line 8663 "configure"
8663 #include "confdefs.h"
8665 #include <sys/param.h>
8666 #include <sys/types.h>
8667 #include <sys/mount.h>
8672 exit (statfs (".", &fsd, sizeof (struct statfs)));
8675 if { (eval echo configure:8676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8677 fu_cv_sys_stat_statfs3_osf1=yes
8679 echo "configure: failed program was:" >&5
8680 cat conftest.$ac_ext >&5
8682 fu_cv_sys_stat_statfs3_osf1=no
8689 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
8690 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
8692 cat >> confdefs.h <<\EOF
8693 #define STAT_STATFS3_OSF1 1
8699 if test $space = no; then
8701 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
8702 echo "configure:8703: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
8703 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
8704 echo $ac_n "(cached) $ac_c" 1>&6
8706 if test "$cross_compiling" = yes; then
8707 fu_cv_sys_stat_statfs2_bsize=no
8709 cat > conftest.$ac_ext <<EOF
8710 #line 8711 "configure"
8711 #include "confdefs.h"
8713 #ifdef HAVE_SYS_PARAM_H
8714 #include <sys/param.h>
8716 #ifdef HAVE_SYS_MOUNT_H
8717 #include <sys/mount.h>
8719 #ifdef HAVE_SYS_VFS_H
8720 #include <sys/vfs.h>
8726 exit (statfs (".", &fsd));
8729 if { (eval echo configure:8730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8731 fu_cv_sys_stat_statfs2_bsize=yes
8733 echo "configure: failed program was:" >&5
8734 cat conftest.$ac_ext >&5
8736 fu_cv_sys_stat_statfs2_bsize=no
8743 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
8744 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
8746 cat >> confdefs.h <<\EOF
8747 #define STAT_STATFS2_BSIZE 1
8753 if test $space = no; then
8755 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
8756 echo "configure:8757: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
8757 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
8758 echo $ac_n "(cached) $ac_c" 1>&6
8760 if test "$cross_compiling" = yes; then
8761 fu_cv_sys_stat_statfs4=no
8763 cat > conftest.$ac_ext <<EOF
8764 #line 8765 "configure"
8765 #include "confdefs.h"
8766 #include <sys/types.h>
8767 #include <sys/statfs.h>
8771 exit (statfs (".", &fsd, sizeof fsd, 0));
8774 if { (eval echo configure:8775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8776 fu_cv_sys_stat_statfs4=yes
8778 echo "configure: failed program was:" >&5
8779 cat conftest.$ac_ext >&5
8781 fu_cv_sys_stat_statfs4=no
8788 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
8789 if test $fu_cv_sys_stat_statfs4 = yes; then
8791 cat >> confdefs.h <<\EOF
8792 #define STAT_STATFS4 1
8798 if test $space = no; then
8800 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
8801 echo "configure:8802: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
8802 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
8803 echo $ac_n "(cached) $ac_c" 1>&6
8805 if test "$cross_compiling" = yes; then
8806 fu_cv_sys_stat_statfs2_fsize=no
8808 cat > conftest.$ac_ext <<EOF
8809 #line 8810 "configure"
8810 #include "confdefs.h"
8811 #include <sys/types.h>
8812 #ifdef HAVE_SYS_PARAM_H
8813 #include <sys/param.h>
8815 #ifdef HAVE_SYS_MOUNT_H
8816 #include <sys/mount.h>
8822 exit (statfs (".", &fsd));
8825 if { (eval echo configure:8826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8827 fu_cv_sys_stat_statfs2_fsize=yes
8829 echo "configure: failed program was:" >&5
8830 cat conftest.$ac_ext >&5
8832 fu_cv_sys_stat_statfs2_fsize=no
8839 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
8840 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
8842 cat >> confdefs.h <<\EOF
8843 #define STAT_STATFS2_FSIZE 1
8849 if test $space = no; then
8851 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
8852 echo "configure:8853: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
8853 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
8854 echo $ac_n "(cached) $ac_c" 1>&6
8856 if test "$cross_compiling" = yes; then
8857 fu_cv_sys_stat_fs_data=no
8859 cat > conftest.$ac_ext <<EOF
8860 #line 8861 "configure"
8861 #include "confdefs.h"
8862 #include <sys/types.h>
8863 #ifdef HAVE_SYS_PARAM_H
8864 #include <sys/param.h>
8866 #ifdef HAVE_SYS_MOUNT_H
8867 #include <sys/mount.h>
8869 #ifdef HAVE_SYS_FS_TYPES_H
8870 #include <sys/fs_types.h>
8875 /* Ultrix's statfs returns 1 for success,
8876 0 for not mounted, -1 for failure. */
8877 exit (statfs (".", &fsd) != 1);
8880 if { (eval echo configure:8881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8882 fu_cv_sys_stat_fs_data=yes
8884 echo "configure: failed program was:" >&5
8885 cat conftest.$ac_ext >&5
8887 fu_cv_sys_stat_fs_data=no
8894 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
8895 if test $fu_cv_sys_stat_fs_data = yes; then
8897 cat >> confdefs.h <<\EOF
8898 #define STAT_STATFS2_FS_DATA 1
8904 echo "checking configure summary"
8905 if test "$cross_compiling" = yes; then
8908 cat > conftest.$ac_ext <<EOF
8909 #line 8910 "configure"
8910 #include "confdefs.h"
8911 #include "${srcdir-.}/tests/summary.c"
8913 if { (eval echo configure:8914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
8915 echo "configure OK";
8917 echo "configure: failed program was:" >&5
8918 cat conftest.$ac_ext >&5
8920 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
8930 cat > confcache <<\EOF
8931 # This file is a shell script that caches the results of configure
8932 # tests run on this system so they can be shared between configure
8933 # scripts and configure runs. It is not useful on other systems.
8934 # If it contains results you don't want to keep, you may remove or edit it.
8936 # By default, configure uses ./config.cache as the cache file,
8937 # creating it if it does not exist already. You can give configure
8938 # the --cache-file=FILE option to use a different cache file; that is
8939 # what configure does when it calls configure scripts in
8940 # subdirectories, so they share the cache.
8941 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8942 # config.status only pays attention to the cache file if you give it the
8943 # --recheck option to rerun configure.
8946 # The following way of writing the cache mishandles newlines in values,
8947 # but we know of no workaround that is simple, portable, and efficient.
8948 # So, don't put newlines in cache variables' values.
8949 # Ultrix sh set writes to stderr and can't be redirected directly,
8950 # and sets the high bit in the cache file unless we assign to the vars.
8952 case `(ac_space=' '; set) 2>&1` in
8954 # `set' does not quote correctly, so add quotes (double-quote substitution
8955 # turns \\\\ into \\, and sed turns \\ into \).
8957 -e "s/'/'\\\\''/g" \
8958 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8961 # `set' quotes correctly as required by POSIX, so do not add quotes.
8962 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8965 if cmp -s $cache_file confcache; then
8968 if test -w $cache_file; then
8969 echo "updating cache $cache_file"
8970 cat confcache > $cache_file
8972 echo "not updating unwritable cache $cache_file"
8977 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8979 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8980 # Let make expand exec_prefix.
8981 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8983 # Any assignment to VPATH causes Sun make to only execute
8984 # the first set of double-colon rules, so remove it if not needed.
8985 # If there is a colon in the path, we need to keep it.
8986 if test "x$srcdir" = x.; then
8987 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8990 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8992 DEFS=-DHAVE_CONFIG_H
8994 # Without the "./", some shells look in PATH for config.status.
8995 : ${CONFIG_STATUS=./config.status}
8997 echo creating $CONFIG_STATUS
8998 rm -f $CONFIG_STATUS
8999 cat > $CONFIG_STATUS <<EOF
9001 # Generated automatically by configure.
9002 # Run this file to recreate the current configuration.
9003 # This directory was configured as follows,
9004 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9006 # $0 $ac_configure_args
9008 # Compiler output produced by configure, useful for debugging
9009 # configure, is in ./config.log if it exists.
9011 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9014 case "\$ac_option" in
9015 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9016 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9017 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9018 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9019 echo "$CONFIG_STATUS generated by autoconf version 2.12"
9021 -help | --help | --hel | --he | --h)
9022 echo "\$ac_cs_usage"; exit 0 ;;
9023 *) echo "\$ac_cs_usage"; exit 1 ;;
9027 ac_given_srcdir=$srcdir
9028 ac_given_INSTALL="$INSTALL"
9030 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9032 cat >> $CONFIG_STATUS <<EOF
9034 # Protect against being on the right side of a sed subst in config.status.
9035 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9036 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9039 s%@CFLAGS@%$CFLAGS%g
9040 s%@CPPFLAGS@%$CPPFLAGS%g
9041 s%@CXXFLAGS@%$CXXFLAGS%g
9043 s%@LDFLAGS@%$LDFLAGS%g
9045 s%@exec_prefix@%$exec_prefix%g
9046 s%@prefix@%$prefix%g
9047 s%@program_transform_name@%$program_transform_name%g
9048 s%@bindir@%$bindir%g
9049 s%@sbindir@%$sbindir%g
9050 s%@libexecdir@%$libexecdir%g
9051 s%@datadir@%$datadir%g
9052 s%@sysconfdir@%$sysconfdir%g
9053 s%@sharedstatedir@%$sharedstatedir%g
9054 s%@localstatedir@%$localstatedir%g
9055 s%@libdir@%$libdir%g
9056 s%@includedir@%$includedir%g
9057 s%@oldincludedir@%$oldincludedir%g
9058 s%@infodir@%$infodir%g
9059 s%@mandir@%$mandir%g
9061 s%@MPROGS@%$MPROGS%g
9062 s%@LDSHFLAGS@%$LDSHFLAGS%g
9063 s%@HOST_OS@%$HOST_OS%g
9065 s%@WRAP32@%$WRAP32%g
9066 s%@PICFLAG@%$PICFLAG%g
9068 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9069 s%@INSTALL_DATA@%$INSTALL_DATA%g
9072 s%@host_alias@%$host_alias%g
9073 s%@host_cpu@%$host_cpu%g
9074 s%@host_vendor@%$host_vendor%g
9075 s%@host_os@%$host_os%g
9076 s%@target@%$target%g
9077 s%@target_alias@%$target_alias%g
9078 s%@target_cpu@%$target_cpu%g
9079 s%@target_vendor@%$target_vendor%g
9080 s%@target_os@%$target_os%g
9082 s%@build_alias@%$build_alias%g
9083 s%@build_cpu@%$build_cpu%g
9084 s%@build_vendor@%$build_vendor%g
9085 s%@build_os@%$build_os%g
9087 s%@AUTOCONF@%$AUTOCONF%g
9088 s%@AUTOHEADER@%$AUTOHEADER%g
9090 s%@LIBOBJS@%$LIBOBJS%g
9092 s%@QUOTAOBJS@%$QUOTAOBJS%g
9093 s%@builddir@%$builddir%g
9098 cat >> $CONFIG_STATUS <<\EOF
9100 # Split the substitutions into bite-sized pieces for seds with
9101 # small command number limits, like on Digital OSF/1 and HP-UX.
9102 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9103 ac_file=1 # Number of current file.
9104 ac_beg=1 # First line for current file.
9105 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9108 while $ac_more_lines; do
9109 if test $ac_beg -gt 1; then
9110 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9112 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9114 if test ! -s conftest.s$ac_file; then
9116 rm -f conftest.s$ac_file
9118 if test -z "$ac_sed_cmds"; then
9119 ac_sed_cmds="sed -f conftest.s$ac_file"
9121 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9123 ac_file=`expr $ac_file + 1`
9125 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9128 if test -z "$ac_sed_cmds"; then
9133 cat >> $CONFIG_STATUS <<EOF
9135 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
9137 cat >> $CONFIG_STATUS <<\EOF
9138 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9139 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9141 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9142 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9143 *) ac_file_in="${ac_file}.in" ;;
9146 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9148 # Remove last slash and all that follows it. Not all systems have dirname.
9149 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9150 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9151 # The file is in a subdirectory.
9152 test ! -d "$ac_dir" && mkdir "$ac_dir"
9153 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9154 # A "../" for each directory in $ac_dir_suffix.
9155 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9157 ac_dir_suffix= ac_dots=
9160 case "$ac_given_srcdir" in
9162 if test -z "$ac_dots"; then top_srcdir=.
9163 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9164 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9166 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9167 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9170 case "$ac_given_INSTALL" in
9171 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9172 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9175 echo creating "$ac_file"
9177 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9179 *Makefile*) ac_comsub="1i\\
9180 # $configure_input" ;;
9184 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9186 s%@configure_input@%$configure_input%g
9187 s%@srcdir@%$srcdir%g
9188 s%@top_srcdir@%$top_srcdir%g
9189 s%@INSTALL@%$INSTALL%g
9190 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9194 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9195 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9197 # ac_d sets the value in "#define NAME VALUE" lines.
9198 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9199 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9202 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9203 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9204 ac_uB='\([ ]\)%\1#\2define\3'
9207 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9208 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9209 ac_eB='$%\1#\2define\3'
9213 if test "${CONFIG_HEADERS+set}" != set; then
9215 cat >> $CONFIG_STATUS <<EOF
9216 CONFIG_HEADERS="include/config.h"
9218 cat >> $CONFIG_STATUS <<\EOF
9220 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9221 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9223 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9224 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9225 *) ac_file_in="${ac_file}.in" ;;
9228 echo creating $ac_file
9230 rm -f conftest.frag conftest.in conftest.out
9231 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9232 cat $ac_file_inputs > conftest.in
9236 # Transform confdefs.h into a sed script conftest.vals that substitutes
9237 # the proper values into config.h.in to produce config.h. And first:
9238 # Protect against being on the right side of a sed subst in config.status.
9239 # Protect against being in an unquoted here document in config.status.
9241 cat > conftest.hdr <<\EOF
9244 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9248 sed -n -f conftest.hdr confdefs.h > conftest.vals
9251 # This sed command replaces #undef with comments. This is necessary, for
9252 # example, in the case of _POSIX_SOURCE, which is predefined and required
9253 # on some systems where configure will not decide to define it.
9254 cat >> conftest.vals <<\EOF
9255 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9258 # Break up conftest.vals because some shells have a limit on
9259 # the size of here documents, and old seds have small limits too.
9264 ac_lines=`grep -c . conftest.vals`
9265 # grep -c gives empty output for an empty file on some AIX systems.
9266 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9267 # Write a limited-size here document to conftest.frag.
9268 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9269 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9271 sed -f conftest.frag conftest.in > conftest.out
9273 mv conftest.out conftest.in
9275 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9277 mv conftest.tail conftest.vals
9281 cat >> $CONFIG_STATUS <<\EOF
9282 rm -f conftest.frag conftest.h
9283 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9284 cat conftest.in >> conftest.h
9286 if cmp -s $ac_file conftest.h 2>/dev/null; then
9287 echo "$ac_file is unchanged"
9290 # Remove last slash and all that follows it. Not all systems have dirname.
9291 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9292 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9293 # The file is in a subdirectory.
9294 test ! -d "$ac_dir" && mkdir "$ac_dir"
9297 mv conftest.h $ac_file
9302 cat >> $CONFIG_STATUS <<EOF
9305 cat >> $CONFIG_STATUS <<\EOF
9309 chmod +x $CONFIG_STATUS
9310 rm -fr confdefs* $ac_clean_files
9311 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1