3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/samba
16 --enable-debug turn on debugging [default=no]"
18 --enable-developer turn on developer warnings and debugging [default=no]"
20 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
22 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
24 --with-smbwrapper Include SMB wrapper support (default=no) "
26 --with-afs Include AFS clear-text auth support (default=no) "
28 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)"
30 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)"
32 --with-automount Include AUTOMOUNT support (default=no)"
34 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
36 --with-pam Include PAM support (default=no)"
38 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
40 --with-tdbsam Include experimental TDB SAM support (default=no)"
42 --with-ldapsam Include experimental LDAP SAM support (default=no)"
44 --with-nisplussam Include NISPLUS SAM support (default=no)"
46 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
48 --with-ssl Include SSL support (default=no)
49 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
50 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
52 --with-syslog Include experimental SYSLOG support (default=no)"
54 --with-profiling-data Include gathering source code profile information (default=no)"
56 --with-quotas Include experimental disk-quota support (default=no)"
58 --with-utmp Include experimental utmp accounting (default=no)"
60 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
62 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
64 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
66 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
68 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
70 --with-acl-support Include ACL support (default=no)"
72 --with-winbind Build winbind (default, if supported by OS)"
74 --with-included-popt use bundled popt library, not from system"
76 # Initialize some variables set by options.
77 # The variables have the same names as the options, with
78 # dashes changed to underlines.
80 cache_file=./config.cache
89 program_transform_name=s,x,x,
97 bindir='${exec_prefix}/bin'
98 sbindir='${exec_prefix}/sbin'
99 libexecdir='${exec_prefix}/libexec'
100 datadir='${prefix}/share'
101 sysconfdir='${prefix}/etc'
102 sharedstatedir='${prefix}/com'
103 localstatedir='${prefix}/var'
104 libdir='${exec_prefix}/lib'
105 includedir='${prefix}/include'
106 oldincludedir='/usr/include'
107 infodir='${prefix}/info'
108 mandir='${prefix}/man'
110 # Initialize some other variables.
113 SHELL=${CONFIG_SHELL-/bin/sh}
114 # Maximum number of lines to put in a shell here document.
121 # If the previous option needs an argument, assign it.
122 if test -n "$ac_prev"; then
123 eval "$ac_prev=\$ac_option"
129 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
133 # Accept the important Cygnus configure options, so we can diagnose typos.
137 -bindir | --bindir | --bindi | --bind | --bin | --bi)
139 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
140 bindir="$ac_optarg" ;;
142 -build | --build | --buil | --bui | --bu)
144 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
145 build="$ac_optarg" ;;
147 -cache-file | --cache-file | --cache-fil | --cache-fi \
148 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
149 ac_prev=cache_file ;;
150 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
151 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
152 cache_file="$ac_optarg" ;;
154 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
156 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
158 datadir="$ac_optarg" ;;
160 -disable-* | --disable-*)
161 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
167 eval "enable_${ac_feature}=no" ;;
169 -enable-* | --enable-*)
170 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
171 # Reject names that are not valid shell variable names.
172 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
173 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
175 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
180 eval "enable_${ac_feature}='$ac_optarg'" ;;
182 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
183 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
184 | --exec | --exe | --ex)
185 ac_prev=exec_prefix ;;
186 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
187 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
188 | --exec=* | --exe=* | --ex=*)
189 exec_prefix="$ac_optarg" ;;
191 -gas | --gas | --ga | --g)
192 # Obsolete; use --with-gas.
195 -help | --help | --hel | --he)
196 # Omit some internal or obsolete options to make the list less imposing.
197 # This message is too long to be a string in the A/UX 3.1 sh.
199 Usage: configure [options] [host]
200 Options: [defaults in brackets after descriptions]
202 --cache-file=FILE cache test results in FILE
203 --help print this message
204 --no-create do not create output files
205 --quiet, --silent do not print \`checking...' messages
206 --version print the version of autoconf that created configure
207 Directory and file names:
208 --prefix=PREFIX install architecture-independent files in PREFIX
210 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
212 --bindir=DIR user executables in DIR [EPREFIX/bin]
213 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
214 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
215 --datadir=DIR read-only architecture-independent data in DIR
217 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
218 --sharedstatedir=DIR modifiable architecture-independent data in DIR
220 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
221 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
222 --includedir=DIR C header files in DIR [PREFIX/include]
223 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
224 --infodir=DIR info documentation in DIR [PREFIX/info]
225 --mandir=DIR man documentation in DIR [PREFIX/man]
226 --srcdir=DIR find the sources in DIR [configure dir or ..]
227 --program-prefix=PREFIX prepend PREFIX to installed program names
228 --program-suffix=SUFFIX append SUFFIX to installed program names
229 --program-transform-name=PROGRAM
230 run sed PROGRAM on installed program names
234 --build=BUILD configure for building on BUILD [BUILD=HOST]
235 --host=HOST configure for HOST [guessed]
236 --target=TARGET configure for TARGET [TARGET=HOST]
237 Features and packages:
238 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
239 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
240 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
241 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
242 --x-includes=DIR X include files are in DIR
243 --x-libraries=DIR X library files are in DIR
245 if test -n "$ac_help"; then
246 echo "--enable and --with options recognized:$ac_help"
250 -host | --host | --hos | --ho)
252 -host=* | --host=* | --hos=* | --ho=*)
255 -includedir | --includedir | --includedi | --included | --include \
256 | --includ | --inclu | --incl | --inc)
257 ac_prev=includedir ;;
258 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
259 | --includ=* | --inclu=* | --incl=* | --inc=*)
260 includedir="$ac_optarg" ;;
262 -infodir | --infodir | --infodi | --infod | --info | --inf)
264 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
265 infodir="$ac_optarg" ;;
267 -libdir | --libdir | --libdi | --libd)
269 -libdir=* | --libdir=* | --libdi=* | --libd=*)
270 libdir="$ac_optarg" ;;
272 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
273 | --libexe | --libex | --libe)
274 ac_prev=libexecdir ;;
275 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
276 | --libexe=* | --libex=* | --libe=*)
277 libexecdir="$ac_optarg" ;;
279 -localstatedir | --localstatedir | --localstatedi | --localstated \
280 | --localstate | --localstat | --localsta | --localst \
281 | --locals | --local | --loca | --loc | --lo)
282 ac_prev=localstatedir ;;
283 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
284 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
285 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
286 localstatedir="$ac_optarg" ;;
288 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
290 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
291 mandir="$ac_optarg" ;;
294 # Obsolete; use --without-fp.
297 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
301 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
302 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
305 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
306 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
307 | --oldin | --oldi | --old | --ol | --o)
308 ac_prev=oldincludedir ;;
309 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
310 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
311 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
312 oldincludedir="$ac_optarg" ;;
314 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
316 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
317 prefix="$ac_optarg" ;;
319 -program-prefix | --program-prefix | --program-prefi | --program-pref \
320 | --program-pre | --program-pr | --program-p)
321 ac_prev=program_prefix ;;
322 -program-prefix=* | --program-prefix=* | --program-prefi=* \
323 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
324 program_prefix="$ac_optarg" ;;
326 -program-suffix | --program-suffix | --program-suffi | --program-suff \
327 | --program-suf | --program-su | --program-s)
328 ac_prev=program_suffix ;;
329 -program-suffix=* | --program-suffix=* | --program-suffi=* \
330 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
331 program_suffix="$ac_optarg" ;;
333 -program-transform-name | --program-transform-name \
334 | --program-transform-nam | --program-transform-na \
335 | --program-transform-n | --program-transform- \
336 | --program-transform | --program-transfor \
337 | --program-transfo | --program-transf \
338 | --program-trans | --program-tran \
339 | --progr-tra | --program-tr | --program-t)
340 ac_prev=program_transform_name ;;
341 -program-transform-name=* | --program-transform-name=* \
342 | --program-transform-nam=* | --program-transform-na=* \
343 | --program-transform-n=* | --program-transform-=* \
344 | --program-transform=* | --program-transfor=* \
345 | --program-transfo=* | --program-transf=* \
346 | --program-trans=* | --program-tran=* \
347 | --progr-tra=* | --program-tr=* | --program-t=*)
348 program_transform_name="$ac_optarg" ;;
350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
351 | -silent | --silent | --silen | --sile | --sil)
354 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
356 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
358 sbindir="$ac_optarg" ;;
360 -sharedstatedir | --sharedstatedir | --sharedstatedi \
361 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
362 | --sharedst | --shareds | --shared | --share | --shar \
364 ac_prev=sharedstatedir ;;
365 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
366 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
367 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
369 sharedstatedir="$ac_optarg" ;;
371 -site | --site | --sit)
373 -site=* | --site=* | --sit=*)
376 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
378 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
379 srcdir="$ac_optarg" ;;
381 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
382 | --syscon | --sysco | --sysc | --sys | --sy)
383 ac_prev=sysconfdir ;;
384 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
385 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
386 sysconfdir="$ac_optarg" ;;
388 -target | --target | --targe | --targ | --tar | --ta | --t)
390 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
391 target="$ac_optarg" ;;
393 -v | -verbose | --verbose | --verbos | --verbo | --verb)
396 -version | --version | --versio | --versi | --vers)
397 echo "configure generated by autoconf version 2.13"
401 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
402 # Reject names that are not valid shell variable names.
403 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
404 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406 ac_package=`echo $ac_package| sed 's/-/_/g'`
411 eval "with_${ac_package}='$ac_optarg'" ;;
413 -without-* | --without-*)
414 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
415 # Reject names that are not valid shell variable names.
416 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
417 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419 ac_package=`echo $ac_package| sed 's/-/_/g'`
420 eval "with_${ac_package}=no" ;;
423 # Obsolete; use --with-x.
426 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
427 | --x-incl | --x-inc | --x-in | --x-i)
428 ac_prev=x_includes ;;
429 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
430 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
431 x_includes="$ac_optarg" ;;
433 -x-libraries | --x-libraries | --x-librarie | --x-librari \
434 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
435 ac_prev=x_libraries ;;
436 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
437 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
438 x_libraries="$ac_optarg" ;;
440 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
444 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
445 echo "configure: warning: $ac_option: invalid host type" 1>&2
447 if test "x$nonopt" != xNONE; then
448 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
456 if test -n "$ac_prev"; then
457 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
460 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
462 # File descriptor usage:
465 # 2 errors and warnings
466 # 3 some systems may open it to /dev/tty
467 # 4 used on the Kubota Titan
468 # 6 checking for... messages and results
469 # 5 compiler messages saved in config.log
470 if test "$silent" = yes; then
478 This file contains any messages produced by compilers while
479 running configure, to aid debugging if configure makes a mistake.
482 # Strip out --no-create and --no-recursion so they do not pile up.
483 # Also quote any args containing shell metacharacters.
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c) ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
492 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
493 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
494 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
499 # Only set these to C if already set. These must not be set unconditionally
500 # because not all systems understand e.g. LANG=C (notably SCO).
501 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
502 # Non-C LC_CTYPE values break the ctype check.
503 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
504 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
505 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
506 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
508 # confdefs.h avoids OS command line length limits that DEFS can exceed.
509 rm -rf conftest* confdefs.h
510 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
513 # A filename unique to this package, relative to the directory that
514 # configure is in, which we can look for to find out if srcdir is correct.
515 ac_unique_file=include/includes.h
517 # Find the source files, if location was not specified.
518 if test -z "$srcdir"; then
519 ac_srcdir_defaulted=yes
520 # Try the directory containing this script, then its parent.
522 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
523 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
525 if test ! -r $srcdir/$ac_unique_file; then
529 ac_srcdir_defaulted=no
531 if test ! -r $srcdir/$ac_unique_file; then
532 if test "$ac_srcdir_defaulted" = yes; then
533 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
535 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
538 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
540 # Prefer explicitly selected file to automatically selected ones.
541 if test -z "$CONFIG_SITE"; then
542 if test "x$prefix" != xNONE; then
543 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
545 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
548 for ac_site_file in $CONFIG_SITE; do
549 if test -r "$ac_site_file"; then
550 echo "loading site script $ac_site_file"
555 if test -r "$cache_file"; then
556 echo "loading cache $cache_file"
559 echo "creating cache $cache_file"
564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
565 ac_cpp='$CPP $CPPFLAGS'
566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
568 cross_compiling=$ac_cv_prog_cc_cross
572 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
573 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
574 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
581 ac_n= ac_c='\c' ac_t=
586 # we want to be compatibe with older versions of Samba
604 # compile with optimisation and without debugging by default
605 CFLAGS="-O ${CFLAGS}"
607 # Check whether --enable-debug or --disable-debug was given.
608 if test "${enable_debug+set}" = set; then
609 enableval="$enable_debug"
610 if eval "test x$enable_debug = xyes"; then
611 CFLAGS="${CFLAGS} -g"
616 # Check whether --enable-developer or --disable-developer was given.
617 if test "${enable_developer+set}" = set; then
618 enableval="$enable_developer"
619 if eval "test x$enable_developer = xyes"; then
620 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
625 # Extract the first word of "gcc", so it can be a program name with args.
626 set dummy gcc; ac_word=$2
627 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
628 echo "configure:629: checking for $ac_word" >&5
629 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
630 echo $ac_n "(cached) $ac_c" 1>&6
632 if test -n "$CC"; then
633 ac_cv_prog_CC="$CC" # Let the user override the test.
635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
637 for ac_dir in $ac_dummy; do
638 test -z "$ac_dir" && ac_dir=.
639 if test -f $ac_dir/$ac_word; then
648 if test -n "$CC"; then
649 echo "$ac_t""$CC" 1>&6
651 echo "$ac_t""no" 1>&6
654 if test -z "$CC"; then
655 # Extract the first word of "cc", so it can be a program name with args.
656 set dummy cc; ac_word=$2
657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
658 echo "configure:659: checking for $ac_word" >&5
659 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
660 echo $ac_n "(cached) $ac_c" 1>&6
662 if test -n "$CC"; then
663 ac_cv_prog_CC="$CC" # Let the user override the test.
665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
668 for ac_dir in $ac_dummy; do
669 test -z "$ac_dir" && ac_dir=.
670 if test -f $ac_dir/$ac_word; then
671 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
680 if test $ac_prog_rejected = yes; then
681 # We found a bogon in the path, so make sure we never use it.
682 set dummy $ac_cv_prog_CC
684 if test $# -gt 0; then
685 # We chose a different compiler from the bogus one.
686 # However, it has the same basename, so the bogon will be chosen
687 # first if we set CC to just the basename; use the full file name.
689 set dummy "$ac_dir/$ac_word" "$@"
697 if test -n "$CC"; then
698 echo "$ac_t""$CC" 1>&6
700 echo "$ac_t""no" 1>&6
703 if test -z "$CC"; then
706 # Extract the first word of "cl", so it can be a program name with args.
707 set dummy cl; ac_word=$2
708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
709 echo "configure:710: checking for $ac_word" >&5
710 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
711 echo $ac_n "(cached) $ac_c" 1>&6
713 if test -n "$CC"; then
714 ac_cv_prog_CC="$CC" # Let the user override the test.
716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
718 for ac_dir in $ac_dummy; do
719 test -z "$ac_dir" && ac_dir=.
720 if test -f $ac_dir/$ac_word; then
729 if test -n "$CC"; then
730 echo "$ac_t""$CC" 1>&6
732 echo "$ac_t""no" 1>&6
737 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
740 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
741 echo "configure:742: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
744 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
745 ac_cpp='$CPP $CPPFLAGS'
746 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
747 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
748 cross_compiling=$ac_cv_prog_cc_cross
750 cat > conftest.$ac_ext << EOF
752 #line 753 "configure"
753 #include "confdefs.h"
757 if { (eval echo configure:758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
758 ac_cv_prog_cc_works=yes
759 # If we can't run a trivial program, we are probably using a cross compiler.
760 if (./conftest; exit) 2>/dev/null; then
761 ac_cv_prog_cc_cross=no
763 ac_cv_prog_cc_cross=yes
766 echo "configure: failed program was:" >&5
767 cat conftest.$ac_ext >&5
768 ac_cv_prog_cc_works=no
772 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
773 ac_cpp='$CPP $CPPFLAGS'
774 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
775 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
776 cross_compiling=$ac_cv_prog_cc_cross
778 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
779 if test $ac_cv_prog_cc_works = no; then
780 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
782 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
783 echo "configure:784: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
784 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
785 cross_compiling=$ac_cv_prog_cc_cross
787 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
788 echo "configure:789: checking whether we are using GNU C" >&5
789 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
790 echo $ac_n "(cached) $ac_c" 1>&6
792 cat > conftest.c <<EOF
797 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
804 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
806 if test $ac_cv_prog_gcc = yes; then
812 ac_test_CFLAGS="${CFLAGS+set}"
813 ac_save_CFLAGS="$CFLAGS"
815 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
816 echo "configure:817: checking whether ${CC-cc} accepts -g" >&5
817 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
818 echo $ac_n "(cached) $ac_c" 1>&6
820 echo 'void f(){}' > conftest.c
821 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
830 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
831 if test "$ac_test_CFLAGS" = set; then
832 CFLAGS="$ac_save_CFLAGS"
833 elif test $ac_cv_prog_cc_g = yes; then
834 if test "$GCC" = yes; then
840 if test "$GCC" = yes; then
848 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
849 if test -f $ac_dir/install-sh; then
851 ac_install_sh="$ac_aux_dir/install-sh -c"
853 elif test -f $ac_dir/install.sh; then
855 ac_install_sh="$ac_aux_dir/install.sh -c"
859 if test -z "$ac_aux_dir"; then
860 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
862 ac_config_guess=$ac_aux_dir/config.guess
863 ac_config_sub=$ac_aux_dir/config.sub
864 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
866 # Find a good install program. We prefer a C program (faster),
867 # so one script is as good as another. But avoid the broken or
868 # incompatible versions:
869 # SysV /etc/install, /usr/sbin/install
870 # SunOS /usr/etc/install
873 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
874 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
875 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
876 # ./install, which can be erroneously created by make from ./install.sh.
877 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
878 echo "configure:879: checking for a BSD compatible install" >&5
879 if test -z "$INSTALL"; then
880 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
881 echo $ac_n "(cached) $ac_c" 1>&6
883 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
884 for ac_dir in $PATH; do
885 # Account for people who put trailing slashes in PATH elements.
887 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
889 # OSF1 and SCO ODT 3.0 have their own names for install.
890 # Don't use installbsd from OSF since it installs stuff as root
892 for ac_prog in ginstall scoinst install; do
893 if test -f $ac_dir/$ac_prog; then
894 if test $ac_prog = install &&
895 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
896 # AIX install. It has an incompatible calling convention.
899 ac_cv_path_install="$ac_dir/$ac_prog -c"
910 if test "${ac_cv_path_install+set}" = set; then
911 INSTALL="$ac_cv_path_install"
913 # As a last resort, use the slow shell script. We don't cache a
914 # path for INSTALL within a source directory, because that will
915 # break other packages using the cache if that directory is
916 # removed, or if the path is relative.
917 INSTALL="$ac_install_sh"
920 echo "$ac_t""$INSTALL" 1>&6
922 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
923 # It thinks the first close brace ends the variable substitution.
924 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
926 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
928 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
930 for ac_prog in mawk gawk nawk awk
932 # Extract the first word of "$ac_prog", so it can be a program name with args.
933 set dummy $ac_prog; ac_word=$2
934 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
935 echo "configure:936: checking for $ac_word" >&5
936 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
937 echo $ac_n "(cached) $ac_c" 1>&6
939 if test -n "$AWK"; then
940 ac_cv_prog_AWK="$AWK" # Let the user override the test.
942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
944 for ac_dir in $ac_dummy; do
945 test -z "$ac_dir" && ac_dir=.
946 if test -f $ac_dir/$ac_word; then
947 ac_cv_prog_AWK="$ac_prog"
954 AWK="$ac_cv_prog_AWK"
955 if test -n "$AWK"; then
956 echo "$ac_t""$AWK" 1>&6
958 echo "$ac_t""no" 1>&6
961 test -n "$AWK" && break
965 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
966 echo "configure:967: checking for POSIXized ISC" >&5
967 if test -d /etc/conf/kconfig.d &&
968 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
970 echo "$ac_t""yes" 1>&6
971 ISC=yes # If later tests want to check for ISC.
972 cat >> confdefs.h <<\EOF
973 #define _POSIX_SOURCE 1
976 if test "$GCC" = yes; then
982 echo "$ac_t""no" 1>&6
987 if test "x$CC" != xcc; then
988 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
989 echo "configure:990: checking whether $CC and cc understand -c and -o together" >&5
991 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
992 echo "configure:993: checking whether cc understands -c and -o together" >&5
994 set dummy $CC; ac_cc="`echo $2 |
995 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
996 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
999 echo 'foo(){}' > conftest.c
1000 # Make sure it works both with $CC and with simple cc.
1001 # We do the test twice because some compilers refuse to overwrite an
1002 # existing .o file with -o, though they will create one.
1003 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1004 if { (eval echo configure:1005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1005 test -f conftest.o && { (eval echo configure:1006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1007 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1008 if test "x$CC" != xcc; then
1009 # Test first that cc exists at all.
1010 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1011 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1012 if { (eval echo configure:1013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1013 test -f conftest.o && { (eval echo configure:1014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1018 # cc exists but doesn't like -o.
1019 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1024 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1029 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1030 echo "$ac_t""yes" 1>&6
1032 echo "$ac_t""no" 1>&6
1033 cat >> confdefs.h <<\EOF
1034 #define NO_MINUS_C_MINUS_O 1
1039 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1046 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1047 echo "configure:1048: checking that the C compiler understands volatile" >&5
1048 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1049 echo $ac_n "(cached) $ac_c" 1>&6
1052 cat > conftest.$ac_ext <<EOF
1053 #line 1054 "configure"
1054 #include "confdefs.h"
1055 #include <sys/types.h>
1060 if { (eval echo configure:1061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1062 samba_cv_volatile=yes
1064 echo "configure: failed program was:" >&5
1065 cat conftest.$ac_ext >&5
1067 samba_cv_volatile=no
1072 echo "$ac_t""$samba_cv_volatile" 1>&6
1073 if test x"$samba_cv_volatile" = x"yes"; then
1074 cat >> confdefs.h <<\EOF
1075 #define HAVE_VOLATILE 1
1082 # Do some error checking and defaulting for the host and target type.
1084 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1087 # 1. You are not allowed to specify --host, --target, and nonopt at the
1089 # 2. Host defaults to nonopt.
1090 # 3. If nonopt is not specified, then host defaults to the current host,
1091 # as determined by config.guess.
1092 # 4. Target and build default to nonopt.
1093 # 5. If nonopt is not specified, then target and build default to host.
1095 # The aliases save the names the user supplied, while $host etc.
1096 # will get canonicalized.
1097 case $host---$target---$nonopt in
1098 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1099 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1103 # Make sure we can run config.sub.
1104 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1105 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1108 echo $ac_n "checking host system type""... $ac_c" 1>&6
1109 echo "configure:1110: checking host system type" >&5
1112 case "$host_alias" in
1116 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1117 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1119 *) host_alias=$nonopt ;;
1123 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1124 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1125 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1126 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1127 echo "$ac_t""$host" 1>&6
1129 echo $ac_n "checking target system type""... $ac_c" 1>&6
1130 echo "configure:1131: checking target system type" >&5
1132 target_alias=$target
1133 case "$target_alias" in
1136 NONE) target_alias=$host_alias ;;
1137 *) target_alias=$nonopt ;;
1141 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1142 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1143 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1144 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1145 echo "$ac_t""$target" 1>&6
1147 echo $ac_n "checking build system type""... $ac_c" 1>&6
1148 echo "configure:1149: checking build system type" >&5
1151 case "$build_alias" in
1154 NONE) build_alias=$host_alias ;;
1155 *) build_alias=$nonopt ;;
1159 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1160 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1161 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1162 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1163 echo "$ac_t""$build" 1>&6
1165 test "$host_alias" != "$target_alias" &&
1166 test "$program_prefix$program_suffix$program_transform_name" = \
1168 program_prefix=${target_alias}-
1172 *irix6*) cat >> confdefs.h <<\EOF
1173 #include <standards.h>
1181 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1182 echo "configure:1183: checking config.cache system type" >&5
1183 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1184 test x"$ac_cv_host_system_type" != x"$host"; } ||
1185 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1186 test x"$ac_cv_build_system_type" != x"$build"; } ||
1187 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1188 test x"$ac_cv_target_system_type" != x"$target"; }; then
1189 echo "$ac_t""different" 1>&6
1190 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1192 echo "$ac_t""same" 1>&6
1194 ac_cv_host_system_type="$host"
1195 ac_cv_build_system_type="$build"
1196 ac_cv_target_system_type="$target"
1200 # Config CPPFLAG settings for strange OS's that must be set
1201 # before other tests.
1204 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1206 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1207 echo "configure:1208: checking whether ${CC-cc} accepts -Ae" >&5
1208 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1211 echo 'void f(){}' > conftest.c
1212 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1213 ac_cv_prog_cc_Ae=yes
1221 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1222 # mmap on HPUX is completely broken...
1223 cat >> confdefs.h <<\EOF
1224 #define MMAP_BLACKLIST 1
1227 if test $ac_cv_prog_cc_Ae = yes; then
1228 CPPFLAGS="$CPPFLAGS -Ae"
1231 # Defines needed for HPUX support.
1232 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1233 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1237 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1238 cat >> confdefs.h <<\EOF
1239 #define USE_BOTH_CRYPT_CALLS 1
1244 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1245 cat >> confdefs.h <<\EOF
1246 #define USE_BOTH_CRYPT_CALLS 1
1253 # AIX4.x doesn't even admit to having large
1254 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1257 echo "$ac_t""enabling large file support" 1>&6
1258 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1261 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1262 # to the existance of large files..
1263 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1264 # recommendations on large file support, however it makes the
1265 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1266 # recommendation makes the compile fail on gcc2.7. JRA.
1270 5.0*|5.1*|5.2*|5.3*|5.5*)
1271 echo "$ac_t""no large file support" 1>&6
1274 echo "$ac_t""enabling large file support" 1>&6
1275 if test "$ac_cv_prog_gcc" = yes; then
1276 ${CC-cc} -v >conftest.c 2>&1
1277 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1279 case "$ac_cv_gcc_compiler_version_number" in
1280 *"gcc version 2.6"*|*"gcc version 2.7"*)
1281 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1284 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1288 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1294 # Tests needed for SINIX large file support.
1297 if test $host = mips-sni-sysv4 ; then
1298 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1299 echo "configure:1300: checking for LFS support" >&5
1300 old_CPPFLAGS="$CPPFLAGS"
1301 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1302 if test "$cross_compiling" = yes; then
1303 SINIX_LFS_SUPPORT=cross
1305 cat > conftest.$ac_ext <<EOF
1306 #line 1307 "configure"
1307 #include "confdefs.h"
1311 #if _LFS64_LARGEFILE == 1
1318 if { (eval echo configure:1319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1320 SINIX_LFS_SUPPORT=yes
1322 echo "configure: failed program was:" >&5
1323 cat conftest.$ac_ext >&5
1325 SINIX_LFS_SUPPORT=no
1330 CPPFLAGS="$old_CPPFLAGS"
1331 if test x$SINIX_LFS_SUPPORT = xyes ; then
1332 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1333 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1334 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1335 LIBS="`getconf LFS64_LIBS` $LIBS"
1337 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1341 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1344 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1345 echo "configure:1346: checking for LFS support" >&5
1346 old_CPPFLAGS="$CPPFLAGS"
1347 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1348 if test "$cross_compiling" = yes; then
1349 LINUX_LFS_SUPPORT=cross
1351 cat > conftest.$ac_ext <<EOF
1352 #line 1353 "configure"
1353 #include "confdefs.h"
1356 #include <sys/utsname.h>
1358 #if _LFS64_LARGEFILE == 1
1363 /* Ensure this is glibc 2.2 or higher */
1364 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1365 int libc_major = __GLIBC__;
1366 int libc_minor = __GLIBC_MINOR__;
1374 /* Ensure this is kernel 2.4 or higher */
1377 release = uts.release;
1378 major = atoi(strsep(&release, "."));
1379 minor = atoi(strsep(&release, "."));
1381 if (major > 2 || (major == 2 && minor > 3))
1390 if { (eval echo configure:1391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1392 LINUX_LFS_SUPPORT=yes
1394 echo "configure: failed program was:" >&5
1395 cat conftest.$ac_ext >&5
1397 LINUX_LFS_SUPPORT=no
1402 CPPFLAGS="$old_CPPFLAGS"
1403 if test x$LINUX_LFS_SUPPORT = xyes ; then
1404 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1406 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1410 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1411 echo "configure:1412: checking for LFS support" >&5
1412 old_CPPFLAGS="$CPPFLAGS"
1413 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1414 if test "$cross_compiling" = yes; then
1415 GLIBC_LFS_SUPPORT=cross
1417 cat > conftest.$ac_ext <<EOF
1418 #line 1419 "configure"
1419 #include "confdefs.h"
1423 #if _LFS64_LARGEFILE == 1
1430 if { (eval echo configure:1431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1432 GLIBC_LFS_SUPPORT=yes
1434 echo "configure: failed program was:" >&5
1435 cat conftest.$ac_ext >&5
1437 GLIBC_LFS_SUPPORT=no
1442 CPPFLAGS="$old_CPPFLAGS"
1443 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1444 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1446 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1451 echo $ac_n "checking for inline""... $ac_c" 1>&6
1452 echo "configure:1453: checking for inline" >&5
1453 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1454 echo $ac_n "(cached) $ac_c" 1>&6
1457 for ac_kw in inline __inline__ __inline; do
1458 cat > conftest.$ac_ext <<EOF
1459 #line 1460 "configure"
1460 #include "confdefs.h"
1466 if { (eval echo configure:1467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1468 ac_cv_c_inline=$ac_kw; break
1470 echo "configure: failed program was:" >&5
1471 cat conftest.$ac_ext >&5
1478 echo "$ac_t""$ac_cv_c_inline" 1>&6
1479 case "$ac_cv_c_inline" in
1481 no) cat >> confdefs.h <<\EOF
1485 *) cat >> confdefs.h <<EOF
1486 #define inline $ac_cv_c_inline
1491 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1492 echo "configure:1493: checking how to run the C preprocessor" >&5
1493 # On Suns, sometimes $CPP names a directory.
1494 if test -n "$CPP" && test -d "$CPP"; then
1497 if test -z "$CPP"; then
1498 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1501 # This must be in double quotes, not single quotes, because CPP may get
1502 # substituted into the Makefile and "${CC-cc}" will confuse make.
1504 # On the NeXT, cc -E runs the code through the compiler's parser,
1505 # not just through cpp.
1506 cat > conftest.$ac_ext <<EOF
1507 #line 1508 "configure"
1508 #include "confdefs.h"
1512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1513 { (eval echo configure:1514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1515 if test -z "$ac_err"; then
1519 echo "configure: failed program was:" >&5
1520 cat conftest.$ac_ext >&5
1522 CPP="${CC-cc} -E -traditional-cpp"
1523 cat > conftest.$ac_ext <<EOF
1524 #line 1525 "configure"
1525 #include "confdefs.h"
1529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1530 { (eval echo configure:1531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1532 if test -z "$ac_err"; then
1536 echo "configure: failed program was:" >&5
1537 cat conftest.$ac_ext >&5
1539 CPP="${CC-cc} -nologo -E"
1540 cat > conftest.$ac_ext <<EOF
1541 #line 1542 "configure"
1542 #include "confdefs.h"
1546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1547 { (eval echo configure:1548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1548 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1549 if test -z "$ac_err"; then
1553 echo "configure: failed program was:" >&5
1554 cat conftest.$ac_ext >&5
1563 ac_cv_prog_CPP="$CPP"
1565 CPP="$ac_cv_prog_CPP"
1567 ac_cv_prog_CPP="$CPP"
1569 echo "$ac_t""$CPP" 1>&6
1571 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1572 echo "configure:1573: checking for ANSI C header files" >&5
1573 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1576 cat > conftest.$ac_ext <<EOF
1577 #line 1578 "configure"
1578 #include "confdefs.h"
1584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1585 { (eval echo configure:1586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1587 if test -z "$ac_err"; then
1589 ac_cv_header_stdc=yes
1592 echo "configure: failed program was:" >&5
1593 cat conftest.$ac_ext >&5
1595 ac_cv_header_stdc=no
1599 if test $ac_cv_header_stdc = yes; then
1600 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1601 cat > conftest.$ac_ext <<EOF
1602 #line 1603 "configure"
1603 #include "confdefs.h"
1606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1607 egrep "memchr" >/dev/null 2>&1; then
1611 ac_cv_header_stdc=no
1617 if test $ac_cv_header_stdc = yes; then
1618 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1619 cat > conftest.$ac_ext <<EOF
1620 #line 1621 "configure"
1621 #include "confdefs.h"
1624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1625 egrep "free" >/dev/null 2>&1; then
1629 ac_cv_header_stdc=no
1635 if test $ac_cv_header_stdc = yes; then
1636 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1637 if test "$cross_compiling" = yes; then
1640 cat > conftest.$ac_ext <<EOF
1641 #line 1642 "configure"
1642 #include "confdefs.h"
1644 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1645 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1646 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1647 int main () { int i; for (i = 0; i < 256; i++)
1648 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1652 if { (eval echo configure:1653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1656 echo "configure: failed program was:" >&5
1657 cat conftest.$ac_ext >&5
1659 ac_cv_header_stdc=no
1667 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1668 if test $ac_cv_header_stdc = yes; then
1669 cat >> confdefs.h <<\EOF
1670 #define STDC_HEADERS 1
1676 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1678 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1679 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1680 echo "configure:1681: checking for $ac_hdr that defines DIR" >&5
1681 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1684 cat > conftest.$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1687 #include <sys/types.h>
1693 if { (eval echo configure:1694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1695 eval "ac_cv_header_dirent_$ac_safe=yes"
1697 echo "configure: failed program was:" >&5
1698 cat conftest.$ac_ext >&5
1700 eval "ac_cv_header_dirent_$ac_safe=no"
1704 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1705 echo "$ac_t""yes" 1>&6
1706 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1707 cat >> confdefs.h <<EOF
1708 #define $ac_tr_hdr 1
1710 ac_header_dirent=$ac_hdr; break
1712 echo "$ac_t""no" 1>&6
1715 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1716 if test $ac_header_dirent = dirent.h; then
1717 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1718 echo "configure:1719: checking for opendir in -ldir" >&5
1719 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1720 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1721 echo $ac_n "(cached) $ac_c" 1>&6
1723 ac_save_LIBS="$LIBS"
1725 cat > conftest.$ac_ext <<EOF
1726 #line 1727 "configure"
1727 #include "confdefs.h"
1728 /* Override any gcc2 internal prototype to avoid an error. */
1729 /* We use char because int might match the return type of a gcc2
1730 builtin and then its argument prototype would still apply. */
1737 if { (eval echo configure:1738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1739 eval "ac_cv_lib_$ac_lib_var=yes"
1741 echo "configure: failed program was:" >&5
1742 cat conftest.$ac_ext >&5
1744 eval "ac_cv_lib_$ac_lib_var=no"
1747 LIBS="$ac_save_LIBS"
1750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1751 echo "$ac_t""yes" 1>&6
1754 echo "$ac_t""no" 1>&6
1758 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1759 echo "configure:1760: checking for opendir in -lx" >&5
1760 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1764 ac_save_LIBS="$LIBS"
1766 cat > conftest.$ac_ext <<EOF
1767 #line 1768 "configure"
1768 #include "confdefs.h"
1769 /* Override any gcc2 internal prototype to avoid an error. */
1770 /* We use char because int might match the return type of a gcc2
1771 builtin and then its argument prototype would still apply. */
1778 if { (eval echo configure:1779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1780 eval "ac_cv_lib_$ac_lib_var=yes"
1782 echo "configure: failed program was:" >&5
1783 cat conftest.$ac_ext >&5
1785 eval "ac_cv_lib_$ac_lib_var=no"
1788 LIBS="$ac_save_LIBS"
1791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1792 echo "$ac_t""yes" 1>&6
1795 echo "$ac_t""no" 1>&6
1800 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1801 echo "configure:1802: checking whether time.h and sys/time.h may both be included" >&5
1802 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1805 cat > conftest.$ac_ext <<EOF
1806 #line 1807 "configure"
1807 #include "confdefs.h"
1808 #include <sys/types.h>
1809 #include <sys/time.h>
1815 if { (eval echo configure:1816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1817 ac_cv_header_time=yes
1819 echo "configure: failed program was:" >&5
1820 cat conftest.$ac_ext >&5
1822 ac_cv_header_time=no
1827 echo "$ac_t""$ac_cv_header_time" 1>&6
1828 if test $ac_cv_header_time = yes; then
1829 cat >> confdefs.h <<\EOF
1830 #define TIME_WITH_SYS_TIME 1
1835 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1836 echo "configure:1837: checking for sys/wait.h that is POSIX.1 compatible" >&5
1837 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 cat > conftest.$ac_ext <<EOF
1841 #line 1842 "configure"
1842 #include "confdefs.h"
1843 #include <sys/types.h>
1844 #include <sys/wait.h>
1846 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1849 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1854 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1857 if { (eval echo configure:1858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1859 ac_cv_header_sys_wait_h=yes
1861 echo "configure: failed program was:" >&5
1862 cat conftest.$ac_ext >&5
1864 ac_cv_header_sys_wait_h=no
1869 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1870 if test $ac_cv_header_sys_wait_h = yes; then
1871 cat >> confdefs.h <<\EOF
1872 #define HAVE_SYS_WAIT_H 1
1877 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1879 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1880 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1881 echo "configure:1882: checking for $ac_hdr" >&5
1882 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1885 cat > conftest.$ac_ext <<EOF
1886 #line 1887 "configure"
1887 #include "confdefs.h"
1890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1891 { (eval echo configure:1892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1892 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1893 if test -z "$ac_err"; then
1895 eval "ac_cv_header_$ac_safe=yes"
1898 echo "configure: failed program was:" >&5
1899 cat conftest.$ac_ext >&5
1901 eval "ac_cv_header_$ac_safe=no"
1905 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1906 echo "$ac_t""yes" 1>&6
1907 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1908 cat >> confdefs.h <<EOF
1909 #define $ac_tr_hdr 1
1913 echo "$ac_t""no" 1>&6
1917 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
1919 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1920 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1921 echo "configure:1922: checking for $ac_hdr" >&5
1922 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1923 echo $ac_n "(cached) $ac_c" 1>&6
1925 cat > conftest.$ac_ext <<EOF
1926 #line 1927 "configure"
1927 #include "confdefs.h"
1930 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1931 { (eval echo configure:1932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1932 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1933 if test -z "$ac_err"; then
1935 eval "ac_cv_header_$ac_safe=yes"
1938 echo "configure: failed program was:" >&5
1939 cat conftest.$ac_ext >&5
1941 eval "ac_cv_header_$ac_safe=no"
1945 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1946 echo "$ac_t""yes" 1>&6
1947 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1948 cat >> confdefs.h <<EOF
1949 #define $ac_tr_hdr 1
1953 echo "$ac_t""no" 1>&6
1957 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
1959 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1960 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1961 echo "configure:1962: checking for $ac_hdr" >&5
1962 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1963 echo $ac_n "(cached) $ac_c" 1>&6
1965 cat > conftest.$ac_ext <<EOF
1966 #line 1967 "configure"
1967 #include "confdefs.h"
1970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1971 { (eval echo configure:1972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1973 if test -z "$ac_err"; then
1975 eval "ac_cv_header_$ac_safe=yes"
1978 echo "configure: failed program was:" >&5
1979 cat conftest.$ac_ext >&5
1981 eval "ac_cv_header_$ac_safe=no"
1985 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1986 echo "$ac_t""yes" 1>&6
1987 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1988 cat >> confdefs.h <<EOF
1989 #define $ac_tr_hdr 1
1993 echo "$ac_t""no" 1>&6
1997 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
1999 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2000 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2001 echo "configure:2002: checking for $ac_hdr" >&5
2002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2003 echo $ac_n "(cached) $ac_c" 1>&6
2005 cat > conftest.$ac_ext <<EOF
2006 #line 2007 "configure"
2007 #include "confdefs.h"
2010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2011 { (eval echo configure:2012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2013 if test -z "$ac_err"; then
2015 eval "ac_cv_header_$ac_safe=yes"
2018 echo "configure: failed program was:" >&5
2019 cat conftest.$ac_ext >&5
2021 eval "ac_cv_header_$ac_safe=no"
2025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2026 echo "$ac_t""yes" 1>&6
2027 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2028 cat >> confdefs.h <<EOF
2029 #define $ac_tr_hdr 1
2033 echo "$ac_t""no" 1>&6
2037 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h
2039 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2040 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2041 echo "configure:2042: checking for $ac_hdr" >&5
2042 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2045 cat > conftest.$ac_ext <<EOF
2046 #line 2047 "configure"
2047 #include "confdefs.h"
2050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2051 { (eval echo configure:2052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2053 if test -z "$ac_err"; then
2055 eval "ac_cv_header_$ac_safe=yes"
2058 echo "configure: failed program was:" >&5
2059 cat conftest.$ac_ext >&5
2061 eval "ac_cv_header_$ac_safe=no"
2065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2066 echo "$ac_t""yes" 1>&6
2067 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2068 cat >> confdefs.h <<EOF
2069 #define $ac_tr_hdr 1
2073 echo "$ac_t""no" 1>&6
2077 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2079 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2080 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2081 echo "configure:2082: checking for $ac_hdr" >&5
2082 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2083 echo $ac_n "(cached) $ac_c" 1>&6
2085 cat > conftest.$ac_ext <<EOF
2086 #line 2087 "configure"
2087 #include "confdefs.h"
2090 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2091 { (eval echo configure:2092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2092 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2093 if test -z "$ac_err"; then
2095 eval "ac_cv_header_$ac_safe=yes"
2098 echo "configure: failed program was:" >&5
2099 cat conftest.$ac_ext >&5
2101 eval "ac_cv_header_$ac_safe=no"
2105 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2106 echo "$ac_t""yes" 1>&6
2107 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2108 cat >> confdefs.h <<EOF
2109 #define $ac_tr_hdr 1
2113 echo "$ac_t""no" 1>&6
2117 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2119 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2120 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2121 echo "configure:2122: checking for $ac_hdr" >&5
2122 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2123 echo $ac_n "(cached) $ac_c" 1>&6
2125 cat > conftest.$ac_ext <<EOF
2126 #line 2127 "configure"
2127 #include "confdefs.h"
2130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131 { (eval echo configure:2132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2133 if test -z "$ac_err"; then
2135 eval "ac_cv_header_$ac_safe=yes"
2138 echo "configure: failed program was:" >&5
2139 cat conftest.$ac_ext >&5
2141 eval "ac_cv_header_$ac_safe=no"
2145 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2146 echo "$ac_t""yes" 1>&6
2147 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2148 cat >> confdefs.h <<EOF
2149 #define $ac_tr_hdr 1
2153 echo "$ac_t""no" 1>&6
2157 for ac_hdr in security/pam_modules.h security/_pam_macros.h ldap.h sasl.h
2159 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2160 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2161 echo "configure:2162: checking for $ac_hdr" >&5
2162 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2163 echo $ac_n "(cached) $ac_c" 1>&6
2165 cat > conftest.$ac_ext <<EOF
2166 #line 2167 "configure"
2167 #include "confdefs.h"
2170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2171 { (eval echo configure:2172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2172 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2173 if test -z "$ac_err"; then
2175 eval "ac_cv_header_$ac_safe=yes"
2178 echo "configure: failed program was:" >&5
2179 cat conftest.$ac_ext >&5
2181 eval "ac_cv_header_$ac_safe=no"
2185 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2186 echo "$ac_t""yes" 1>&6
2187 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2188 cat >> confdefs.h <<EOF
2189 #define $ac_tr_hdr 1
2193 echo "$ac_t""no" 1>&6
2199 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2200 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2204 cat > conftest.$ac_ext <<EOF
2205 #line 2206 "configure"
2206 #include "confdefs.h"
2212 if { (eval echo configure:2213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2214 ac_cv_header_shadow_h=yes
2216 echo "configure: failed program was:" >&5
2217 cat conftest.$ac_ext >&5
2219 ac_cv_header_shadow_h=no
2222 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2223 cat >> confdefs.h <<\EOF
2224 #define HAVE_SHADOW_H 1
2230 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2232 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2233 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2234 echo "configure:2235: checking for $ac_hdr" >&5
2235 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2236 echo $ac_n "(cached) $ac_c" 1>&6
2238 cat > conftest.$ac_ext <<EOF
2239 #line 2240 "configure"
2240 #include "confdefs.h"
2243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2244 { (eval echo configure:2245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2245 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2246 if test -z "$ac_err"; then
2248 eval "ac_cv_header_$ac_safe=yes"
2251 echo "configure: failed program was:" >&5
2252 cat conftest.$ac_ext >&5
2254 eval "ac_cv_header_$ac_safe=no"
2258 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2259 echo "$ac_t""yes" 1>&6
2260 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2261 cat >> confdefs.h <<EOF
2262 #define $ac_tr_hdr 1
2266 echo "$ac_t""no" 1>&6
2270 for ac_hdr in nss.h nss_common.h sys/security.h security/pam_appl.h security/pam_modules.h
2272 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2273 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2274 echo "configure:2275: checking for $ac_hdr" >&5
2275 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2276 echo $ac_n "(cached) $ac_c" 1>&6
2278 cat > conftest.$ac_ext <<EOF
2279 #line 2280 "configure"
2280 #include "confdefs.h"
2283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2284 { (eval echo configure:2285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2286 if test -z "$ac_err"; then
2288 eval "ac_cv_header_$ac_safe=yes"
2291 echo "configure: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2294 eval "ac_cv_header_$ac_safe=no"
2298 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2299 echo "$ac_t""yes" 1>&6
2300 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2301 cat >> confdefs.h <<EOF
2302 #define $ac_tr_hdr 1
2306 echo "$ac_t""no" 1>&6
2310 for ac_hdr in stropts.h poll.h
2312 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2313 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2314 echo "configure:2315: checking for $ac_hdr" >&5
2315 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2318 cat > conftest.$ac_ext <<EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2324 { (eval echo configure:2325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2326 if test -z "$ac_err"; then
2328 eval "ac_cv_header_$ac_safe=yes"
2331 echo "configure: failed program was:" >&5
2332 cat conftest.$ac_ext >&5
2334 eval "ac_cv_header_$ac_safe=no"
2338 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2339 echo "$ac_t""yes" 1>&6
2340 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2341 cat >> confdefs.h <<EOF
2342 #define $ac_tr_hdr 1
2346 echo "$ac_t""no" 1>&6
2350 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2352 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2353 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2354 echo "configure:2355: checking for $ac_hdr" >&5
2355 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2356 echo $ac_n "(cached) $ac_c" 1>&6
2358 cat > conftest.$ac_ext <<EOF
2359 #line 2360 "configure"
2360 #include "confdefs.h"
2363 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2364 { (eval echo configure:2365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2365 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2366 if test -z "$ac_err"; then
2368 eval "ac_cv_header_$ac_safe=yes"
2371 echo "configure: failed program was:" >&5
2372 cat conftest.$ac_ext >&5
2374 eval "ac_cv_header_$ac_safe=no"
2378 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2379 echo "$ac_t""yes" 1>&6
2380 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2381 cat >> confdefs.h <<EOF
2382 #define $ac_tr_hdr 1
2386 echo "$ac_t""no" 1>&6
2390 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2392 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2393 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2394 echo "configure:2395: checking for $ac_hdr" >&5
2395 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2398 cat > conftest.$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2404 { (eval echo configure:2405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2406 if test -z "$ac_err"; then
2408 eval "ac_cv_header_$ac_safe=yes"
2411 echo "configure: failed program was:" >&5
2412 cat conftest.$ac_ext >&5
2414 eval "ac_cv_header_$ac_safe=no"
2418 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2419 echo "$ac_t""yes" 1>&6
2420 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2421 cat >> confdefs.h <<EOF
2422 #define $ac_tr_hdr 1
2426 echo "$ac_t""no" 1>&6
2431 # For experimental utmp support (lastlog on some BSD-like systems)
2432 for ac_hdr in utmp.h utmpx.h lastlog.h
2434 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2435 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2436 echo "configure:2437: checking for $ac_hdr" >&5
2437 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2438 echo $ac_n "(cached) $ac_c" 1>&6
2440 cat > conftest.$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2446 { (eval echo configure:2447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2448 if test -z "$ac_err"; then
2450 eval "ac_cv_header_$ac_safe=yes"
2453 echo "configure: failed program was:" >&5
2454 cat conftest.$ac_ext >&5
2456 eval "ac_cv_header_$ac_safe=no"
2460 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2461 echo "$ac_t""yes" 1>&6
2462 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2463 cat >> confdefs.h <<EOF
2464 #define $ac_tr_hdr 1
2468 echo "$ac_t""no" 1>&6
2473 # For quotas on Veritas VxFS filesystems
2474 for ac_hdr in sys/fs/vx_quota.h
2476 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2477 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2478 echo "configure:2479: checking for $ac_hdr" >&5
2479 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2482 cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2487 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2488 { (eval echo configure:2489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2489 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2490 if test -z "$ac_err"; then
2492 eval "ac_cv_header_$ac_safe=yes"
2495 echo "configure: failed program was:" >&5
2496 cat conftest.$ac_ext >&5
2498 eval "ac_cv_header_$ac_safe=no"
2502 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2503 echo "$ac_t""yes" 1>&6
2504 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2505 cat >> confdefs.h <<EOF
2506 #define $ac_tr_hdr 1
2510 echo "$ac_t""no" 1>&6
2515 # For quotas on Linux XFS filesystems
2516 for ac_hdr in linux/xqm.h
2518 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2519 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2520 echo "configure:2521: checking for $ac_hdr" >&5
2521 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2522 echo $ac_n "(cached) $ac_c" 1>&6
2524 cat > conftest.$ac_ext <<EOF
2525 #line 2526 "configure"
2526 #include "confdefs.h"
2529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2530 { (eval echo configure:2531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2532 if test -z "$ac_err"; then
2534 eval "ac_cv_header_$ac_safe=yes"
2537 echo "configure: failed program was:" >&5
2538 cat conftest.$ac_ext >&5
2540 eval "ac_cv_header_$ac_safe=no"
2544 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2545 echo "$ac_t""yes" 1>&6
2546 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2547 cat >> confdefs.h <<EOF
2548 #define $ac_tr_hdr 1
2552 echo "$ac_t""no" 1>&6
2557 echo $ac_n "checking size of int""... $ac_c" 1>&6
2558 echo "configure:2559: checking size of int" >&5
2559 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2560 echo $ac_n "(cached) $ac_c" 1>&6
2562 if test "$cross_compiling" = yes; then
2563 ac_cv_sizeof_int=cross
2565 cat > conftest.$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2571 FILE *f=fopen("conftestval", "w");
2573 fprintf(f, "%d\n", sizeof(int));
2577 if { (eval echo configure:2578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2579 ac_cv_sizeof_int=`cat conftestval`
2581 echo "configure: failed program was:" >&5
2582 cat conftest.$ac_ext >&5
2590 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2591 cat >> confdefs.h <<EOF
2592 #define SIZEOF_INT $ac_cv_sizeof_int
2596 echo $ac_n "checking size of long""... $ac_c" 1>&6
2597 echo "configure:2598: checking size of long" >&5
2598 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2599 echo $ac_n "(cached) $ac_c" 1>&6
2601 if test "$cross_compiling" = yes; then
2602 ac_cv_sizeof_long=cross
2604 cat > conftest.$ac_ext <<EOF
2605 #line 2606 "configure"
2606 #include "confdefs.h"
2610 FILE *f=fopen("conftestval", "w");
2612 fprintf(f, "%d\n", sizeof(long));
2616 if { (eval echo configure:2617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2618 ac_cv_sizeof_long=`cat conftestval`
2620 echo "configure: failed program was:" >&5
2621 cat conftest.$ac_ext >&5
2629 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2630 cat >> confdefs.h <<EOF
2631 #define SIZEOF_LONG $ac_cv_sizeof_long
2635 echo $ac_n "checking size of short""... $ac_c" 1>&6
2636 echo "configure:2637: checking size of short" >&5
2637 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2638 echo $ac_n "(cached) $ac_c" 1>&6
2640 if test "$cross_compiling" = yes; then
2641 ac_cv_sizeof_short=cross
2643 cat > conftest.$ac_ext <<EOF
2644 #line 2645 "configure"
2645 #include "confdefs.h"
2649 FILE *f=fopen("conftestval", "w");
2651 fprintf(f, "%d\n", sizeof(short));
2655 if { (eval echo configure:2656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2657 ac_cv_sizeof_short=`cat conftestval`
2659 echo "configure: failed program was:" >&5
2660 cat conftest.$ac_ext >&5
2662 ac_cv_sizeof_short=0
2668 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2669 cat >> confdefs.h <<EOF
2670 #define SIZEOF_SHORT $ac_cv_sizeof_short
2675 echo $ac_n "checking for working const""... $ac_c" 1>&6
2676 echo "configure:2677: checking for working const" >&5
2677 if eval "test \"`echo '$''{'ac_cv_c_const'+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"
2686 /* Ultrix mips cc rejects this. */
2687 typedef int charset[2]; const charset x;
2688 /* SunOS 4.1.1 cc rejects this. */
2689 char const *const *ccp;
2691 /* NEC SVR4.0.2 mips cc rejects this. */
2692 struct point {int x, y;};
2693 static struct point const zero = {0,0};
2694 /* AIX XL C 1.02.0.0 rejects this.
2695 It does not let you subtract one const X* pointer from another in an arm
2696 of an if-expression whose if-part is not a constant expression */
2697 const char *g = "string";
2698 ccp = &g + (g ? g-g : 0);
2699 /* HPUX 7.0 cc rejects these. */
2702 ccp = (char const *const *) p;
2703 { /* SCO 3.2v4 cc rejects this. */
2705 char const *s = 0 ? (char *) 0 : (char const *) 0;
2709 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2711 const int *foo = &x[0];
2714 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2715 typedef const int *iptr;
2719 { /* AIX XL C 1.02.0.0 rejects this saying
2720 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2721 struct s { int j; const int *ap[3]; };
2722 struct s *b; b->j = 5;
2724 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2730 if { (eval echo configure:2731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2734 echo "configure: failed program was:" >&5
2735 cat conftest.$ac_ext >&5
2742 echo "$ac_t""$ac_cv_c_const" 1>&6
2743 if test $ac_cv_c_const = no; then
2744 cat >> confdefs.h <<\EOF
2750 echo $ac_n "checking for inline""... $ac_c" 1>&6
2751 echo "configure:2752: checking for inline" >&5
2752 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2756 for ac_kw in inline __inline__ __inline; do
2757 cat > conftest.$ac_ext <<EOF
2758 #line 2759 "configure"
2759 #include "confdefs.h"
2765 if { (eval echo configure:2766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2767 ac_cv_c_inline=$ac_kw; break
2769 echo "configure: failed program was:" >&5
2770 cat conftest.$ac_ext >&5
2777 echo "$ac_t""$ac_cv_c_inline" 1>&6
2778 case "$ac_cv_c_inline" in
2780 no) cat >> confdefs.h <<\EOF
2784 *) cat >> confdefs.h <<EOF
2785 #define inline $ac_cv_c_inline
2790 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2791 echo "configure:2792: checking whether byte ordering is bigendian" >&5
2792 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2795 ac_cv_c_bigendian=unknown
2796 # See if sys/param.h defines the BYTE_ORDER macro.
2797 cat > conftest.$ac_ext <<EOF
2798 #line 2799 "configure"
2799 #include "confdefs.h"
2800 #include <sys/types.h>
2801 #include <sys/param.h>
2804 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2809 if { (eval echo configure:2810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2811 # It does; now see whether it defined to BIG_ENDIAN or not.
2812 cat > conftest.$ac_ext <<EOF
2813 #line 2814 "configure"
2814 #include "confdefs.h"
2815 #include <sys/types.h>
2816 #include <sys/param.h>
2819 #if BYTE_ORDER != BIG_ENDIAN
2824 if { (eval echo configure:2825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2826 ac_cv_c_bigendian=yes
2828 echo "configure: failed program was:" >&5
2829 cat conftest.$ac_ext >&5
2831 ac_cv_c_bigendian=no
2835 echo "configure: failed program was:" >&5
2836 cat conftest.$ac_ext >&5
2839 if test $ac_cv_c_bigendian = unknown; then
2840 if test "$cross_compiling" = yes; then
2841 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2843 cat > conftest.$ac_ext <<EOF
2844 #line 2845 "configure"
2845 #include "confdefs.h"
2847 /* Are we little or big endian? From Harbison&Steele. */
2851 char c[sizeof (long)];
2854 exit (u.c[sizeof (long) - 1] == 1);
2857 if { (eval echo configure:2858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2859 ac_cv_c_bigendian=no
2861 echo "configure: failed program was:" >&5
2862 cat conftest.$ac_ext >&5
2864 ac_cv_c_bigendian=yes
2872 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2873 if test $ac_cv_c_bigendian = yes; then
2874 cat >> confdefs.h <<\EOF
2875 #define WORDS_BIGENDIAN 1
2880 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2881 echo "configure:2882: checking whether char is unsigned" >&5
2882 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2883 echo $ac_n "(cached) $ac_c" 1>&6
2885 if test "$GCC" = yes; then
2886 # GCC predefines this symbol on systems where it applies.
2887 cat > conftest.$ac_ext <<EOF
2888 #line 2889 "configure"
2889 #include "confdefs.h"
2890 #ifdef __CHAR_UNSIGNED__
2895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2896 egrep "yes" >/dev/null 2>&1; then
2898 ac_cv_c_char_unsigned=yes
2901 ac_cv_c_char_unsigned=no
2906 if test "$cross_compiling" = yes; then
2907 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2909 cat > conftest.$ac_ext <<EOF
2910 #line 2911 "configure"
2911 #include "confdefs.h"
2912 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2913 #if !defined(__STDC__) || __STDC__ != 1
2917 volatile char c = 255; exit(c < 0);
2920 if { (eval echo configure:2921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2922 ac_cv_c_char_unsigned=yes
2924 echo "configure: failed program was:" >&5
2925 cat conftest.$ac_ext >&5
2927 ac_cv_c_char_unsigned=no
2935 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2936 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2937 cat >> confdefs.h <<\EOF
2938 #define __CHAR_UNSIGNED__ 1
2944 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2945 echo "configure:2946: checking return type of signal handlers" >&5
2946 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2947 echo $ac_n "(cached) $ac_c" 1>&6
2949 cat > conftest.$ac_ext <<EOF
2950 #line 2951 "configure"
2951 #include "confdefs.h"
2952 #include <sys/types.h>
2958 extern "C" void (*signal (int, void (*)(int)))(int);
2960 void (*signal ()) ();
2967 if { (eval echo configure:2968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2969 ac_cv_type_signal=void
2971 echo "configure: failed program was:" >&5
2972 cat conftest.$ac_ext >&5
2974 ac_cv_type_signal=int
2979 echo "$ac_t""$ac_cv_type_signal" 1>&6
2980 cat >> confdefs.h <<EOF
2981 #define RETSIGTYPE $ac_cv_type_signal
2985 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2986 echo "configure:2987: checking for uid_t in sys/types.h" >&5
2987 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2988 echo $ac_n "(cached) $ac_c" 1>&6
2990 cat > conftest.$ac_ext <<EOF
2991 #line 2992 "configure"
2992 #include "confdefs.h"
2993 #include <sys/types.h>
2995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2996 egrep "uid_t" >/dev/null 2>&1; then
2998 ac_cv_type_uid_t=yes
3007 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3008 if test $ac_cv_type_uid_t = no; then
3009 cat >> confdefs.h <<\EOF
3013 cat >> confdefs.h <<\EOF
3019 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3020 echo "configure:3021: checking for mode_t" >&5
3021 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3022 echo $ac_n "(cached) $ac_c" 1>&6
3024 cat > conftest.$ac_ext <<EOF
3025 #line 3026 "configure"
3026 #include "confdefs.h"
3027 #include <sys/types.h>
3033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3034 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3036 ac_cv_type_mode_t=yes
3039 ac_cv_type_mode_t=no
3044 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3045 if test $ac_cv_type_mode_t = no; then
3046 cat >> confdefs.h <<\EOF
3052 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3053 echo "configure:3054: checking for off_t" >&5
3054 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3055 echo $ac_n "(cached) $ac_c" 1>&6
3057 cat > conftest.$ac_ext <<EOF
3058 #line 3059 "configure"
3059 #include "confdefs.h"
3060 #include <sys/types.h>
3066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3067 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3069 ac_cv_type_off_t=yes
3077 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3078 if test $ac_cv_type_off_t = no; then
3079 cat >> confdefs.h <<\EOF
3085 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3086 echo "configure:3087: checking for size_t" >&5
3087 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3088 echo $ac_n "(cached) $ac_c" 1>&6
3090 cat > conftest.$ac_ext <<EOF
3091 #line 3092 "configure"
3092 #include "confdefs.h"
3093 #include <sys/types.h>
3099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3100 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3102 ac_cv_type_size_t=yes
3105 ac_cv_type_size_t=no
3110 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3111 if test $ac_cv_type_size_t = no; then
3112 cat >> confdefs.h <<\EOF
3113 #define size_t unsigned
3118 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3119 echo "configure:3120: checking for pid_t" >&5
3120 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3121 echo $ac_n "(cached) $ac_c" 1>&6
3123 cat > conftest.$ac_ext <<EOF
3124 #line 3125 "configure"
3125 #include "confdefs.h"
3126 #include <sys/types.h>
3132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3133 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3135 ac_cv_type_pid_t=yes
3143 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3144 if test $ac_cv_type_pid_t = no; then
3145 cat >> confdefs.h <<\EOF
3151 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3152 echo "configure:3153: checking for st_rdev in struct stat" >&5
3153 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3154 echo $ac_n "(cached) $ac_c" 1>&6
3156 cat > conftest.$ac_ext <<EOF
3157 #line 3158 "configure"
3158 #include "confdefs.h"
3159 #include <sys/types.h>
3160 #include <sys/stat.h>
3162 struct stat s; s.st_rdev;
3165 if { (eval echo configure:3166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3167 ac_cv_struct_st_rdev=yes
3169 echo "configure: failed program was:" >&5
3170 cat conftest.$ac_ext >&5
3172 ac_cv_struct_st_rdev=no
3177 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3178 if test $ac_cv_struct_st_rdev = yes; then
3179 cat >> confdefs.h <<\EOF
3180 #define HAVE_ST_RDEV 1
3185 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3186 echo "configure:3187: checking for d_off in dirent" >&5
3187 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3188 echo $ac_n "(cached) $ac_c" 1>&6
3190 cat > conftest.$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3195 #include <sys/types.h>
3198 struct dirent d; d.d_off;
3201 if { (eval echo configure:3202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3203 ac_cv_dirent_d_off=yes
3205 echo "configure: failed program was:" >&5
3206 cat conftest.$ac_ext >&5
3208 ac_cv_dirent_d_off=no
3213 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3214 if test $ac_cv_dirent_d_off = yes; then
3215 cat >> confdefs.h <<\EOF
3216 #define HAVE_DIRENT_D_OFF 1
3221 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3222 echo "configure:3223: checking for ino_t" >&5
3223 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3226 cat > conftest.$ac_ext <<EOF
3227 #line 3228 "configure"
3228 #include "confdefs.h"
3229 #include <sys/types.h>
3235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3236 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3238 ac_cv_type_ino_t=yes
3246 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3247 if test $ac_cv_type_ino_t = no; then
3248 cat >> confdefs.h <<\EOF
3249 #define ino_t unsigned
3254 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3255 echo "configure:3256: checking for loff_t" >&5
3256 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3257 echo $ac_n "(cached) $ac_c" 1>&6
3259 cat > conftest.$ac_ext <<EOF
3260 #line 3261 "configure"
3261 #include "confdefs.h"
3262 #include <sys/types.h>
3268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3269 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3271 ac_cv_type_loff_t=yes
3274 ac_cv_type_loff_t=no
3279 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3280 if test $ac_cv_type_loff_t = no; then
3281 cat >> confdefs.h <<\EOF
3282 #define loff_t off_t
3287 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3288 echo "configure:3289: checking for offset_t" >&5
3289 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3290 echo $ac_n "(cached) $ac_c" 1>&6
3292 cat > conftest.$ac_ext <<EOF
3293 #line 3294 "configure"
3294 #include "confdefs.h"
3295 #include <sys/types.h>
3301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3302 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3304 ac_cv_type_offset_t=yes
3307 ac_cv_type_offset_t=no
3312 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3313 if test $ac_cv_type_offset_t = no; then
3314 cat >> confdefs.h <<\EOF
3315 #define offset_t loff_t
3320 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3321 echo "configure:3322: checking for ssize_t" >&5
3322 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3323 echo $ac_n "(cached) $ac_c" 1>&6
3325 cat > conftest.$ac_ext <<EOF
3326 #line 3327 "configure"
3327 #include "confdefs.h"
3328 #include <sys/types.h>
3334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3335 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3337 ac_cv_type_ssize_t=yes
3340 ac_cv_type_ssize_t=no
3345 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3346 if test $ac_cv_type_ssize_t = no; then
3347 cat >> confdefs.h <<\EOF
3353 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3354 echo "configure:3355: checking for wchar_t" >&5
3355 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3356 echo $ac_n "(cached) $ac_c" 1>&6
3358 cat > conftest.$ac_ext <<EOF
3359 #line 3360 "configure"
3360 #include "confdefs.h"
3361 #include <sys/types.h>
3367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3368 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3370 ac_cv_type_wchar_t=yes
3373 ac_cv_type_wchar_t=no
3378 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3379 if test $ac_cv_type_wchar_t = no; then
3380 cat >> confdefs.h <<\EOF
3381 #define wchar_t unsigned short
3387 ############################################
3388 # for cups support we need libcups, and a handful of header files
3390 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3391 echo "configure:3392: checking for httpConnect in -lcups" >&5
3392 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3394 echo $ac_n "(cached) $ac_c" 1>&6
3396 ac_save_LIBS="$LIBS"
3398 cat > conftest.$ac_ext <<EOF
3399 #line 3400 "configure"
3400 #include "confdefs.h"
3401 /* Override any gcc2 internal prototype to avoid an error. */
3402 /* We use char because int might match the return type of a gcc2
3403 builtin and then its argument prototype would still apply. */
3410 if { (eval echo configure:3411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3412 eval "ac_cv_lib_$ac_lib_var=yes"
3414 echo "configure: failed program was:" >&5
3415 cat conftest.$ac_ext >&5
3417 eval "ac_cv_lib_$ac_lib_var=no"
3420 LIBS="$ac_save_LIBS"
3423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3424 echo "$ac_t""yes" 1>&6
3425 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3426 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3427 cat >> confdefs.h <<EOF
3428 #define $ac_tr_lib 1
3434 echo "$ac_t""no" 1>&6
3438 # I wonder if there is a nicer way of doing this?
3440 if test x"$ac_cv_lib_cups_httpConnect" = x"yes"; then
3441 for ac_hdr in cups/cups.h cups/language.h
3443 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3444 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3445 echo "configure:3446: checking for $ac_hdr" >&5
3446 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3447 echo $ac_n "(cached) $ac_c" 1>&6
3449 cat > conftest.$ac_ext <<EOF
3450 #line 3451 "configure"
3451 #include "confdefs.h"
3454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3455 { (eval echo configure:3456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3457 if test -z "$ac_err"; then
3459 eval "ac_cv_header_$ac_safe=yes"
3462 echo "configure: failed program was:" >&5
3463 cat conftest.$ac_ext >&5
3465 eval "ac_cv_header_$ac_safe=no"
3469 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3470 echo "$ac_t""yes" 1>&6
3471 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3472 cat >> confdefs.h <<EOF
3473 #define $ac_tr_hdr 1
3477 echo "$ac_t""no" 1>&6
3481 if test x"$ac_cv_header_cups_cups_h" = x"yes"; then
3482 if test x"$ac_cv_header_cups_language_h" = x"yes"; then
3483 cat >> confdefs.h <<\EOF
3491 ############################################
3492 # we need libdl for PAM and the new VFS code
3493 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3494 echo "configure:3495: checking for dlopen in -ldl" >&5
3495 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3497 echo $ac_n "(cached) $ac_c" 1>&6
3499 ac_save_LIBS="$LIBS"
3501 cat > conftest.$ac_ext <<EOF
3502 #line 3503 "configure"
3503 #include "confdefs.h"
3504 /* Override any gcc2 internal prototype to avoid an error. */
3505 /* We use char because int might match the return type of a gcc2
3506 builtin and then its argument prototype would still apply. */
3513 if { (eval echo configure:3514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3515 eval "ac_cv_lib_$ac_lib_var=yes"
3517 echo "configure: failed program was:" >&5
3518 cat conftest.$ac_ext >&5
3520 eval "ac_cv_lib_$ac_lib_var=no"
3523 LIBS="$ac_save_LIBS"
3526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3527 echo "$ac_t""yes" 1>&6
3529 cat >> confdefs.h <<\EOF
3530 #define HAVE_LIBDL 1
3534 echo "$ac_t""no" 1>&6
3538 ############################################
3539 # check if the compiler can do immediate structures
3540 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3541 echo "configure:3542: checking for immediate structures" >&5
3542 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3543 echo $ac_n "(cached) $ac_c" 1>&6
3546 cat > conftest.$ac_ext <<EOF
3547 #line 3548 "configure"
3548 #include "confdefs.h"
3553 #define X_FOOBAR(x) ((FOOBAR) { x })
3554 typedef struct {unsigned x;} FOOBAR;
3555 FOOBAR f = X_FOOBAR(1);
3559 if { (eval echo configure:3560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3561 samba_cv_immediate_structures=yes
3563 echo "configure: failed program was:" >&5
3564 cat conftest.$ac_ext >&5
3566 samba_cv_immediate_structures=no
3571 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3572 if test x"$samba_cv_immediate_structures" = x"yes"; then
3573 cat >> confdefs.h <<\EOF
3574 #define HAVE_IMMEDIATE_STRUCTURES 1
3579 ############################################
3580 # check for unix domain sockets
3581 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3582 echo "configure:3583: checking for unix domain sockets" >&5
3583 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3584 echo $ac_n "(cached) $ac_c" 1>&6
3587 cat > conftest.$ac_ext <<EOF
3588 #line 3589 "configure"
3589 #include "confdefs.h"
3591 #include <sys/types.h>
3594 #include <sys/socket.h>
3598 struct sockaddr_un sunaddr;
3599 sunaddr.sun_family = AF_UNIX;
3603 if { (eval echo configure:3604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3605 samba_cv_unixsocket=yes
3607 echo "configure: failed program was:" >&5
3608 cat conftest.$ac_ext >&5
3610 samba_cv_unixsocket=no
3615 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3616 if test x"$samba_cv_unixsocket" = x"yes"; then
3617 cat >> confdefs.h <<\EOF
3618 #define HAVE_UNIXSOCKET 1
3624 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3625 echo "configure:3626: checking for socklen_t type" >&5
3626 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3630 cat > conftest.$ac_ext <<EOF
3631 #line 3632 "configure"
3632 #include "confdefs.h"
3634 #include <sys/types.h>
3639 #include <sys/socket.h>
3644 if { (eval echo configure:3645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3646 samba_cv_socklen_t=yes
3648 echo "configure: failed program was:" >&5
3649 cat conftest.$ac_ext >&5
3651 samba_cv_socklen_t=no
3656 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3657 if test x"$samba_cv_socklen_t" = x"yes"; then
3658 cat >> confdefs.h <<\EOF
3659 #define HAVE_SOCKLEN_T_TYPE 1
3664 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3665 echo "configure:3666: checking for sig_atomic_t type" >&5
3666 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3667 echo $ac_n "(cached) $ac_c" 1>&6
3670 cat > conftest.$ac_ext <<EOF
3671 #line 3672 "configure"
3672 #include "confdefs.h"
3674 #include <sys/types.h>
3684 if { (eval echo configure:3685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3686 samba_cv_sig_atomic_t=yes
3688 echo "configure: failed program was:" >&5
3689 cat conftest.$ac_ext >&5
3691 samba_cv_sig_atomic_t=no
3696 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3697 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3698 cat >> confdefs.h <<\EOF
3699 #define HAVE_SIG_ATOMIC_T_TYPE 1
3704 # stupid headers have the functions but no declaration. grrrr.
3706 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3707 echo "configure:3708: checking for errno declaration" >&5
3708 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3709 echo $ac_n "(cached) $ac_c" 1>&6
3712 cat > conftest.$ac_ext <<EOF
3713 #line 3714 "configure"
3714 #include "confdefs.h"
3720 if { (eval echo configure:3721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3722 ac_cv_have_errno_decl=yes
3724 echo "configure: failed program was:" >&5
3725 cat conftest.$ac_ext >&5
3727 ac_cv_have_errno_decl=no
3732 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3733 if test x"$ac_cv_have_errno_decl" = x"yes"; then
3734 cat >> confdefs.h <<\EOF
3735 #define HAVE_ERRNO_DECL 1
3741 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3742 echo "configure:3743: checking for setresuid declaration" >&5
3743 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3744 echo $ac_n "(cached) $ac_c" 1>&6
3747 cat > conftest.$ac_ext <<EOF
3748 #line 3749 "configure"
3749 #include "confdefs.h"
3752 int i = (int)setresuid
3755 if { (eval echo configure:3756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3757 ac_cv_have_setresuid_decl=yes
3759 echo "configure: failed program was:" >&5
3760 cat conftest.$ac_ext >&5
3762 ac_cv_have_setresuid_decl=no
3767 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3768 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
3769 cat >> confdefs.h <<\EOF
3770 #define HAVE_SETRESUID_DECL 1
3776 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3777 echo "configure:3778: checking for setresgid declaration" >&5
3778 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3779 echo $ac_n "(cached) $ac_c" 1>&6
3782 cat > conftest.$ac_ext <<EOF
3783 #line 3784 "configure"
3784 #include "confdefs.h"
3787 int i = (int)setresgid
3790 if { (eval echo configure:3791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3792 ac_cv_have_setresgid_decl=yes
3794 echo "configure: failed program was:" >&5
3795 cat conftest.$ac_ext >&5
3797 ac_cv_have_setresgid_decl=no
3802 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3803 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
3804 cat >> confdefs.h <<\EOF
3805 #define HAVE_SETRESGID_DECL 1
3811 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3812 echo "configure:3813: checking for asprintf declaration" >&5
3813 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3814 echo $ac_n "(cached) $ac_c" 1>&6
3817 cat > conftest.$ac_ext <<EOF
3818 #line 3819 "configure"
3819 #include "confdefs.h"
3822 int i = (int)asprintf
3825 if { (eval echo configure:3826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3827 ac_cv_have_asprintf_decl=yes
3829 echo "configure: failed program was:" >&5
3830 cat conftest.$ac_ext >&5
3832 ac_cv_have_asprintf_decl=no
3837 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3838 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
3839 cat >> confdefs.h <<\EOF
3840 #define HAVE_ASPRINTF_DECL 1
3846 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3847 echo "configure:3848: checking for vasprintf declaration" >&5
3848 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3849 echo $ac_n "(cached) $ac_c" 1>&6
3852 cat > conftest.$ac_ext <<EOF
3853 #line 3854 "configure"
3854 #include "confdefs.h"
3857 int i = (int)vasprintf
3860 if { (eval echo configure:3861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3862 ac_cv_have_vasprintf_decl=yes
3864 echo "configure: failed program was:" >&5
3865 cat conftest.$ac_ext >&5
3867 ac_cv_have_vasprintf_decl=no
3872 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
3873 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
3874 cat >> confdefs.h <<\EOF
3875 #define HAVE_VASPRINTF_DECL 1
3881 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
3882 echo "configure:3883: checking for vsnprintf declaration" >&5
3883 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
3884 echo $ac_n "(cached) $ac_c" 1>&6
3887 cat > conftest.$ac_ext <<EOF
3888 #line 3889 "configure"
3889 #include "confdefs.h"
3892 int i = (int)vsnprintf
3895 if { (eval echo configure:3896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3897 ac_cv_have_vsnprintf_decl=yes
3899 echo "configure: failed program was:" >&5
3900 cat conftest.$ac_ext >&5
3902 ac_cv_have_vsnprintf_decl=no
3907 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
3908 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
3909 cat >> confdefs.h <<\EOF
3910 #define HAVE_VSNPRINTF_DECL 1
3916 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
3917 echo "configure:3918: checking for snprintf declaration" >&5
3918 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
3919 echo $ac_n "(cached) $ac_c" 1>&6
3922 cat > conftest.$ac_ext <<EOF
3923 #line 3924 "configure"
3924 #include "confdefs.h"
3927 int i = (int)snprintf
3930 if { (eval echo configure:3931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3932 ac_cv_have_snprintf_decl=yes
3934 echo "configure: failed program was:" >&5
3935 cat conftest.$ac_ext >&5
3937 ac_cv_have_snprintf_decl=no
3942 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
3943 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
3944 cat >> confdefs.h <<\EOF
3945 #define HAVE_SNPRINTF_DECL 1
3951 # and glibc has setresuid under linux but the function does
3952 # nothing until kernel 2.1.44! very dumb.
3953 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3954 echo "configure:3955: checking for real setresuid" >&5
3955 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3956 echo $ac_n "(cached) $ac_c" 1>&6
3959 if test "$cross_compiling" = yes; then
3960 samba_cv_have_setresuid=cross
3962 cat > conftest.$ac_ext <<EOF
3963 #line 3964 "configure"
3964 #include "confdefs.h"
3966 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3968 if { (eval echo configure:3969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3970 samba_cv_have_setresuid=yes
3972 echo "configure: failed program was:" >&5
3973 cat conftest.$ac_ext >&5
3975 samba_cv_have_setresuid=no
3982 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3983 if test x"$samba_cv_have_setresuid" = x"yes"; then
3984 cat >> confdefs.h <<\EOF
3985 #define HAVE_SETRESUID 1
3990 # Do the same check for setresguid...
3992 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
3993 echo "configure:3994: checking for real setresgid" >&5
3994 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
3995 echo $ac_n "(cached) $ac_c" 1>&6
3998 if test "$cross_compiling" = yes; then
3999 samba_cv_have_setresgid=cross
4001 cat > conftest.$ac_ext <<EOF
4002 #line 4003 "configure"
4003 #include "confdefs.h"
4006 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4008 if { (eval echo configure:4009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4010 samba_cv_have_setresgid=yes
4012 echo "configure: failed program was:" >&5
4013 cat conftest.$ac_ext >&5
4015 samba_cv_have_setresgid=no
4022 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4023 if test x"$samba_cv_have_setresgid" = x"yes"; then
4024 cat >> confdefs.h <<\EOF
4025 #define HAVE_SETRESGID 1
4030 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4031 echo "configure:4032: checking for 8-bit clean memcmp" >&5
4032 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4033 echo $ac_n "(cached) $ac_c" 1>&6
4035 if test "$cross_compiling" = yes; then
4036 ac_cv_func_memcmp_clean=no
4038 cat > conftest.$ac_ext <<EOF
4039 #line 4040 "configure"
4040 #include "confdefs.h"
4044 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4045 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4049 if { (eval echo configure:4050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4051 ac_cv_func_memcmp_clean=yes
4053 echo "configure: failed program was:" >&5
4054 cat conftest.$ac_ext >&5
4056 ac_cv_func_memcmp_clean=no
4063 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4064 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4067 ###############################################
4068 # test for where we get crypt() from
4069 for ac_func in crypt
4071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4072 echo "configure:4073: checking for $ac_func" >&5
4073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4074 echo $ac_n "(cached) $ac_c" 1>&6
4076 cat > conftest.$ac_ext <<EOF
4077 #line 4078 "configure"
4078 #include "confdefs.h"
4079 /* System header to define __stub macros and hopefully few prototypes,
4080 which can conflict with char $ac_func(); below. */
4082 /* Override any gcc2 internal prototype to avoid an error. */
4083 /* We use char because int might match the return type of a gcc2
4084 builtin and then its argument prototype would still apply. */
4089 /* The GNU C library defines this for functions which it implements
4090 to always fail with ENOSYS. Some functions are actually named
4091 something starting with __ and the normal name is an alias. */
4092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4100 if { (eval echo configure:4101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4102 eval "ac_cv_func_$ac_func=yes"
4104 echo "configure: failed program was:" >&5
4105 cat conftest.$ac_ext >&5
4107 eval "ac_cv_func_$ac_func=no"
4112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4113 echo "$ac_t""yes" 1>&6
4114 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4115 cat >> confdefs.h <<EOF
4116 #define $ac_tr_func 1
4120 echo "$ac_t""no" 1>&6
4124 if test x"$ac_cv_func_crypt" = x"no"; then
4125 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4126 echo "configure:4127: checking for crypt in -lcrypt" >&5
4127 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4128 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4129 echo $ac_n "(cached) $ac_c" 1>&6
4131 ac_save_LIBS="$LIBS"
4132 LIBS="-lcrypt $LIBS"
4133 cat > conftest.$ac_ext <<EOF
4134 #line 4135 "configure"
4135 #include "confdefs.h"
4136 /* Override any gcc2 internal prototype to avoid an error. */
4137 /* We use char because int might match the return type of a gcc2
4138 builtin and then its argument prototype would still apply. */
4145 if { (eval echo configure:4146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4147 eval "ac_cv_lib_$ac_lib_var=yes"
4149 echo "configure: failed program was:" >&5
4150 cat conftest.$ac_ext >&5
4152 eval "ac_cv_lib_$ac_lib_var=no"
4155 LIBS="$ac_save_LIBS"
4158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4159 echo "$ac_t""yes" 1>&6
4160 LIBS="$LIBS -lcrypt";
4161 cat >> confdefs.h <<\EOF
4162 #define HAVE_CRYPT 1
4166 echo "$ac_t""no" 1>&6
4172 ###############################################
4173 # Readline included by default unless explicitly asked not to
4174 test "${with_readline+set}" != "set" && with_readline=yes
4176 # test for where we get readline() from
4177 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4178 echo "configure:4179: checking whether to use readline" >&5
4179 # Check whether --with-readline or --without-readline was given.
4180 if test "${with_readline+set}" = set; then
4181 withval="$with_readline"
4182 case "$with_readline" in
4184 echo "$ac_t""yes" 1>&6
4186 for ac_hdr in readline.h history.h readline/readline.h
4188 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4189 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4190 echo "configure:4191: checking for $ac_hdr" >&5
4191 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4192 echo $ac_n "(cached) $ac_c" 1>&6
4194 cat > conftest.$ac_ext <<EOF
4195 #line 4196 "configure"
4196 #include "confdefs.h"
4199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4200 { (eval echo configure:4201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4202 if test -z "$ac_err"; then
4204 eval "ac_cv_header_$ac_safe=yes"
4207 echo "configure: failed program was:" >&5
4208 cat conftest.$ac_ext >&5
4210 eval "ac_cv_header_$ac_safe=no"
4214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4215 echo "$ac_t""yes" 1>&6
4216 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4217 cat >> confdefs.h <<EOF
4218 #define $ac_tr_hdr 1
4222 echo "$ac_t""no" 1>&6
4226 for ac_hdr in readline/history.h
4228 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4229 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4230 echo "configure:4231: checking for $ac_hdr" >&5
4231 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4232 echo $ac_n "(cached) $ac_c" 1>&6
4234 cat > conftest.$ac_ext <<EOF
4235 #line 4236 "configure"
4236 #include "confdefs.h"
4239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4240 { (eval echo configure:4241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4241 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4242 if test -z "$ac_err"; then
4244 eval "ac_cv_header_$ac_safe=yes"
4247 echo "configure: failed program was:" >&5
4248 cat conftest.$ac_ext >&5
4250 eval "ac_cv_header_$ac_safe=no"
4254 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4255 echo "$ac_t""yes" 1>&6
4256 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4257 cat >> confdefs.h <<EOF
4258 #define $ac_tr_hdr 1
4262 echo "$ac_t""no" 1>&6
4267 for ac_hdr in readline.h readline/readline.h
4269 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4270 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4271 echo "configure:4272: checking for $ac_hdr" >&5
4272 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4273 echo $ac_n "(cached) $ac_c" 1>&6
4275 cat > conftest.$ac_ext <<EOF
4276 #line 4277 "configure"
4277 #include "confdefs.h"
4280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4281 { (eval echo configure:4282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4283 if test -z "$ac_err"; then
4285 eval "ac_cv_header_$ac_safe=yes"
4288 echo "configure: failed program was:" >&5
4289 cat conftest.$ac_ext >&5
4291 eval "ac_cv_header_$ac_safe=no"
4295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4296 echo "$ac_t""yes" 1>&6
4297 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4298 cat >> confdefs.h <<EOF
4299 #define $ac_tr_hdr 1
4302 for termlib in ncurses curses termcap terminfo termlib; do
4303 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4304 echo "configure:4305: checking for tgetent in -l${termlib}" >&5
4305 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4307 echo $ac_n "(cached) $ac_c" 1>&6
4309 ac_save_LIBS="$LIBS"
4310 LIBS="-l${termlib} $LIBS"
4311 cat > conftest.$ac_ext <<EOF
4312 #line 4313 "configure"
4313 #include "confdefs.h"
4314 /* Override any gcc2 internal prototype to avoid an error. */
4315 /* We use char because int might match the return type of a gcc2
4316 builtin and then its argument prototype would still apply. */
4323 if { (eval echo configure:4324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4325 eval "ac_cv_lib_$ac_lib_var=yes"
4327 echo "configure: failed program was:" >&5
4328 cat conftest.$ac_ext >&5
4330 eval "ac_cv_lib_$ac_lib_var=no"
4333 LIBS="$ac_save_LIBS"
4336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4337 echo "$ac_t""yes" 1>&6
4338 TERMLIBS="-l${termlib}"; break
4340 echo "$ac_t""no" 1>&6
4344 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4345 echo "configure:4346: checking for rl_callback_handler_install in -lreadline" >&5
4346 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4348 echo $ac_n "(cached) $ac_c" 1>&6
4350 ac_save_LIBS="$LIBS"
4351 LIBS="-lreadline $TERMLIBS $LIBS"
4352 cat > conftest.$ac_ext <<EOF
4353 #line 4354 "configure"
4354 #include "confdefs.h"
4355 /* Override any gcc2 internal prototype to avoid an error. */
4356 /* We use char because int might match the return type of a gcc2
4357 builtin and then its argument prototype would still apply. */
4358 char rl_callback_handler_install();
4361 rl_callback_handler_install()
4364 if { (eval echo configure:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4366 eval "ac_cv_lib_$ac_lib_var=yes"
4368 echo "configure: failed program was:" >&5
4369 cat conftest.$ac_ext >&5
4371 eval "ac_cv_lib_$ac_lib_var=no"
4374 LIBS="$ac_save_LIBS"
4377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4378 echo "$ac_t""yes" 1>&6
4379 TERMLIBS="-lreadline $TERMLIBS"
4380 cat >> confdefs.h <<\EOF
4381 #define HAVE_LIBREADLINE 1
4386 echo "$ac_t""no" 1>&6
4391 echo "$ac_t""no" 1>&6
4397 echo "$ac_t""no" 1>&6
4400 echo "$ac_t""yes" 1>&6
4402 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4403 # alternate readline path
4405 _cppflags=${CPPFLAGS}
4407 # Add additional search path
4408 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4409 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4411 for ac_hdr in readline.h history.h readline/readline.h
4413 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4414 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4415 echo "configure:4416: checking for $ac_hdr" >&5
4416 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4417 echo $ac_n "(cached) $ac_c" 1>&6
4419 cat > conftest.$ac_ext <<EOF
4420 #line 4421 "configure"
4421 #include "confdefs.h"
4424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4425 { (eval echo configure:4426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4427 if test -z "$ac_err"; then
4429 eval "ac_cv_header_$ac_safe=yes"
4432 echo "configure: failed program was:" >&5
4433 cat conftest.$ac_ext >&5
4435 eval "ac_cv_header_$ac_safe=no"
4439 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4440 echo "$ac_t""yes" 1>&6
4441 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4442 cat >> confdefs.h <<EOF
4443 #define $ac_tr_hdr 1
4447 echo "$ac_t""no" 1>&6
4451 for ac_hdr in readline/history.h
4453 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4454 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4455 echo "configure:4456: checking for $ac_hdr" >&5
4456 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4457 echo $ac_n "(cached) $ac_c" 1>&6
4459 cat > conftest.$ac_ext <<EOF
4460 #line 4461 "configure"
4461 #include "confdefs.h"
4464 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4465 { (eval echo configure:4466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4466 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4467 if test -z "$ac_err"; then
4469 eval "ac_cv_header_$ac_safe=yes"
4472 echo "configure: failed program was:" >&5
4473 cat conftest.$ac_ext >&5
4475 eval "ac_cv_header_$ac_safe=no"
4479 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4480 echo "$ac_t""yes" 1>&6
4481 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4482 cat >> confdefs.h <<EOF
4483 #define $ac_tr_hdr 1
4487 echo "$ac_t""no" 1>&6
4492 for ac_hdr in readline.h readline/readline.h
4494 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4495 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4496 echo "configure:4497: checking for $ac_hdr" >&5
4497 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4498 echo $ac_n "(cached) $ac_c" 1>&6
4500 cat > conftest.$ac_ext <<EOF
4501 #line 4502 "configure"
4502 #include "confdefs.h"
4505 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4506 { (eval echo configure:4507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4507 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4508 if test -z "$ac_err"; then
4510 eval "ac_cv_header_$ac_safe=yes"
4513 echo "configure: failed program was:" >&5
4514 cat conftest.$ac_ext >&5
4516 eval "ac_cv_header_$ac_safe=no"
4520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4521 echo "$ac_t""yes" 1>&6
4522 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4523 cat >> confdefs.h <<EOF
4524 #define $ac_tr_hdr 1
4527 for termlib in ncurses curses termcap terminfo termlib; do
4528 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4529 echo "configure:4530: checking for tgetent in -l${termlib}" >&5
4530 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4531 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4532 echo $ac_n "(cached) $ac_c" 1>&6
4534 ac_save_LIBS="$LIBS"
4535 LIBS="-l${termlib} $LIBS"
4536 cat > conftest.$ac_ext <<EOF
4537 #line 4538 "configure"
4538 #include "confdefs.h"
4539 /* Override any gcc2 internal prototype to avoid an error. */
4540 /* We use char because int might match the return type of a gcc2
4541 builtin and then its argument prototype would still apply. */
4548 if { (eval echo configure:4549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4550 eval "ac_cv_lib_$ac_lib_var=yes"
4552 echo "configure: failed program was:" >&5
4553 cat conftest.$ac_ext >&5
4555 eval "ac_cv_lib_$ac_lib_var=no"
4558 LIBS="$ac_save_LIBS"
4561 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4562 echo "$ac_t""yes" 1>&6
4563 TERMLIBS="-l${termlib}"; break
4565 echo "$ac_t""no" 1>&6
4569 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4570 echo "configure:4571: checking for rl_callback_handler_install in -lreadline" >&5
4571 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4572 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4573 echo $ac_n "(cached) $ac_c" 1>&6
4575 ac_save_LIBS="$LIBS"
4576 LIBS="-lreadline $TERMLIBS $LIBS"
4577 cat > conftest.$ac_ext <<EOF
4578 #line 4579 "configure"
4579 #include "confdefs.h"
4580 /* Override any gcc2 internal prototype to avoid an error. */
4581 /* We use char because int might match the return type of a gcc2
4582 builtin and then its argument prototype would still apply. */
4583 char rl_callback_handler_install();
4586 rl_callback_handler_install()
4589 if { (eval echo configure:4590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4591 eval "ac_cv_lib_$ac_lib_var=yes"
4593 echo "configure: failed program was:" >&5
4594 cat conftest.$ac_ext >&5
4596 eval "ac_cv_lib_$ac_lib_var=no"
4599 LIBS="$ac_save_LIBS"
4602 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4603 echo "$ac_t""yes" 1>&6
4604 TERMLDFLAGS="-L$with_readline/lib"
4605 TERMCPPFLAGS="-I$with_readline/include"
4606 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4607 TERMLIBS="-lreadline $TERMLIBS"
4608 cat >> confdefs.h <<\EOF
4609 #define HAVE_LIBREADLINE 1
4614 echo "$ac_t""no" 1>&6
4615 TERMLIBS= CPPFLAGS=$_cppflags
4619 echo "$ac_t""no" 1>&6
4628 echo "$ac_t""no" 1>&6
4635 # The readline API changed slightly from readline3 to readline4, so
4636 # code will generate warnings on one of them unless we have a few
4638 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
4639 echo "configure:4640: checking for rl_completion_matches in -lreadline" >&5
4640 ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
4641 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4642 echo $ac_n "(cached) $ac_c" 1>&6
4644 ac_save_LIBS="$LIBS"
4645 LIBS="-lreadline $TERMLIBS $LIBS"
4646 cat > conftest.$ac_ext <<EOF
4647 #line 4648 "configure"
4648 #include "confdefs.h"
4649 /* Override any gcc2 internal prototype to avoid an error. */
4650 /* We use char because int might match the return type of a gcc2
4651 builtin and then its argument prototype would still apply. */
4652 char rl_completion_matches();
4655 rl_completion_matches()
4658 if { (eval echo configure:4659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4660 eval "ac_cv_lib_$ac_lib_var=yes"
4662 echo "configure: failed program was:" >&5
4663 cat conftest.$ac_ext >&5
4665 eval "ac_cv_lib_$ac_lib_var=no"
4668 LIBS="$ac_save_LIBS"
4671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4672 echo "$ac_t""yes" 1>&6
4673 cat >> confdefs.h <<\EOF
4674 #define HAVE_NEW_LIBREADLINE 1
4678 echo "$ac_t""no" 1>&6
4682 # The following test taken from the cvs sources
4683 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4684 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4685 # libsocket.so which has a bad implementation of gethostbyname (it
4686 # only looks in /etc/hosts), so we only look for -lsocket if we need
4688 for ac_func in connect
4690 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4691 echo "configure:4692: checking for $ac_func" >&5
4692 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4693 echo $ac_n "(cached) $ac_c" 1>&6
4695 cat > conftest.$ac_ext <<EOF
4696 #line 4697 "configure"
4697 #include "confdefs.h"
4698 /* System header to define __stub macros and hopefully few prototypes,
4699 which can conflict with char $ac_func(); below. */
4701 /* Override any gcc2 internal prototype to avoid an error. */
4702 /* We use char because int might match the return type of a gcc2
4703 builtin and then its argument prototype would still apply. */
4708 /* The GNU C library defines this for functions which it implements
4709 to always fail with ENOSYS. Some functions are actually named
4710 something starting with __ and the normal name is an alias. */
4711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4719 if { (eval echo configure:4720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4721 eval "ac_cv_func_$ac_func=yes"
4723 echo "configure: failed program was:" >&5
4724 cat conftest.$ac_ext >&5
4726 eval "ac_cv_func_$ac_func=no"
4731 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4732 echo "$ac_t""yes" 1>&6
4733 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4734 cat >> confdefs.h <<EOF
4735 #define $ac_tr_func 1
4739 echo "$ac_t""no" 1>&6
4743 if test x"$ac_cv_func_connect" = x"no"; then
4746 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4747 echo "configure:4748: checking for printf in -lnsl_s" >&5
4748 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4749 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4750 echo $ac_n "(cached) $ac_c" 1>&6
4752 ac_save_LIBS="$LIBS"
4753 LIBS="-lnsl_s $LIBS"
4754 cat > conftest.$ac_ext <<EOF
4755 #line 4756 "configure"
4756 #include "confdefs.h"
4757 /* Override any gcc2 internal prototype to avoid an error. */
4758 /* We use char because int might match the return type of a gcc2
4759 builtin and then its argument prototype would still apply. */
4766 if { (eval echo configure:4767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4768 eval "ac_cv_lib_$ac_lib_var=yes"
4770 echo "configure: failed program was:" >&5
4771 cat conftest.$ac_ext >&5
4773 eval "ac_cv_lib_$ac_lib_var=no"
4776 LIBS="$ac_save_LIBS"
4779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4780 echo "$ac_t""yes" 1>&6
4781 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4782 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4783 cat >> confdefs.h <<EOF
4784 #define $ac_tr_lib 1
4787 LIBS="-lnsl_s $LIBS"
4790 echo "$ac_t""no" 1>&6
4796 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4797 echo "configure:4798: checking for printf in -lnsl" >&5
4798 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4799 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4800 echo $ac_n "(cached) $ac_c" 1>&6
4802 ac_save_LIBS="$LIBS"
4804 cat > conftest.$ac_ext <<EOF
4805 #line 4806 "configure"
4806 #include "confdefs.h"
4807 /* Override any gcc2 internal prototype to avoid an error. */
4808 /* We use char because int might match the return type of a gcc2
4809 builtin and then its argument prototype would still apply. */
4816 if { (eval echo configure:4817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4818 eval "ac_cv_lib_$ac_lib_var=yes"
4820 echo "configure: failed program was:" >&5
4821 cat conftest.$ac_ext >&5
4823 eval "ac_cv_lib_$ac_lib_var=no"
4826 LIBS="$ac_save_LIBS"
4829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4830 echo "$ac_t""yes" 1>&6
4831 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4832 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4833 cat >> confdefs.h <<EOF
4834 #define $ac_tr_lib 1
4840 echo "$ac_t""no" 1>&6
4846 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4847 echo "configure:4848: checking for connect in -lsocket" >&5
4848 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4849 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4850 echo $ac_n "(cached) $ac_c" 1>&6
4852 ac_save_LIBS="$LIBS"
4853 LIBS="-lsocket $LIBS"
4854 cat > conftest.$ac_ext <<EOF
4855 #line 4856 "configure"
4856 #include "confdefs.h"
4857 /* Override any gcc2 internal prototype to avoid an error. */
4858 /* We use char because int might match the return type of a gcc2
4859 builtin and then its argument prototype would still apply. */
4866 if { (eval echo configure:4867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4868 eval "ac_cv_lib_$ac_lib_var=yes"
4870 echo "configure: failed program was:" >&5
4871 cat conftest.$ac_ext >&5
4873 eval "ac_cv_lib_$ac_lib_var=no"
4876 LIBS="$ac_save_LIBS"
4879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4880 echo "$ac_t""yes" 1>&6
4881 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4882 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4883 cat >> confdefs.h <<EOF
4884 #define $ac_tr_lib 1
4887 LIBS="-lsocket $LIBS"
4890 echo "$ac_t""no" 1>&6
4896 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4897 echo "configure:4898: checking for connect in -linet" >&5
4898 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4899 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4900 echo $ac_n "(cached) $ac_c" 1>&6
4902 ac_save_LIBS="$LIBS"
4904 cat > conftest.$ac_ext <<EOF
4905 #line 4906 "configure"
4906 #include "confdefs.h"
4907 /* Override any gcc2 internal prototype to avoid an error. */
4908 /* We use char because int might match the return type of a gcc2
4909 builtin and then its argument prototype would still apply. */
4916 if { (eval echo configure:4917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4918 eval "ac_cv_lib_$ac_lib_var=yes"
4920 echo "configure: failed program was:" >&5
4921 cat conftest.$ac_ext >&5
4923 eval "ac_cv_lib_$ac_lib_var=no"
4926 LIBS="$ac_save_LIBS"
4929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4930 echo "$ac_t""yes" 1>&6
4931 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4932 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4933 cat >> confdefs.h <<EOF
4934 #define $ac_tr_lib 1
4940 echo "$ac_t""no" 1>&6
4944 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4945 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4946 # ac_cv_func_connect=yes
4947 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4948 cat >> confdefs.h <<\EOF
4949 #define HAVE_CONNECT 1
4955 ###############################################
4956 # test for where we get get_yp_default_domain() from
4957 for ac_func in yp_get_default_domain
4959 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4960 echo "configure:4961: checking for $ac_func" >&5
4961 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4962 echo $ac_n "(cached) $ac_c" 1>&6
4964 cat > conftest.$ac_ext <<EOF
4965 #line 4966 "configure"
4966 #include "confdefs.h"
4967 /* System header to define __stub macros and hopefully few prototypes,
4968 which can conflict with char $ac_func(); below. */
4970 /* Override any gcc2 internal prototype to avoid an error. */
4971 /* We use char because int might match the return type of a gcc2
4972 builtin and then its argument prototype would still apply. */
4977 /* The GNU C library defines this for functions which it implements
4978 to always fail with ENOSYS. Some functions are actually named
4979 something starting with __ and the normal name is an alias. */
4980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4988 if { (eval echo configure:4989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4990 eval "ac_cv_func_$ac_func=yes"
4992 echo "configure: failed program was:" >&5
4993 cat conftest.$ac_ext >&5
4995 eval "ac_cv_func_$ac_func=no"
5000 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5001 echo "$ac_t""yes" 1>&6
5002 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5003 cat >> confdefs.h <<EOF
5004 #define $ac_tr_func 1
5008 echo "$ac_t""no" 1>&6
5012 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5013 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5014 echo "configure:5015: checking for yp_get_default_domain in -lnsl" >&5
5015 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5016 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5017 echo $ac_n "(cached) $ac_c" 1>&6
5019 ac_save_LIBS="$LIBS"
5021 cat > conftest.$ac_ext <<EOF
5022 #line 5023 "configure"
5023 #include "confdefs.h"
5024 /* Override any gcc2 internal prototype to avoid an error. */
5025 /* We use char because int might match the return type of a gcc2
5026 builtin and then its argument prototype would still apply. */
5027 char yp_get_default_domain();
5030 yp_get_default_domain()
5033 if { (eval echo configure:5034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5035 eval "ac_cv_lib_$ac_lib_var=yes"
5037 echo "configure: failed program was:" >&5
5038 cat conftest.$ac_ext >&5
5040 eval "ac_cv_lib_$ac_lib_var=no"
5043 LIBS="$ac_save_LIBS"
5046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5047 echo "$ac_t""yes" 1>&6
5049 cat >> confdefs.h <<\EOF
5050 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5054 echo "$ac_t""no" 1>&6
5059 # Check if we have execl, if not we need to compile smbrun.
5060 for ac_func in execl
5062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5063 echo "configure:5064: checking for $ac_func" >&5
5064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5065 echo $ac_n "(cached) $ac_c" 1>&6
5067 cat > conftest.$ac_ext <<EOF
5068 #line 5069 "configure"
5069 #include "confdefs.h"
5070 /* System header to define __stub macros and hopefully few prototypes,
5071 which can conflict with char $ac_func(); below. */
5073 /* Override any gcc2 internal prototype to avoid an error. */
5074 /* We use char because int might match the return type of a gcc2
5075 builtin and then its argument prototype would still apply. */
5080 /* The GNU C library defines this for functions which it implements
5081 to always fail with ENOSYS. Some functions are actually named
5082 something starting with __ and the normal name is an alias. */
5083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5091 if { (eval echo configure:5092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5093 eval "ac_cv_func_$ac_func=yes"
5095 echo "configure: failed program was:" >&5
5096 cat conftest.$ac_ext >&5
5098 eval "ac_cv_func_$ac_func=no"
5103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5104 echo "$ac_t""yes" 1>&6
5105 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5106 cat >> confdefs.h <<EOF
5107 #define $ac_tr_func 1
5111 echo "$ac_t""no" 1>&6
5115 if test x"$ac_cv_func_execl" = x"no"; then
5116 RUNPROG="bin/smbrun"
5121 for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot
5123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5124 echo "configure:5125: checking for $ac_func" >&5
5125 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5126 echo $ac_n "(cached) $ac_c" 1>&6
5128 cat > conftest.$ac_ext <<EOF
5129 #line 5130 "configure"
5130 #include "confdefs.h"
5131 /* System header to define __stub macros and hopefully few prototypes,
5132 which can conflict with char $ac_func(); below. */
5134 /* Override any gcc2 internal prototype to avoid an error. */
5135 /* We use char because int might match the return type of a gcc2
5136 builtin and then its argument prototype would still apply. */
5141 /* The GNU C library defines this for functions which it implements
5142 to always fail with ENOSYS. Some functions are actually named
5143 something starting with __ and the normal name is an alias. */
5144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5152 if { (eval echo configure:5153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5154 eval "ac_cv_func_$ac_func=yes"
5156 echo "configure: failed program was:" >&5
5157 cat conftest.$ac_ext >&5
5159 eval "ac_cv_func_$ac_func=no"
5164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5165 echo "$ac_t""yes" 1>&6
5166 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5167 cat >> confdefs.h <<EOF
5168 #define $ac_tr_func 1
5172 echo "$ac_t""no" 1>&6
5176 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat
5178 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5179 echo "configure:5180: checking for $ac_func" >&5
5180 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5181 echo $ac_n "(cached) $ac_c" 1>&6
5183 cat > conftest.$ac_ext <<EOF
5184 #line 5185 "configure"
5185 #include "confdefs.h"
5186 /* System header to define __stub macros and hopefully few prototypes,
5187 which can conflict with char $ac_func(); below. */
5189 /* Override any gcc2 internal prototype to avoid an error. */
5190 /* We use char because int might match the return type of a gcc2
5191 builtin and then its argument prototype would still apply. */
5196 /* The GNU C library defines this for functions which it implements
5197 to always fail with ENOSYS. Some functions are actually named
5198 something starting with __ and the normal name is an alias. */
5199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5207 if { (eval echo configure:5208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5209 eval "ac_cv_func_$ac_func=yes"
5211 echo "configure: failed program was:" >&5
5212 cat conftest.$ac_ext >&5
5214 eval "ac_cv_func_$ac_func=no"
5219 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5220 echo "$ac_t""yes" 1>&6
5221 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5222 cat >> confdefs.h <<EOF
5223 #define $ac_tr_func 1
5227 echo "$ac_t""no" 1>&6
5231 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5234 echo "configure:5235: checking for $ac_func" >&5
5235 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5236 echo $ac_n "(cached) $ac_c" 1>&6
5238 cat > conftest.$ac_ext <<EOF
5239 #line 5240 "configure"
5240 #include "confdefs.h"
5241 /* System header to define __stub macros and hopefully few prototypes,
5242 which can conflict with char $ac_func(); below. */
5244 /* Override any gcc2 internal prototype to avoid an error. */
5245 /* We use char because int might match the return type of a gcc2
5246 builtin and then its argument prototype would still apply. */
5251 /* The GNU C library defines this for functions which it implements
5252 to always fail with ENOSYS. Some functions are actually named
5253 something starting with __ and the normal name is an alias. */
5254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5262 if { (eval echo configure:5263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5264 eval "ac_cv_func_$ac_func=yes"
5266 echo "configure: failed program was:" >&5
5267 cat conftest.$ac_ext >&5
5269 eval "ac_cv_func_$ac_func=no"
5274 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5275 echo "$ac_t""yes" 1>&6
5276 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5277 cat >> confdefs.h <<EOF
5278 #define $ac_tr_func 1
5282 echo "$ac_t""no" 1>&6
5286 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5289 echo "configure:5290: checking for $ac_func" >&5
5290 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5291 echo $ac_n "(cached) $ac_c" 1>&6
5293 cat > conftest.$ac_ext <<EOF
5294 #line 5295 "configure"
5295 #include "confdefs.h"
5296 /* System header to define __stub macros and hopefully few prototypes,
5297 which can conflict with char $ac_func(); below. */
5299 /* Override any gcc2 internal prototype to avoid an error. */
5300 /* We use char because int might match the return type of a gcc2
5301 builtin and then its argument prototype would still apply. */
5306 /* The GNU C library defines this for functions which it implements
5307 to always fail with ENOSYS. Some functions are actually named
5308 something starting with __ and the normal name is an alias. */
5309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5317 if { (eval echo configure:5318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5319 eval "ac_cv_func_$ac_func=yes"
5321 echo "configure: failed program was:" >&5
5322 cat conftest.$ac_ext >&5
5324 eval "ac_cv_func_$ac_func=no"
5329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5330 echo "$ac_t""yes" 1>&6
5331 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5332 cat >> confdefs.h <<EOF
5333 #define $ac_tr_func 1
5337 echo "$ac_t""no" 1>&6
5341 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
5343 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5344 echo "configure:5345: checking for $ac_func" >&5
5345 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5346 echo $ac_n "(cached) $ac_c" 1>&6
5348 cat > conftest.$ac_ext <<EOF
5349 #line 5350 "configure"
5350 #include "confdefs.h"
5351 /* System header to define __stub macros and hopefully few prototypes,
5352 which can conflict with char $ac_func(); below. */
5354 /* Override any gcc2 internal prototype to avoid an error. */
5355 /* We use char because int might match the return type of a gcc2
5356 builtin and then its argument prototype would still apply. */
5361 /* The GNU C library defines this for functions which it implements
5362 to always fail with ENOSYS. Some functions are actually named
5363 something starting with __ and the normal name is an alias. */
5364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5372 if { (eval echo configure:5373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5374 eval "ac_cv_func_$ac_func=yes"
5376 echo "configure: failed program was:" >&5
5377 cat conftest.$ac_ext >&5
5379 eval "ac_cv_func_$ac_func=no"
5384 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5385 echo "$ac_t""yes" 1>&6
5386 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5387 cat >> confdefs.h <<EOF
5388 #define $ac_tr_func 1
5392 echo "$ac_t""no" 1>&6
5396 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5398 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5399 echo "configure:5400: checking for $ac_func" >&5
5400 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5401 echo $ac_n "(cached) $ac_c" 1>&6
5403 cat > conftest.$ac_ext <<EOF
5404 #line 5405 "configure"
5405 #include "confdefs.h"
5406 /* System header to define __stub macros and hopefully few prototypes,
5407 which can conflict with char $ac_func(); below. */
5409 /* Override any gcc2 internal prototype to avoid an error. */
5410 /* We use char because int might match the return type of a gcc2
5411 builtin and then its argument prototype would still apply. */
5416 /* The GNU C library defines this for functions which it implements
5417 to always fail with ENOSYS. Some functions are actually named
5418 something starting with __ and the normal name is an alias. */
5419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5427 if { (eval echo configure:5428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5429 eval "ac_cv_func_$ac_func=yes"
5431 echo "configure: failed program was:" >&5
5432 cat conftest.$ac_ext >&5
5434 eval "ac_cv_func_$ac_func=no"
5439 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5440 echo "$ac_t""yes" 1>&6
5441 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5442 cat >> confdefs.h <<EOF
5443 #define $ac_tr_func 1
5447 echo "$ac_t""no" 1>&6
5451 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5454 echo "configure:5455: checking for $ac_func" >&5
5455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5456 echo $ac_n "(cached) $ac_c" 1>&6
5458 cat > conftest.$ac_ext <<EOF
5459 #line 5460 "configure"
5460 #include "confdefs.h"
5461 /* System header to define __stub macros and hopefully few prototypes,
5462 which can conflict with char $ac_func(); below. */
5464 /* Override any gcc2 internal prototype to avoid an error. */
5465 /* We use char because int might match the return type of a gcc2
5466 builtin and then its argument prototype would still apply. */
5471 /* The GNU C library defines this for functions which it implements
5472 to always fail with ENOSYS. Some functions are actually named
5473 something starting with __ and the normal name is an alias. */
5474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5482 if { (eval echo configure:5483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5484 eval "ac_cv_func_$ac_func=yes"
5486 echo "configure: failed program was:" >&5
5487 cat conftest.$ac_ext >&5
5489 eval "ac_cv_func_$ac_func=no"
5494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5495 echo "$ac_t""yes" 1>&6
5496 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5497 cat >> confdefs.h <<EOF
5498 #define $ac_tr_func 1
5502 echo "$ac_t""no" 1>&6
5506 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5509 echo "configure:5510: checking for $ac_func" >&5
5510 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5511 echo $ac_n "(cached) $ac_c" 1>&6
5513 cat > conftest.$ac_ext <<EOF
5514 #line 5515 "configure"
5515 #include "confdefs.h"
5516 /* System header to define __stub macros and hopefully few prototypes,
5517 which can conflict with char $ac_func(); below. */
5519 /* Override any gcc2 internal prototype to avoid an error. */
5520 /* We use char because int might match the return type of a gcc2
5521 builtin and then its argument prototype would still apply. */
5526 /* The GNU C library defines this for functions which it implements
5527 to always fail with ENOSYS. Some functions are actually named
5528 something starting with __ and the normal name is an alias. */
5529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5537 if { (eval echo configure:5538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5539 eval "ac_cv_func_$ac_func=yes"
5541 echo "configure: failed program was:" >&5
5542 cat conftest.$ac_ext >&5
5544 eval "ac_cv_func_$ac_func=no"
5549 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5550 echo "$ac_t""yes" 1>&6
5551 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5552 cat >> confdefs.h <<EOF
5553 #define $ac_tr_func 1
5557 echo "$ac_t""no" 1>&6
5561 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5564 echo "configure:5565: checking for $ac_func" >&5
5565 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5566 echo $ac_n "(cached) $ac_c" 1>&6
5568 cat > conftest.$ac_ext <<EOF
5569 #line 5570 "configure"
5570 #include "confdefs.h"
5571 /* System header to define __stub macros and hopefully few prototypes,
5572 which can conflict with char $ac_func(); below. */
5574 /* Override any gcc2 internal prototype to avoid an error. */
5575 /* We use char because int might match the return type of a gcc2
5576 builtin and then its argument prototype would still apply. */
5581 /* The GNU C library defines this for functions which it implements
5582 to always fail with ENOSYS. Some functions are actually named
5583 something starting with __ and the normal name is an alias. */
5584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5592 if { (eval echo configure:5593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5594 eval "ac_cv_func_$ac_func=yes"
5596 echo "configure: failed program was:" >&5
5597 cat conftest.$ac_ext >&5
5599 eval "ac_cv_func_$ac_func=no"
5604 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5605 echo "$ac_t""yes" 1>&6
5606 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5607 cat >> confdefs.h <<EOF
5608 #define $ac_tr_func 1
5612 echo "$ac_t""no" 1>&6
5616 # setbuffer is needed for smbtorture
5617 for ac_func in setbuffer
5619 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5620 echo "configure:5621: checking for $ac_func" >&5
5621 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5622 echo $ac_n "(cached) $ac_c" 1>&6
5624 cat > conftest.$ac_ext <<EOF
5625 #line 5626 "configure"
5626 #include "confdefs.h"
5627 /* System header to define __stub macros and hopefully few prototypes,
5628 which can conflict with char $ac_func(); below. */
5630 /* Override any gcc2 internal prototype to avoid an error. */
5631 /* We use char because int might match the return type of a gcc2
5632 builtin and then its argument prototype would still apply. */
5637 /* The GNU C library defines this for functions which it implements
5638 to always fail with ENOSYS. Some functions are actually named
5639 something starting with __ and the normal name is an alias. */
5640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5648 if { (eval echo configure:5649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5650 eval "ac_cv_func_$ac_func=yes"
5652 echo "configure: failed program was:" >&5
5653 cat conftest.$ac_ext >&5
5655 eval "ac_cv_func_$ac_func=no"
5660 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5661 echo "$ac_t""yes" 1>&6
5662 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5663 cat >> confdefs.h <<EOF
5664 #define $ac_tr_func 1
5668 echo "$ac_t""no" 1>&6
5673 # syscall() is needed for smbwrapper.
5674 for ac_func in syscall
5676 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5677 echo "configure:5678: checking for $ac_func" >&5
5678 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5679 echo $ac_n "(cached) $ac_c" 1>&6
5681 cat > conftest.$ac_ext <<EOF
5682 #line 5683 "configure"
5683 #include "confdefs.h"
5684 /* System header to define __stub macros and hopefully few prototypes,
5685 which can conflict with char $ac_func(); below. */
5687 /* Override any gcc2 internal prototype to avoid an error. */
5688 /* We use char because int might match the return type of a gcc2
5689 builtin and then its argument prototype would still apply. */
5694 /* The GNU C library defines this for functions which it implements
5695 to always fail with ENOSYS. Some functions are actually named
5696 something starting with __ and the normal name is an alias. */
5697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5705 if { (eval echo configure:5706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5707 eval "ac_cv_func_$ac_func=yes"
5709 echo "configure: failed program was:" >&5
5710 cat conftest.$ac_ext >&5
5712 eval "ac_cv_func_$ac_func=no"
5717 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5718 echo "$ac_t""yes" 1>&6
5719 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5720 cat >> confdefs.h <<EOF
5721 #define $ac_tr_func 1
5725 echo "$ac_t""no" 1>&6
5730 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5732 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5733 echo "configure:5734: checking for $ac_func" >&5
5734 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5735 echo $ac_n "(cached) $ac_c" 1>&6
5737 cat > conftest.$ac_ext <<EOF
5738 #line 5739 "configure"
5739 #include "confdefs.h"
5740 /* System header to define __stub macros and hopefully few prototypes,
5741 which can conflict with char $ac_func(); below. */
5743 /* Override any gcc2 internal prototype to avoid an error. */
5744 /* We use char because int might match the return type of a gcc2
5745 builtin and then its argument prototype would still apply. */
5750 /* The GNU C library defines this for functions which it implements
5751 to always fail with ENOSYS. Some functions are actually named
5752 something starting with __ and the normal name is an alias. */
5753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5761 if { (eval echo configure:5762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5763 eval "ac_cv_func_$ac_func=yes"
5765 echo "configure: failed program was:" >&5
5766 cat conftest.$ac_ext >&5
5768 eval "ac_cv_func_$ac_func=no"
5773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5774 echo "$ac_t""yes" 1>&6
5775 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5776 cat >> confdefs.h <<EOF
5777 #define $ac_tr_func 1
5781 echo "$ac_t""no" 1>&6
5785 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5788 echo "configure:5789: checking for $ac_func" >&5
5789 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5790 echo $ac_n "(cached) $ac_c" 1>&6
5792 cat > conftest.$ac_ext <<EOF
5793 #line 5794 "configure"
5794 #include "confdefs.h"
5795 /* System header to define __stub macros and hopefully few prototypes,
5796 which can conflict with char $ac_func(); below. */
5798 /* Override any gcc2 internal prototype to avoid an error. */
5799 /* We use char because int might match the return type of a gcc2
5800 builtin and then its argument prototype would still apply. */
5805 /* The GNU C library defines this for functions which it implements
5806 to always fail with ENOSYS. Some functions are actually named
5807 something starting with __ and the normal name is an alias. */
5808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5816 if { (eval echo configure:5817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5818 eval "ac_cv_func_$ac_func=yes"
5820 echo "configure: failed program was:" >&5
5821 cat conftest.$ac_ext >&5
5823 eval "ac_cv_func_$ac_func=no"
5828 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5829 echo "$ac_t""yes" 1>&6
5830 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5831 cat >> confdefs.h <<EOF
5832 #define $ac_tr_func 1
5836 echo "$ac_t""no" 1>&6
5840 for ac_func in __getcwd _getcwd
5842 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5843 echo "configure:5844: checking for $ac_func" >&5
5844 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5845 echo $ac_n "(cached) $ac_c" 1>&6
5847 cat > conftest.$ac_ext <<EOF
5848 #line 5849 "configure"
5849 #include "confdefs.h"
5850 /* System header to define __stub macros and hopefully few prototypes,
5851 which can conflict with char $ac_func(); below. */
5853 /* Override any gcc2 internal prototype to avoid an error. */
5854 /* We use char because int might match the return type of a gcc2
5855 builtin and then its argument prototype would still apply. */
5860 /* The GNU C library defines this for functions which it implements
5861 to always fail with ENOSYS. Some functions are actually named
5862 something starting with __ and the normal name is an alias. */
5863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5871 if { (eval echo configure:5872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5873 eval "ac_cv_func_$ac_func=yes"
5875 echo "configure: failed program was:" >&5
5876 cat conftest.$ac_ext >&5
5878 eval "ac_cv_func_$ac_func=no"
5883 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5884 echo "$ac_t""yes" 1>&6
5885 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5886 cat >> confdefs.h <<EOF
5887 #define $ac_tr_func 1
5891 echo "$ac_t""no" 1>&6
5895 for ac_func in __xstat __fxstat __lxstat
5897 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5898 echo "configure:5899: checking for $ac_func" >&5
5899 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5900 echo $ac_n "(cached) $ac_c" 1>&6
5902 cat > conftest.$ac_ext <<EOF
5903 #line 5904 "configure"
5904 #include "confdefs.h"
5905 /* System header to define __stub macros and hopefully few prototypes,
5906 which can conflict with char $ac_func(); below. */
5908 /* Override any gcc2 internal prototype to avoid an error. */
5909 /* We use char because int might match the return type of a gcc2
5910 builtin and then its argument prototype would still apply. */
5915 /* The GNU C library defines this for functions which it implements
5916 to always fail with ENOSYS. Some functions are actually named
5917 something starting with __ and the normal name is an alias. */
5918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5926 if { (eval echo configure:5927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5928 eval "ac_cv_func_$ac_func=yes"
5930 echo "configure: failed program was:" >&5
5931 cat conftest.$ac_ext >&5
5933 eval "ac_cv_func_$ac_func=no"
5938 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5939 echo "$ac_t""yes" 1>&6
5940 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5941 cat >> confdefs.h <<EOF
5942 #define $ac_tr_func 1
5946 echo "$ac_t""no" 1>&6
5950 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
5952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5953 echo "configure:5954: checking for $ac_func" >&5
5954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5955 echo $ac_n "(cached) $ac_c" 1>&6
5957 cat > conftest.$ac_ext <<EOF
5958 #line 5959 "configure"
5959 #include "confdefs.h"
5960 /* System header to define __stub macros and hopefully few prototypes,
5961 which can conflict with char $ac_func(); below. */
5963 /* Override any gcc2 internal prototype to avoid an error. */
5964 /* We use char because int might match the return type of a gcc2
5965 builtin and then its argument prototype would still apply. */
5970 /* The GNU C library defines this for functions which it implements
5971 to always fail with ENOSYS. Some functions are actually named
5972 something starting with __ and the normal name is an alias. */
5973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5981 if { (eval echo configure:5982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5983 eval "ac_cv_func_$ac_func=yes"
5985 echo "configure: failed program was:" >&5
5986 cat conftest.$ac_ext >&5
5988 eval "ac_cv_func_$ac_func=no"
5993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5994 echo "$ac_t""yes" 1>&6
5995 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5996 cat >> confdefs.h <<EOF
5997 #define $ac_tr_func 1
6001 echo "$ac_t""no" 1>&6
6005 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6007 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6008 echo "configure:6009: checking for $ac_func" >&5
6009 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6010 echo $ac_n "(cached) $ac_c" 1>&6
6012 cat > conftest.$ac_ext <<EOF
6013 #line 6014 "configure"
6014 #include "confdefs.h"
6015 /* System header to define __stub macros and hopefully few prototypes,
6016 which can conflict with char $ac_func(); below. */
6018 /* Override any gcc2 internal prototype to avoid an error. */
6019 /* We use char because int might match the return type of a gcc2
6020 builtin and then its argument prototype would still apply. */
6025 /* The GNU C library defines this for functions which it implements
6026 to always fail with ENOSYS. Some functions are actually named
6027 something starting with __ and the normal name is an alias. */
6028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6036 if { (eval echo configure:6037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6038 eval "ac_cv_func_$ac_func=yes"
6040 echo "configure: failed program was:" >&5
6041 cat conftest.$ac_ext >&5
6043 eval "ac_cv_func_$ac_func=no"
6048 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6049 echo "$ac_t""yes" 1>&6
6050 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6051 cat >> confdefs.h <<EOF
6052 #define $ac_tr_func 1
6056 echo "$ac_t""no" 1>&6
6060 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6063 echo "configure:6064: checking for $ac_func" >&5
6064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6065 echo $ac_n "(cached) $ac_c" 1>&6
6067 cat > conftest.$ac_ext <<EOF
6068 #line 6069 "configure"
6069 #include "confdefs.h"
6070 /* System header to define __stub macros and hopefully few prototypes,
6071 which can conflict with char $ac_func(); below. */
6073 /* Override any gcc2 internal prototype to avoid an error. */
6074 /* We use char because int might match the return type of a gcc2
6075 builtin and then its argument prototype would still apply. */
6080 /* The GNU C library defines this for functions which it implements
6081 to always fail with ENOSYS. Some functions are actually named
6082 something starting with __ and the normal name is an alias. */
6083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6091 if { (eval echo configure:6092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6093 eval "ac_cv_func_$ac_func=yes"
6095 echo "configure: failed program was:" >&5
6096 cat conftest.$ac_ext >&5
6098 eval "ac_cv_func_$ac_func=no"
6103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6104 echo "$ac_t""yes" 1>&6
6105 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6106 cat >> confdefs.h <<EOF
6107 #define $ac_tr_func 1
6111 echo "$ac_t""no" 1>&6
6115 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6117 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6118 echo "configure:6119: checking for $ac_func" >&5
6119 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6120 echo $ac_n "(cached) $ac_c" 1>&6
6122 cat > conftest.$ac_ext <<EOF
6123 #line 6124 "configure"
6124 #include "confdefs.h"
6125 /* System header to define __stub macros and hopefully few prototypes,
6126 which can conflict with char $ac_func(); below. */
6128 /* Override any gcc2 internal prototype to avoid an error. */
6129 /* We use char because int might match the return type of a gcc2
6130 builtin and then its argument prototype would still apply. */
6135 /* The GNU C library defines this for functions which it implements
6136 to always fail with ENOSYS. Some functions are actually named
6137 something starting with __ and the normal name is an alias. */
6138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6146 if { (eval echo configure:6147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6148 eval "ac_cv_func_$ac_func=yes"
6150 echo "configure: failed program was:" >&5
6151 cat conftest.$ac_ext >&5
6153 eval "ac_cv_func_$ac_func=no"
6158 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6159 echo "$ac_t""yes" 1>&6
6160 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6161 cat >> confdefs.h <<EOF
6162 #define $ac_tr_func 1
6166 echo "$ac_t""no" 1>&6
6170 for ac_func in _write __write _fork __fork
6172 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6173 echo "configure:6174: checking for $ac_func" >&5
6174 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6175 echo $ac_n "(cached) $ac_c" 1>&6
6177 cat > conftest.$ac_ext <<EOF
6178 #line 6179 "configure"
6179 #include "confdefs.h"
6180 /* System header to define __stub macros and hopefully few prototypes,
6181 which can conflict with char $ac_func(); below. */
6183 /* Override any gcc2 internal prototype to avoid an error. */
6184 /* We use char because int might match the return type of a gcc2
6185 builtin and then its argument prototype would still apply. */
6190 /* The GNU C library defines this for functions which it implements
6191 to always fail with ENOSYS. Some functions are actually named
6192 something starting with __ and the normal name is an alias. */
6193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6201 if { (eval echo configure:6202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6203 eval "ac_cv_func_$ac_func=yes"
6205 echo "configure: failed program was:" >&5
6206 cat conftest.$ac_ext >&5
6208 eval "ac_cv_func_$ac_func=no"
6213 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6214 echo "$ac_t""yes" 1>&6
6215 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6216 cat >> confdefs.h <<EOF
6217 #define $ac_tr_func 1
6221 echo "$ac_t""no" 1>&6
6225 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6227 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6228 echo "configure:6229: checking for $ac_func" >&5
6229 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6230 echo $ac_n "(cached) $ac_c" 1>&6
6232 cat > conftest.$ac_ext <<EOF
6233 #line 6234 "configure"
6234 #include "confdefs.h"
6235 /* System header to define __stub macros and hopefully few prototypes,
6236 which can conflict with char $ac_func(); below. */
6238 /* Override any gcc2 internal prototype to avoid an error. */
6239 /* We use char because int might match the return type of a gcc2
6240 builtin and then its argument prototype would still apply. */
6245 /* The GNU C library defines this for functions which it implements
6246 to always fail with ENOSYS. Some functions are actually named
6247 something starting with __ and the normal name is an alias. */
6248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6256 if { (eval echo configure:6257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6258 eval "ac_cv_func_$ac_func=yes"
6260 echo "configure: failed program was:" >&5
6261 cat conftest.$ac_ext >&5
6263 eval "ac_cv_func_$ac_func=no"
6268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6269 echo "$ac_t""yes" 1>&6
6270 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6271 cat >> confdefs.h <<EOF
6272 #define $ac_tr_func 1
6276 echo "$ac_t""no" 1>&6
6280 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6283 echo "configure:6284: checking for $ac_func" >&5
6284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6285 echo $ac_n "(cached) $ac_c" 1>&6
6287 cat > conftest.$ac_ext <<EOF
6288 #line 6289 "configure"
6289 #include "confdefs.h"
6290 /* System header to define __stub macros and hopefully few prototypes,
6291 which can conflict with char $ac_func(); below. */
6293 /* Override any gcc2 internal prototype to avoid an error. */
6294 /* We use char because int might match the return type of a gcc2
6295 builtin and then its argument prototype would still apply. */
6300 /* The GNU C library defines this for functions which it implements
6301 to always fail with ENOSYS. Some functions are actually named
6302 something starting with __ and the normal name is an alias. */
6303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6311 if { (eval echo configure:6312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6313 eval "ac_cv_func_$ac_func=yes"
6315 echo "configure: failed program was:" >&5
6316 cat conftest.$ac_ext >&5
6318 eval "ac_cv_func_$ac_func=no"
6323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6324 echo "$ac_t""yes" 1>&6
6325 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6326 cat >> confdefs.h <<EOF
6327 #define $ac_tr_func 1
6331 echo "$ac_t""no" 1>&6
6335 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6338 echo "configure:6339: checking for $ac_func" >&5
6339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6340 echo $ac_n "(cached) $ac_c" 1>&6
6342 cat > conftest.$ac_ext <<EOF
6343 #line 6344 "configure"
6344 #include "confdefs.h"
6345 /* System header to define __stub macros and hopefully few prototypes,
6346 which can conflict with char $ac_func(); below. */
6348 /* Override any gcc2 internal prototype to avoid an error. */
6349 /* We use char because int might match the return type of a gcc2
6350 builtin and then its argument prototype would still apply. */
6355 /* The GNU C library defines this for functions which it implements
6356 to always fail with ENOSYS. Some functions are actually named
6357 something starting with __ and the normal name is an alias. */
6358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6366 if { (eval echo configure:6367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6368 eval "ac_cv_func_$ac_func=yes"
6370 echo "configure: failed program was:" >&5
6371 cat conftest.$ac_ext >&5
6373 eval "ac_cv_func_$ac_func=no"
6378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6379 echo "$ac_t""yes" 1>&6
6380 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6381 cat >> confdefs.h <<EOF
6382 #define $ac_tr_func 1
6386 echo "$ac_t""no" 1>&6
6390 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6393 echo "configure:6394: checking for $ac_func" >&5
6394 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6395 echo $ac_n "(cached) $ac_c" 1>&6
6397 cat > conftest.$ac_ext <<EOF
6398 #line 6399 "configure"
6399 #include "confdefs.h"
6400 /* System header to define __stub macros and hopefully few prototypes,
6401 which can conflict with char $ac_func(); below. */
6403 /* Override any gcc2 internal prototype to avoid an error. */
6404 /* We use char because int might match the return type of a gcc2
6405 builtin and then its argument prototype would still apply. */
6410 /* The GNU C library defines this for functions which it implements
6411 to always fail with ENOSYS. Some functions are actually named
6412 something starting with __ and the normal name is an alias. */
6413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6421 if { (eval echo configure:6422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6423 eval "ac_cv_func_$ac_func=yes"
6425 echo "configure: failed program was:" >&5
6426 cat conftest.$ac_ext >&5
6428 eval "ac_cv_func_$ac_func=no"
6433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6434 echo "$ac_t""yes" 1>&6
6435 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6436 cat >> confdefs.h <<EOF
6437 #define $ac_tr_func 1
6441 echo "$ac_t""no" 1>&6
6445 for ac_func in open64 _open64 __open64 creat64
6447 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6448 echo "configure:6449: checking for $ac_func" >&5
6449 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6450 echo $ac_n "(cached) $ac_c" 1>&6
6452 cat > conftest.$ac_ext <<EOF
6453 #line 6454 "configure"
6454 #include "confdefs.h"
6455 /* System header to define __stub macros and hopefully few prototypes,
6456 which can conflict with char $ac_func(); below. */
6458 /* Override any gcc2 internal prototype to avoid an error. */
6459 /* We use char because int might match the return type of a gcc2
6460 builtin and then its argument prototype would still apply. */
6465 /* The GNU C library defines this for functions which it implements
6466 to always fail with ENOSYS. Some functions are actually named
6467 something starting with __ and the normal name is an alias. */
6468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6476 if { (eval echo configure:6477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6478 eval "ac_cv_func_$ac_func=yes"
6480 echo "configure: failed program was:" >&5
6481 cat conftest.$ac_ext >&5
6483 eval "ac_cv_func_$ac_func=no"
6488 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6489 echo "$ac_t""yes" 1>&6
6490 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6491 cat >> confdefs.h <<EOF
6492 #define $ac_tr_func 1
6496 echo "$ac_t""no" 1>&6
6502 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6505 if test x$ac_cv_func_stat64 = xno ; then
6506 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6507 echo "configure:6508: checking for stat64 in <sys/stat.h>" >&5
6508 cat > conftest.$ac_ext <<EOF
6509 #line 6510 "configure"
6510 #include "confdefs.h"
6512 #if defined(HAVE_UNISTD_H)
6515 #include <sys/stat.h>
6518 struct stat64 st64; exit(stat64(".",&st64));
6521 if { (eval echo configure:6522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6523 ac_cv_func_stat64=yes
6525 echo "configure: failed program was:" >&5
6526 cat conftest.$ac_ext >&5
6529 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6530 if test x$ac_cv_func_stat64 = xyes ; then
6531 cat >> confdefs.h <<\EOF
6532 #define HAVE_STAT64 1
6538 if test x$ac_cv_func_lstat64 = xno ; then
6539 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6540 echo "configure:6541: checking for lstat64 in <sys/stat.h>" >&5
6541 cat > conftest.$ac_ext <<EOF
6542 #line 6543 "configure"
6543 #include "confdefs.h"
6545 #if defined(HAVE_UNISTD_H)
6548 #include <sys/stat.h>
6551 struct stat64 st64; exit(lstat64(".",&st64));
6554 if { (eval echo configure:6555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6556 ac_cv_func_lstat64=yes
6558 echo "configure: failed program was:" >&5
6559 cat conftest.$ac_ext >&5
6562 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6563 if test x$ac_cv_func_lstat64 = xyes ; then
6564 cat >> confdefs.h <<\EOF
6565 #define HAVE_LSTAT64 1
6571 if test x$ac_cv_func_fstat64 = xno ; then
6572 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6573 echo "configure:6574: checking for fstat64 in <sys/stat.h>" >&5
6574 cat > conftest.$ac_ext <<EOF
6575 #line 6576 "configure"
6576 #include "confdefs.h"
6578 #if defined(HAVE_UNISTD_H)
6581 #include <sys/stat.h>
6584 struct stat64 st64; exit(fstat64(0,&st64));
6587 if { (eval echo configure:6588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6589 ac_cv_func_fstat64=yes
6591 echo "configure: failed program was:" >&5
6592 cat conftest.$ac_ext >&5
6595 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6596 if test x$ac_cv_func_fstat64 = xyes ; then
6597 cat >> confdefs.h <<\EOF
6598 #define HAVE_FSTAT64 1
6604 #####################################
6605 # we might need the resolv library on some systems
6606 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
6607 echo "configure:6608: checking for dn_expand in -lresolv" >&5
6608 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
6609 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6610 echo $ac_n "(cached) $ac_c" 1>&6
6612 ac_save_LIBS="$LIBS"
6613 LIBS="-lresolv $LIBS"
6614 cat > conftest.$ac_ext <<EOF
6615 #line 6616 "configure"
6616 #include "confdefs.h"
6617 /* Override any gcc2 internal prototype to avoid an error. */
6618 /* We use char because int might match the return type of a gcc2
6619 builtin and then its argument prototype would still apply. */
6626 if { (eval echo configure:6627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6628 eval "ac_cv_lib_$ac_lib_var=yes"
6630 echo "configure: failed program was:" >&5
6631 cat conftest.$ac_ext >&5
6633 eval "ac_cv_lib_$ac_lib_var=no"
6636 LIBS="$ac_save_LIBS"
6639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6640 echo "$ac_t""yes" 1>&6
6641 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6642 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6643 cat >> confdefs.h <<EOF
6644 #define $ac_tr_lib 1
6647 LIBS="-lresolv $LIBS"
6650 echo "$ac_t""no" 1>&6
6655 # Check for the functions putprpwnam, set_auth_parameters,
6656 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6657 # Needed for OSF1 and HPUX.
6661 *-lsecurity*) for ac_func in putprpwnam
6663 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6664 echo "configure:6665: checking for $ac_func" >&5
6665 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6666 echo $ac_n "(cached) $ac_c" 1>&6
6668 cat > conftest.$ac_ext <<EOF
6669 #line 6670 "configure"
6670 #include "confdefs.h"
6671 /* System header to define __stub macros and hopefully few prototypes,
6672 which can conflict with char $ac_func(); below. */
6674 /* Override any gcc2 internal prototype to avoid an error. */
6675 /* We use char because int might match the return type of a gcc2
6676 builtin and then its argument prototype would still apply. */
6681 /* The GNU C library defines this for functions which it implements
6682 to always fail with ENOSYS. Some functions are actually named
6683 something starting with __ and the normal name is an alias. */
6684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6692 if { (eval echo configure:6693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6694 eval "ac_cv_func_$ac_func=yes"
6696 echo "configure: failed program was:" >&5
6697 cat conftest.$ac_ext >&5
6699 eval "ac_cv_func_$ac_func=no"
6704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6705 echo "$ac_t""yes" 1>&6
6706 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6707 cat >> confdefs.h <<EOF
6708 #define $ac_tr_func 1
6712 echo "$ac_t""no" 1>&6
6716 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6717 echo "configure:6718: checking for putprpwnam in -lsecurity" >&5
6718 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6719 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6720 echo $ac_n "(cached) $ac_c" 1>&6
6722 ac_save_LIBS="$LIBS"
6723 LIBS="-lsecurity $LIBS"
6724 cat > conftest.$ac_ext <<EOF
6725 #line 6726 "configure"
6726 #include "confdefs.h"
6727 /* Override any gcc2 internal prototype to avoid an error. */
6728 /* We use char because int might match the return type of a gcc2
6729 builtin and then its argument prototype would still apply. */
6736 if { (eval echo configure:6737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6738 eval "ac_cv_lib_$ac_lib_var=yes"
6740 echo "configure: failed program was:" >&5
6741 cat conftest.$ac_ext >&5
6743 eval "ac_cv_lib_$ac_lib_var=no"
6746 LIBS="$ac_save_LIBS"
6749 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6750 echo "$ac_t""yes" 1>&6
6751 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6752 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6753 cat >> confdefs.h <<EOF
6754 #define $ac_tr_lib 1
6757 LIBS="-lsecurity $LIBS"
6760 echo "$ac_t""no" 1>&6
6763 for ac_func in putprpwnam
6765 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6766 echo "configure:6767: checking for $ac_func" >&5
6767 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6768 echo $ac_n "(cached) $ac_c" 1>&6
6770 cat > conftest.$ac_ext <<EOF
6771 #line 6772 "configure"
6772 #include "confdefs.h"
6773 /* System header to define __stub macros and hopefully few prototypes,
6774 which can conflict with char $ac_func(); below. */
6776 /* Override any gcc2 internal prototype to avoid an error. */
6777 /* We use char because int might match the return type of a gcc2
6778 builtin and then its argument prototype would still apply. */
6783 /* The GNU C library defines this for functions which it implements
6784 to always fail with ENOSYS. Some functions are actually named
6785 something starting with __ and the normal name is an alias. */
6786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6794 if { (eval echo configure:6795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6796 eval "ac_cv_func_$ac_func=yes"
6798 echo "configure: failed program was:" >&5
6799 cat conftest.$ac_ext >&5
6801 eval "ac_cv_func_$ac_func=no"
6806 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6807 echo "$ac_t""yes" 1>&6
6808 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6809 cat >> confdefs.h <<EOF
6810 #define $ac_tr_func 1
6814 echo "$ac_t""no" 1>&6
6822 *-lsec*) for ac_func in putprpwnam
6824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6825 echo "configure:6826: checking for $ac_func" >&5
6826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6827 echo $ac_n "(cached) $ac_c" 1>&6
6829 cat > conftest.$ac_ext <<EOF
6830 #line 6831 "configure"
6831 #include "confdefs.h"
6832 /* System header to define __stub macros and hopefully few prototypes,
6833 which can conflict with char $ac_func(); below. */
6835 /* Override any gcc2 internal prototype to avoid an error. */
6836 /* We use char because int might match the return type of a gcc2
6837 builtin and then its argument prototype would still apply. */
6842 /* The GNU C library defines this for functions which it implements
6843 to always fail with ENOSYS. Some functions are actually named
6844 something starting with __ and the normal name is an alias. */
6845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6853 if { (eval echo configure:6854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6855 eval "ac_cv_func_$ac_func=yes"
6857 echo "configure: failed program was:" >&5
6858 cat conftest.$ac_ext >&5
6860 eval "ac_cv_func_$ac_func=no"
6865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6866 echo "$ac_t""yes" 1>&6
6867 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6868 cat >> confdefs.h <<EOF
6869 #define $ac_tr_func 1
6873 echo "$ac_t""no" 1>&6
6877 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6878 echo "configure:6879: checking for putprpwnam in -lsec" >&5
6879 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6880 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6881 echo $ac_n "(cached) $ac_c" 1>&6
6883 ac_save_LIBS="$LIBS"
6885 cat > conftest.$ac_ext <<EOF
6886 #line 6887 "configure"
6887 #include "confdefs.h"
6888 /* Override any gcc2 internal prototype to avoid an error. */
6889 /* We use char because int might match the return type of a gcc2
6890 builtin and then its argument prototype would still apply. */
6897 if { (eval echo configure:6898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6899 eval "ac_cv_lib_$ac_lib_var=yes"
6901 echo "configure: failed program was:" >&5
6902 cat conftest.$ac_ext >&5
6904 eval "ac_cv_lib_$ac_lib_var=no"
6907 LIBS="$ac_save_LIBS"
6910 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6911 echo "$ac_t""yes" 1>&6
6912 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6913 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6914 cat >> confdefs.h <<EOF
6915 #define $ac_tr_lib 1
6921 echo "$ac_t""no" 1>&6
6924 for ac_func in putprpwnam
6926 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6927 echo "configure:6928: checking for $ac_func" >&5
6928 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6929 echo $ac_n "(cached) $ac_c" 1>&6
6931 cat > conftest.$ac_ext <<EOF
6932 #line 6933 "configure"
6933 #include "confdefs.h"
6934 /* System header to define __stub macros and hopefully few prototypes,
6935 which can conflict with char $ac_func(); below. */
6937 /* Override any gcc2 internal prototype to avoid an error. */
6938 /* We use char because int might match the return type of a gcc2
6939 builtin and then its argument prototype would still apply. */
6944 /* The GNU C library defines this for functions which it implements
6945 to always fail with ENOSYS. Some functions are actually named
6946 something starting with __ and the normal name is an alias. */
6947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6955 if { (eval echo configure:6956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6957 eval "ac_cv_func_$ac_func=yes"
6959 echo "configure: failed program was:" >&5
6960 cat conftest.$ac_ext >&5
6962 eval "ac_cv_func_$ac_func=no"
6967 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6968 echo "$ac_t""yes" 1>&6
6969 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6970 cat >> confdefs.h <<EOF
6971 #define $ac_tr_func 1
6975 echo "$ac_t""no" 1>&6
6984 *-lsecurity*) for ac_func in set_auth_parameters
6986 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6987 echo "configure:6988: checking for $ac_func" >&5
6988 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6989 echo $ac_n "(cached) $ac_c" 1>&6
6991 cat > conftest.$ac_ext <<EOF
6992 #line 6993 "configure"
6993 #include "confdefs.h"
6994 /* System header to define __stub macros and hopefully few prototypes,
6995 which can conflict with char $ac_func(); below. */
6997 /* Override any gcc2 internal prototype to avoid an error. */
6998 /* We use char because int might match the return type of a gcc2
6999 builtin and then its argument prototype would still apply. */
7004 /* The GNU C library defines this for functions which it implements
7005 to always fail with ENOSYS. Some functions are actually named
7006 something starting with __ and the normal name is an alias. */
7007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7015 if { (eval echo configure:7016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7017 eval "ac_cv_func_$ac_func=yes"
7019 echo "configure: failed program was:" >&5
7020 cat conftest.$ac_ext >&5
7022 eval "ac_cv_func_$ac_func=no"
7027 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7028 echo "$ac_t""yes" 1>&6
7029 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7030 cat >> confdefs.h <<EOF
7031 #define $ac_tr_func 1
7035 echo "$ac_t""no" 1>&6
7039 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7040 echo "configure:7041: checking for set_auth_parameters in -lsecurity" >&5
7041 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7042 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7043 echo $ac_n "(cached) $ac_c" 1>&6
7045 ac_save_LIBS="$LIBS"
7046 LIBS="-lsecurity $LIBS"
7047 cat > conftest.$ac_ext <<EOF
7048 #line 7049 "configure"
7049 #include "confdefs.h"
7050 /* Override any gcc2 internal prototype to avoid an error. */
7051 /* We use char because int might match the return type of a gcc2
7052 builtin and then its argument prototype would still apply. */
7053 char set_auth_parameters();
7056 set_auth_parameters()
7059 if { (eval echo configure:7060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7061 eval "ac_cv_lib_$ac_lib_var=yes"
7063 echo "configure: failed program was:" >&5
7064 cat conftest.$ac_ext >&5
7066 eval "ac_cv_lib_$ac_lib_var=no"
7069 LIBS="$ac_save_LIBS"
7072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7073 echo "$ac_t""yes" 1>&6
7074 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7075 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7076 cat >> confdefs.h <<EOF
7077 #define $ac_tr_lib 1
7080 LIBS="-lsecurity $LIBS"
7083 echo "$ac_t""no" 1>&6
7086 for ac_func in set_auth_parameters
7088 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7089 echo "configure:7090: checking for $ac_func" >&5
7090 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7091 echo $ac_n "(cached) $ac_c" 1>&6
7093 cat > conftest.$ac_ext <<EOF
7094 #line 7095 "configure"
7095 #include "confdefs.h"
7096 /* System header to define __stub macros and hopefully few prototypes,
7097 which can conflict with char $ac_func(); below. */
7099 /* Override any gcc2 internal prototype to avoid an error. */
7100 /* We use char because int might match the return type of a gcc2
7101 builtin and then its argument prototype would still apply. */
7106 /* The GNU C library defines this for functions which it implements
7107 to always fail with ENOSYS. Some functions are actually named
7108 something starting with __ and the normal name is an alias. */
7109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7117 if { (eval echo configure:7118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7119 eval "ac_cv_func_$ac_func=yes"
7121 echo "configure: failed program was:" >&5
7122 cat conftest.$ac_ext >&5
7124 eval "ac_cv_func_$ac_func=no"
7129 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7130 echo "$ac_t""yes" 1>&6
7131 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7132 cat >> confdefs.h <<EOF
7133 #define $ac_tr_func 1
7137 echo "$ac_t""no" 1>&6
7145 *-lsec*) for ac_func in set_auth_parameters
7147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7148 echo "configure:7149: checking for $ac_func" >&5
7149 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7150 echo $ac_n "(cached) $ac_c" 1>&6
7152 cat > conftest.$ac_ext <<EOF
7153 #line 7154 "configure"
7154 #include "confdefs.h"
7155 /* System header to define __stub macros and hopefully few prototypes,
7156 which can conflict with char $ac_func(); below. */
7158 /* Override any gcc2 internal prototype to avoid an error. */
7159 /* We use char because int might match the return type of a gcc2
7160 builtin and then its argument prototype would still apply. */
7165 /* The GNU C library defines this for functions which it implements
7166 to always fail with ENOSYS. Some functions are actually named
7167 something starting with __ and the normal name is an alias. */
7168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7176 if { (eval echo configure:7177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7178 eval "ac_cv_func_$ac_func=yes"
7180 echo "configure: failed program was:" >&5
7181 cat conftest.$ac_ext >&5
7183 eval "ac_cv_func_$ac_func=no"
7188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7189 echo "$ac_t""yes" 1>&6
7190 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7191 cat >> confdefs.h <<EOF
7192 #define $ac_tr_func 1
7196 echo "$ac_t""no" 1>&6
7200 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7201 echo "configure:7202: checking for set_auth_parameters in -lsec" >&5
7202 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7203 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7204 echo $ac_n "(cached) $ac_c" 1>&6
7206 ac_save_LIBS="$LIBS"
7208 cat > conftest.$ac_ext <<EOF
7209 #line 7210 "configure"
7210 #include "confdefs.h"
7211 /* Override any gcc2 internal prototype to avoid an error. */
7212 /* We use char because int might match the return type of a gcc2
7213 builtin and then its argument prototype would still apply. */
7214 char set_auth_parameters();
7217 set_auth_parameters()
7220 if { (eval echo configure:7221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7222 eval "ac_cv_lib_$ac_lib_var=yes"
7224 echo "configure: failed program was:" >&5
7225 cat conftest.$ac_ext >&5
7227 eval "ac_cv_lib_$ac_lib_var=no"
7230 LIBS="$ac_save_LIBS"
7233 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7234 echo "$ac_t""yes" 1>&6
7235 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7236 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7237 cat >> confdefs.h <<EOF
7238 #define $ac_tr_lib 1
7244 echo "$ac_t""no" 1>&6
7247 for ac_func in set_auth_parameters
7249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7250 echo "configure:7251: checking for $ac_func" >&5
7251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7252 echo $ac_n "(cached) $ac_c" 1>&6
7254 cat > conftest.$ac_ext <<EOF
7255 #line 7256 "configure"
7256 #include "confdefs.h"
7257 /* System header to define __stub macros and hopefully few prototypes,
7258 which can conflict with char $ac_func(); below. */
7260 /* Override any gcc2 internal prototype to avoid an error. */
7261 /* We use char because int might match the return type of a gcc2
7262 builtin and then its argument prototype would still apply. */
7267 /* The GNU C library defines this for functions which it implements
7268 to always fail with ENOSYS. Some functions are actually named
7269 something starting with __ and the normal name is an alias. */
7270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7278 if { (eval echo configure:7279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7280 eval "ac_cv_func_$ac_func=yes"
7282 echo "configure: failed program was:" >&5
7283 cat conftest.$ac_ext >&5
7285 eval "ac_cv_func_$ac_func=no"
7290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7291 echo "$ac_t""yes" 1>&6
7292 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7293 cat >> confdefs.h <<EOF
7294 #define $ac_tr_func 1
7298 echo "$ac_t""no" 1>&6
7306 # UnixWare 7.x has its getspnam in -lgen
7308 *-lgen*) for ac_func in getspnam
7310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7311 echo "configure:7312: checking for $ac_func" >&5
7312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7313 echo $ac_n "(cached) $ac_c" 1>&6
7315 cat > conftest.$ac_ext <<EOF
7316 #line 7317 "configure"
7317 #include "confdefs.h"
7318 /* System header to define __stub macros and hopefully few prototypes,
7319 which can conflict with char $ac_func(); below. */
7321 /* Override any gcc2 internal prototype to avoid an error. */
7322 /* We use char because int might match the return type of a gcc2
7323 builtin and then its argument prototype would still apply. */
7328 /* The GNU C library defines this for functions which it implements
7329 to always fail with ENOSYS. Some functions are actually named
7330 something starting with __ and the normal name is an alias. */
7331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7339 if { (eval echo configure:7340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7341 eval "ac_cv_func_$ac_func=yes"
7343 echo "configure: failed program was:" >&5
7344 cat conftest.$ac_ext >&5
7346 eval "ac_cv_func_$ac_func=no"
7351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7352 echo "$ac_t""yes" 1>&6
7353 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7354 cat >> confdefs.h <<EOF
7355 #define $ac_tr_func 1
7359 echo "$ac_t""no" 1>&6
7363 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7364 echo "configure:7365: checking for getspnam in -lgen" >&5
7365 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7367 echo $ac_n "(cached) $ac_c" 1>&6
7369 ac_save_LIBS="$LIBS"
7371 cat > conftest.$ac_ext <<EOF
7372 #line 7373 "configure"
7373 #include "confdefs.h"
7374 /* Override any gcc2 internal prototype to avoid an error. */
7375 /* We use char because int might match the return type of a gcc2
7376 builtin and then its argument prototype would still apply. */
7383 if { (eval echo configure:7384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7385 eval "ac_cv_lib_$ac_lib_var=yes"
7387 echo "configure: failed program was:" >&5
7388 cat conftest.$ac_ext >&5
7390 eval "ac_cv_lib_$ac_lib_var=no"
7393 LIBS="$ac_save_LIBS"
7396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7397 echo "$ac_t""yes" 1>&6
7398 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7399 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7400 cat >> confdefs.h <<EOF
7401 #define $ac_tr_lib 1
7407 echo "$ac_t""no" 1>&6
7410 for ac_func in getspnam
7412 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7413 echo "configure:7414: checking for $ac_func" >&5
7414 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7415 echo $ac_n "(cached) $ac_c" 1>&6
7417 cat > conftest.$ac_ext <<EOF
7418 #line 7419 "configure"
7419 #include "confdefs.h"
7420 /* System header to define __stub macros and hopefully few prototypes,
7421 which can conflict with char $ac_func(); below. */
7423 /* Override any gcc2 internal prototype to avoid an error. */
7424 /* We use char because int might match the return type of a gcc2
7425 builtin and then its argument prototype would still apply. */
7430 /* The GNU C library defines this for functions which it implements
7431 to always fail with ENOSYS. Some functions are actually named
7432 something starting with __ and the normal name is an alias. */
7433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7441 if { (eval echo configure:7442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7443 eval "ac_cv_func_$ac_func=yes"
7445 echo "configure: failed program was:" >&5
7446 cat conftest.$ac_ext >&5
7448 eval "ac_cv_func_$ac_func=no"
7453 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7454 echo "$ac_t""yes" 1>&6
7455 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7456 cat >> confdefs.h <<EOF
7457 #define $ac_tr_func 1
7461 echo "$ac_t""no" 1>&6
7470 *-lsecurity*) for ac_func in getspnam
7472 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7473 echo "configure:7474: checking for $ac_func" >&5
7474 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7475 echo $ac_n "(cached) $ac_c" 1>&6
7477 cat > conftest.$ac_ext <<EOF
7478 #line 7479 "configure"
7479 #include "confdefs.h"
7480 /* System header to define __stub macros and hopefully few prototypes,
7481 which can conflict with char $ac_func(); below. */
7483 /* Override any gcc2 internal prototype to avoid an error. */
7484 /* We use char because int might match the return type of a gcc2
7485 builtin and then its argument prototype would still apply. */
7490 /* The GNU C library defines this for functions which it implements
7491 to always fail with ENOSYS. Some functions are actually named
7492 something starting with __ and the normal name is an alias. */
7493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7501 if { (eval echo configure:7502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7503 eval "ac_cv_func_$ac_func=yes"
7505 echo "configure: failed program was:" >&5
7506 cat conftest.$ac_ext >&5
7508 eval "ac_cv_func_$ac_func=no"
7513 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7514 echo "$ac_t""yes" 1>&6
7515 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7516 cat >> confdefs.h <<EOF
7517 #define $ac_tr_func 1
7521 echo "$ac_t""no" 1>&6
7525 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7526 echo "configure:7527: checking for getspnam in -lsecurity" >&5
7527 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7528 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7529 echo $ac_n "(cached) $ac_c" 1>&6
7531 ac_save_LIBS="$LIBS"
7532 LIBS="-lsecurity $LIBS"
7533 cat > conftest.$ac_ext <<EOF
7534 #line 7535 "configure"
7535 #include "confdefs.h"
7536 /* Override any gcc2 internal prototype to avoid an error. */
7537 /* We use char because int might match the return type of a gcc2
7538 builtin and then its argument prototype would still apply. */
7545 if { (eval echo configure:7546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7547 eval "ac_cv_lib_$ac_lib_var=yes"
7549 echo "configure: failed program was:" >&5
7550 cat conftest.$ac_ext >&5
7552 eval "ac_cv_lib_$ac_lib_var=no"
7555 LIBS="$ac_save_LIBS"
7558 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7559 echo "$ac_t""yes" 1>&6
7560 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7561 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7562 cat >> confdefs.h <<EOF
7563 #define $ac_tr_lib 1
7566 LIBS="-lsecurity $LIBS"
7569 echo "$ac_t""no" 1>&6
7572 for ac_func in getspnam
7574 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7575 echo "configure:7576: checking for $ac_func" >&5
7576 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7577 echo $ac_n "(cached) $ac_c" 1>&6
7579 cat > conftest.$ac_ext <<EOF
7580 #line 7581 "configure"
7581 #include "confdefs.h"
7582 /* System header to define __stub macros and hopefully few prototypes,
7583 which can conflict with char $ac_func(); below. */
7585 /* Override any gcc2 internal prototype to avoid an error. */
7586 /* We use char because int might match the return type of a gcc2
7587 builtin and then its argument prototype would still apply. */
7592 /* The GNU C library defines this for functions which it implements
7593 to always fail with ENOSYS. Some functions are actually named
7594 something starting with __ and the normal name is an alias. */
7595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7603 if { (eval echo configure:7604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7605 eval "ac_cv_func_$ac_func=yes"
7607 echo "configure: failed program was:" >&5
7608 cat conftest.$ac_ext >&5
7610 eval "ac_cv_func_$ac_func=no"
7615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7616 echo "$ac_t""yes" 1>&6
7617 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7618 cat >> confdefs.h <<EOF
7619 #define $ac_tr_func 1
7623 echo "$ac_t""no" 1>&6
7631 *-lsec*) for ac_func in getspnam
7633 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7634 echo "configure:7635: checking for $ac_func" >&5
7635 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7636 echo $ac_n "(cached) $ac_c" 1>&6
7638 cat > conftest.$ac_ext <<EOF
7639 #line 7640 "configure"
7640 #include "confdefs.h"
7641 /* System header to define __stub macros and hopefully few prototypes,
7642 which can conflict with char $ac_func(); below. */
7644 /* Override any gcc2 internal prototype to avoid an error. */
7645 /* We use char because int might match the return type of a gcc2
7646 builtin and then its argument prototype would still apply. */
7651 /* The GNU C library defines this for functions which it implements
7652 to always fail with ENOSYS. Some functions are actually named
7653 something starting with __ and the normal name is an alias. */
7654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7662 if { (eval echo configure:7663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7664 eval "ac_cv_func_$ac_func=yes"
7666 echo "configure: failed program was:" >&5
7667 cat conftest.$ac_ext >&5
7669 eval "ac_cv_func_$ac_func=no"
7674 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7675 echo "$ac_t""yes" 1>&6
7676 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7677 cat >> confdefs.h <<EOF
7678 #define $ac_tr_func 1
7682 echo "$ac_t""no" 1>&6
7686 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7687 echo "configure:7688: checking for getspnam in -lsec" >&5
7688 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7689 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7690 echo $ac_n "(cached) $ac_c" 1>&6
7692 ac_save_LIBS="$LIBS"
7694 cat > conftest.$ac_ext <<EOF
7695 #line 7696 "configure"
7696 #include "confdefs.h"
7697 /* Override any gcc2 internal prototype to avoid an error. */
7698 /* We use char because int might match the return type of a gcc2
7699 builtin and then its argument prototype would still apply. */
7706 if { (eval echo configure:7707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7708 eval "ac_cv_lib_$ac_lib_var=yes"
7710 echo "configure: failed program was:" >&5
7711 cat conftest.$ac_ext >&5
7713 eval "ac_cv_lib_$ac_lib_var=no"
7716 LIBS="$ac_save_LIBS"
7719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7720 echo "$ac_t""yes" 1>&6
7721 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7722 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7723 cat >> confdefs.h <<EOF
7724 #define $ac_tr_lib 1
7730 echo "$ac_t""no" 1>&6
7733 for ac_func in getspnam
7735 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7736 echo "configure:7737: checking for $ac_func" >&5
7737 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7738 echo $ac_n "(cached) $ac_c" 1>&6
7740 cat > conftest.$ac_ext <<EOF
7741 #line 7742 "configure"
7742 #include "confdefs.h"
7743 /* System header to define __stub macros and hopefully few prototypes,
7744 which can conflict with char $ac_func(); below. */
7746 /* Override any gcc2 internal prototype to avoid an error. */
7747 /* We use char because int might match the return type of a gcc2
7748 builtin and then its argument prototype would still apply. */
7753 /* The GNU C library defines this for functions which it implements
7754 to always fail with ENOSYS. Some functions are actually named
7755 something starting with __ and the normal name is an alias. */
7756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7764 if { (eval echo configure:7765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7766 eval "ac_cv_func_$ac_func=yes"
7768 echo "configure: failed program was:" >&5
7769 cat conftest.$ac_ext >&5
7771 eval "ac_cv_func_$ac_func=no"
7776 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7777 echo "$ac_t""yes" 1>&6
7778 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7779 cat >> confdefs.h <<EOF
7780 #define $ac_tr_func 1
7784 echo "$ac_t""no" 1>&6
7793 *-lsecurity*) for ac_func in bigcrypt
7795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7796 echo "configure:7797: checking for $ac_func" >&5
7797 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7798 echo $ac_n "(cached) $ac_c" 1>&6
7800 cat > conftest.$ac_ext <<EOF
7801 #line 7802 "configure"
7802 #include "confdefs.h"
7803 /* System header to define __stub macros and hopefully few prototypes,
7804 which can conflict with char $ac_func(); below. */
7806 /* Override any gcc2 internal prototype to avoid an error. */
7807 /* We use char because int might match the return type of a gcc2
7808 builtin and then its argument prototype would still apply. */
7813 /* The GNU C library defines this for functions which it implements
7814 to always fail with ENOSYS. Some functions are actually named
7815 something starting with __ and the normal name is an alias. */
7816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7824 if { (eval echo configure:7825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7826 eval "ac_cv_func_$ac_func=yes"
7828 echo "configure: failed program was:" >&5
7829 cat conftest.$ac_ext >&5
7831 eval "ac_cv_func_$ac_func=no"
7836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7837 echo "$ac_t""yes" 1>&6
7838 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7839 cat >> confdefs.h <<EOF
7840 #define $ac_tr_func 1
7844 echo "$ac_t""no" 1>&6
7848 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7849 echo "configure:7850: checking for bigcrypt in -lsecurity" >&5
7850 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7851 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7852 echo $ac_n "(cached) $ac_c" 1>&6
7854 ac_save_LIBS="$LIBS"
7855 LIBS="-lsecurity $LIBS"
7856 cat > conftest.$ac_ext <<EOF
7857 #line 7858 "configure"
7858 #include "confdefs.h"
7859 /* Override any gcc2 internal prototype to avoid an error. */
7860 /* We use char because int might match the return type of a gcc2
7861 builtin and then its argument prototype would still apply. */
7868 if { (eval echo configure:7869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7870 eval "ac_cv_lib_$ac_lib_var=yes"
7872 echo "configure: failed program was:" >&5
7873 cat conftest.$ac_ext >&5
7875 eval "ac_cv_lib_$ac_lib_var=no"
7878 LIBS="$ac_save_LIBS"
7881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7882 echo "$ac_t""yes" 1>&6
7883 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7884 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7885 cat >> confdefs.h <<EOF
7886 #define $ac_tr_lib 1
7889 LIBS="-lsecurity $LIBS"
7892 echo "$ac_t""no" 1>&6
7895 for ac_func in bigcrypt
7897 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7898 echo "configure:7899: checking for $ac_func" >&5
7899 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7900 echo $ac_n "(cached) $ac_c" 1>&6
7902 cat > conftest.$ac_ext <<EOF
7903 #line 7904 "configure"
7904 #include "confdefs.h"
7905 /* System header to define __stub macros and hopefully few prototypes,
7906 which can conflict with char $ac_func(); below. */
7908 /* Override any gcc2 internal prototype to avoid an error. */
7909 /* We use char because int might match the return type of a gcc2
7910 builtin and then its argument prototype would still apply. */
7915 /* The GNU C library defines this for functions which it implements
7916 to always fail with ENOSYS. Some functions are actually named
7917 something starting with __ and the normal name is an alias. */
7918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7926 if { (eval echo configure:7927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7928 eval "ac_cv_func_$ac_func=yes"
7930 echo "configure: failed program was:" >&5
7931 cat conftest.$ac_ext >&5
7933 eval "ac_cv_func_$ac_func=no"
7938 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7939 echo "$ac_t""yes" 1>&6
7940 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7941 cat >> confdefs.h <<EOF
7942 #define $ac_tr_func 1
7946 echo "$ac_t""no" 1>&6
7954 *-lsec*) for ac_func in bigcrypt
7956 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7957 echo "configure:7958: checking for $ac_func" >&5
7958 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7959 echo $ac_n "(cached) $ac_c" 1>&6
7961 cat > conftest.$ac_ext <<EOF
7962 #line 7963 "configure"
7963 #include "confdefs.h"
7964 /* System header to define __stub macros and hopefully few prototypes,
7965 which can conflict with char $ac_func(); below. */
7967 /* Override any gcc2 internal prototype to avoid an error. */
7968 /* We use char because int might match the return type of a gcc2
7969 builtin and then its argument prototype would still apply. */
7974 /* The GNU C library defines this for functions which it implements
7975 to always fail with ENOSYS. Some functions are actually named
7976 something starting with __ and the normal name is an alias. */
7977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7985 if { (eval echo configure:7986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7987 eval "ac_cv_func_$ac_func=yes"
7989 echo "configure: failed program was:" >&5
7990 cat conftest.$ac_ext >&5
7992 eval "ac_cv_func_$ac_func=no"
7997 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7998 echo "$ac_t""yes" 1>&6
7999 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8000 cat >> confdefs.h <<EOF
8001 #define $ac_tr_func 1
8005 echo "$ac_t""no" 1>&6
8009 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8010 echo "configure:8011: checking for bigcrypt in -lsec" >&5
8011 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8012 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8013 echo $ac_n "(cached) $ac_c" 1>&6
8015 ac_save_LIBS="$LIBS"
8017 cat > conftest.$ac_ext <<EOF
8018 #line 8019 "configure"
8019 #include "confdefs.h"
8020 /* Override any gcc2 internal prototype to avoid an error. */
8021 /* We use char because int might match the return type of a gcc2
8022 builtin and then its argument prototype would still apply. */
8029 if { (eval echo configure:8030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8031 eval "ac_cv_lib_$ac_lib_var=yes"
8033 echo "configure: failed program was:" >&5
8034 cat conftest.$ac_ext >&5
8036 eval "ac_cv_lib_$ac_lib_var=no"
8039 LIBS="$ac_save_LIBS"
8042 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8043 echo "$ac_t""yes" 1>&6
8044 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8045 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8046 cat >> confdefs.h <<EOF
8047 #define $ac_tr_lib 1
8053 echo "$ac_t""no" 1>&6
8056 for ac_func in bigcrypt
8058 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8059 echo "configure:8060: checking for $ac_func" >&5
8060 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8061 echo $ac_n "(cached) $ac_c" 1>&6
8063 cat > conftest.$ac_ext <<EOF
8064 #line 8065 "configure"
8065 #include "confdefs.h"
8066 /* System header to define __stub macros and hopefully few prototypes,
8067 which can conflict with char $ac_func(); below. */
8069 /* Override any gcc2 internal prototype to avoid an error. */
8070 /* We use char because int might match the return type of a gcc2
8071 builtin and then its argument prototype would still apply. */
8076 /* The GNU C library defines this for functions which it implements
8077 to always fail with ENOSYS. Some functions are actually named
8078 something starting with __ and the normal name is an alias. */
8079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8087 if { (eval echo configure:8088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8089 eval "ac_cv_func_$ac_func=yes"
8091 echo "configure: failed program was:" >&5
8092 cat conftest.$ac_ext >&5
8094 eval "ac_cv_func_$ac_func=no"
8099 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8100 echo "$ac_t""yes" 1>&6
8101 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8102 cat >> confdefs.h <<EOF
8103 #define $ac_tr_func 1
8107 echo "$ac_t""no" 1>&6
8116 *-lsecurity*) for ac_func in getprpwnam
8118 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8119 echo "configure:8120: checking for $ac_func" >&5
8120 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8121 echo $ac_n "(cached) $ac_c" 1>&6
8123 cat > conftest.$ac_ext <<EOF
8124 #line 8125 "configure"
8125 #include "confdefs.h"
8126 /* System header to define __stub macros and hopefully few prototypes,
8127 which can conflict with char $ac_func(); below. */
8129 /* Override any gcc2 internal prototype to avoid an error. */
8130 /* We use char because int might match the return type of a gcc2
8131 builtin and then its argument prototype would still apply. */
8136 /* The GNU C library defines this for functions which it implements
8137 to always fail with ENOSYS. Some functions are actually named
8138 something starting with __ and the normal name is an alias. */
8139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8147 if { (eval echo configure:8148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8149 eval "ac_cv_func_$ac_func=yes"
8151 echo "configure: failed program was:" >&5
8152 cat conftest.$ac_ext >&5
8154 eval "ac_cv_func_$ac_func=no"
8159 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8160 echo "$ac_t""yes" 1>&6
8161 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8162 cat >> confdefs.h <<EOF
8163 #define $ac_tr_func 1
8167 echo "$ac_t""no" 1>&6
8171 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8172 echo "configure:8173: checking for getprpwnam in -lsecurity" >&5
8173 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8174 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8175 echo $ac_n "(cached) $ac_c" 1>&6
8177 ac_save_LIBS="$LIBS"
8178 LIBS="-lsecurity $LIBS"
8179 cat > conftest.$ac_ext <<EOF
8180 #line 8181 "configure"
8181 #include "confdefs.h"
8182 /* Override any gcc2 internal prototype to avoid an error. */
8183 /* We use char because int might match the return type of a gcc2
8184 builtin and then its argument prototype would still apply. */
8191 if { (eval echo configure:8192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8193 eval "ac_cv_lib_$ac_lib_var=yes"
8195 echo "configure: failed program was:" >&5
8196 cat conftest.$ac_ext >&5
8198 eval "ac_cv_lib_$ac_lib_var=no"
8201 LIBS="$ac_save_LIBS"
8204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8205 echo "$ac_t""yes" 1>&6
8206 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8207 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8208 cat >> confdefs.h <<EOF
8209 #define $ac_tr_lib 1
8212 LIBS="-lsecurity $LIBS"
8215 echo "$ac_t""no" 1>&6
8218 for ac_func in getprpwnam
8220 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8221 echo "configure:8222: checking for $ac_func" >&5
8222 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8223 echo $ac_n "(cached) $ac_c" 1>&6
8225 cat > conftest.$ac_ext <<EOF
8226 #line 8227 "configure"
8227 #include "confdefs.h"
8228 /* System header to define __stub macros and hopefully few prototypes,
8229 which can conflict with char $ac_func(); below. */
8231 /* Override any gcc2 internal prototype to avoid an error. */
8232 /* We use char because int might match the return type of a gcc2
8233 builtin and then its argument prototype would still apply. */
8238 /* The GNU C library defines this for functions which it implements
8239 to always fail with ENOSYS. Some functions are actually named
8240 something starting with __ and the normal name is an alias. */
8241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8249 if { (eval echo configure:8250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8251 eval "ac_cv_func_$ac_func=yes"
8253 echo "configure: failed program was:" >&5
8254 cat conftest.$ac_ext >&5
8256 eval "ac_cv_func_$ac_func=no"
8261 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8262 echo "$ac_t""yes" 1>&6
8263 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8264 cat >> confdefs.h <<EOF
8265 #define $ac_tr_func 1
8269 echo "$ac_t""no" 1>&6
8277 *-lsec*) for ac_func in getprpwnam
8279 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8280 echo "configure:8281: checking for $ac_func" >&5
8281 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8282 echo $ac_n "(cached) $ac_c" 1>&6
8284 cat > conftest.$ac_ext <<EOF
8285 #line 8286 "configure"
8286 #include "confdefs.h"
8287 /* System header to define __stub macros and hopefully few prototypes,
8288 which can conflict with char $ac_func(); below. */
8290 /* Override any gcc2 internal prototype to avoid an error. */
8291 /* We use char because int might match the return type of a gcc2
8292 builtin and then its argument prototype would still apply. */
8297 /* The GNU C library defines this for functions which it implements
8298 to always fail with ENOSYS. Some functions are actually named
8299 something starting with __ and the normal name is an alias. */
8300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8308 if { (eval echo configure:8309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8310 eval "ac_cv_func_$ac_func=yes"
8312 echo "configure: failed program was:" >&5
8313 cat conftest.$ac_ext >&5
8315 eval "ac_cv_func_$ac_func=no"
8320 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8321 echo "$ac_t""yes" 1>&6
8322 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8323 cat >> confdefs.h <<EOF
8324 #define $ac_tr_func 1
8328 echo "$ac_t""no" 1>&6
8332 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8333 echo "configure:8334: checking for getprpwnam in -lsec" >&5
8334 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8335 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8336 echo $ac_n "(cached) $ac_c" 1>&6
8338 ac_save_LIBS="$LIBS"
8340 cat > conftest.$ac_ext <<EOF
8341 #line 8342 "configure"
8342 #include "confdefs.h"
8343 /* Override any gcc2 internal prototype to avoid an error. */
8344 /* We use char because int might match the return type of a gcc2
8345 builtin and then its argument prototype would still apply. */
8352 if { (eval echo configure:8353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8354 eval "ac_cv_lib_$ac_lib_var=yes"
8356 echo "configure: failed program was:" >&5
8357 cat conftest.$ac_ext >&5
8359 eval "ac_cv_lib_$ac_lib_var=no"
8362 LIBS="$ac_save_LIBS"
8365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8366 echo "$ac_t""yes" 1>&6
8367 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8368 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8369 cat >> confdefs.h <<EOF
8370 #define $ac_tr_lib 1
8376 echo "$ac_t""no" 1>&6
8379 for ac_func in getprpwnam
8381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8382 echo "configure:8383: checking for $ac_func" >&5
8383 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8384 echo $ac_n "(cached) $ac_c" 1>&6
8386 cat > conftest.$ac_ext <<EOF
8387 #line 8388 "configure"
8388 #include "confdefs.h"
8389 /* System header to define __stub macros and hopefully few prototypes,
8390 which can conflict with char $ac_func(); below. */
8392 /* Override any gcc2 internal prototype to avoid an error. */
8393 /* We use char because int might match the return type of a gcc2
8394 builtin and then its argument prototype would still apply. */
8399 /* The GNU C library defines this for functions which it implements
8400 to always fail with ENOSYS. Some functions are actually named
8401 something starting with __ and the normal name is an alias. */
8402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8410 if { (eval echo configure:8411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8412 eval "ac_cv_func_$ac_func=yes"
8414 echo "configure: failed program was:" >&5
8415 cat conftest.$ac_ext >&5
8417 eval "ac_cv_func_$ac_func=no"
8422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8423 echo "$ac_t""yes" 1>&6
8424 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8425 cat >> confdefs.h <<EOF
8426 #define $ac_tr_func 1
8430 echo "$ac_t""no" 1>&6
8438 # this bit needs to be modified for each OS that is suported by
8439 # smbwrapper. You need to specify how to created a shared library and
8440 # how to compile C code to produce PIC object files
8442 # these are the defaults, good for lots of systems
8452 # and these are for particular systems
8454 *linux*) cat >> confdefs.h <<\EOF
8462 *solaris*) cat >> confdefs.h <<\EOF
8467 LDSHFLAGS="-Wl,-h,\$@.so -G"
8468 if test "${ac_cv_prog_CC}" = "gcc"; then
8476 *sunos*) cat >> confdefs.h <<\EOF
8481 LDSHFLAGS="-Wl,-h,\$@ -G"
8482 PICFLAG="-KPIC" # Is this correct for SunOS
8484 *bsd*) BLDSHARED="true"
8485 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8488 *irix*) cat >> confdefs.h <<\EOF
8493 *irix6*) cat >> confdefs.h <<\EOF
8499 ATTEMPT_WRAP32_BUILD=yes
8501 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8502 if test "${ac_cv_prog_CC}" = "gcc"; then
8508 *aix*) cat >> confdefs.h <<\EOF
8513 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8514 PICFLAG="-O2 -qmaxmem=6000"
8516 *hpux*) cat >> confdefs.h <<\EOF
8521 # Use special PIC flags for the native HP-UX compiler.
8522 if test $ac_cv_prog_cc_Ae = yes; then
8524 LDSHFLAGS="-b -z +h \$@"
8528 *qnx*) cat >> confdefs.h <<\EOF
8532 *osf*) cat >> confdefs.h <<\EOF
8537 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8540 *sco*) cat >> confdefs.h <<\EOF
8544 *unixware*) cat >> confdefs.h <<\EOF
8549 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8552 *next2*) cat >> confdefs.h <<\EOF
8556 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8557 set dummy groff; ac_word=$2
8558 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8559 echo "configure:8560: checking for $ac_word" >&5
8560 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8561 echo $ac_n "(cached) $ac_c" 1>&6
8563 if test -n "$ROFF"; then
8564 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8566 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8568 for ac_dir in $ac_dummy; do
8569 test -z "$ac_dir" && ac_dir=.
8570 if test -f $ac_dir/$ac_word; then
8571 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8578 ROFF="$ac_cv_prog_ROFF"
8579 if test -n "$ROFF"; then
8580 echo "$ac_t""$ROFF" 1>&6
8582 echo "$ac_t""no" 1>&6
8587 *-univel-*) if test "$GCC" != yes ; then
8588 cat >> confdefs.h <<\EOF
8589 #define HAVE_MEMSET 1
8595 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8596 #define RELIANTUNIX 1
8602 if test "$GCC" != yes ; then
8603 cat >> confdefs.h <<\EOF
8604 #define HAVE_MEMSET 1
8612 # this updates our target list if we can build shared libs
8613 if test $BLDSHARED = true; then
8614 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
8616 LIBSMBCLIENT_SHARED=
8621 echo $ac_n "checking for long long""... $ac_c" 1>&6
8622 echo "configure:8623: checking for long long" >&5
8623 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8624 echo $ac_n "(cached) $ac_c" 1>&6
8627 if test "$cross_compiling" = yes; then
8628 samba_cv_have_longlong=cross
8630 cat > conftest.$ac_ext <<EOF
8631 #line 8632 "configure"
8632 #include "confdefs.h"
8634 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8636 if { (eval echo configure:8637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8638 samba_cv_have_longlong=yes
8640 echo "configure: failed program was:" >&5
8641 cat conftest.$ac_ext >&5
8643 samba_cv_have_longlong=no
8650 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8651 if test x"$samba_cv_have_longlong" = x"yes"; then
8652 cat >> confdefs.h <<\EOF
8653 #define HAVE_LONGLONG 1
8659 # Check if the compiler supports the LL prefix on long long integers.
8662 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8663 echo "configure:8664: checking for LL suffix on long long integers" >&5
8664 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8665 echo $ac_n "(cached) $ac_c" 1>&6
8668 cat > conftest.$ac_ext <<EOF
8669 #line 8670 "configure"
8670 #include "confdefs.h"
8673 long long i = 0x8000000000LL
8676 if { (eval echo configure:8677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8678 samba_cv_compiler_supports_ll=yes
8680 echo "configure: failed program was:" >&5
8681 cat conftest.$ac_ext >&5
8683 samba_cv_compiler_supports_ll=no
8688 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8689 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8690 cat >> confdefs.h <<\EOF
8691 #define COMPILER_SUPPORTS_LL 1
8697 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8698 echo "configure:8699: checking for 64 bit off_t" >&5
8699 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8700 echo $ac_n "(cached) $ac_c" 1>&6
8703 if test "$cross_compiling" = yes; then
8704 samba_cv_SIZEOF_OFF_T=cross
8706 cat > conftest.$ac_ext <<EOF
8707 #line 8708 "configure"
8708 #include "confdefs.h"
8710 #include <sys/stat.h>
8711 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8713 if { (eval echo configure:8714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8715 samba_cv_SIZEOF_OFF_T=yes
8717 echo "configure: failed program was:" >&5
8718 cat conftest.$ac_ext >&5
8720 samba_cv_SIZEOF_OFF_T=no
8727 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8728 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8729 cat >> confdefs.h <<\EOF
8730 #define SIZEOF_OFF_T 8
8735 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8736 echo "configure:8737: checking for off64_t" >&5
8737 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8738 echo $ac_n "(cached) $ac_c" 1>&6
8741 if test "$cross_compiling" = yes; then
8742 samba_cv_HAVE_OFF64_T=cross
8744 cat > conftest.$ac_ext <<EOF
8745 #line 8746 "configure"
8746 #include "confdefs.h"
8748 #if defined(HAVE_UNISTD_H)
8752 #include <sys/stat.h>
8753 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8755 if { (eval echo configure:8756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8757 samba_cv_HAVE_OFF64_T=yes
8759 echo "configure: failed program was:" >&5
8760 cat conftest.$ac_ext >&5
8762 samba_cv_HAVE_OFF64_T=no
8769 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8770 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8771 cat >> confdefs.h <<\EOF
8772 #define HAVE_OFF64_T 1
8777 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8778 echo "configure:8779: checking for 64 bit ino_t" >&5
8779 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8780 echo $ac_n "(cached) $ac_c" 1>&6
8783 if test "$cross_compiling" = yes; then
8784 samba_cv_SIZEOF_INO_T=cross
8786 cat > conftest.$ac_ext <<EOF
8787 #line 8788 "configure"
8788 #include "confdefs.h"
8790 #include <sys/stat.h>
8791 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8793 if { (eval echo configure:8794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8795 samba_cv_SIZEOF_INO_T=yes
8797 echo "configure: failed program was:" >&5
8798 cat conftest.$ac_ext >&5
8800 samba_cv_SIZEOF_INO_T=no
8807 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8808 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8809 cat >> confdefs.h <<\EOF
8810 #define SIZEOF_INO_T 8
8815 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8816 echo "configure:8817: checking for ino64_t" >&5
8817 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8818 echo $ac_n "(cached) $ac_c" 1>&6
8821 if test "$cross_compiling" = yes; then
8822 samba_cv_HAVE_INO64_T=cross
8824 cat > conftest.$ac_ext <<EOF
8825 #line 8826 "configure"
8826 #include "confdefs.h"
8828 #if defined(HAVE_UNISTD_H)
8832 #include <sys/stat.h>
8833 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8835 if { (eval echo configure:8836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8837 samba_cv_HAVE_INO64_T=yes
8839 echo "configure: failed program was:" >&5
8840 cat conftest.$ac_ext >&5
8842 samba_cv_HAVE_INO64_T=no
8849 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8850 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8851 cat >> confdefs.h <<\EOF
8852 #define HAVE_INO64_T 1
8857 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8858 echo "configure:8859: checking for struct dirent64" >&5
8859 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8860 echo $ac_n "(cached) $ac_c" 1>&6
8863 cat > conftest.$ac_ext <<EOF
8864 #line 8865 "configure"
8865 #include "confdefs.h"
8867 #if defined(HAVE_UNISTD_H)
8870 #include <sys/types.h>
8876 if { (eval echo configure:8877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8878 samba_cv_HAVE_STRUCT_DIRENT64=yes
8880 echo "configure: failed program was:" >&5
8881 cat conftest.$ac_ext >&5
8883 samba_cv_HAVE_STRUCT_DIRENT64=no
8888 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8889 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
8890 cat >> confdefs.h <<\EOF
8891 #define HAVE_STRUCT_DIRENT64 1
8896 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8897 echo "configure:8898: checking for unsigned char" >&5
8898 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8899 echo $ac_n "(cached) $ac_c" 1>&6
8902 if test "$cross_compiling" = yes; then
8903 samba_cv_HAVE_UNSIGNED_CHAR=cross
8905 cat > conftest.$ac_ext <<EOF
8906 #line 8907 "configure"
8907 #include "confdefs.h"
8909 main() { char c; c=250; exit((c > 0)?0:1); }
8911 if { (eval echo configure:8912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8913 samba_cv_HAVE_UNSIGNED_CHAR=yes
8915 echo "configure: failed program was:" >&5
8916 cat conftest.$ac_ext >&5
8918 samba_cv_HAVE_UNSIGNED_CHAR=no
8925 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8926 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
8927 cat >> confdefs.h <<\EOF
8928 #define HAVE_UNSIGNED_CHAR 1
8933 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8934 echo "configure:8935: checking for sin_len in sock" >&5
8935 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8936 echo $ac_n "(cached) $ac_c" 1>&6
8939 cat > conftest.$ac_ext <<EOF
8940 #line 8941 "configure"
8941 #include "confdefs.h"
8942 #include <sys/types.h>
8943 #include <sys/socket.h>
8944 #include <netinet/in.h>
8946 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8949 if { (eval echo configure:8950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8951 samba_cv_HAVE_SOCK_SIN_LEN=yes
8953 echo "configure: failed program was:" >&5
8954 cat conftest.$ac_ext >&5
8956 samba_cv_HAVE_SOCK_SIN_LEN=no
8961 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8962 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
8963 cat >> confdefs.h <<\EOF
8964 #define HAVE_SOCK_SIN_LEN 1
8969 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8970 echo "configure:8971: checking whether seekdir returns void" >&5
8971 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8972 echo $ac_n "(cached) $ac_c" 1>&6
8975 cat > conftest.$ac_ext <<EOF
8976 #line 8977 "configure"
8977 #include "confdefs.h"
8978 #include <sys/types.h>
8980 void seekdir(DIR *d, long loc) { return; }
8985 if { (eval echo configure:8986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8987 samba_cv_SEEKDIR_RETURNS_VOID=yes
8989 echo "configure: failed program was:" >&5
8990 cat conftest.$ac_ext >&5
8992 samba_cv_SEEKDIR_RETURNS_VOID=no
8997 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8998 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
8999 cat >> confdefs.h <<\EOF
9000 #define SEEKDIR_RETURNS_VOID 1
9005 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9006 echo "configure:9007: checking for __FILE__ macro" >&5
9007 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9008 echo $ac_n "(cached) $ac_c" 1>&6
9011 cat > conftest.$ac_ext <<EOF
9012 #line 9013 "configure"
9013 #include "confdefs.h"
9016 printf("%s\n", __FILE__);
9019 if { (eval echo configure:9020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9021 samba_cv_HAVE_FILE_MACRO=yes
9023 echo "configure: failed program was:" >&5
9024 cat conftest.$ac_ext >&5
9026 samba_cv_HAVE_FILE_MACRO=no
9031 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9032 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9033 cat >> confdefs.h <<\EOF
9034 #define HAVE_FILE_MACRO 1
9039 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9040 echo "configure:9041: checking for __FUNCTION__ macro" >&5
9041 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9042 echo $ac_n "(cached) $ac_c" 1>&6
9045 cat > conftest.$ac_ext <<EOF
9046 #line 9047 "configure"
9047 #include "confdefs.h"
9050 printf("%s\n", __FUNCTION__);
9053 if { (eval echo configure:9054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9055 samba_cv_HAVE_FUNCTION_MACRO=yes
9057 echo "configure: failed program was:" >&5
9058 cat conftest.$ac_ext >&5
9060 samba_cv_HAVE_FUNCTION_MACRO=no
9065 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9066 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9067 cat >> confdefs.h <<\EOF
9068 #define HAVE_FUNCTION_MACRO 1
9073 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9074 echo "configure:9075: checking if gettimeofday takes tz argument" >&5
9075 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9076 echo $ac_n "(cached) $ac_c" 1>&6
9079 if test "$cross_compiling" = yes; then
9080 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9082 cat > conftest.$ac_ext <<EOF
9083 #line 9084 "configure"
9084 #include "confdefs.h"
9086 #include <sys/time.h>
9088 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9090 if { (eval echo configure:9091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9092 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9094 echo "configure: failed program was:" >&5
9095 cat conftest.$ac_ext >&5
9097 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9104 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9105 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9106 cat >> confdefs.h <<\EOF
9107 #define HAVE_GETTIMEOFDAY_TZ 1
9112 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9113 echo "configure:9114: checking for C99 vsnprintf" >&5
9114 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9115 echo $ac_n "(cached) $ac_c" 1>&6
9118 if test "$cross_compiling" = yes; then
9119 samba_cv_HAVE_C99_VSNPRINTF=cross
9121 cat > conftest.$ac_ext <<EOF
9122 #line 9123 "configure"
9123 #include "confdefs.h"
9125 #include <sys/types.h>
9127 void foo(const char *format, ...) {
9132 va_start(ap, format);
9133 len = vsnprintf(0, 0, format, ap);
9135 if (len != 5) exit(1);
9137 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9141 main() { foo("hello"); }
9144 if { (eval echo configure:9145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9146 samba_cv_HAVE_C99_VSNPRINTF=yes
9148 echo "configure: failed program was:" >&5
9149 cat conftest.$ac_ext >&5
9151 samba_cv_HAVE_C99_VSNPRINTF=no
9158 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9159 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9160 cat >> confdefs.h <<\EOF
9161 #define HAVE_C99_VSNPRINTF 1
9166 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9167 echo "configure:9168: checking for broken readdir" >&5
9168 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9169 echo $ac_n "(cached) $ac_c" 1>&6
9172 if test "$cross_compiling" = yes; then
9173 samba_cv_HAVE_BROKEN_READDIR=cross
9175 cat > conftest.$ac_ext <<EOF
9176 #line 9177 "configure"
9177 #include "confdefs.h"
9178 #include <sys/types.h>
9180 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9181 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9182 di->d_name[0] == 0) exit(0); exit(1);}
9184 if { (eval echo configure:9185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9186 samba_cv_HAVE_BROKEN_READDIR=yes
9188 echo "configure: failed program was:" >&5
9189 cat conftest.$ac_ext >&5
9191 samba_cv_HAVE_BROKEN_READDIR=no
9198 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9199 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9200 cat >> confdefs.h <<\EOF
9201 #define HAVE_BROKEN_READDIR 1
9206 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9207 echo "configure:9208: checking for utimbuf" >&5
9208 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9209 echo $ac_n "(cached) $ac_c" 1>&6
9212 cat > conftest.$ac_ext <<EOF
9213 #line 9214 "configure"
9214 #include "confdefs.h"
9215 #include <sys/types.h>
9218 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9221 if { (eval echo configure:9222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9223 samba_cv_HAVE_UTIMBUF=yes
9225 echo "configure: failed program was:" >&5
9226 cat conftest.$ac_ext >&5
9228 samba_cv_HAVE_UTIMBUF=no
9233 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9234 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9235 cat >> confdefs.h <<\EOF
9236 #define HAVE_UTIMBUF 1
9242 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9245 echo "configure:9246: checking for $ac_func" >&5
9246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9247 echo $ac_n "(cached) $ac_c" 1>&6
9249 cat > conftest.$ac_ext <<EOF
9250 #line 9251 "configure"
9251 #include "confdefs.h"
9252 /* System header to define __stub macros and hopefully few prototypes,
9253 which can conflict with char $ac_func(); below. */
9255 /* Override any gcc2 internal prototype to avoid an error. */
9256 /* We use char because int might match the return type of a gcc2
9257 builtin and then its argument prototype would still apply. */
9262 /* The GNU C library defines this for functions which it implements
9263 to always fail with ENOSYS. Some functions are actually named
9264 something starting with __ and the normal name is an alias. */
9265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9273 if { (eval echo configure:9274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9275 eval "ac_cv_func_$ac_func=yes"
9277 echo "configure: failed program was:" >&5
9278 cat conftest.$ac_ext >&5
9280 eval "ac_cv_func_$ac_func=no"
9285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9286 echo "$ac_t""yes" 1>&6
9287 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9288 cat >> confdefs.h <<EOF
9289 #define $ac_tr_func 1
9293 echo "$ac_t""no" 1>&6
9298 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9299 echo "configure:9300: checking for ut_name in utmp" >&5
9300 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9301 echo $ac_n "(cached) $ac_c" 1>&6
9304 cat > conftest.$ac_ext <<EOF
9305 #line 9306 "configure"
9306 #include "confdefs.h"
9307 #include <sys/types.h>
9310 struct utmp ut; ut.ut_name[0] = 'a';
9313 if { (eval echo configure:9314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9315 samba_cv_HAVE_UT_UT_NAME=yes
9317 echo "configure: failed program was:" >&5
9318 cat conftest.$ac_ext >&5
9320 samba_cv_HAVE_UT_UT_NAME=no
9325 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9326 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9327 cat >> confdefs.h <<\EOF
9328 #define HAVE_UT_UT_NAME 1
9333 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9334 echo "configure:9335: checking for ut_user in utmp" >&5
9335 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9336 echo $ac_n "(cached) $ac_c" 1>&6
9339 cat > conftest.$ac_ext <<EOF
9340 #line 9341 "configure"
9341 #include "confdefs.h"
9342 #include <sys/types.h>
9345 struct utmp ut; ut.ut_user[0] = 'a';
9348 if { (eval echo configure:9349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9350 samba_cv_HAVE_UT_UT_USER=yes
9352 echo "configure: failed program was:" >&5
9353 cat conftest.$ac_ext >&5
9355 samba_cv_HAVE_UT_UT_USER=no
9360 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9361 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9362 cat >> confdefs.h <<\EOF
9363 #define HAVE_UT_UT_USER 1
9368 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9369 echo "configure:9370: checking for ut_id in utmp" >&5
9370 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9371 echo $ac_n "(cached) $ac_c" 1>&6
9374 cat > conftest.$ac_ext <<EOF
9375 #line 9376 "configure"
9376 #include "confdefs.h"
9377 #include <sys/types.h>
9380 struct utmp ut; ut.ut_id[0] = 'a';
9383 if { (eval echo configure:9384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9385 samba_cv_HAVE_UT_UT_ID=yes
9387 echo "configure: failed program was:" >&5
9388 cat conftest.$ac_ext >&5
9390 samba_cv_HAVE_UT_UT_ID=no
9395 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9396 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9397 cat >> confdefs.h <<\EOF
9398 #define HAVE_UT_UT_ID 1
9403 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9404 echo "configure:9405: checking for ut_host in utmp" >&5
9405 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9406 echo $ac_n "(cached) $ac_c" 1>&6
9409 cat > conftest.$ac_ext <<EOF
9410 #line 9411 "configure"
9411 #include "confdefs.h"
9412 #include <sys/types.h>
9415 struct utmp ut; ut.ut_host[0] = 'a';
9418 if { (eval echo configure:9419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9420 samba_cv_HAVE_UT_UT_HOST=yes
9422 echo "configure: failed program was:" >&5
9423 cat conftest.$ac_ext >&5
9425 samba_cv_HAVE_UT_UT_HOST=no
9430 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9431 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9432 cat >> confdefs.h <<\EOF
9433 #define HAVE_UT_UT_HOST 1
9438 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9439 echo "configure:9440: checking for ut_time in utmp" >&5
9440 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9441 echo $ac_n "(cached) $ac_c" 1>&6
9444 cat > conftest.$ac_ext <<EOF
9445 #line 9446 "configure"
9446 #include "confdefs.h"
9447 #include <sys/types.h>
9450 struct utmp ut; time_t t; ut.ut_time = t;
9453 if { (eval echo configure:9454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9455 samba_cv_HAVE_UT_UT_TIME=yes
9457 echo "configure: failed program was:" >&5
9458 cat conftest.$ac_ext >&5
9460 samba_cv_HAVE_UT_UT_TIME=no
9465 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9466 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9467 cat >> confdefs.h <<\EOF
9468 #define HAVE_UT_UT_TIME 1
9473 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9474 echo "configure:9475: checking for ut_tv in utmp" >&5
9475 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9476 echo $ac_n "(cached) $ac_c" 1>&6
9479 cat > conftest.$ac_ext <<EOF
9480 #line 9481 "configure"
9481 #include "confdefs.h"
9482 #include <sys/types.h>
9485 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9488 if { (eval echo configure:9489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9490 samba_cv_HAVE_UT_UT_TV=yes
9492 echo "configure: failed program was:" >&5
9493 cat conftest.$ac_ext >&5
9495 samba_cv_HAVE_UT_UT_TV=no
9500 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9501 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9502 cat >> confdefs.h <<\EOF
9503 #define HAVE_UT_UT_TV 1
9508 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9509 echo "configure:9510: checking for ut_type in utmp" >&5
9510 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9511 echo $ac_n "(cached) $ac_c" 1>&6
9514 cat > conftest.$ac_ext <<EOF
9515 #line 9516 "configure"
9516 #include "confdefs.h"
9517 #include <sys/types.h>
9520 struct utmp ut; ut.ut_type = 0;
9523 if { (eval echo configure:9524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9525 samba_cv_HAVE_UT_UT_TYPE=yes
9527 echo "configure: failed program was:" >&5
9528 cat conftest.$ac_ext >&5
9530 samba_cv_HAVE_UT_UT_TYPE=no
9535 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9536 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9537 cat >> confdefs.h <<\EOF
9538 #define HAVE_UT_UT_TYPE 1
9543 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9544 echo "configure:9545: checking for ut_pid in utmp" >&5
9545 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9546 echo $ac_n "(cached) $ac_c" 1>&6
9549 cat > conftest.$ac_ext <<EOF
9550 #line 9551 "configure"
9551 #include "confdefs.h"
9552 #include <sys/types.h>
9555 struct utmp ut; ut.ut_pid = 0;
9558 if { (eval echo configure:9559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9560 samba_cv_HAVE_UT_UT_PID=yes
9562 echo "configure: failed program was:" >&5
9563 cat conftest.$ac_ext >&5
9565 samba_cv_HAVE_UT_UT_PID=no
9570 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9571 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9572 cat >> confdefs.h <<\EOF
9573 #define HAVE_UT_UT_PID 1
9578 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9579 echo "configure:9580: checking for ut_exit in utmp" >&5
9580 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9581 echo $ac_n "(cached) $ac_c" 1>&6
9584 cat > conftest.$ac_ext <<EOF
9585 #line 9586 "configure"
9586 #include "confdefs.h"
9587 #include <sys/types.h>
9590 struct utmp ut; ut.ut_exit.e_exit = 0;
9593 if { (eval echo configure:9594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9595 samba_cv_HAVE_UT_UT_EXIT=yes
9597 echo "configure: failed program was:" >&5
9598 cat conftest.$ac_ext >&5
9600 samba_cv_HAVE_UT_UT_EXIT=no
9605 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9606 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9607 cat >> confdefs.h <<\EOF
9608 #define HAVE_UT_UT_EXIT 1
9613 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9614 echo "configure:9615: checking for ut_addr in utmp" >&5
9615 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9616 echo $ac_n "(cached) $ac_c" 1>&6
9619 cat > conftest.$ac_ext <<EOF
9620 #line 9621 "configure"
9621 #include "confdefs.h"
9622 #include <sys/types.h>
9625 struct utmp ut; ut.ut_addr = 0;
9628 if { (eval echo configure:9629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9630 samba_cv_HAVE_UT_UT_ADDR=yes
9632 echo "configure: failed program was:" >&5
9633 cat conftest.$ac_ext >&5
9635 samba_cv_HAVE_UT_UT_ADDR=no
9640 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9641 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9642 cat >> confdefs.h <<\EOF
9643 #define HAVE_UT_UT_ADDR 1
9648 if test x$ac_cv_func_pututline = xyes ; then
9649 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9650 echo "configure:9651: checking whether pututline returns pointer" >&5
9651 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9652 echo $ac_n "(cached) $ac_c" 1>&6
9655 cat > conftest.$ac_ext <<EOF
9656 #line 9657 "configure"
9657 #include "confdefs.h"
9658 #include <sys/types.h>
9661 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9664 if { (eval echo configure:9665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9666 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9668 echo "configure: failed program was:" >&5
9669 cat conftest.$ac_ext >&5
9671 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9676 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9677 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9678 cat >> confdefs.h <<\EOF
9679 #define PUTUTLINE_RETURNS_UTMP 1
9685 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9686 echo "configure:9687: checking for ut_syslen in utmpx" >&5
9687 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9688 echo $ac_n "(cached) $ac_c" 1>&6
9691 cat > conftest.$ac_ext <<EOF
9692 #line 9693 "configure"
9693 #include "confdefs.h"
9694 #include <sys/types.h>
9697 struct utmpx ux; ux.ut_syslen = 0;
9700 if { (eval echo configure:9701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9702 samba_cv_HAVE_UX_UT_SYSLEN=yes
9704 echo "configure: failed program was:" >&5
9705 cat conftest.$ac_ext >&5
9707 samba_cv_HAVE_UX_UT_SYSLEN=no
9712 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9713 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9714 cat >> confdefs.h <<\EOF
9715 #define HAVE_UX_UT_SYSLEN 1
9721 #################################################
9722 # check for libiconv support
9723 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
9724 echo "configure:9725: checking whether to use libiconv" >&5
9725 # Check whether --with-libiconv or --without-libiconv was given.
9726 if test "${with_libiconv+set}" = set; then
9727 withval="$with_libiconv"
9730 echo "$ac_t""no" 1>&6
9733 echo "$ac_t""yes" 1>&6
9734 CFLAGS="$CFLAGS -I$withval/include"
9735 LDFLAGS="$LDFLAGS -L$withval/lib"
9736 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
9737 echo "configure:9738: checking for iconv_open in -liconv" >&5
9738 ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
9739 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9740 echo $ac_n "(cached) $ac_c" 1>&6
9742 ac_save_LIBS="$LIBS"
9743 LIBS="-liconv $LIBS"
9744 cat > conftest.$ac_ext <<EOF
9745 #line 9746 "configure"
9746 #include "confdefs.h"
9747 /* Override any gcc2 internal prototype to avoid an error. */
9748 /* We use char because int might match the return type of a gcc2
9749 builtin and then its argument prototype would still apply. */
9756 if { (eval echo configure:9757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9758 eval "ac_cv_lib_$ac_lib_var=yes"
9760 echo "configure: failed program was:" >&5
9761 cat conftest.$ac_ext >&5
9763 eval "ac_cv_lib_$ac_lib_var=no"
9766 LIBS="$ac_save_LIBS"
9769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9770 echo "$ac_t""yes" 1>&6
9771 ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9772 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9773 cat >> confdefs.h <<EOF
9774 #define $ac_tr_lib 1
9777 LIBS="-liconv $LIBS"
9780 echo "$ac_t""no" 1>&6
9783 cat >> confdefs.h <<EOF
9784 #define WITH_LIBICONV "${withval}"
9790 echo "$ac_t""no" 1>&6
9797 # check for iconv in libc
9798 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
9799 echo "configure:9800: checking for working iconv" >&5
9800 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
9801 echo $ac_n "(cached) $ac_c" 1>&6
9804 if test "$cross_compiling" = yes; then
9805 samba_cv_HAVE_NATIVE_ICONV=cross
9807 cat > conftest.$ac_ext <<EOF
9808 #line 9809 "configure"
9809 #include "confdefs.h"
9813 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
9814 if (cd == 0 || cd == (iconv_t)-1) return -1;
9819 if { (eval echo configure:9820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9821 samba_cv_HAVE_NATIVE_ICONV=yes
9823 echo "configure: failed program was:" >&5
9824 cat conftest.$ac_ext >&5
9826 samba_cv_HAVE_NATIVE_ICONV=no
9833 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
9834 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
9835 cat >> confdefs.h <<\EOF
9836 #define HAVE_NATIVE_ICONV 1
9842 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9843 echo "configure:9844: checking for Linux kernel oplocks" >&5
9844 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9845 echo $ac_n "(cached) $ac_c" 1>&6
9848 if test "$cross_compiling" = yes; then
9849 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9851 cat > conftest.$ac_ext <<EOF
9852 #line 9853 "configure"
9853 #include "confdefs.h"
9855 #include <sys/types.h>
9858 #define F_GETLEASE 1025
9861 int fd = open("/dev/null", O_RDONLY);
9862 return fcntl(fd, F_GETLEASE, 0) == -1;
9866 if { (eval echo configure:9867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9868 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
9870 echo "configure: failed program was:" >&5
9871 cat conftest.$ac_ext >&5
9873 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
9880 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9881 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
9882 cat >> confdefs.h <<\EOF
9883 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9888 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9889 echo "configure:9890: checking for kernel change notify support" >&5
9890 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9891 echo $ac_n "(cached) $ac_c" 1>&6
9894 if test "$cross_compiling" = yes; then
9895 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
9897 cat > conftest.$ac_ext <<EOF
9898 #line 9899 "configure"
9899 #include "confdefs.h"
9901 #include <sys/types.h>
9905 #define F_NOTIFY 1026
9908 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9912 if { (eval echo configure:9913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9914 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
9916 echo "configure: failed program was:" >&5
9917 cat conftest.$ac_ext >&5
9919 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
9926 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9927 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
9928 cat >> confdefs.h <<\EOF
9929 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9934 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9935 echo "configure:9936: checking for kernel share modes" >&5
9936 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9937 echo $ac_n "(cached) $ac_c" 1>&6
9940 if test "$cross_compiling" = yes; then
9941 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
9943 cat > conftest.$ac_ext <<EOF
9944 #line 9945 "configure"
9945 #include "confdefs.h"
9947 #include <sys/types.h>
9950 #include <sys/file.h>
9952 #define LOCK_MAND 32
9953 #define LOCK_READ 64
9956 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9960 if { (eval echo configure:9961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9962 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
9964 echo "configure: failed program was:" >&5
9965 cat conftest.$ac_ext >&5
9967 samba_cv_HAVE_KERNEL_SHARE_MODES=no
9974 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9975 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
9976 cat >> confdefs.h <<\EOF
9977 #define HAVE_KERNEL_SHARE_MODES 1
9985 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9986 echo "configure:9987: checking for IRIX kernel oplock type definitions" >&5
9987 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9988 echo $ac_n "(cached) $ac_c" 1>&6
9991 cat > conftest.$ac_ext <<EOF
9992 #line 9993 "configure"
9993 #include "confdefs.h"
9994 #include <sys/types.h>
9997 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10000 if { (eval echo configure:10001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10002 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10004 echo "configure: failed program was:" >&5
10005 cat conftest.$ac_ext >&5
10007 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10012 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10013 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10014 cat >> confdefs.h <<\EOF
10015 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10020 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10021 echo "configure:10022: checking for irix specific capabilities" >&5
10022 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10023 echo $ac_n "(cached) $ac_c" 1>&6
10026 if test "$cross_compiling" = yes; then
10027 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10029 cat > conftest.$ac_ext <<EOF
10030 #line 10031 "configure"
10031 #include "confdefs.h"
10032 #include <sys/types.h>
10033 #include <sys/capability.h>
10036 if ((cap = cap_get_proc()) == NULL)
10038 cap->cap_effective |= CAP_NETWORK_MGT;
10039 cap->cap_inheritable |= CAP_NETWORK_MGT;
10045 if { (eval echo configure:10046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10047 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10049 echo "configure: failed program was:" >&5
10050 cat conftest.$ac_ext >&5
10052 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10059 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10060 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10061 cat >> confdefs.h <<\EOF
10062 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10068 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10069 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10072 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10073 echo "configure:10074: checking for int16 typedef included by rpc/rpc.h" >&5
10074 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10075 echo $ac_n "(cached) $ac_c" 1>&6
10078 cat > conftest.$ac_ext <<EOF
10079 #line 10080 "configure"
10080 #include "confdefs.h"
10081 #include <sys/types.h>
10082 #if defined(HAVE_RPC_RPC_H)
10083 #include <rpc/rpc.h>
10089 if { (eval echo configure:10090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10091 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10093 echo "configure: failed program was:" >&5
10094 cat conftest.$ac_ext >&5
10096 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10101 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10102 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10103 cat >> confdefs.h <<\EOF
10104 #define HAVE_INT16_FROM_RPC_RPC_H 1
10109 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10110 echo "configure:10111: checking for uint16 typedef included by rpc/rpc.h" >&5
10111 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10112 echo $ac_n "(cached) $ac_c" 1>&6
10115 cat > conftest.$ac_ext <<EOF
10116 #line 10117 "configure"
10117 #include "confdefs.h"
10118 #include <sys/types.h>
10119 #if defined(HAVE_RPC_RPC_H)
10120 #include <rpc/rpc.h>
10126 if { (eval echo configure:10127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10128 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10130 echo "configure: failed program was:" >&5
10131 cat conftest.$ac_ext >&5
10133 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10138 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10139 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10140 cat >> confdefs.h <<\EOF
10141 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10146 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10147 echo "configure:10148: checking for int32 typedef included by rpc/rpc.h" >&5
10148 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10149 echo $ac_n "(cached) $ac_c" 1>&6
10152 cat > conftest.$ac_ext <<EOF
10153 #line 10154 "configure"
10154 #include "confdefs.h"
10155 #include <sys/types.h>
10156 #if defined(HAVE_RPC_RPC_H)
10157 #include <rpc/rpc.h>
10163 if { (eval echo configure:10164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10165 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10167 echo "configure: failed program was:" >&5
10168 cat conftest.$ac_ext >&5
10170 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10175 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10176 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10177 cat >> confdefs.h <<\EOF
10178 #define HAVE_INT32_FROM_RPC_RPC_H 1
10183 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10184 echo "configure:10185: checking for uint32 typedef included by rpc/rpc.h" >&5
10185 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10186 echo $ac_n "(cached) $ac_c" 1>&6
10189 cat > conftest.$ac_ext <<EOF
10190 #line 10191 "configure"
10191 #include "confdefs.h"
10192 #include <sys/types.h>
10193 #if defined(HAVE_RPC_RPC_H)
10194 #include <rpc/rpc.h>
10200 if { (eval echo configure:10201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10202 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10204 echo "configure: failed program was:" >&5
10205 cat conftest.$ac_ext >&5
10207 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10212 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10213 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10214 cat >> confdefs.h <<\EOF
10215 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10221 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10222 echo "configure:10223: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10223 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10224 echo $ac_n "(cached) $ac_c" 1>&6
10227 cat > conftest.$ac_ext <<EOF
10228 #line 10229 "configure"
10229 #include "confdefs.h"
10230 #include <sys/types.h>
10231 #ifdef HAVE_SYS_SECURITY_H
10232 #include <sys/security.h>
10234 #endif /* HAVE_SYS_SECURITY_H */
10235 #if defined(HAVE_RPC_RPC_H)
10236 #include <rpc/rpc.h>
10242 if { (eval echo configure:10243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10244 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10246 echo "configure: failed program was:" >&5
10247 cat conftest.$ac_ext >&5
10249 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10254 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10255 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10256 cat >> confdefs.h <<\EOF
10257 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10262 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10263 echo "configure:10264: checking for test routines" >&5
10264 if test "$cross_compiling" = yes; then
10265 echo "configure: warning: cannot run when cross-compiling" 1>&2
10267 cat > conftest.$ac_ext <<EOF
10268 #line 10269 "configure"
10269 #include "confdefs.h"
10270 #include "${srcdir-.}/tests/trivial.c"
10272 if { (eval echo configure:10273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10274 echo "$ac_t""yes" 1>&6
10276 echo "configure: failed program was:" >&5
10277 cat conftest.$ac_ext >&5
10279 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10285 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10286 echo "configure:10287: checking for ftruncate extend" >&5
10287 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10288 echo $ac_n "(cached) $ac_c" 1>&6
10291 if test "$cross_compiling" = yes; then
10292 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10294 cat > conftest.$ac_ext <<EOF
10295 #line 10296 "configure"
10296 #include "confdefs.h"
10297 #include "${srcdir-.}/tests/ftruncate.c"
10299 if { (eval echo configure:10300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10301 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10303 echo "configure: failed program was:" >&5
10304 cat conftest.$ac_ext >&5
10306 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10313 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10314 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10315 cat >> confdefs.h <<\EOF
10316 #define HAVE_FTRUNCATE_EXTEND 1
10321 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10322 echo "configure:10323: checking for AF_LOCAL socket support" >&5
10323 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10324 echo $ac_n "(cached) $ac_c" 1>&6
10327 if test "$cross_compiling" = yes; then
10328 samba_cv_HAVE_WORKING_AF_LOCAL=cross
10330 cat > conftest.$ac_ext <<EOF
10331 #line 10332 "configure"
10332 #include "confdefs.h"
10333 #include "${srcdir-.}/tests/unixsock.c"
10335 if { (eval echo configure:10336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10337 samba_cv_HAVE_WORKING_AF_LOCAL=yes
10339 echo "configure: failed program was:" >&5
10340 cat conftest.$ac_ext >&5
10342 samba_cv_HAVE_WORKING_AF_LOCAL=no
10349 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
10350 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
10352 cat >> confdefs.h <<\EOF
10353 #define HAVE_WORKING_AF_LOCAL 1
10358 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10359 echo "configure:10360: checking for broken getgroups" >&5
10360 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10361 echo $ac_n "(cached) $ac_c" 1>&6
10364 if test "$cross_compiling" = yes; then
10365 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10367 cat > conftest.$ac_ext <<EOF
10368 #line 10369 "configure"
10369 #include "confdefs.h"
10370 #include "${srcdir-.}/tests/getgroups.c"
10372 if { (eval echo configure:10373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10374 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10376 echo "configure: failed program was:" >&5
10377 cat conftest.$ac_ext >&5
10379 samba_cv_HAVE_BROKEN_GETGROUPS=no
10386 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10387 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10388 cat >> confdefs.h <<\EOF
10389 #define HAVE_BROKEN_GETGROUPS 1
10394 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10395 echo "configure:10396: checking whether getpass should be replaced" >&5
10396 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10397 echo $ac_n "(cached) $ac_c" 1>&6
10400 SAVE_CPPFLAGS="$CPPFLAGS"
10401 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10402 cat > conftest.$ac_ext <<EOF
10403 #line 10404 "configure"
10404 #include "confdefs.h"
10406 #define REPLACE_GETPASS 1
10407 #define NO_CONFIG_H 1
10408 #define main dont_declare_main
10409 #include "${srcdir-.}/lib/getsmbpass.c"
10416 if { (eval echo configure:10417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10418 samba_cv_REPLACE_GETPASS=yes
10420 echo "configure: failed program was:" >&5
10421 cat conftest.$ac_ext >&5
10423 samba_cv_REPLACE_GETPASS=no
10426 CPPFLAGS="$SAVE_CPPFLAGS"
10430 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10431 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10432 cat >> confdefs.h <<\EOF
10433 #define REPLACE_GETPASS 1
10438 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10439 echo "configure:10440: checking for broken inet_ntoa" >&5
10440 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10441 echo $ac_n "(cached) $ac_c" 1>&6
10444 if test "$cross_compiling" = yes; then
10445 samba_cv_REPLACE_INET_NTOA=cross
10447 cat > conftest.$ac_ext <<EOF
10448 #line 10449 "configure"
10449 #include "confdefs.h"
10452 #include <sys/types.h>
10453 #include <netinet/in.h>
10454 #ifdef HAVE_ARPA_INET_H
10455 #include <arpa/inet.h>
10457 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10458 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10459 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10462 if { (eval echo configure:10463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10464 samba_cv_REPLACE_INET_NTOA=yes
10466 echo "configure: failed program was:" >&5
10467 cat conftest.$ac_ext >&5
10469 samba_cv_REPLACE_INET_NTOA=no
10476 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10477 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10478 cat >> confdefs.h <<\EOF
10479 #define REPLACE_INET_NTOA 1
10484 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10485 echo "configure:10486: checking for secure mkstemp" >&5
10486 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10487 echo $ac_n "(cached) $ac_c" 1>&6
10490 if test "$cross_compiling" = yes; then
10491 samba_cv_HAVE_SECURE_MKSTEMP=cross
10493 cat > conftest.$ac_ext <<EOF
10494 #line 10495 "configure"
10495 #include "confdefs.h"
10496 #include <stdlib.h>
10497 #include <sys/types.h>
10498 #include <sys/stat.h>
10499 #include <unistd.h>
10502 char tpl[20]="/tmp/test.XXXXXX";
10503 int fd = mkstemp(tpl);
10504 if (fd == -1) exit(1);
10506 if (fstat(fd, &st) != 0) exit(1);
10507 if ((st.st_mode & 0777) != 0600) exit(1);
10511 if { (eval echo configure:10512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10513 samba_cv_HAVE_SECURE_MKSTEMP=yes
10515 echo "configure: failed program was:" >&5
10516 cat conftest.$ac_ext >&5
10518 samba_cv_HAVE_SECURE_MKSTEMP=no
10525 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10526 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10527 cat >> confdefs.h <<\EOF
10528 #define HAVE_SECURE_MKSTEMP 1
10533 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10534 echo "configure:10535: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10535 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10536 echo $ac_n "(cached) $ac_c" 1>&6
10539 if test "$cross_compiling" = yes; then
10540 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10542 cat > conftest.$ac_ext <<EOF
10543 #line 10544 "configure"
10544 #include "confdefs.h"
10545 #include <unistd.h>
10546 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10548 if { (eval echo configure:10549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10550 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10552 echo "configure: failed program was:" >&5
10553 cat conftest.$ac_ext >&5
10555 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10562 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10563 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10564 cat >> confdefs.h <<\EOF
10565 #define SYSCONF_SC_NGROUPS_MAX 1
10570 echo $ac_n "checking for root""... $ac_c" 1>&6
10571 echo "configure:10572: checking for root" >&5
10572 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10573 echo $ac_n "(cached) $ac_c" 1>&6
10576 if test "$cross_compiling" = yes; then
10577 samba_cv_HAVE_ROOT=cross
10579 cat > conftest.$ac_ext <<EOF
10580 #line 10581 "configure"
10581 #include "confdefs.h"
10582 main() { exit(getuid() != 0); }
10584 if { (eval echo configure:10585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10586 samba_cv_HAVE_ROOT=yes
10588 echo "configure: failed program was:" >&5
10589 cat conftest.$ac_ext >&5
10591 samba_cv_HAVE_ROOT=no
10598 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10599 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10600 cat >> confdefs.h <<\EOF
10601 #define HAVE_ROOT 1
10605 echo "configure: warning: running as non-root will disable some tests" 1>&2
10609 # look for a method of finding the list of network interfaces
10611 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10612 echo "configure:10613: checking for iface AIX" >&5
10613 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10614 echo $ac_n "(cached) $ac_c" 1>&6
10617 if test "$cross_compiling" = yes; then
10618 samba_cv_HAVE_IFACE_AIX=cross
10620 cat > conftest.$ac_ext <<EOF
10621 #line 10622 "configure"
10622 #include "confdefs.h"
10624 #define HAVE_IFACE_AIX 1
10625 #define AUTOCONF_TEST 1
10626 #include "confdefs.h"
10627 #include "${srcdir-.}/lib/interfaces.c"
10629 if { (eval echo configure:10630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10631 samba_cv_HAVE_IFACE_AIX=yes
10633 echo "configure: failed program was:" >&5
10634 cat conftest.$ac_ext >&5
10636 samba_cv_HAVE_IFACE_AIX=no
10643 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10644 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10645 iface=yes;cat >> confdefs.h <<\EOF
10646 #define HAVE_IFACE_AIX 1
10651 if test $iface = no; then
10652 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10653 echo "configure:10654: checking for iface ifconf" >&5
10654 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10655 echo $ac_n "(cached) $ac_c" 1>&6
10658 if test "$cross_compiling" = yes; then
10659 samba_cv_HAVE_IFACE_IFCONF=cross
10661 cat > conftest.$ac_ext <<EOF
10662 #line 10663 "configure"
10663 #include "confdefs.h"
10665 #define HAVE_IFACE_IFCONF 1
10666 #define AUTOCONF_TEST 1
10667 #include "confdefs.h"
10668 #include "${srcdir-.}/lib/interfaces.c"
10670 if { (eval echo configure:10671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10672 samba_cv_HAVE_IFACE_IFCONF=yes
10674 echo "configure: failed program was:" >&5
10675 cat conftest.$ac_ext >&5
10677 samba_cv_HAVE_IFACE_IFCONF=no
10684 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10685 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
10686 iface=yes;cat >> confdefs.h <<\EOF
10687 #define HAVE_IFACE_IFCONF 1
10693 if test $iface = no; then
10694 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10695 echo "configure:10696: checking for iface ifreq" >&5
10696 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10697 echo $ac_n "(cached) $ac_c" 1>&6
10700 if test "$cross_compiling" = yes; then
10701 samba_cv_HAVE_IFACE_IFREQ=cross
10703 cat > conftest.$ac_ext <<EOF
10704 #line 10705 "configure"
10705 #include "confdefs.h"
10707 #define HAVE_IFACE_IFREQ 1
10708 #define AUTOCONF_TEST 1
10709 #include "confdefs.h"
10710 #include "${srcdir-.}/lib/interfaces.c"
10712 if { (eval echo configure:10713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10714 samba_cv_HAVE_IFACE_IFREQ=yes
10716 echo "configure: failed program was:" >&5
10717 cat conftest.$ac_ext >&5
10719 samba_cv_HAVE_IFACE_IFREQ=no
10726 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10727 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
10728 iface=yes;cat >> confdefs.h <<\EOF
10729 #define HAVE_IFACE_IFREQ 1
10736 ################################################
10737 # look for a method of setting the effective uid
10739 if test $seteuid = no; then
10740 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10741 echo "configure:10742: checking for setresuid" >&5
10742 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10743 echo $ac_n "(cached) $ac_c" 1>&6
10746 if test "$cross_compiling" = yes; then
10747 samba_cv_USE_SETRESUID=cross
10749 cat > conftest.$ac_ext <<EOF
10750 #line 10751 "configure"
10751 #include "confdefs.h"
10753 #define AUTOCONF_TEST 1
10754 #define USE_SETRESUID 1
10755 #include "confdefs.h"
10756 #include "${srcdir-.}/lib/util_sec.c"
10758 if { (eval echo configure:10759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10760 samba_cv_USE_SETRESUID=yes
10762 echo "configure: failed program was:" >&5
10763 cat conftest.$ac_ext >&5
10765 samba_cv_USE_SETRESUID=no
10772 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10773 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
10774 seteuid=yes;cat >> confdefs.h <<\EOF
10775 #define USE_SETRESUID 1
10782 if test $seteuid = no; then
10783 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10784 echo "configure:10785: checking for setreuid" >&5
10785 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10786 echo $ac_n "(cached) $ac_c" 1>&6
10789 if test "$cross_compiling" = yes; then
10790 samba_cv_USE_SETREUID=cross
10792 cat > conftest.$ac_ext <<EOF
10793 #line 10794 "configure"
10794 #include "confdefs.h"
10796 #define AUTOCONF_TEST 1
10797 #define USE_SETREUID 1
10798 #include "confdefs.h"
10799 #include "${srcdir-.}/lib/util_sec.c"
10801 if { (eval echo configure:10802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10803 samba_cv_USE_SETREUID=yes
10805 echo "configure: failed program was:" >&5
10806 cat conftest.$ac_ext >&5
10808 samba_cv_USE_SETREUID=no
10815 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10816 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
10817 seteuid=yes;cat >> confdefs.h <<\EOF
10818 #define USE_SETREUID 1
10824 if test $seteuid = no; then
10825 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10826 echo "configure:10827: checking for seteuid" >&5
10827 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10828 echo $ac_n "(cached) $ac_c" 1>&6
10831 if test "$cross_compiling" = yes; then
10832 samba_cv_USE_SETEUID=cross
10834 cat > conftest.$ac_ext <<EOF
10835 #line 10836 "configure"
10836 #include "confdefs.h"
10838 #define AUTOCONF_TEST 1
10839 #define USE_SETEUID 1
10840 #include "confdefs.h"
10841 #include "${srcdir-.}/lib/util_sec.c"
10843 if { (eval echo configure:10844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10845 samba_cv_USE_SETEUID=yes
10847 echo "configure: failed program was:" >&5
10848 cat conftest.$ac_ext >&5
10850 samba_cv_USE_SETEUID=no
10857 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10858 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
10859 seteuid=yes;cat >> confdefs.h <<\EOF
10860 #define USE_SETEUID 1
10866 if test $seteuid = no; then
10867 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10868 echo "configure:10869: checking for setuidx" >&5
10869 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10870 echo $ac_n "(cached) $ac_c" 1>&6
10873 if test "$cross_compiling" = yes; then
10874 samba_cv_USE_SETUIDX=cross
10876 cat > conftest.$ac_ext <<EOF
10877 #line 10878 "configure"
10878 #include "confdefs.h"
10880 #define AUTOCONF_TEST 1
10881 #define USE_SETUIDX 1
10882 #include "confdefs.h"
10883 #include "${srcdir-.}/lib/util_sec.c"
10885 if { (eval echo configure:10886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10887 samba_cv_USE_SETUIDX=yes
10889 echo "configure: failed program was:" >&5
10890 cat conftest.$ac_ext >&5
10892 samba_cv_USE_SETUIDX=no
10899 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10900 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
10901 seteuid=yes;cat >> confdefs.h <<\EOF
10902 #define USE_SETUIDX 1
10909 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10910 echo "configure:10911: checking for working mmap" >&5
10911 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10912 echo $ac_n "(cached) $ac_c" 1>&6
10915 if test "$cross_compiling" = yes; then
10916 samba_cv_HAVE_MMAP=cross
10918 cat > conftest.$ac_ext <<EOF
10919 #line 10920 "configure"
10920 #include "confdefs.h"
10921 #include "${srcdir-.}/tests/shared_mmap.c"
10923 if { (eval echo configure:10924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10925 samba_cv_HAVE_MMAP=yes
10927 echo "configure: failed program was:" >&5
10928 cat conftest.$ac_ext >&5
10930 samba_cv_HAVE_MMAP=no
10937 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10938 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
10939 cat >> confdefs.h <<\EOF
10940 #define HAVE_MMAP 1
10945 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10946 echo "configure:10947: checking for ftruncate needs root" >&5
10947 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10948 echo $ac_n "(cached) $ac_c" 1>&6
10951 if test "$cross_compiling" = yes; then
10952 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
10954 cat > conftest.$ac_ext <<EOF
10955 #line 10956 "configure"
10956 #include "confdefs.h"
10957 #include "${srcdir-.}/tests/ftruncroot.c"
10959 if { (eval echo configure:10960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10961 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
10963 echo "configure: failed program was:" >&5
10964 cat conftest.$ac_ext >&5
10966 samba_cv_FTRUNCATE_NEEDS_ROOT=no
10973 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10974 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
10975 cat >> confdefs.h <<\EOF
10976 #define FTRUNCATE_NEEDS_ROOT 1
10981 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10982 echo "configure:10983: checking for fcntl locking" >&5
10983 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10984 echo $ac_n "(cached) $ac_c" 1>&6
10987 if test "$cross_compiling" = yes; then
10988 samba_cv_HAVE_FCNTL_LOCK=cross
10990 cat > conftest.$ac_ext <<EOF
10991 #line 10992 "configure"
10992 #include "confdefs.h"
10993 #include "${srcdir-.}/tests/fcntl_lock.c"
10995 if { (eval echo configure:10996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10997 samba_cv_HAVE_FCNTL_LOCK=yes
10999 echo "configure: failed program was:" >&5
11000 cat conftest.$ac_ext >&5
11002 samba_cv_HAVE_FCNTL_LOCK=no
11009 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11010 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11011 cat >> confdefs.h <<\EOF
11012 #define HAVE_FCNTL_LOCK 1
11017 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11018 echo "configure:11019: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11019 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11020 echo $ac_n "(cached) $ac_c" 1>&6
11023 if test "$cross_compiling" = yes; then
11024 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11026 cat > conftest.$ac_ext <<EOF
11027 #line 11028 "configure"
11028 #include "confdefs.h"
11029 #include "${srcdir-.}/tests/fcntl_lock64.c"
11031 if { (eval echo configure:11032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11033 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11035 echo "configure: failed program was:" >&5
11036 cat conftest.$ac_ext >&5
11038 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11045 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11046 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11047 cat >> confdefs.h <<\EOF
11048 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11055 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11056 echo "configure:11057: checking for 64 bit fcntl locking" >&5
11057 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11058 echo $ac_n "(cached) $ac_c" 1>&6
11061 if test "$cross_compiling" = yes; then
11062 samba_cv_HAVE_STRUCT_FLOCK64=cross
11064 cat > conftest.$ac_ext <<EOF
11065 #line 11066 "configure"
11066 #include "confdefs.h"
11068 #if defined(HAVE_UNISTD_H)
11069 #include <unistd.h>
11072 #include <stdlib.h>
11074 #ifdef HAVE_FCNTL_H
11078 #ifdef HAVE_SYS_FCNTL_H
11079 #include <sys/fcntl.h>
11081 main() { struct flock64 fl64;
11082 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11089 if { (eval echo configure:11090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11091 samba_cv_HAVE_STRUCT_FLOCK64=yes
11093 echo "configure: failed program was:" >&5
11094 cat conftest.$ac_ext >&5
11096 samba_cv_HAVE_STRUCT_FLOCK64=no
11103 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11105 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11106 cat >> confdefs.h <<\EOF
11107 #define HAVE_STRUCT_FLOCK64 1
11116 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11117 echo "configure:11118: checking for broken RedHat 7.2 system header files" >&5
11118 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11119 echo $ac_n "(cached) $ac_c" 1>&6
11122 cat > conftest.$ac_ext <<EOF
11123 #line 11124 "configure"
11124 #include "confdefs.h"
11126 #ifdef HAVE_SYS_VFS_H
11127 #include <sys/vfs.h>
11129 #ifdef HAVE_SYS_CAPABILITY_H
11130 #include <sys/capability.h>
11137 if { (eval echo configure:11138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11139 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11141 echo "configure: failed program was:" >&5
11142 cat conftest.$ac_ext >&5
11144 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11149 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11150 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11151 cat >> confdefs.h <<\EOF
11152 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11159 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11160 echo "configure:11161: checking for broken nisplus include files" >&5
11161 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11162 echo $ac_n "(cached) $ac_c" 1>&6
11165 cat > conftest.$ac_ext <<EOF
11166 #line 11167 "configure"
11167 #include "confdefs.h"
11168 #include <sys/acl.h>
11169 #if defined(HAVE_RPCSVC_NIS_H)
11170 #include <rpcsvc/nis.h>
11176 if { (eval echo configure:11177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11178 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11180 echo "configure: failed program was:" >&5
11181 cat conftest.$ac_ext >&5
11183 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11188 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11189 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11190 cat >> confdefs.h <<\EOF
11191 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11197 #################################################
11198 # check for smbwrapper support
11199 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11200 echo "configure:11201: checking whether to use smbwrapper" >&5
11201 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11202 if test "${with_smbwrapper+set}" = set; then
11203 withval="$with_smbwrapper"
11206 echo "$ac_t""yes" 1>&6
11207 cat >> confdefs.h <<\EOF
11208 #define WITH_SMBWRAPPER 1
11211 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11213 if test x$ATTEMPT_WRAP32_BUILD = x; then
11216 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11219 # Conditions under which smbwrapper should not be built.
11221 if test x$PICFLAG = x; then
11222 echo No support for PIC code - disabling smbwrapper and smbsh
11225 elif test x$ac_cv_func_syscall = xno; then
11226 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11232 echo "$ac_t""no" 1>&6
11236 echo "$ac_t""no" 1>&6
11241 #################################################
11242 # check for AFS clear-text auth support
11243 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
11244 echo "configure:11245: checking whether to use AFS clear-text auth" >&5
11245 # Check whether --with-afs or --without-afs was given.
11246 if test "${with_afs+set}" = set; then
11247 withval="$with_afs"
11250 echo "$ac_t""yes" 1>&6
11251 cat >> confdefs.h <<\EOF
11257 echo "$ac_t""no" 1>&6
11261 echo "$ac_t""no" 1>&6
11267 #################################################
11268 # check for the DFS clear-text auth system
11269 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
11270 echo "configure:11271: checking whether to use DFS clear-text auth" >&5
11271 # Check whether --with-dfs or --without-dfs was given.
11272 if test "${with_dfs+set}" = set; then
11273 withval="$with_dfs"
11276 echo "$ac_t""yes" 1>&6
11277 cat >> confdefs.h <<\EOF
11283 echo "$ac_t""no" 1>&6
11287 echo "$ac_t""no" 1>&6
11293 #################################################
11294 # see if this box has the RedHat location for kerberos
11295 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
11296 echo "configure:11297: checking for /usr/kerberos" >&5
11297 if test -d /usr/kerberos; then
11298 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
11299 CFLAGS="$CFLAGS -I/usr/kerberos/include"
11300 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
11301 echo "$ac_t""yes" 1>&6
11303 echo "$ac_t""no" 1>&6
11306 #################################################
11307 # check for location of Kerberos 5 install
11308 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
11309 echo "configure:11310: checking for kerberos 5 install path" >&5
11310 # Check whether --with-krb5 or --without-krb5 was given.
11311 if test "${with_krb5+set}" = set; then
11312 withval="$with_krb5"
11315 echo "$ac_t""no" 1>&6
11318 echo "$ac_t""yes" 1>&6
11319 LIBS="$LIBS -lkrb5"
11320 CFLAGS="$CFLAGS -I$withval/include"
11321 CPPFLAGS="$CPPFLAGS -I$withval/include"
11322 LDFLAGS="$LDFLAGS -L$withval/lib"
11326 echo "$ac_t""no" 1>&6
11331 # now check for krb5.h. Some systems have the libraries without the headers!
11332 # note that this check is done here to allow for different kerberos
11334 for ac_hdr in krb5.h
11336 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11337 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11338 echo "configure:11339: checking for $ac_hdr" >&5
11339 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11340 echo $ac_n "(cached) $ac_c" 1>&6
11342 cat > conftest.$ac_ext <<EOF
11343 #line 11344 "configure"
11344 #include "confdefs.h"
11347 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11348 { (eval echo configure:11349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11349 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11350 if test -z "$ac_err"; then
11352 eval "ac_cv_header_$ac_safe=yes"
11355 echo "configure: failed program was:" >&5
11356 cat conftest.$ac_ext >&5
11358 eval "ac_cv_header_$ac_safe=no"
11362 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11363 echo "$ac_t""yes" 1>&6
11364 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11365 cat >> confdefs.h <<EOF
11366 #define $ac_tr_hdr 1
11370 echo "$ac_t""no" 1>&6
11375 ##################################################################
11376 # we might need the k5crypto and com_err libraries on some systems
11377 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
11378 echo "configure:11379: checking for _et_list in -lcom_err" >&5
11379 ac_lib_var=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
11380 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11381 echo $ac_n "(cached) $ac_c" 1>&6
11383 ac_save_LIBS="$LIBS"
11384 LIBS="-lcom_err $LIBS"
11385 cat > conftest.$ac_ext <<EOF
11386 #line 11387 "configure"
11387 #include "confdefs.h"
11388 /* Override any gcc2 internal prototype to avoid an error. */
11389 /* We use char because int might match the return type of a gcc2
11390 builtin and then its argument prototype would still apply. */
11397 if { (eval echo configure:11398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11399 eval "ac_cv_lib_$ac_lib_var=yes"
11401 echo "configure: failed program was:" >&5
11402 cat conftest.$ac_ext >&5
11404 eval "ac_cv_lib_$ac_lib_var=no"
11407 LIBS="$ac_save_LIBS"
11410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11411 echo "$ac_t""yes" 1>&6
11412 LIBS="$LIBS -lcom_err"
11414 echo "$ac_t""no" 1>&6
11417 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
11418 echo "configure:11419: checking for krb5_encrypt_data in -lk5crypto" >&5
11419 ac_lib_var=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
11420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11421 echo $ac_n "(cached) $ac_c" 1>&6
11423 ac_save_LIBS="$LIBS"
11424 LIBS="-lk5crypto $LIBS"
11425 cat > conftest.$ac_ext <<EOF
11426 #line 11427 "configure"
11427 #include "confdefs.h"
11428 /* Override any gcc2 internal prototype to avoid an error. */
11429 /* We use char because int might match the return type of a gcc2
11430 builtin and then its argument prototype would still apply. */
11431 char krb5_encrypt_data();
11434 krb5_encrypt_data()
11437 if { (eval echo configure:11438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11439 eval "ac_cv_lib_$ac_lib_var=yes"
11441 echo "configure: failed program was:" >&5
11442 cat conftest.$ac_ext >&5
11444 eval "ac_cv_lib_$ac_lib_var=no"
11447 LIBS="$ac_save_LIBS"
11450 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11451 echo "$ac_t""yes" 1>&6
11452 LIBS="$LIBS -lk5crypto"
11454 echo "$ac_t""no" 1>&6
11459 ########################################################
11460 # now see if we can find the krb5 libs in standard paths
11461 # or as specified above
11462 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
11463 echo "configure:11464: checking for krb5_mk_req_extended in -lkrb5" >&5
11464 ac_lib_var=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
11465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11466 echo $ac_n "(cached) $ac_c" 1>&6
11468 ac_save_LIBS="$LIBS"
11469 LIBS="-lkrb5 $LIBS"
11470 cat > conftest.$ac_ext <<EOF
11471 #line 11472 "configure"
11472 #include "confdefs.h"
11473 /* Override any gcc2 internal prototype to avoid an error. */
11474 /* We use char because int might match the return type of a gcc2
11475 builtin and then its argument prototype would still apply. */
11476 char krb5_mk_req_extended();
11479 krb5_mk_req_extended()
11482 if { (eval echo configure:11483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11484 eval "ac_cv_lib_$ac_lib_var=yes"
11486 echo "configure: failed program was:" >&5
11487 cat conftest.$ac_ext >&5
11489 eval "ac_cv_lib_$ac_lib_var=no"
11492 LIBS="$ac_save_LIBS"
11495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11496 echo "$ac_t""yes" 1>&6
11497 LIBS="$LIBS -lkrb5";
11498 cat >> confdefs.h <<\EOF
11499 #define HAVE_KRB5 1
11503 echo "$ac_t""no" 1>&6
11508 ##################################################################
11509 # we might need the lber lib on some systems. To avoid link errors
11510 # this test must be before the libldap test
11511 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
11512 echo "configure:11513: checking for ber_scanf in -llber" >&5
11513 ac_lib_var=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
11514 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11515 echo $ac_n "(cached) $ac_c" 1>&6
11517 ac_save_LIBS="$LIBS"
11518 LIBS="-llber $LIBS"
11519 cat > conftest.$ac_ext <<EOF
11520 #line 11521 "configure"
11521 #include "confdefs.h"
11522 /* Override any gcc2 internal prototype to avoid an error. */
11523 /* We use char because int might match the return type of a gcc2
11524 builtin and then its argument prototype would still apply. */
11531 if { (eval echo configure:11532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11533 eval "ac_cv_lib_$ac_lib_var=yes"
11535 echo "configure: failed program was:" >&5
11536 cat conftest.$ac_ext >&5
11538 eval "ac_cv_lib_$ac_lib_var=no"
11541 LIBS="$ac_save_LIBS"
11544 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11545 echo "$ac_t""yes" 1>&6
11546 LIBS="$LIBS -llber"
11548 echo "$ac_t""no" 1>&6
11552 ########################################################
11553 # now see if we can find the ldap libs in standard paths
11554 if test x$have_ldap != xyes; then
11555 echo $ac_n "checking for ldap_open in -lldap""... $ac_c" 1>&6
11556 echo "configure:11557: checking for ldap_open in -lldap" >&5
11557 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
11558 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11559 echo $ac_n "(cached) $ac_c" 1>&6
11561 ac_save_LIBS="$LIBS"
11562 LIBS="-lldap $LIBS"
11563 cat > conftest.$ac_ext <<EOF
11564 #line 11565 "configure"
11565 #include "confdefs.h"
11566 /* Override any gcc2 internal prototype to avoid an error. */
11567 /* We use char because int might match the return type of a gcc2
11568 builtin and then its argument prototype would still apply. */
11575 if { (eval echo configure:11576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11577 eval "ac_cv_lib_$ac_lib_var=yes"
11579 echo "configure: failed program was:" >&5
11580 cat conftest.$ac_ext >&5
11582 eval "ac_cv_lib_$ac_lib_var=no"
11585 LIBS="$ac_save_LIBS"
11588 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11589 echo "$ac_t""yes" 1>&6
11590 LIBS="$LIBS -lldap";
11591 cat >> confdefs.h <<\EOF
11592 #define HAVE_LDAP 1
11596 echo "$ac_t""no" 1>&6
11602 #################################################
11603 # check for automount support
11604 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11605 echo "configure:11606: checking whether to use AUTOMOUNT" >&5
11606 # Check whether --with-automount or --without-automount was given.
11607 if test "${with_automount+set}" = set; then
11608 withval="$with_automount"
11611 echo "$ac_t""yes" 1>&6
11612 cat >> confdefs.h <<\EOF
11613 #define WITH_AUTOMOUNT 1
11618 echo "$ac_t""no" 1>&6
11622 echo "$ac_t""no" 1>&6
11627 #################################################
11628 # check for smbmount support
11629 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11630 echo "configure:11631: checking whether to use SMBMOUNT" >&5
11631 # Check whether --with-smbmount or --without-smbmount was given.
11632 if test "${with_smbmount+set}" = set; then
11633 withval="$with_smbmount"
11638 echo "$ac_t""yes" 1>&6
11639 cat >> confdefs.h <<\EOF
11640 #define WITH_SMBMOUNT 1
11643 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11646 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11651 echo "$ac_t""no" 1>&6
11656 echo "$ac_t""no" 1>&6
11663 #################################################
11664 # check for a PAM clear-text auth, accounts, password and session support
11665 with_pam_for_crypt=no
11666 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
11667 echo "configure:11668: checking whether to use PAM" >&5
11668 # Check whether --with-pam or --without-pam was given.
11669 if test "${with_pam+set}" = set; then
11670 withval="$with_pam"
11673 echo "$ac_t""yes" 1>&6
11674 cat >> confdefs.h <<\EOF
11679 with_pam_for_crypt=yes
11682 echo "$ac_t""no" 1>&6
11686 echo "$ac_t""no" 1>&6
11691 # we can't build a pam module if we don't have pam.
11692 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11693 echo "configure:11694: checking for pam_get_data in -lpam" >&5
11694 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11695 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11696 echo $ac_n "(cached) $ac_c" 1>&6
11698 ac_save_LIBS="$LIBS"
11700 cat > conftest.$ac_ext <<EOF
11701 #line 11702 "configure"
11702 #include "confdefs.h"
11703 /* Override any gcc2 internal prototype to avoid an error. */
11704 /* We use char because int might match the return type of a gcc2
11705 builtin and then its argument prototype would still apply. */
11706 char pam_get_data();
11712 if { (eval echo configure:11713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11714 eval "ac_cv_lib_$ac_lib_var=yes"
11716 echo "configure: failed program was:" >&5
11717 cat conftest.$ac_ext >&5
11719 eval "ac_cv_lib_$ac_lib_var=no"
11722 LIBS="$ac_save_LIBS"
11725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11726 echo "$ac_t""yes" 1>&6
11727 cat >> confdefs.h <<\EOF
11728 #define HAVE_LIBPAM 1
11732 echo "$ac_t""no" 1>&6
11736 #################################################
11737 # check for pam_smbpass support
11738 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11739 echo "configure:11740: checking whether to use pam_smbpass" >&5
11740 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11741 if test "${with_pam_smbpass+set}" = set; then
11742 withval="$with_pam_smbpass"
11745 echo "$ac_t""yes" 1>&6
11747 # Conditions under which pam_smbpass should not be built.
11749 if test x$PICFLAG = x; then
11750 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11752 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
11753 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11756 PAM_MOD="bin/pam_smbpass.so"
11760 echo "$ac_t""no" 1>&6
11764 echo "$ac_t""no" 1>&6
11770 ###############################################
11771 # test for where we get crypt() from, but only
11773 if test $with_pam_for_crypt = no; then
11774 for ac_func in crypt
11776 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11777 echo "configure:11778: checking for $ac_func" >&5
11778 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11779 echo $ac_n "(cached) $ac_c" 1>&6
11781 cat > conftest.$ac_ext <<EOF
11782 #line 11783 "configure"
11783 #include "confdefs.h"
11784 /* System header to define __stub macros and hopefully few prototypes,
11785 which can conflict with char $ac_func(); below. */
11786 #include <assert.h>
11787 /* Override any gcc2 internal prototype to avoid an error. */
11788 /* We use char because int might match the return type of a gcc2
11789 builtin and then its argument prototype would still apply. */
11794 /* The GNU C library defines this for functions which it implements
11795 to always fail with ENOSYS. Some functions are actually named
11796 something starting with __ and the normal name is an alias. */
11797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11805 if { (eval echo configure:11806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11807 eval "ac_cv_func_$ac_func=yes"
11809 echo "configure: failed program was:" >&5
11810 cat conftest.$ac_ext >&5
11812 eval "ac_cv_func_$ac_func=no"
11817 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11818 echo "$ac_t""yes" 1>&6
11819 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11820 cat >> confdefs.h <<EOF
11821 #define $ac_tr_func 1
11825 echo "$ac_t""no" 1>&6
11829 if test x"$ac_cv_func_crypt" = x"no"; then
11830 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11831 echo "configure:11832: checking for crypt in -lcrypt" >&5
11832 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11834 echo $ac_n "(cached) $ac_c" 1>&6
11836 ac_save_LIBS="$LIBS"
11837 LIBS="-lcrypt $LIBS"
11838 cat > conftest.$ac_ext <<EOF
11839 #line 11840 "configure"
11840 #include "confdefs.h"
11841 /* Override any gcc2 internal prototype to avoid an error. */
11842 /* We use char because int might match the return type of a gcc2
11843 builtin and then its argument prototype would still apply. */
11850 if { (eval echo configure:11851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11852 eval "ac_cv_lib_$ac_lib_var=yes"
11854 echo "configure: failed program was:" >&5
11855 cat conftest.$ac_ext >&5
11857 eval "ac_cv_lib_$ac_lib_var=no"
11860 LIBS="$ac_save_LIBS"
11863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11864 echo "$ac_t""yes" 1>&6
11865 LIBS="$LIBS -lcrypt";
11866 cat >> confdefs.h <<\EOF
11867 #define HAVE_CRYPT 1
11871 echo "$ac_t""no" 1>&6
11878 ## moved after the check for -lcrypt in order to
11879 ## ensure that the necessary libraries are included
11880 ## check checking for truncated salt. Wrapped by the
11881 ## $with_pam_for_crypt variable as above --jerry
11883 if test $with_pam_for_crypt = no; then
11884 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
11885 echo "configure:11886: checking for a crypt that needs truncated salt" >&5
11886 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
11887 echo $ac_n "(cached) $ac_c" 1>&6
11890 if test "$cross_compiling" = yes; then
11891 samba_cv_HAVE_TRUNCATED_SALT=cross
11893 cat > conftest.$ac_ext <<EOF
11894 #line 11895 "configure"
11895 #include "confdefs.h"
11896 #include "${srcdir-.}/tests/crypttest.c"
11898 if { (eval echo configure:11899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11900 samba_cv_HAVE_TRUNCATED_SALT=no
11902 echo "configure: failed program was:" >&5
11903 cat conftest.$ac_ext >&5
11905 samba_cv_HAVE_TRUNCATED_SALT=yes
11912 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
11913 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
11914 cat >> confdefs.h <<\EOF
11915 #define HAVE_TRUNCATED_SALT 1
11923 ########################################################################################
11925 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
11927 ########################################################################################
11929 ## set the with_smbpasswd_sam as the default
11930 with_smbpasswd_sam=yes
11933 #################################################
11934 # check for a TDB password database
11935 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
11936 echo "configure:11937: checking whether to use TDB SAM database" >&5
11937 # Check whether --with-tdbsam or --without-tdbsam was given.
11938 if test "${with_tdbsam+set}" = set; then
11939 withval="$with_tdbsam"
11942 echo "$ac_t""yes" 1>&6
11943 cat >> confdefs.h <<\EOF
11944 #define WITH_TDB_SAM 1
11947 with_smbpasswd_sam=no
11950 echo "$ac_t""no" 1>&6
11954 echo "$ac_t""no" 1>&6
11959 #################################################
11960 # check for a LDAP password database
11961 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
11962 echo "configure:11963: checking whether to use LDAP SAM database" >&5
11963 # Check whether --with-ldapsam or --without-ldapsam was given.
11964 if test "${with_ldapsam+set}" = set; then
11965 withval="$with_ldapsam"
11968 echo "$ac_t""yes" 1>&6
11969 cat >> confdefs.h <<\EOF
11970 #define WITH_LDAP_SAM 1
11973 LIBS="-lldap -llber $LIBS"
11974 with_smbpasswd_sam=no
11977 echo "$ac_t""no" 1>&6
11981 echo "$ac_t""no" 1>&6
11986 #################################################
11987 # check for a NISPLUS password database
11988 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
11989 echo "configure:11990: checking whether to use NISPLUS SAM database" >&5
11990 # Check whether --with-nisplussam or --without-nisplussam was given.
11991 if test "${with_nisplussam+set}" = set; then
11992 withval="$with_nisplussam"
11995 echo "$ac_t""yes" 1>&6
11996 cat >> confdefs.h <<\EOF
11997 #define WITH_NISPLUS_SAM 1
12000 with_smbpasswd_sam=no
12003 echo "$ac_t""no" 1>&6
12007 echo "$ac_t""no" 1>&6
12012 ################################################
12013 # This test should come last because the
12014 # smbpasswd SAM is only used if another format
12015 # has not been defined
12016 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
12017 echo "configure:12018: checking whether to use traditional smbpasswd file" >&5
12018 if test $with_smbpasswd_sam = yes; then
12019 echo "$ac_t""yes" 1>&6
12020 cat >> confdefs.h <<\EOF
12021 #define WITH_SMBPASSWD_SAM 1
12025 echo "$ac_t""no" 1>&6
12028 ########################################################################################
12030 ## END OF TESTS FOR SAM BACKENDS.
12032 ########################################################################################
12034 #################################################
12035 # check for a NISPLUS_HOME support
12036 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12037 echo "configure:12038: checking whether to use NISPLUS_HOME" >&5
12038 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12039 if test "${with_nisplus_home+set}" = set; then
12040 withval="$with_nisplus_home"
12043 echo "$ac_t""yes" 1>&6
12044 cat >> confdefs.h <<\EOF
12045 #define WITH_NISPLUS_HOME 1
12050 echo "$ac_t""no" 1>&6
12054 echo "$ac_t""no" 1>&6
12059 #################################################
12060 # check for the secure socket layer
12061 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12062 echo "configure:12063: checking whether to use SSL" >&5
12063 # Check whether --with-ssl or --without-ssl was given.
12064 if test "${with_ssl+set}" = set; then
12065 withval="$with_ssl"
12068 echo "$ac_t""yes" 1>&6
12069 cat >> confdefs.h <<\EOF
12073 withval="/usr/local/ssl" # default
12075 if test "${with_sslinc+set}" = set; then
12077 withval="$with_sslinc"
12080 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12081 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12084 CFLAGS="-I${withval} $CFLAGS"
12090 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12094 if test "${with_ssllib+set}" = set; then
12096 withval="$with_ssllib"
12099 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12100 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12103 LDFLAGS="-L${withval}/lib $LDFLAGS"
12109 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12113 LIBS="-lssl -lcrypto $LIBS"
12115 # if test ! -d ${withval}; then
12116 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12120 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12124 echo "$ac_t""no" 1>&6
12128 echo "$ac_t""no" 1>&6
12133 #################################################
12134 # check for syslog logging
12135 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12136 echo "configure:12137: checking whether to use syslog logging" >&5
12137 # Check whether --with-syslog or --without-syslog was given.
12138 if test "${with_syslog+set}" = set; then
12139 withval="$with_syslog"
12142 echo "$ac_t""yes" 1>&6
12143 cat >> confdefs.h <<\EOF
12144 #define WITH_SYSLOG 1
12149 echo "$ac_t""no" 1>&6
12153 echo "$ac_t""no" 1>&6
12158 #################################################
12159 # check for a shared memory profiling support
12160 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12161 echo "configure:12162: checking whether to use profiling" >&5
12162 # Check whether --with-profiling-data or --without-profiling-data was given.
12163 if test "${with_profiling_data+set}" = set; then
12164 withval="$with_profiling_data"
12167 echo "$ac_t""yes" 1>&6
12168 cat >> confdefs.h <<\EOF
12169 #define WITH_PROFILE 1
12174 echo "$ac_t""no" 1>&6
12178 echo "$ac_t""no" 1>&6
12184 #################################################
12185 # check for experimental disk-quotas support
12186 QUOTAOBJS=smbd/noquotas.o
12188 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12189 echo "configure:12190: checking whether to support disk-quotas" >&5
12190 # Check whether --with-quotas or --without-quotas was given.
12191 if test "${with_quotas+set}" = set; then
12192 withval="$with_quotas"
12195 echo "$ac_t""yes" 1>&6
12198 # Check for kernel 2.4.x quota braindamage...
12199 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
12200 echo "configure:12201: checking for linux 2.4.x quota braindamage.." >&5
12201 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
12202 echo $ac_n "(cached) $ac_c" 1>&6
12205 cat > conftest.$ac_ext <<EOF
12206 #line 12207 "configure"
12207 #include "confdefs.h"
12209 #include <sys/types.h>
12210 #include <asm/types.h>
12211 #include <linux/quota.h>
12212 #include <mntent.h>
12213 #include <linux/unistd.h>
12215 struct mem_dqblk D;
12218 if { (eval echo configure:12219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12220 samba_cv_linux_2_4_quota_braindamage=yes
12222 echo "configure: failed program was:" >&5
12223 cat conftest.$ac_ext >&5
12225 samba_cv_linux_2_4_quota_braindamage=no
12230 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
12231 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
12232 cat >> confdefs.h <<\EOF
12233 #define LINUX_QUOTAS_2 1
12237 cat >> confdefs.h <<\EOF
12238 #define LINUX_QUOTAS_1 1
12246 QUOTAOBJS=smbd/quotas.o
12247 cat >> confdefs.h <<\EOF
12248 #define WITH_QUOTAS 1
12253 echo "$ac_t""no" 1>&6
12257 echo "$ac_t""no" 1>&6
12263 #################################################
12264 # check for experimental utmp accounting
12266 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12267 echo "configure:12268: checking whether to support utmp accounting" >&5
12268 # Check whether --with-utmp or --without-utmp was given.
12269 if test "${with_utmp+set}" = set; then
12270 withval="$with_utmp"
12273 echo "$ac_t""yes" 1>&6
12274 cat >> confdefs.h <<\EOF
12275 #define WITH_UTMP 1
12280 echo "$ac_t""no" 1>&6
12284 echo "$ac_t""no" 1>&6
12289 #################################################
12290 # set private directory location
12291 # Check whether --with-privatedir or --without-privatedir was given.
12292 if test "${with_privatedir+set}" = set; then
12293 withval="$with_privatedir"
12297 # Just in case anybody calls it without argument
12299 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
12300 privatedir='${prefix}/private'
12303 privatedir="$withval"
12308 privatedir='${prefix}/private'
12314 #################################################
12315 # set lock directory location
12316 # Check whether --with-lockdir or --without-lockdir was given.
12317 if test "${with_lockdir+set}" = set; then
12318 withval="$with_lockdir"
12322 # Just in case anybody calls it without argument
12324 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
12325 lockdir='$(VARDIR)/locks'
12333 lockdir='$(VARDIR)/locks'
12339 #################################################
12340 # set SWAT directory location
12341 # Check whether --with-swatdir or --without-swatdir was given.
12342 if test "${with_swatdir+set}" = set; then
12343 withval="$with_swatdir"
12347 # Just in case anybody does it
12349 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
12350 swatdir='${prefix}/swat'
12358 swatdir='${prefix}/swat'
12364 #################################################
12365 # choose native language(s) of man pages
12366 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
12367 echo "configure:12368: checking chosen man pages' language(s)" >&5
12368 # Check whether --with-manpages-langs or --without-manpages-langs was given.
12369 if test "${with_manpages_langs+set}" = set; then
12370 withval="$with_manpages_langs"
12373 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
12377 manlangs="$withval"
12381 echo "$ac_t""$manlangs" 1>&6
12382 manlangs=`echo $manlangs | sed "s/,/ /"` # replacing commas with spaces to produce a list
12386 echo "$ac_t""$manlangs" 1>&6
12392 #################################################
12393 # these tests are taken from the GNU fileutils package
12394 echo "checking how to get filesystem space usage" 1>&6
12395 echo "configure:12396: checking how to get filesystem space usage" >&5
12398 # Test for statvfs64.
12399 if test $space = no; then
12401 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12402 echo "configure:12403: checking statvfs64 function (SVR4)" >&5
12403 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12404 echo $ac_n "(cached) $ac_c" 1>&6
12406 if test "$cross_compiling" = yes; then
12407 fu_cv_sys_stat_statvfs64=cross
12409 cat > conftest.$ac_ext <<EOF
12410 #line 12411 "configure"
12411 #include "confdefs.h"
12413 #if defined(HAVE_UNISTD_H)
12414 #include <unistd.h>
12416 #include <sys/types.h>
12417 #include <sys/statvfs.h>
12420 struct statvfs64 fsd;
12421 exit (statvfs64 (".", &fsd));
12424 if { (eval echo configure:12425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12426 fu_cv_sys_stat_statvfs64=yes
12428 echo "configure: failed program was:" >&5
12429 cat conftest.$ac_ext >&5
12431 fu_cv_sys_stat_statvfs64=no
12438 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12439 if test $fu_cv_sys_stat_statvfs64 = yes; then
12441 cat >> confdefs.h <<\EOF
12442 #define STAT_STATVFS64 1
12448 # Perform only the link test since it seems there are no variants of the
12449 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12450 # because that got a false positive on SCO OSR5. Adding the declaration
12451 # of a `struct statvfs' causes this test to fail (as it should) on such
12452 # systems. That system is reported to work fine with STAT_STATFS4 which
12453 # is what it gets when this test fails.
12454 if test $space = no; then
12456 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12457 echo "configure:12458: checking statvfs function (SVR4)" >&5
12458 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12459 echo $ac_n "(cached) $ac_c" 1>&6
12461 cat > conftest.$ac_ext <<EOF
12462 #line 12463 "configure"
12463 #include "confdefs.h"
12464 #include <sys/types.h>
12465 #include <sys/statvfs.h>
12467 struct statvfs fsd; statvfs (0, &fsd);
12470 if { (eval echo configure:12471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12472 fu_cv_sys_stat_statvfs=yes
12474 echo "configure: failed program was:" >&5
12475 cat conftest.$ac_ext >&5
12477 fu_cv_sys_stat_statvfs=no
12482 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12483 if test $fu_cv_sys_stat_statvfs = yes; then
12485 cat >> confdefs.h <<\EOF
12486 #define STAT_STATVFS 1
12492 if test $space = no; then
12493 # DEC Alpha running OSF/1
12494 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12495 echo "configure:12496: checking for 3-argument statfs function (DEC OSF/1)" >&5
12496 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12497 echo $ac_n "(cached) $ac_c" 1>&6
12499 if test "$cross_compiling" = yes; then
12500 fu_cv_sys_stat_statfs3_osf1=no
12502 cat > conftest.$ac_ext <<EOF
12503 #line 12504 "configure"
12504 #include "confdefs.h"
12506 #include <sys/param.h>
12507 #include <sys/types.h>
12508 #include <sys/mount.h>
12513 exit (statfs (".", &fsd, sizeof (struct statfs)));
12516 if { (eval echo configure:12517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12518 fu_cv_sys_stat_statfs3_osf1=yes
12520 echo "configure: failed program was:" >&5
12521 cat conftest.$ac_ext >&5
12523 fu_cv_sys_stat_statfs3_osf1=no
12530 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12531 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12533 cat >> confdefs.h <<\EOF
12534 #define STAT_STATFS3_OSF1 1
12540 if test $space = no; then
12542 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12543 echo "configure:12544: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12544 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12545 echo $ac_n "(cached) $ac_c" 1>&6
12547 if test "$cross_compiling" = yes; then
12548 fu_cv_sys_stat_statfs2_bsize=no
12550 cat > conftest.$ac_ext <<EOF
12551 #line 12552 "configure"
12552 #include "confdefs.h"
12554 #ifdef HAVE_SYS_PARAM_H
12555 #include <sys/param.h>
12557 #ifdef HAVE_SYS_MOUNT_H
12558 #include <sys/mount.h>
12560 #ifdef HAVE_SYS_VFS_H
12561 #include <sys/vfs.h>
12567 exit (statfs (".", &fsd));
12570 if { (eval echo configure:12571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12572 fu_cv_sys_stat_statfs2_bsize=yes
12574 echo "configure: failed program was:" >&5
12575 cat conftest.$ac_ext >&5
12577 fu_cv_sys_stat_statfs2_bsize=no
12584 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12585 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12587 cat >> confdefs.h <<\EOF
12588 #define STAT_STATFS2_BSIZE 1
12594 if test $space = no; then
12596 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12597 echo "configure:12598: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12598 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12599 echo $ac_n "(cached) $ac_c" 1>&6
12601 if test "$cross_compiling" = yes; then
12602 fu_cv_sys_stat_statfs4=no
12604 cat > conftest.$ac_ext <<EOF
12605 #line 12606 "configure"
12606 #include "confdefs.h"
12607 #include <sys/types.h>
12608 #include <sys/statfs.h>
12612 exit (statfs (".", &fsd, sizeof fsd, 0));
12615 if { (eval echo configure:12616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12617 fu_cv_sys_stat_statfs4=yes
12619 echo "configure: failed program was:" >&5
12620 cat conftest.$ac_ext >&5
12622 fu_cv_sys_stat_statfs4=no
12629 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12630 if test $fu_cv_sys_stat_statfs4 = yes; then
12632 cat >> confdefs.h <<\EOF
12633 #define STAT_STATFS4 1
12639 if test $space = no; then
12640 # 4.4BSD and NetBSD
12641 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12642 echo "configure:12643: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12643 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12644 echo $ac_n "(cached) $ac_c" 1>&6
12646 if test "$cross_compiling" = yes; then
12647 fu_cv_sys_stat_statfs2_fsize=no
12649 cat > conftest.$ac_ext <<EOF
12650 #line 12651 "configure"
12651 #include "confdefs.h"
12652 #include <sys/types.h>
12653 #ifdef HAVE_SYS_PARAM_H
12654 #include <sys/param.h>
12656 #ifdef HAVE_SYS_MOUNT_H
12657 #include <sys/mount.h>
12663 exit (statfs (".", &fsd));
12666 if { (eval echo configure:12667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12668 fu_cv_sys_stat_statfs2_fsize=yes
12670 echo "configure: failed program was:" >&5
12671 cat conftest.$ac_ext >&5
12673 fu_cv_sys_stat_statfs2_fsize=no
12680 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12681 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12683 cat >> confdefs.h <<\EOF
12684 #define STAT_STATFS2_FSIZE 1
12690 if test $space = no; then
12692 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12693 echo "configure:12694: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12694 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12695 echo $ac_n "(cached) $ac_c" 1>&6
12697 if test "$cross_compiling" = yes; then
12698 fu_cv_sys_stat_fs_data=no
12700 cat > conftest.$ac_ext <<EOF
12701 #line 12702 "configure"
12702 #include "confdefs.h"
12703 #include <sys/types.h>
12704 #ifdef HAVE_SYS_PARAM_H
12705 #include <sys/param.h>
12707 #ifdef HAVE_SYS_MOUNT_H
12708 #include <sys/mount.h>
12710 #ifdef HAVE_SYS_FS_TYPES_H
12711 #include <sys/fs_types.h>
12715 struct fs_data fsd;
12716 /* Ultrix's statfs returns 1 for success,
12717 0 for not mounted, -1 for failure. */
12718 exit (statfs (".", &fsd) != 1);
12721 if { (eval echo configure:12722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12723 fu_cv_sys_stat_fs_data=yes
12725 echo "configure: failed program was:" >&5
12726 cat conftest.$ac_ext >&5
12728 fu_cv_sys_stat_fs_data=no
12735 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12736 if test $fu_cv_sys_stat_fs_data = yes; then
12738 cat >> confdefs.h <<\EOF
12739 #define STAT_STATFS2_FS_DATA 1
12746 # As a gating factor for large file support, in order to
12747 # use <4GB files we must have the following minimal support
12749 # long long, and a 64 bit off_t or off64_t.
12750 # If we don't have all of these then disable large
12753 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12754 echo "configure:12755: checking if large file support can be enabled" >&5
12755 cat > conftest.$ac_ext <<EOF
12756 #line 12757 "configure"
12757 #include "confdefs.h"
12759 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12760 #include <sys/types.h>
12769 if { (eval echo configure:12770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12771 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
12773 echo "configure: failed program was:" >&5
12774 cat conftest.$ac_ext >&5
12776 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
12779 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
12780 cat >> confdefs.h <<\EOF
12781 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12785 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
12787 # Check whether --with-spinlocks or --without-spinlocks was given.
12788 if test "${with_spinlocks+set}" = set; then
12789 withval="$with_spinlocks"
12793 if test "x$with_spinlocks" = "xyes"; then
12794 cat >> confdefs.h <<\EOF
12795 #define USE_SPINLOCKS 1
12799 case "$host_cpu" in
12801 cat >> confdefs.h <<\EOF
12802 #define SPARC_SPINLOCKS 1
12807 i386|i486|i586|i686)
12808 cat >> confdefs.h <<\EOF
12809 #define INTEL_SPINLOCKS 1
12815 cat >> confdefs.h <<\EOF
12816 #define MIPS_SPINLOCKS 1
12822 cat >> confdefs.h <<\EOF
12823 #define POWERPC_SPINLOCKS 1
12830 #################################################
12831 # check for ACL support
12833 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12834 echo "configure:12835: checking whether to support ACLs" >&5
12835 # Check whether --with-acl-support or --without-acl-support was given.
12836 if test "${with_acl_support+set}" = set; then
12837 withval="$with_acl_support"
12843 echo "$ac_t""Using UnixWare ACLs" 1>&6
12844 cat >> confdefs.h <<\EOF
12845 #define HAVE_UNIXWARE_ACLS 1
12850 echo "$ac_t""Using solaris ACLs" 1>&6
12851 cat >> confdefs.h <<\EOF
12852 #define HAVE_SOLARIS_ACLS 1
12857 echo "$ac_t""Using IRIX ACLs" 1>&6
12858 cat >> confdefs.h <<\EOF
12859 #define HAVE_IRIX_ACLS 1
12864 echo "$ac_t""Using AIX ACLs" 1>&6
12865 cat >> confdefs.h <<\EOF
12866 #define HAVE_AIX_ACLS 1
12871 echo "$ac_t""Using Tru64 ACLs" 1>&6
12872 cat >> confdefs.h <<\EOF
12873 #define HAVE_TRU64_ACLS 1
12876 LIBS="$LIBS -lpacl"
12879 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12880 echo "configure:12881: checking for acl_get_file in -lacl" >&5
12881 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12882 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12883 echo $ac_n "(cached) $ac_c" 1>&6
12885 ac_save_LIBS="$LIBS"
12887 cat > conftest.$ac_ext <<EOF
12888 #line 12889 "configure"
12889 #include "confdefs.h"
12890 /* Override any gcc2 internal prototype to avoid an error. */
12891 /* We use char because int might match the return type of a gcc2
12892 builtin and then its argument prototype would still apply. */
12893 char acl_get_file();
12899 if { (eval echo configure:12900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12901 eval "ac_cv_lib_$ac_lib_var=yes"
12903 echo "configure: failed program was:" >&5
12904 cat conftest.$ac_ext >&5
12906 eval "ac_cv_lib_$ac_lib_var=no"
12909 LIBS="$ac_save_LIBS"
12912 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12913 echo "$ac_t""yes" 1>&6
12914 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12915 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12916 cat >> confdefs.h <<EOF
12917 #define $ac_tr_lib 1
12923 echo "$ac_t""no" 1>&6
12926 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12927 echo "configure:12928: checking for ACL support" >&5
12928 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12929 echo $ac_n "(cached) $ac_c" 1>&6
12932 cat > conftest.$ac_ext <<EOF
12933 #line 12934 "configure"
12934 #include "confdefs.h"
12935 #include <sys/types.h>
12936 #include <sys/acl.h>
12938 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12941 if { (eval echo configure:12942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12943 samba_cv_HAVE_POSIX_ACLS=yes
12945 echo "configure: failed program was:" >&5
12946 cat conftest.$ac_ext >&5
12948 samba_cv_HAVE_POSIX_ACLS=no
12953 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12954 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
12955 echo "$ac_t""Using posix ACLs" 1>&6
12956 cat >> confdefs.h <<\EOF
12957 #define HAVE_POSIX_ACLS 1
12960 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12961 echo "configure:12962: checking for acl_get_perm_np" >&5
12962 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12963 echo $ac_n "(cached) $ac_c" 1>&6
12966 cat > conftest.$ac_ext <<EOF
12967 #line 12968 "configure"
12968 #include "confdefs.h"
12969 #include <sys/types.h>
12970 #include <sys/acl.h>
12972 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12975 if { (eval echo configure:12976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12977 samba_cv_HAVE_ACL_GET_PERM_NP=yes
12979 echo "configure: failed program was:" >&5
12980 cat conftest.$ac_ext >&5
12982 samba_cv_HAVE_ACL_GET_PERM_NP=no
12987 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12988 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
12989 cat >> confdefs.h <<\EOF
12990 #define HAVE_ACL_GET_PERM_NP 1
12999 echo "$ac_t""no" 1>&6
13000 cat >> confdefs.h <<\EOF
13001 #define HAVE_NO_ACLS 1
13007 cat >> confdefs.h <<\EOF
13008 #define HAVE_NO_ACLS 1
13011 echo "$ac_t""no" 1>&6
13016 #################################################
13017 # Check whether winbind is supported on this platform. If so we need to
13018 # build and install client programs (WINBIND_TARGETS), sbin programs
13019 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13021 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13022 echo "configure:13023: checking whether to build winbind" >&5
13024 # Initially, the value of $host_os decides whether winbind is supported
13032 winbind_no_reason=", unsupported on $host_os"
13036 # Check the setting of --with-winbindd
13038 # Check whether --with-winbind or --without-winbind was given.
13039 if test "${with_winbind+set}" = set; then
13040 withval="$with_winbind"
13054 # We need unix domain sockets for winbind
13056 if test x"$HAVE_WINBIND" = x"yes"; then
13057 if test x"$samba_cv_unixsocket" = x"no"; then
13058 winbind_no_reason=", no unix domain socket support on $host_os"
13063 # Display test results
13065 if test x"$HAVE_WINBIND" = x"yes"; then
13067 echo "$ac_t""yes" 1>&6
13069 WINBIND_TARGETS="\$(WINBIND_PROGS)"
13070 WINBIND_STARGETS="\$(WINBIND_SPROGS)"
13071 WINBIND_LTARGETS="\$(WINBIND_LPROGS)"
13072 case "$with_pam" in
13074 WINBIND_PAM_PROGS="\$(WINBIND_PAM_PROGS)"
13078 echo "$ac_t""no$winbind_no_reason" 1>&6
13081 WINBIND_STARGETS=""
13082 WINBIND_LTARGETS=""
13083 WINBIND_PAM_PROGS=""
13086 # Substitution time!
13093 #################################################
13094 # Check to see if we should use the included popt
13096 # Check whether --with-included-popt or --without-included-popt was given.
13097 if test "${with_included_popt+set}" = set; then
13098 withval="$with_included_popt"
13110 if test x"$INCLUDED_POPT" != x"yes"; then
13111 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13112 echo "configure:13113: checking for poptGetContext in -lpopt" >&5
13113 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13114 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13115 echo $ac_n "(cached) $ac_c" 1>&6
13117 ac_save_LIBS="$LIBS"
13118 LIBS="-lpopt $LIBS"
13119 cat > conftest.$ac_ext <<EOF
13120 #line 13121 "configure"
13121 #include "confdefs.h"
13122 /* Override any gcc2 internal prototype to avoid an error. */
13123 /* We use char because int might match the return type of a gcc2
13124 builtin and then its argument prototype would still apply. */
13125 char poptGetContext();
13131 if { (eval echo configure:13132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13133 eval "ac_cv_lib_$ac_lib_var=yes"
13135 echo "configure: failed program was:" >&5
13136 cat conftest.$ac_ext >&5
13138 eval "ac_cv_lib_$ac_lib_var=no"
13141 LIBS="$ac_save_LIBS"
13144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13145 echo "$ac_t""yes" 1>&6
13148 echo "$ac_t""no" 1>&6
13154 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
13155 echo "configure:13156: checking whether to use included popt" >&5
13156 if test x"$INCLUDED_POPT" = x"yes"; then
13157 echo "$ac_t""$srcdir/popt" 1>&6
13158 BUILD_POPT='$(POPT_OBJS)'
13159 FLAGS1="-I$srcdir/popt"
13161 echo "$ac_t""no" 1>&6
13162 LIBS="$LIBS -lpopt"
13167 #################################################
13168 # final configure stuff
13170 echo "checking configure summary"
13171 if test "$cross_compiling" = yes; then
13174 cat > conftest.$ac_ext <<EOF
13175 #line 13176 "configure"
13176 #include "confdefs.h"
13177 #include "${srcdir-.}/tests/summary.c"
13179 if { (eval echo configure:13180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13181 echo "configure OK";
13183 echo "configure: failed program was:" >&5
13184 cat conftest.$ac_ext >&5
13186 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
13196 cat > confcache <<\EOF
13197 # This file is a shell script that caches the results of configure
13198 # tests run on this system so they can be shared between configure
13199 # scripts and configure runs. It is not useful on other systems.
13200 # If it contains results you don't want to keep, you may remove or edit it.
13202 # By default, configure uses ./config.cache as the cache file,
13203 # creating it if it does not exist already. You can give configure
13204 # the --cache-file=FILE option to use a different cache file; that is
13205 # what configure does when it calls configure scripts in
13206 # subdirectories, so they share the cache.
13207 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13208 # config.status only pays attention to the cache file if you give it the
13209 # --recheck option to rerun configure.
13212 # The following way of writing the cache mishandles newlines in values,
13213 # but we know of no workaround that is simple, portable, and efficient.
13214 # So, don't put newlines in cache variables' values.
13215 # Ultrix sh set writes to stderr and can't be redirected directly,
13216 # and sets the high bit in the cache file unless we assign to the vars.
13218 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13220 # `set' does not quote correctly, so add quotes (double-quote substitution
13221 # turns \\\\ into \\, and sed turns \\ into \).
13223 -e "s/'/'\\\\''/g" \
13224 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13227 # `set' quotes correctly as required by POSIX, so do not add quotes.
13228 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13231 if cmp -s $cache_file confcache; then
13234 if test -w $cache_file; then
13235 echo "updating cache $cache_file"
13236 cat confcache > $cache_file
13238 echo "not updating unwritable cache $cache_file"
13243 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13245 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13246 # Let make expand exec_prefix.
13247 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13249 # Any assignment to VPATH causes Sun make to only execute
13250 # the first set of double-colon rules, so remove it if not needed.
13251 # If there is a colon in the path, we need to keep it.
13252 if test "x$srcdir" = x.; then
13253 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13256 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13258 DEFS=-DHAVE_CONFIG_H
13260 # Without the "./", some shells look in PATH for config.status.
13261 : ${CONFIG_STATUS=./config.status}
13263 echo creating $CONFIG_STATUS
13264 rm -f $CONFIG_STATUS
13265 cat > $CONFIG_STATUS <<EOF
13267 # Generated automatically by configure.
13268 # Run this file to recreate the current configuration.
13269 # This directory was configured as follows,
13270 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13272 # $0 $ac_configure_args
13274 # Compiler output produced by configure, useful for debugging
13275 # configure, is in ./config.log if it exists.
13277 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13280 case "\$ac_option" in
13281 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13282 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13283 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13284 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13285 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13287 -help | --help | --hel | --he | --h)
13288 echo "\$ac_cs_usage"; exit 0 ;;
13289 *) echo "\$ac_cs_usage"; exit 1 ;;
13293 ac_given_srcdir=$srcdir
13294 ac_given_INSTALL="$INSTALL"
13296 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13298 cat >> $CONFIG_STATUS <<EOF
13300 # Protect against being on the right side of a sed subst in config.status.
13301 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13302 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13306 s%@CFLAGS@%$CFLAGS%g
13307 s%@CPPFLAGS@%$CPPFLAGS%g
13308 s%@CXXFLAGS@%$CXXFLAGS%g
13309 s%@FFLAGS@%$FFLAGS%g
13311 s%@LDFLAGS@%$LDFLAGS%g
13313 s%@exec_prefix@%$exec_prefix%g
13314 s%@prefix@%$prefix%g
13315 s%@program_transform_name@%$program_transform_name%g
13316 s%@bindir@%$bindir%g
13317 s%@sbindir@%$sbindir%g
13318 s%@libexecdir@%$libexecdir%g
13319 s%@datadir@%$datadir%g
13320 s%@sysconfdir@%$sysconfdir%g
13321 s%@sharedstatedir@%$sharedstatedir%g
13322 s%@localstatedir@%$localstatedir%g
13323 s%@libdir@%$libdir%g
13324 s%@includedir@%$includedir%g
13325 s%@oldincludedir@%$oldincludedir%g
13326 s%@infodir@%$infodir%g
13327 s%@mandir@%$mandir%g
13328 s%@RUNPROG@%$RUNPROG%g
13329 s%@MPROGS@%$MPROGS%g
13330 s%@LDSHFLAGS@%$LDSHFLAGS%g
13332 s%@HOST_OS@%$HOST_OS%g
13333 s%@PAM_MOD@%$PAM_MOD%g
13335 s%@WRAP32@%$WRAP32%g
13336 s%@PICFLAG@%$PICFLAG%g
13337 s%@PICSUFFIX@%$PICSUFFIX%g
13338 s%@POBAD_CC@%$POBAD_CC%g
13339 s%@SHLIBEXT@%$SHLIBEXT%g
13340 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
13342 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13343 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13344 s%@INSTALL_DATA@%$INSTALL_DATA%g
13346 s%@BROKEN_CC@%$BROKEN_CC%g
13348 s%@host_alias@%$host_alias%g
13349 s%@host_cpu@%$host_cpu%g
13350 s%@host_vendor@%$host_vendor%g
13351 s%@host_os@%$host_os%g
13352 s%@target@%$target%g
13353 s%@target_alias@%$target_alias%g
13354 s%@target_cpu@%$target_cpu%g
13355 s%@target_vendor@%$target_vendor%g
13356 s%@target_os@%$target_os%g
13358 s%@build_alias@%$build_alias%g
13359 s%@build_cpu@%$build_cpu%g
13360 s%@build_vendor@%$build_vendor%g
13361 s%@build_os@%$build_os%g
13363 s%@LIBOBJS@%$LIBOBJS%g
13364 s%@TERMLIBS@%$TERMLIBS%g
13365 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13367 s%@QUOTAOBJS@%$QUOTAOBJS%g
13368 s%@privatedir@%$privatedir%g
13369 s%@lockdir@%$lockdir%g
13370 s%@swatdir@%$swatdir%g
13371 s%@manlangs@%$manlangs%g
13372 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13373 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
13374 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
13375 s%@WINBIND_PAM_PROGS@%$WINBIND_PAM_PROGS%g
13376 s%@BUILD_POPT@%$BUILD_POPT%g
13377 s%@FLAGS1@%$FLAGS1%g
13378 s%@builddir@%$builddir%g
13383 cat >> $CONFIG_STATUS <<\EOF
13385 # Split the substitutions into bite-sized pieces for seds with
13386 # small command number limits, like on Digital OSF/1 and HP-UX.
13387 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13388 ac_file=1 # Number of current file.
13389 ac_beg=1 # First line for current file.
13390 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13393 while $ac_more_lines; do
13394 if test $ac_beg -gt 1; then
13395 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13397 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13399 if test ! -s conftest.s$ac_file; then
13400 ac_more_lines=false
13401 rm -f conftest.s$ac_file
13403 if test -z "$ac_sed_cmds"; then
13404 ac_sed_cmds="sed -f conftest.s$ac_file"
13406 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13408 ac_file=`expr $ac_file + 1`
13410 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13413 if test -z "$ac_sed_cmds"; then
13418 cat >> $CONFIG_STATUS <<EOF
13420 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
13422 cat >> $CONFIG_STATUS <<\EOF
13423 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13424 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13426 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13427 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13428 *) ac_file_in="${ac_file}.in" ;;
13431 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13433 # Remove last slash and all that follows it. Not all systems have dirname.
13434 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13435 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13436 # The file is in a subdirectory.
13437 test ! -d "$ac_dir" && mkdir "$ac_dir"
13438 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13439 # A "../" for each directory in $ac_dir_suffix.
13440 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13442 ac_dir_suffix= ac_dots=
13445 case "$ac_given_srcdir" in
13447 if test -z "$ac_dots"; then top_srcdir=.
13448 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13449 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13450 *) # Relative path.
13451 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13452 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13455 case "$ac_given_INSTALL" in
13456 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13457 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13460 echo creating "$ac_file"
13462 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13464 *Makefile*) ac_comsub="1i\\
13465 # $configure_input" ;;
13469 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13471 s%@configure_input@%$configure_input%g
13472 s%@srcdir@%$srcdir%g
13473 s%@top_srcdir@%$top_srcdir%g
13474 s%@INSTALL@%$INSTALL%g
13475 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13479 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13480 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13482 # ac_d sets the value in "#define NAME VALUE" lines.
13483 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13484 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13487 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13488 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13489 ac_uB='\([ ]\)%\1#\2define\3'
13492 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13493 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13494 ac_eB='$%\1#\2define\3'
13498 if test "${CONFIG_HEADERS+set}" != set; then
13500 cat >> $CONFIG_STATUS <<EOF
13501 CONFIG_HEADERS="include/config.h"
13503 cat >> $CONFIG_STATUS <<\EOF
13505 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13506 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13508 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13509 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13510 *) ac_file_in="${ac_file}.in" ;;
13513 echo creating $ac_file
13515 rm -f conftest.frag conftest.in conftest.out
13516 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13517 cat $ac_file_inputs > conftest.in
13521 # Transform confdefs.h into a sed script conftest.vals that substitutes
13522 # the proper values into config.h.in to produce config.h. And first:
13523 # Protect against being on the right side of a sed subst in config.status.
13524 # Protect against being in an unquoted here document in config.status.
13525 rm -f conftest.vals
13526 cat > conftest.hdr <<\EOF
13529 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13533 sed -n -f conftest.hdr confdefs.h > conftest.vals
13536 # This sed command replaces #undef with comments. This is necessary, for
13537 # example, in the case of _POSIX_SOURCE, which is predefined and required
13538 # on some systems where configure will not decide to define it.
13539 cat >> conftest.vals <<\EOF
13540 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13543 # Break up conftest.vals because some shells have a limit on
13544 # the size of here documents, and old seds have small limits too.
13546 rm -f conftest.tail
13549 ac_lines=`grep -c . conftest.vals`
13550 # grep -c gives empty output for an empty file on some AIX systems.
13551 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13552 # Write a limited-size here document to conftest.frag.
13553 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13554 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13556 sed -f conftest.frag conftest.in > conftest.out
13558 mv conftest.out conftest.in
13559 ' >> $CONFIG_STATUS
13560 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13561 rm -f conftest.vals
13562 mv conftest.tail conftest.vals
13564 rm -f conftest.vals
13566 cat >> $CONFIG_STATUS <<\EOF
13567 rm -f conftest.frag conftest.h
13568 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13569 cat conftest.in >> conftest.h
13571 if cmp -s $ac_file conftest.h 2>/dev/null; then
13572 echo "$ac_file is unchanged"
13575 # Remove last slash and all that follows it. Not all systems have dirname.
13576 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13577 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13578 # The file is in a subdirectory.
13579 test ! -d "$ac_dir" && mkdir "$ac_dir"
13582 mv conftest.h $ac_file
13587 cat >> $CONFIG_STATUS <<EOF
13590 cat >> $CONFIG_STATUS <<\EOF
13594 chmod +x $CONFIG_STATUS
13595 rm -fr confdefs* $ac_clean_files
13596 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1