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 --enable-krb5developer turn on developer warnings and debugging, except -Wstrict-prototypes [default=no]"
22 --enable-dmalloc enable heap debugging [default=no]"
24 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
26 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
28 --with-smbwrapper Include SMB wrapper support (default=no) "
30 --with-afs Include AFS clear-text auth support (default=no) "
32 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)"
34 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)"
36 --with-automount Include AUTOMOUNT support (default=no)"
38 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
40 --with-pam Include PAM support (default=no)"
42 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
44 --with-tdbsam Include experimental TDB SAM support (default=no)"
46 --with-ldapsam Include experimental LDAP SAM support (default=no)"
48 --with-nisplussam Include NISPLUS SAM support (default=no)"
50 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
52 --with-ssl Include SSL support (default=no)
53 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
54 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
56 --with-syslog Include experimental SYSLOG support (default=no)"
58 --with-profiling-data Include gathering source code profile information (default=no)"
60 --with-quotas Include experimental disk-quota support (default=no)"
62 --with-utmp Include experimental utmp accounting (default=no)"
64 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
66 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
68 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
70 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
72 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
74 --with-acl-support Include ACL support (default=no)"
76 --with-winbind Build winbind (default, if supported by OS)"
78 --with-included-popt use bundled popt library, not from system"
80 # Initialize some variables set by options.
81 # The variables have the same names as the options, with
82 # dashes changed to underlines.
84 cache_file=./config.cache
93 program_transform_name=s,x,x,
101 bindir='${exec_prefix}/bin'
102 sbindir='${exec_prefix}/sbin'
103 libexecdir='${exec_prefix}/libexec'
104 datadir='${prefix}/share'
105 sysconfdir='${prefix}/etc'
106 sharedstatedir='${prefix}/com'
107 localstatedir='${prefix}/var'
108 libdir='${exec_prefix}/lib'
109 includedir='${prefix}/include'
110 oldincludedir='/usr/include'
111 infodir='${prefix}/info'
112 mandir='${prefix}/man'
114 # Initialize some other variables.
117 SHELL=${CONFIG_SHELL-/bin/sh}
118 # Maximum number of lines to put in a shell here document.
125 # If the previous option needs an argument, assign it.
126 if test -n "$ac_prev"; then
127 eval "$ac_prev=\$ac_option"
133 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
137 # Accept the important Cygnus configure options, so we can diagnose typos.
141 -bindir | --bindir | --bindi | --bind | --bin | --bi)
143 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
144 bindir="$ac_optarg" ;;
146 -build | --build | --buil | --bui | --bu)
148 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
149 build="$ac_optarg" ;;
151 -cache-file | --cache-file | --cache-fil | --cache-fi \
152 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
153 ac_prev=cache_file ;;
154 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
155 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
156 cache_file="$ac_optarg" ;;
158 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
160 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
162 datadir="$ac_optarg" ;;
164 -disable-* | --disable-*)
165 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
166 # Reject names that are not valid shell variable names.
167 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
168 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
170 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}=no" ;;
173 -enable-* | --enable-*)
174 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
175 # Reject names that are not valid shell variable names.
176 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
177 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
179 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
184 eval "enable_${ac_feature}='$ac_optarg'" ;;
186 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
187 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
188 | --exec | --exe | --ex)
189 ac_prev=exec_prefix ;;
190 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
191 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
192 | --exec=* | --exe=* | --ex=*)
193 exec_prefix="$ac_optarg" ;;
195 -gas | --gas | --ga | --g)
196 # Obsolete; use --with-gas.
199 -help | --help | --hel | --he)
200 # Omit some internal or obsolete options to make the list less imposing.
201 # This message is too long to be a string in the A/UX 3.1 sh.
203 Usage: configure [options] [host]
204 Options: [defaults in brackets after descriptions]
206 --cache-file=FILE cache test results in FILE
207 --help print this message
208 --no-create do not create output files
209 --quiet, --silent do not print \`checking...' messages
210 --version print the version of autoconf that created configure
211 Directory and file names:
212 --prefix=PREFIX install architecture-independent files in PREFIX
214 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
216 --bindir=DIR user executables in DIR [EPREFIX/bin]
217 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
218 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
219 --datadir=DIR read-only architecture-independent data in DIR
221 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
222 --sharedstatedir=DIR modifiable architecture-independent data in DIR
224 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
225 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
226 --includedir=DIR C header files in DIR [PREFIX/include]
227 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
228 --infodir=DIR info documentation in DIR [PREFIX/info]
229 --mandir=DIR man documentation in DIR [PREFIX/man]
230 --srcdir=DIR find the sources in DIR [configure dir or ..]
231 --program-prefix=PREFIX prepend PREFIX to installed program names
232 --program-suffix=SUFFIX append SUFFIX to installed program names
233 --program-transform-name=PROGRAM
234 run sed PROGRAM on installed program names
238 --build=BUILD configure for building on BUILD [BUILD=HOST]
239 --host=HOST configure for HOST [guessed]
240 --target=TARGET configure for TARGET [TARGET=HOST]
241 Features and packages:
242 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
243 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
244 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
245 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
246 --x-includes=DIR X include files are in DIR
247 --x-libraries=DIR X library files are in DIR
249 if test -n "$ac_help"; then
250 echo "--enable and --with options recognized:$ac_help"
254 -host | --host | --hos | --ho)
256 -host=* | --host=* | --hos=* | --ho=*)
259 -includedir | --includedir | --includedi | --included | --include \
260 | --includ | --inclu | --incl | --inc)
261 ac_prev=includedir ;;
262 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
263 | --includ=* | --inclu=* | --incl=* | --inc=*)
264 includedir="$ac_optarg" ;;
266 -infodir | --infodir | --infodi | --infod | --info | --inf)
268 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
269 infodir="$ac_optarg" ;;
271 -libdir | --libdir | --libdi | --libd)
273 -libdir=* | --libdir=* | --libdi=* | --libd=*)
274 libdir="$ac_optarg" ;;
276 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
277 | --libexe | --libex | --libe)
278 ac_prev=libexecdir ;;
279 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
280 | --libexe=* | --libex=* | --libe=*)
281 libexecdir="$ac_optarg" ;;
283 -localstatedir | --localstatedir | --localstatedi | --localstated \
284 | --localstate | --localstat | --localsta | --localst \
285 | --locals | --local | --loca | --loc | --lo)
286 ac_prev=localstatedir ;;
287 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
288 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
289 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
290 localstatedir="$ac_optarg" ;;
292 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
294 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
295 mandir="$ac_optarg" ;;
298 # Obsolete; use --without-fp.
301 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
305 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
306 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
309 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
310 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
311 | --oldin | --oldi | --old | --ol | --o)
312 ac_prev=oldincludedir ;;
313 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
314 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
315 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
316 oldincludedir="$ac_optarg" ;;
318 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
320 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
321 prefix="$ac_optarg" ;;
323 -program-prefix | --program-prefix | --program-prefi | --program-pref \
324 | --program-pre | --program-pr | --program-p)
325 ac_prev=program_prefix ;;
326 -program-prefix=* | --program-prefix=* | --program-prefi=* \
327 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
328 program_prefix="$ac_optarg" ;;
330 -program-suffix | --program-suffix | --program-suffi | --program-suff \
331 | --program-suf | --program-su | --program-s)
332 ac_prev=program_suffix ;;
333 -program-suffix=* | --program-suffix=* | --program-suffi=* \
334 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
335 program_suffix="$ac_optarg" ;;
337 -program-transform-name | --program-transform-name \
338 | --program-transform-nam | --program-transform-na \
339 | --program-transform-n | --program-transform- \
340 | --program-transform | --program-transfor \
341 | --program-transfo | --program-transf \
342 | --program-trans | --program-tran \
343 | --progr-tra | --program-tr | --program-t)
344 ac_prev=program_transform_name ;;
345 -program-transform-name=* | --program-transform-name=* \
346 | --program-transform-nam=* | --program-transform-na=* \
347 | --program-transform-n=* | --program-transform-=* \
348 | --program-transform=* | --program-transfor=* \
349 | --program-transfo=* | --program-transf=* \
350 | --program-trans=* | --program-tran=* \
351 | --progr-tra=* | --program-tr=* | --program-t=*)
352 program_transform_name="$ac_optarg" ;;
354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
355 | -silent | --silent | --silen | --sile | --sil)
358 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
360 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
362 sbindir="$ac_optarg" ;;
364 -sharedstatedir | --sharedstatedir | --sharedstatedi \
365 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
366 | --sharedst | --shareds | --shared | --share | --shar \
368 ac_prev=sharedstatedir ;;
369 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
370 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
371 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
373 sharedstatedir="$ac_optarg" ;;
375 -site | --site | --sit)
377 -site=* | --site=* | --sit=*)
380 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
382 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
383 srcdir="$ac_optarg" ;;
385 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
386 | --syscon | --sysco | --sysc | --sys | --sy)
387 ac_prev=sysconfdir ;;
388 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
389 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
390 sysconfdir="$ac_optarg" ;;
392 -target | --target | --targe | --targ | --tar | --ta | --t)
394 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
395 target="$ac_optarg" ;;
397 -v | -verbose | --verbose | --verbos | --verbo | --verb)
400 -version | --version | --versio | --versi | --vers)
401 echo "configure generated by autoconf version 2.13"
405 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410 ac_package=`echo $ac_package| sed 's/-/_/g'`
415 eval "with_${ac_package}='$ac_optarg'" ;;
417 -without-* | --without-*)
418 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
419 # Reject names that are not valid shell variable names.
420 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
421 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
423 ac_package=`echo $ac_package| sed 's/-/_/g'`
424 eval "with_${ac_package}=no" ;;
427 # Obsolete; use --with-x.
430 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
431 | --x-incl | --x-inc | --x-in | --x-i)
432 ac_prev=x_includes ;;
433 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
434 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
435 x_includes="$ac_optarg" ;;
437 -x-libraries | --x-libraries | --x-librarie | --x-librari \
438 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
439 ac_prev=x_libraries ;;
440 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
441 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
442 x_libraries="$ac_optarg" ;;
444 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
448 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
449 echo "configure: warning: $ac_option: invalid host type" 1>&2
451 if test "x$nonopt" != xNONE; then
452 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
460 if test -n "$ac_prev"; then
461 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
464 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
466 # File descriptor usage:
469 # 2 errors and warnings
470 # 3 some systems may open it to /dev/tty
471 # 4 used on the Kubota Titan
472 # 6 checking for... messages and results
473 # 5 compiler messages saved in config.log
474 if test "$silent" = yes; then
482 This file contains any messages produced by compilers while
483 running configure, to aid debugging if configure makes a mistake.
486 # Strip out --no-create and --no-recursion so they do not pile up.
487 # Also quote any args containing shell metacharacters.
492 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
493 | --no-cr | --no-c) ;;
494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
496 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
497 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
498 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
503 # Only set these to C if already set. These must not be set unconditionally
504 # because not all systems understand e.g. LANG=C (notably SCO).
505 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
506 # Non-C LC_CTYPE values break the ctype check.
507 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
508 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
509 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
510 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
512 # confdefs.h avoids OS command line length limits that DEFS can exceed.
513 rm -rf conftest* confdefs.h
514 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
517 # A filename unique to this package, relative to the directory that
518 # configure is in, which we can look for to find out if srcdir is correct.
519 ac_unique_file=include/includes.h
521 # Find the source files, if location was not specified.
522 if test -z "$srcdir"; then
523 ac_srcdir_defaulted=yes
524 # Try the directory containing this script, then its parent.
526 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
527 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
529 if test ! -r $srcdir/$ac_unique_file; then
533 ac_srcdir_defaulted=no
535 if test ! -r $srcdir/$ac_unique_file; then
536 if test "$ac_srcdir_defaulted" = yes; then
537 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
539 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
542 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
544 # Prefer explicitly selected file to automatically selected ones.
545 if test -z "$CONFIG_SITE"; then
546 if test "x$prefix" != xNONE; then
547 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
549 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
552 for ac_site_file in $CONFIG_SITE; do
553 if test -r "$ac_site_file"; then
554 echo "loading site script $ac_site_file"
559 if test -r "$cache_file"; then
560 echo "loading cache $cache_file"
563 echo "creating cache $cache_file"
568 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
569 ac_cpp='$CPP $CPPFLAGS'
570 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
571 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
572 cross_compiling=$ac_cv_prog_cc_cross
576 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
577 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
578 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
585 ac_n= ac_c='\c' ac_t=
590 # we want to be compatible with older versions of Samba
608 # compile with optimisation and without debugging by default
609 CFLAGS="-O ${CFLAGS}"
611 # Check whether --enable-debug or --disable-debug was given.
612 if test "${enable_debug+set}" = set; then
613 enableval="$enable_debug"
614 if eval "test x$enable_debug = xyes"; then
615 CFLAGS="${CFLAGS} -g"
620 # Check whether --enable-developer or --disable-developer was given.
621 if test "${enable_developer+set}" = set; then
622 enableval="$enable_developer"
623 if eval "test x$enable_developer = xyes"; then
624 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
629 # Check whether --enable-krb5developer or --disable-krb5developer was given.
630 if test "${enable_krb5developer+set}" = set; then
631 enableval="$enable_krb5developer"
632 if eval "test x$enable_krb5developer = xyes"; then
633 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
638 # Check whether --enable-dmalloc or --disable-dmalloc was given.
639 if test "${enable_dmalloc+set}" = set; then
640 enableval="$enable_dmalloc"
645 if test "x$enable_dmalloc" = xyes
647 cat >> confdefs.h <<\EOF
648 #define ENABLE_DMALLOC 1
651 cat >> confdefs.h <<\EOF
652 #define DMALLOC_FUNC_CHECK 1
655 LIBS="$LIBS -ldmalloc"
658 # Extract the first word of "gcc", so it can be a program name with args.
659 set dummy gcc; ac_word=$2
660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
661 echo "configure:662: checking for $ac_word" >&5
662 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
663 echo $ac_n "(cached) $ac_c" 1>&6
665 if test -n "$CC"; then
666 ac_cv_prog_CC="$CC" # Let the user override the test.
668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
670 for ac_dir in $ac_dummy; do
671 test -z "$ac_dir" && ac_dir=.
672 if test -f $ac_dir/$ac_word; then
681 if test -n "$CC"; then
682 echo "$ac_t""$CC" 1>&6
684 echo "$ac_t""no" 1>&6
687 if test -z "$CC"; then
688 # Extract the first word of "cc", so it can be a program name with args.
689 set dummy cc; ac_word=$2
690 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
691 echo "configure:692: checking for $ac_word" >&5
692 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
693 echo $ac_n "(cached) $ac_c" 1>&6
695 if test -n "$CC"; then
696 ac_cv_prog_CC="$CC" # Let the user override the test.
698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
701 for ac_dir in $ac_dummy; do
702 test -z "$ac_dir" && ac_dir=.
703 if test -f $ac_dir/$ac_word; then
704 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
713 if test $ac_prog_rejected = yes; then
714 # We found a bogon in the path, so make sure we never use it.
715 set dummy $ac_cv_prog_CC
717 if test $# -gt 0; then
718 # We chose a different compiler from the bogus one.
719 # However, it has the same basename, so the bogon will be chosen
720 # first if we set CC to just the basename; use the full file name.
722 set dummy "$ac_dir/$ac_word" "$@"
730 if test -n "$CC"; then
731 echo "$ac_t""$CC" 1>&6
733 echo "$ac_t""no" 1>&6
736 if test -z "$CC"; then
739 # Extract the first word of "cl", so it can be a program name with args.
740 set dummy cl; ac_word=$2
741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
742 echo "configure:743: checking for $ac_word" >&5
743 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
744 echo $ac_n "(cached) $ac_c" 1>&6
746 if test -n "$CC"; then
747 ac_cv_prog_CC="$CC" # Let the user override the test.
749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
751 for ac_dir in $ac_dummy; do
752 test -z "$ac_dir" && ac_dir=.
753 if test -f $ac_dir/$ac_word; then
762 if test -n "$CC"; then
763 echo "$ac_t""$CC" 1>&6
765 echo "$ac_t""no" 1>&6
770 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
773 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
774 echo "configure:775: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
777 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
778 ac_cpp='$CPP $CPPFLAGS'
779 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
780 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
781 cross_compiling=$ac_cv_prog_cc_cross
783 cat > conftest.$ac_ext << EOF
785 #line 786 "configure"
786 #include "confdefs.h"
790 if { (eval echo configure:791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
791 ac_cv_prog_cc_works=yes
792 # If we can't run a trivial program, we are probably using a cross compiler.
793 if (./conftest; exit) 2>/dev/null; then
794 ac_cv_prog_cc_cross=no
796 ac_cv_prog_cc_cross=yes
799 echo "configure: failed program was:" >&5
800 cat conftest.$ac_ext >&5
801 ac_cv_prog_cc_works=no
805 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
806 ac_cpp='$CPP $CPPFLAGS'
807 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
808 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
809 cross_compiling=$ac_cv_prog_cc_cross
811 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
812 if test $ac_cv_prog_cc_works = no; then
813 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
815 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
816 echo "configure:817: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
817 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
818 cross_compiling=$ac_cv_prog_cc_cross
820 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
821 echo "configure:822: checking whether we are using GNU C" >&5
822 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
825 cat > conftest.c <<EOF
830 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
837 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
839 if test $ac_cv_prog_gcc = yes; then
845 ac_test_CFLAGS="${CFLAGS+set}"
846 ac_save_CFLAGS="$CFLAGS"
848 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
849 echo "configure:850: checking whether ${CC-cc} accepts -g" >&5
850 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
851 echo $ac_n "(cached) $ac_c" 1>&6
853 echo 'void f(){}' > conftest.c
854 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
863 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
864 if test "$ac_test_CFLAGS" = set; then
865 CFLAGS="$ac_save_CFLAGS"
866 elif test $ac_cv_prog_cc_g = yes; then
867 if test "$GCC" = yes; then
873 if test "$GCC" = yes; then
881 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
882 if test -f $ac_dir/install-sh; then
884 ac_install_sh="$ac_aux_dir/install-sh -c"
886 elif test -f $ac_dir/install.sh; then
888 ac_install_sh="$ac_aux_dir/install.sh -c"
892 if test -z "$ac_aux_dir"; then
893 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
895 ac_config_guess=$ac_aux_dir/config.guess
896 ac_config_sub=$ac_aux_dir/config.sub
897 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
899 # Find a good install program. We prefer a C program (faster),
900 # so one script is as good as another. But avoid the broken or
901 # incompatible versions:
902 # SysV /etc/install, /usr/sbin/install
903 # SunOS /usr/etc/install
906 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
907 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
908 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
909 # ./install, which can be erroneously created by make from ./install.sh.
910 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
911 echo "configure:912: checking for a BSD compatible install" >&5
912 if test -z "$INSTALL"; then
913 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
914 echo $ac_n "(cached) $ac_c" 1>&6
916 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
917 for ac_dir in $PATH; do
918 # Account for people who put trailing slashes in PATH elements.
920 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
922 # OSF1 and SCO ODT 3.0 have their own names for install.
923 # Don't use installbsd from OSF since it installs stuff as root
925 for ac_prog in ginstall scoinst install; do
926 if test -f $ac_dir/$ac_prog; then
927 if test $ac_prog = install &&
928 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
929 # AIX install. It has an incompatible calling convention.
932 ac_cv_path_install="$ac_dir/$ac_prog -c"
943 if test "${ac_cv_path_install+set}" = set; then
944 INSTALL="$ac_cv_path_install"
946 # As a last resort, use the slow shell script. We don't cache a
947 # path for INSTALL within a source directory, because that will
948 # break other packages using the cache if that directory is
949 # removed, or if the path is relative.
950 INSTALL="$ac_install_sh"
953 echo "$ac_t""$INSTALL" 1>&6
955 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
956 # It thinks the first close brace ends the variable substitution.
957 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
959 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
961 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
963 for ac_prog in gawk mawk nawk awk
965 # Extract the first word of "$ac_prog", so it can be a program name with args.
966 set dummy $ac_prog; ac_word=$2
967 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
968 echo "configure:969: checking for $ac_word" >&5
969 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
970 echo $ac_n "(cached) $ac_c" 1>&6
972 if test -n "$AWK"; then
973 ac_cv_prog_AWK="$AWK" # Let the user override the test.
975 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
977 for ac_dir in $ac_dummy; do
978 test -z "$ac_dir" && ac_dir=.
979 if test -f $ac_dir/$ac_word; then
980 ac_cv_prog_AWK="$ac_prog"
987 AWK="$ac_cv_prog_AWK"
988 if test -n "$AWK"; then
989 echo "$ac_t""$AWK" 1>&6
991 echo "$ac_t""no" 1>&6
994 test -n "$AWK" && break
998 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
999 echo "configure:1000: checking for POSIXized ISC" >&5
1000 if test -d /etc/conf/kconfig.d &&
1001 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1003 echo "$ac_t""yes" 1>&6
1004 ISC=yes # If later tests want to check for ISC.
1005 cat >> confdefs.h <<\EOF
1006 #define _POSIX_SOURCE 1
1009 if test "$GCC" = yes; then
1015 echo "$ac_t""no" 1>&6
1020 if test "x$CC" != xcc; then
1021 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1022 echo "configure:1023: checking whether $CC and cc understand -c and -o together" >&5
1024 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1025 echo "configure:1026: checking whether cc understands -c and -o together" >&5
1027 set dummy $CC; ac_cc="`echo $2 |
1028 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1029 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1030 echo $ac_n "(cached) $ac_c" 1>&6
1032 echo 'foo(){}' > conftest.c
1033 # Make sure it works both with $CC and with simple cc.
1034 # We do the test twice because some compilers refuse to overwrite an
1035 # existing .o file with -o, though they will create one.
1036 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1037 if { (eval echo configure:1038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1038 test -f conftest.o && { (eval echo configure:1039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1040 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1041 if test "x$CC" != xcc; then
1042 # Test first that cc exists at all.
1043 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1044 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1045 if { (eval echo configure:1046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1046 test -f conftest.o && { (eval echo configure:1047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1051 # cc exists but doesn't like -o.
1052 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1057 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1062 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1063 echo "$ac_t""yes" 1>&6
1065 echo "$ac_t""no" 1>&6
1066 cat >> confdefs.h <<\EOF
1067 #define NO_MINUS_C_MINUS_O 1
1072 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1079 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1080 echo "configure:1081: checking that the C compiler understands volatile" >&5
1081 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1082 echo $ac_n "(cached) $ac_c" 1>&6
1085 cat > conftest.$ac_ext <<EOF
1086 #line 1087 "configure"
1087 #include "confdefs.h"
1088 #include <sys/types.h>
1093 if { (eval echo configure:1094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1095 samba_cv_volatile=yes
1097 echo "configure: failed program was:" >&5
1098 cat conftest.$ac_ext >&5
1100 samba_cv_volatile=no
1105 echo "$ac_t""$samba_cv_volatile" 1>&6
1106 if test x"$samba_cv_volatile" = x"yes"; then
1107 cat >> confdefs.h <<\EOF
1108 #define HAVE_VOLATILE 1
1115 # Do some error checking and defaulting for the host and target type.
1117 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1120 # 1. You are not allowed to specify --host, --target, and nonopt at the
1122 # 2. Host defaults to nonopt.
1123 # 3. If nonopt is not specified, then host defaults to the current host,
1124 # as determined by config.guess.
1125 # 4. Target and build default to nonopt.
1126 # 5. If nonopt is not specified, then target and build default to host.
1128 # The aliases save the names the user supplied, while $host etc.
1129 # will get canonicalized.
1130 case $host---$target---$nonopt in
1131 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1132 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1136 # Make sure we can run config.sub.
1137 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1138 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1141 echo $ac_n "checking host system type""... $ac_c" 1>&6
1142 echo "configure:1143: checking host system type" >&5
1145 case "$host_alias" in
1149 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1150 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1152 *) host_alias=$nonopt ;;
1156 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1157 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1158 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1159 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1160 echo "$ac_t""$host" 1>&6
1162 echo $ac_n "checking target system type""... $ac_c" 1>&6
1163 echo "configure:1164: checking target system type" >&5
1165 target_alias=$target
1166 case "$target_alias" in
1169 NONE) target_alias=$host_alias ;;
1170 *) target_alias=$nonopt ;;
1174 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1175 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1176 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1177 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1178 echo "$ac_t""$target" 1>&6
1180 echo $ac_n "checking build system type""... $ac_c" 1>&6
1181 echo "configure:1182: checking build system type" >&5
1184 case "$build_alias" in
1187 NONE) build_alias=$host_alias ;;
1188 *) build_alias=$nonopt ;;
1192 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1193 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1194 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1195 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1196 echo "$ac_t""$build" 1>&6
1198 test "$host_alias" != "$target_alias" &&
1199 test "$program_prefix$program_suffix$program_transform_name" = \
1201 program_prefix=${target_alias}-
1205 *irix6*) cat >> confdefs.h <<\EOF
1206 #include <standards.h>
1214 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1215 echo "configure:1216: checking config.cache system type" >&5
1216 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1217 test x"$ac_cv_host_system_type" != x"$host"; } ||
1218 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1219 test x"$ac_cv_build_system_type" != x"$build"; } ||
1220 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1221 test x"$ac_cv_target_system_type" != x"$target"; }; then
1222 echo "$ac_t""different" 1>&6
1223 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1225 echo "$ac_t""same" 1>&6
1227 ac_cv_host_system_type="$host"
1228 ac_cv_build_system_type="$build"
1229 ac_cv_target_system_type="$target"
1234 # I'm sure gcc supports -rdynamic
1235 if test "$ac_cv_prog_gcc" = yes; then
1240 # Config CPPFLAG settings for strange OS's that must be set
1241 # before other tests.
1244 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1247 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1248 echo "configure:1249: checking whether ${CC-cc} accepts -Ae" >&5
1249 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1252 echo 'void f(){}' > conftest.c
1253 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1254 ac_cv_prog_cc_Ae=yes
1262 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1263 # mmap on HPUX is completely broken...
1264 cat >> confdefs.h <<\EOF
1265 #define MMAP_BLACKLIST 1
1268 if test $ac_cv_prog_cc_Ae = yes; then
1269 CPPFLAGS="$CPPFLAGS -Ae"
1272 # Defines needed for HPUX support.
1273 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1274 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1278 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1279 cat >> confdefs.h <<\EOF
1280 #define USE_BOTH_CRYPT_CALLS 1
1285 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1286 cat >> confdefs.h <<\EOF
1287 #define USE_BOTH_CRYPT_CALLS 1
1296 # CRAY Unicos has broken const handling
1298 echo "$ac_t""disabling const" 1>&6
1299 CPPFLAGS="$CPPFLAGS -Dconst="
1303 # AIX4.x doesn't even admit to having large
1304 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1307 echo "$ac_t""enabling large file support" 1>&6
1308 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1311 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1312 # to the existance of large files..
1313 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1314 # recommendations on large file support, however it makes the
1315 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1316 # recommendation makes the compile fail on gcc2.7. JRA.
1320 5.0*|5.1*|5.2*|5.3*|5.5*)
1321 echo "$ac_t""no large file support" 1>&6
1324 echo "$ac_t""enabling large file support" 1>&6
1325 if test "$ac_cv_prog_gcc" = yes; then
1326 ${CC-cc} -v >conftest.c 2>&1
1327 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1329 case "$ac_cv_gcc_compiler_version_number" in
1330 *"gcc version 2.6"*|*"gcc version 2.7"*)
1331 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1334 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1339 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1345 # Tests needed for SINIX large file support.
1348 if test $host = mips-sni-sysv4 ; then
1349 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1350 echo "configure:1351: checking for LFS support" >&5
1351 old_CPPFLAGS="$CPPFLAGS"
1352 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1353 if test "$cross_compiling" = yes; then
1354 SINIX_LFS_SUPPORT=cross
1356 cat > conftest.$ac_ext <<EOF
1357 #line 1358 "configure"
1358 #include "confdefs.h"
1362 #if _LFS64_LARGEFILE == 1
1369 if { (eval echo configure:1370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1371 SINIX_LFS_SUPPORT=yes
1373 echo "configure: failed program was:" >&5
1374 cat conftest.$ac_ext >&5
1376 SINIX_LFS_SUPPORT=no
1381 CPPFLAGS="$old_CPPFLAGS"
1382 if test x$SINIX_LFS_SUPPORT = xyes ; then
1383 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1384 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1385 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1386 LIBS="`getconf LFS64_LIBS` $LIBS"
1388 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1392 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1395 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1396 echo "configure:1397: checking for LFS support" >&5
1397 old_CPPFLAGS="$CPPFLAGS"
1398 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1399 if test "$cross_compiling" = yes; then
1400 LINUX_LFS_SUPPORT=cross
1402 cat > conftest.$ac_ext <<EOF
1403 #line 1404 "configure"
1404 #include "confdefs.h"
1407 #include <sys/utsname.h>
1409 #if _LFS64_LARGEFILE == 1
1414 /* Ensure this is glibc 2.2 or higher */
1415 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1416 int libc_major = __GLIBC__;
1417 int libc_minor = __GLIBC_MINOR__;
1425 /* Ensure this is kernel 2.4 or higher */
1428 release = uts.release;
1429 major = atoi(strsep(&release, "."));
1430 minor = atoi(strsep(&release, "."));
1432 if (major > 2 || (major == 2 && minor > 3))
1441 if { (eval echo configure:1442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1443 LINUX_LFS_SUPPORT=yes
1445 echo "configure: failed program was:" >&5
1446 cat conftest.$ac_ext >&5
1448 LINUX_LFS_SUPPORT=no
1453 CPPFLAGS="$old_CPPFLAGS"
1454 if test x$LINUX_LFS_SUPPORT = xyes ; then
1455 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1457 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1461 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1462 echo "configure:1463: checking for LFS support" >&5
1463 old_CPPFLAGS="$CPPFLAGS"
1464 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1465 if test "$cross_compiling" = yes; then
1466 GLIBC_LFS_SUPPORT=cross
1468 cat > conftest.$ac_ext <<EOF
1469 #line 1470 "configure"
1470 #include "confdefs.h"
1474 #if _LFS64_LARGEFILE == 1
1481 if { (eval echo configure:1482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1483 GLIBC_LFS_SUPPORT=yes
1485 echo "configure: failed program was:" >&5
1486 cat conftest.$ac_ext >&5
1488 GLIBC_LFS_SUPPORT=no
1493 CPPFLAGS="$old_CPPFLAGS"
1494 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1495 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1497 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1502 echo $ac_n "checking for inline""... $ac_c" 1>&6
1503 echo "configure:1504: checking for inline" >&5
1504 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1505 echo $ac_n "(cached) $ac_c" 1>&6
1508 for ac_kw in inline __inline__ __inline; do
1509 cat > conftest.$ac_ext <<EOF
1510 #line 1511 "configure"
1511 #include "confdefs.h"
1517 if { (eval echo configure:1518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1519 ac_cv_c_inline=$ac_kw; break
1521 echo "configure: failed program was:" >&5
1522 cat conftest.$ac_ext >&5
1529 echo "$ac_t""$ac_cv_c_inline" 1>&6
1530 case "$ac_cv_c_inline" in
1532 no) cat >> confdefs.h <<\EOF
1536 *) cat >> confdefs.h <<EOF
1537 #define inline $ac_cv_c_inline
1542 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1543 echo "configure:1544: checking how to run the C preprocessor" >&5
1544 # On Suns, sometimes $CPP names a directory.
1545 if test -n "$CPP" && test -d "$CPP"; then
1548 if test -z "$CPP"; then
1549 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1550 echo $ac_n "(cached) $ac_c" 1>&6
1552 # This must be in double quotes, not single quotes, because CPP may get
1553 # substituted into the Makefile and "${CC-cc}" will confuse make.
1555 # On the NeXT, cc -E runs the code through the compiler's parser,
1556 # not just through cpp.
1557 cat > conftest.$ac_ext <<EOF
1558 #line 1559 "configure"
1559 #include "confdefs.h"
1563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1564 { (eval echo configure:1565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1565 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1566 if test -z "$ac_err"; then
1570 echo "configure: failed program was:" >&5
1571 cat conftest.$ac_ext >&5
1573 CPP="${CC-cc} -E -traditional-cpp"
1574 cat > conftest.$ac_ext <<EOF
1575 #line 1576 "configure"
1576 #include "confdefs.h"
1580 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1581 { (eval echo configure:1582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1582 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1583 if test -z "$ac_err"; then
1587 echo "configure: failed program was:" >&5
1588 cat conftest.$ac_ext >&5
1590 CPP="${CC-cc} -nologo -E"
1591 cat > conftest.$ac_ext <<EOF
1592 #line 1593 "configure"
1593 #include "confdefs.h"
1597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1598 { (eval echo configure:1599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1600 if test -z "$ac_err"; then
1604 echo "configure: failed program was:" >&5
1605 cat conftest.$ac_ext >&5
1614 ac_cv_prog_CPP="$CPP"
1616 CPP="$ac_cv_prog_CPP"
1618 ac_cv_prog_CPP="$CPP"
1620 echo "$ac_t""$CPP" 1>&6
1622 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1623 echo "configure:1624: checking for ANSI C header files" >&5
1624 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1627 cat > conftest.$ac_ext <<EOF
1628 #line 1629 "configure"
1629 #include "confdefs.h"
1635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1636 { (eval echo configure:1637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1637 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1638 if test -z "$ac_err"; then
1640 ac_cv_header_stdc=yes
1643 echo "configure: failed program was:" >&5
1644 cat conftest.$ac_ext >&5
1646 ac_cv_header_stdc=no
1650 if test $ac_cv_header_stdc = yes; then
1651 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1652 cat > conftest.$ac_ext <<EOF
1653 #line 1654 "configure"
1654 #include "confdefs.h"
1657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1658 egrep "memchr" >/dev/null 2>&1; then
1662 ac_cv_header_stdc=no
1668 if test $ac_cv_header_stdc = yes; then
1669 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1670 cat > conftest.$ac_ext <<EOF
1671 #line 1672 "configure"
1672 #include "confdefs.h"
1675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1676 egrep "free" >/dev/null 2>&1; then
1680 ac_cv_header_stdc=no
1686 if test $ac_cv_header_stdc = yes; then
1687 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1688 if test "$cross_compiling" = yes; then
1691 cat > conftest.$ac_ext <<EOF
1692 #line 1693 "configure"
1693 #include "confdefs.h"
1695 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1696 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1697 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1698 int main () { int i; for (i = 0; i < 256; i++)
1699 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1703 if { (eval echo configure:1704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1707 echo "configure: failed program was:" >&5
1708 cat conftest.$ac_ext >&5
1710 ac_cv_header_stdc=no
1718 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1719 if test $ac_cv_header_stdc = yes; then
1720 cat >> confdefs.h <<\EOF
1721 #define STDC_HEADERS 1
1727 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1729 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1730 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1731 echo "configure:1732: checking for $ac_hdr that defines DIR" >&5
1732 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1735 cat > conftest.$ac_ext <<EOF
1736 #line 1737 "configure"
1737 #include "confdefs.h"
1738 #include <sys/types.h>
1744 if { (eval echo configure:1745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1746 eval "ac_cv_header_dirent_$ac_safe=yes"
1748 echo "configure: failed program was:" >&5
1749 cat conftest.$ac_ext >&5
1751 eval "ac_cv_header_dirent_$ac_safe=no"
1755 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1756 echo "$ac_t""yes" 1>&6
1757 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1758 cat >> confdefs.h <<EOF
1759 #define $ac_tr_hdr 1
1761 ac_header_dirent=$ac_hdr; break
1763 echo "$ac_t""no" 1>&6
1766 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1767 if test $ac_header_dirent = dirent.h; then
1768 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1769 echo "configure:1770: checking for opendir in -ldir" >&5
1770 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1772 echo $ac_n "(cached) $ac_c" 1>&6
1774 ac_save_LIBS="$LIBS"
1776 cat > conftest.$ac_ext <<EOF
1777 #line 1778 "configure"
1778 #include "confdefs.h"
1779 /* Override any gcc2 internal prototype to avoid an error. */
1780 /* We use char because int might match the return type of a gcc2
1781 builtin and then its argument prototype would still apply. */
1788 if { (eval echo configure:1789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1790 eval "ac_cv_lib_$ac_lib_var=yes"
1792 echo "configure: failed program was:" >&5
1793 cat conftest.$ac_ext >&5
1795 eval "ac_cv_lib_$ac_lib_var=no"
1798 LIBS="$ac_save_LIBS"
1801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1802 echo "$ac_t""yes" 1>&6
1805 echo "$ac_t""no" 1>&6
1809 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1810 echo "configure:1811: checking for opendir in -lx" >&5
1811 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1812 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1813 echo $ac_n "(cached) $ac_c" 1>&6
1815 ac_save_LIBS="$LIBS"
1817 cat > conftest.$ac_ext <<EOF
1818 #line 1819 "configure"
1819 #include "confdefs.h"
1820 /* Override any gcc2 internal prototype to avoid an error. */
1821 /* We use char because int might match the return type of a gcc2
1822 builtin and then its argument prototype would still apply. */
1829 if { (eval echo configure:1830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1831 eval "ac_cv_lib_$ac_lib_var=yes"
1833 echo "configure: failed program was:" >&5
1834 cat conftest.$ac_ext >&5
1836 eval "ac_cv_lib_$ac_lib_var=no"
1839 LIBS="$ac_save_LIBS"
1842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1843 echo "$ac_t""yes" 1>&6
1846 echo "$ac_t""no" 1>&6
1851 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1852 echo "configure:1853: checking whether time.h and sys/time.h may both be included" >&5
1853 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1854 echo $ac_n "(cached) $ac_c" 1>&6
1856 cat > conftest.$ac_ext <<EOF
1857 #line 1858 "configure"
1858 #include "confdefs.h"
1859 #include <sys/types.h>
1860 #include <sys/time.h>
1866 if { (eval echo configure:1867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1868 ac_cv_header_time=yes
1870 echo "configure: failed program was:" >&5
1871 cat conftest.$ac_ext >&5
1873 ac_cv_header_time=no
1878 echo "$ac_t""$ac_cv_header_time" 1>&6
1879 if test $ac_cv_header_time = yes; then
1880 cat >> confdefs.h <<\EOF
1881 #define TIME_WITH_SYS_TIME 1
1886 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1887 echo "configure:1888: checking for sys/wait.h that is POSIX.1 compatible" >&5
1888 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1889 echo $ac_n "(cached) $ac_c" 1>&6
1891 cat > conftest.$ac_ext <<EOF
1892 #line 1893 "configure"
1893 #include "confdefs.h"
1894 #include <sys/types.h>
1895 #include <sys/wait.h>
1897 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1900 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1905 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1908 if { (eval echo configure:1909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1910 ac_cv_header_sys_wait_h=yes
1912 echo "configure: failed program was:" >&5
1913 cat conftest.$ac_ext >&5
1915 ac_cv_header_sys_wait_h=no
1920 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1921 if test $ac_cv_header_sys_wait_h = yes; then
1922 cat >> confdefs.h <<\EOF
1923 #define HAVE_SYS_WAIT_H 1
1928 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1930 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1931 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1932 echo "configure:1933: checking for $ac_hdr" >&5
1933 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1934 echo $ac_n "(cached) $ac_c" 1>&6
1936 cat > conftest.$ac_ext <<EOF
1937 #line 1938 "configure"
1938 #include "confdefs.h"
1941 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1942 { (eval echo configure:1943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1943 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1944 if test -z "$ac_err"; then
1946 eval "ac_cv_header_$ac_safe=yes"
1949 echo "configure: failed program was:" >&5
1950 cat conftest.$ac_ext >&5
1952 eval "ac_cv_header_$ac_safe=no"
1956 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1957 echo "$ac_t""yes" 1>&6
1958 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1959 cat >> confdefs.h <<EOF
1960 #define $ac_tr_hdr 1
1964 echo "$ac_t""no" 1>&6
1968 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
1970 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1971 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1972 echo "configure:1973: checking for $ac_hdr" >&5
1973 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1974 echo $ac_n "(cached) $ac_c" 1>&6
1976 cat > conftest.$ac_ext <<EOF
1977 #line 1978 "configure"
1978 #include "confdefs.h"
1981 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1982 { (eval echo configure:1983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1983 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1984 if test -z "$ac_err"; then
1986 eval "ac_cv_header_$ac_safe=yes"
1989 echo "configure: failed program was:" >&5
1990 cat conftest.$ac_ext >&5
1992 eval "ac_cv_header_$ac_safe=no"
1996 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1997 echo "$ac_t""yes" 1>&6
1998 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1999 cat >> confdefs.h <<EOF
2000 #define $ac_tr_hdr 1
2004 echo "$ac_t""no" 1>&6
2008 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2010 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2011 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2012 echo "configure:2013: checking for $ac_hdr" >&5
2013 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2014 echo $ac_n "(cached) $ac_c" 1>&6
2016 cat > conftest.$ac_ext <<EOF
2017 #line 2018 "configure"
2018 #include "confdefs.h"
2021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2022 { (eval echo configure:2023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2024 if test -z "$ac_err"; then
2026 eval "ac_cv_header_$ac_safe=yes"
2029 echo "configure: failed program was:" >&5
2030 cat conftest.$ac_ext >&5
2032 eval "ac_cv_header_$ac_safe=no"
2036 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2037 echo "$ac_t""yes" 1>&6
2038 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2039 cat >> confdefs.h <<EOF
2040 #define $ac_tr_hdr 1
2044 echo "$ac_t""no" 1>&6
2048 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2050 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2051 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2052 echo "configure:2053: checking for $ac_hdr" >&5
2053 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2054 echo $ac_n "(cached) $ac_c" 1>&6
2056 cat > conftest.$ac_ext <<EOF
2057 #line 2058 "configure"
2058 #include "confdefs.h"
2061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2062 { (eval echo configure:2063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2063 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2064 if test -z "$ac_err"; then
2066 eval "ac_cv_header_$ac_safe=yes"
2069 echo "configure: failed program was:" >&5
2070 cat conftest.$ac_ext >&5
2072 eval "ac_cv_header_$ac_safe=no"
2076 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2077 echo "$ac_t""yes" 1>&6
2078 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2079 cat >> confdefs.h <<EOF
2080 #define $ac_tr_hdr 1
2084 echo "$ac_t""no" 1>&6
2088 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
2090 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2091 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2092 echo "configure:2093: checking for $ac_hdr" >&5
2093 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2094 echo $ac_n "(cached) $ac_c" 1>&6
2096 cat > conftest.$ac_ext <<EOF
2097 #line 2098 "configure"
2098 #include "confdefs.h"
2101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2102 { (eval echo configure:2103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2103 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2104 if test -z "$ac_err"; then
2106 eval "ac_cv_header_$ac_safe=yes"
2109 echo "configure: failed program was:" >&5
2110 cat conftest.$ac_ext >&5
2112 eval "ac_cv_header_$ac_safe=no"
2116 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2117 echo "$ac_t""yes" 1>&6
2118 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2119 cat >> confdefs.h <<EOF
2120 #define $ac_tr_hdr 1
2124 echo "$ac_t""no" 1>&6
2128 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2130 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2131 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2132 echo "configure:2133: checking for $ac_hdr" >&5
2133 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2134 echo $ac_n "(cached) $ac_c" 1>&6
2136 cat > conftest.$ac_ext <<EOF
2137 #line 2138 "configure"
2138 #include "confdefs.h"
2141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2142 { (eval echo configure:2143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2143 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2144 if test -z "$ac_err"; then
2146 eval "ac_cv_header_$ac_safe=yes"
2149 echo "configure: failed program was:" >&5
2150 cat conftest.$ac_ext >&5
2152 eval "ac_cv_header_$ac_safe=no"
2156 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2157 echo "$ac_t""yes" 1>&6
2158 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2159 cat >> confdefs.h <<EOF
2160 #define $ac_tr_hdr 1
2164 echo "$ac_t""no" 1>&6
2168 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2170 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2171 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2172 echo "configure:2173: checking for $ac_hdr" >&5
2173 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2174 echo $ac_n "(cached) $ac_c" 1>&6
2176 cat > conftest.$ac_ext <<EOF
2177 #line 2178 "configure"
2178 #include "confdefs.h"
2181 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2182 { (eval echo configure:2183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2183 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2184 if test -z "$ac_err"; then
2186 eval "ac_cv_header_$ac_safe=yes"
2189 echo "configure: failed program was:" >&5
2190 cat conftest.$ac_ext >&5
2192 eval "ac_cv_header_$ac_safe=no"
2196 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2197 echo "$ac_t""yes" 1>&6
2198 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2199 cat >> confdefs.h <<EOF
2200 #define $ac_tr_hdr 1
2204 echo "$ac_t""no" 1>&6
2208 for ac_hdr in security/pam_modules.h security/_pam_macros.h ldap.h lber.h
2210 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2211 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2212 echo "configure:2213: checking for $ac_hdr" >&5
2213 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2216 cat > conftest.$ac_ext <<EOF
2217 #line 2218 "configure"
2218 #include "confdefs.h"
2221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2222 { (eval echo configure:2223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2223 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2224 if test -z "$ac_err"; then
2226 eval "ac_cv_header_$ac_safe=yes"
2229 echo "configure: failed program was:" >&5
2230 cat conftest.$ac_ext >&5
2232 eval "ac_cv_header_$ac_safe=no"
2236 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2237 echo "$ac_t""yes" 1>&6
2238 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2239 cat >> confdefs.h <<EOF
2240 #define $ac_tr_hdr 1
2244 echo "$ac_t""no" 1>&6
2250 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2251 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2255 cat > conftest.$ac_ext <<EOF
2256 #line 2257 "configure"
2257 #include "confdefs.h"
2263 if { (eval echo configure:2264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2265 ac_cv_header_shadow_h=yes
2267 echo "configure: failed program was:" >&5
2268 cat conftest.$ac_ext >&5
2270 ac_cv_header_shadow_h=no
2273 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2274 cat >> confdefs.h <<\EOF
2275 #define HAVE_SHADOW_H 1
2281 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2283 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2284 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2285 echo "configure:2286: checking for $ac_hdr" >&5
2286 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2289 cat > conftest.$ac_ext <<EOF
2290 #line 2291 "configure"
2291 #include "confdefs.h"
2294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2295 { (eval echo configure:2296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2296 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2297 if test -z "$ac_err"; then
2299 eval "ac_cv_header_$ac_safe=yes"
2302 echo "configure: failed program was:" >&5
2303 cat conftest.$ac_ext >&5
2305 eval "ac_cv_header_$ac_safe=no"
2309 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2310 echo "$ac_t""yes" 1>&6
2311 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2312 cat >> confdefs.h <<EOF
2313 #define $ac_tr_hdr 1
2317 echo "$ac_t""no" 1>&6
2321 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2323 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2324 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2325 echo "configure:2326: checking for $ac_hdr" >&5
2326 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2327 echo $ac_n "(cached) $ac_c" 1>&6
2329 cat > conftest.$ac_ext <<EOF
2330 #line 2331 "configure"
2331 #include "confdefs.h"
2334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2335 { (eval echo configure:2336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2336 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2337 if test -z "$ac_err"; then
2339 eval "ac_cv_header_$ac_safe=yes"
2342 echo "configure: failed program was:" >&5
2343 cat conftest.$ac_ext >&5
2345 eval "ac_cv_header_$ac_safe=no"
2349 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2350 echo "$ac_t""yes" 1>&6
2351 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2352 cat >> confdefs.h <<EOF
2353 #define $ac_tr_hdr 1
2357 echo "$ac_t""no" 1>&6
2361 for ac_hdr in stropts.h poll.h
2363 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2364 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2365 echo "configure:2366: checking for $ac_hdr" >&5
2366 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2367 echo $ac_n "(cached) $ac_c" 1>&6
2369 cat > conftest.$ac_ext <<EOF
2370 #line 2371 "configure"
2371 #include "confdefs.h"
2374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2375 { (eval echo configure:2376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2377 if test -z "$ac_err"; then
2379 eval "ac_cv_header_$ac_safe=yes"
2382 echo "configure: failed program was:" >&5
2383 cat conftest.$ac_ext >&5
2385 eval "ac_cv_header_$ac_safe=no"
2389 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2390 echo "$ac_t""yes" 1>&6
2391 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2392 cat >> confdefs.h <<EOF
2393 #define $ac_tr_hdr 1
2397 echo "$ac_t""no" 1>&6
2401 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2403 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2404 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2405 echo "configure:2406: checking for $ac_hdr" >&5
2406 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2407 echo $ac_n "(cached) $ac_c" 1>&6
2409 cat > conftest.$ac_ext <<EOF
2410 #line 2411 "configure"
2411 #include "confdefs.h"
2414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2415 { (eval echo configure:2416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2416 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2417 if test -z "$ac_err"; then
2419 eval "ac_cv_header_$ac_safe=yes"
2422 echo "configure: failed program was:" >&5
2423 cat conftest.$ac_ext >&5
2425 eval "ac_cv_header_$ac_safe=no"
2429 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2430 echo "$ac_t""yes" 1>&6
2431 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2432 cat >> confdefs.h <<EOF
2433 #define $ac_tr_hdr 1
2437 echo "$ac_t""no" 1>&6
2441 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2443 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2444 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2445 echo "configure:2446: checking for $ac_hdr" >&5
2446 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2447 echo $ac_n "(cached) $ac_c" 1>&6
2449 cat > conftest.$ac_ext <<EOF
2450 #line 2451 "configure"
2451 #include "confdefs.h"
2454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2455 { (eval echo configure:2456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2457 if test -z "$ac_err"; then
2459 eval "ac_cv_header_$ac_safe=yes"
2462 echo "configure: failed program was:" >&5
2463 cat conftest.$ac_ext >&5
2465 eval "ac_cv_header_$ac_safe=no"
2469 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2470 echo "$ac_t""yes" 1>&6
2471 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2472 cat >> confdefs.h <<EOF
2473 #define $ac_tr_hdr 1
2477 echo "$ac_t""no" 1>&6
2482 # For experimental utmp support (lastlog on some BSD-like systems)
2483 for ac_hdr in utmp.h utmpx.h lastlog.h
2485 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2486 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2487 echo "configure:2488: checking for $ac_hdr" >&5
2488 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2489 echo $ac_n "(cached) $ac_c" 1>&6
2491 cat > conftest.$ac_ext <<EOF
2492 #line 2493 "configure"
2493 #include "confdefs.h"
2496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2497 { (eval echo configure:2498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2498 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2499 if test -z "$ac_err"; then
2501 eval "ac_cv_header_$ac_safe=yes"
2504 echo "configure: failed program was:" >&5
2505 cat conftest.$ac_ext >&5
2507 eval "ac_cv_header_$ac_safe=no"
2511 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2512 echo "$ac_t""yes" 1>&6
2513 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2514 cat >> confdefs.h <<EOF
2515 #define $ac_tr_hdr 1
2519 echo "$ac_t""no" 1>&6
2524 # For quotas on Veritas VxFS filesystems
2525 for ac_hdr in sys/fs/vx_quota.h
2527 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2528 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2529 echo "configure:2530: checking for $ac_hdr" >&5
2530 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2531 echo $ac_n "(cached) $ac_c" 1>&6
2533 cat > conftest.$ac_ext <<EOF
2534 #line 2535 "configure"
2535 #include "confdefs.h"
2538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2539 { (eval echo configure:2540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2540 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2541 if test -z "$ac_err"; then
2543 eval "ac_cv_header_$ac_safe=yes"
2546 echo "configure: failed program was:" >&5
2547 cat conftest.$ac_ext >&5
2549 eval "ac_cv_header_$ac_safe=no"
2553 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2554 echo "$ac_t""yes" 1>&6
2555 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2556 cat >> confdefs.h <<EOF
2557 #define $ac_tr_hdr 1
2561 echo "$ac_t""no" 1>&6
2566 # For quotas on Linux XFS filesystems
2567 for ac_hdr in linux/xqm.h
2569 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2570 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2571 echo "configure:2572: checking for $ac_hdr" >&5
2572 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2573 echo $ac_n "(cached) $ac_c" 1>&6
2575 cat > conftest.$ac_ext <<EOF
2576 #line 2577 "configure"
2577 #include "confdefs.h"
2580 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2581 { (eval echo configure:2582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2582 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2583 if test -z "$ac_err"; then
2585 eval "ac_cv_header_$ac_safe=yes"
2588 echo "configure: failed program was:" >&5
2589 cat conftest.$ac_ext >&5
2591 eval "ac_cv_header_$ac_safe=no"
2595 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2596 echo "$ac_t""yes" 1>&6
2597 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2598 cat >> confdefs.h <<EOF
2599 #define $ac_tr_hdr 1
2603 echo "$ac_t""no" 1>&6
2608 echo $ac_n "checking size of int""... $ac_c" 1>&6
2609 echo "configure:2610: checking size of int" >&5
2610 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2611 echo $ac_n "(cached) $ac_c" 1>&6
2613 if test "$cross_compiling" = yes; then
2614 ac_cv_sizeof_int=cross
2616 cat > conftest.$ac_ext <<EOF
2617 #line 2618 "configure"
2618 #include "confdefs.h"
2622 FILE *f=fopen("conftestval", "w");
2624 fprintf(f, "%d\n", sizeof(int));
2628 if { (eval echo configure:2629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2630 ac_cv_sizeof_int=`cat conftestval`
2632 echo "configure: failed program was:" >&5
2633 cat conftest.$ac_ext >&5
2641 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2642 cat >> confdefs.h <<EOF
2643 #define SIZEOF_INT $ac_cv_sizeof_int
2647 echo $ac_n "checking size of long""... $ac_c" 1>&6
2648 echo "configure:2649: checking size of long" >&5
2649 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2650 echo $ac_n "(cached) $ac_c" 1>&6
2652 if test "$cross_compiling" = yes; then
2653 ac_cv_sizeof_long=cross
2655 cat > conftest.$ac_ext <<EOF
2656 #line 2657 "configure"
2657 #include "confdefs.h"
2661 FILE *f=fopen("conftestval", "w");
2663 fprintf(f, "%d\n", sizeof(long));
2667 if { (eval echo configure:2668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2669 ac_cv_sizeof_long=`cat conftestval`
2671 echo "configure: failed program was:" >&5
2672 cat conftest.$ac_ext >&5
2680 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2681 cat >> confdefs.h <<EOF
2682 #define SIZEOF_LONG $ac_cv_sizeof_long
2686 echo $ac_n "checking size of short""... $ac_c" 1>&6
2687 echo "configure:2688: checking size of short" >&5
2688 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2689 echo $ac_n "(cached) $ac_c" 1>&6
2691 if test "$cross_compiling" = yes; then
2692 ac_cv_sizeof_short=cross
2694 cat > conftest.$ac_ext <<EOF
2695 #line 2696 "configure"
2696 #include "confdefs.h"
2700 FILE *f=fopen("conftestval", "w");
2702 fprintf(f, "%d\n", sizeof(short));
2706 if { (eval echo configure:2707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2708 ac_cv_sizeof_short=`cat conftestval`
2710 echo "configure: failed program was:" >&5
2711 cat conftest.$ac_ext >&5
2713 ac_cv_sizeof_short=0
2719 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2720 cat >> confdefs.h <<EOF
2721 #define SIZEOF_SHORT $ac_cv_sizeof_short
2726 echo $ac_n "checking for working const""... $ac_c" 1>&6
2727 echo "configure:2728: checking for working const" >&5
2728 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2729 echo $ac_n "(cached) $ac_c" 1>&6
2731 cat > conftest.$ac_ext <<EOF
2732 #line 2733 "configure"
2733 #include "confdefs.h"
2737 /* Ultrix mips cc rejects this. */
2738 typedef int charset[2]; const charset x;
2739 /* SunOS 4.1.1 cc rejects this. */
2740 char const *const *ccp;
2742 /* NEC SVR4.0.2 mips cc rejects this. */
2743 struct point {int x, y;};
2744 static struct point const zero = {0,0};
2745 /* AIX XL C 1.02.0.0 rejects this.
2746 It does not let you subtract one const X* pointer from another in an arm
2747 of an if-expression whose if-part is not a constant expression */
2748 const char *g = "string";
2749 ccp = &g + (g ? g-g : 0);
2750 /* HPUX 7.0 cc rejects these. */
2753 ccp = (char const *const *) p;
2754 { /* SCO 3.2v4 cc rejects this. */
2756 char const *s = 0 ? (char *) 0 : (char const *) 0;
2760 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2762 const int *foo = &x[0];
2765 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2766 typedef const int *iptr;
2770 { /* AIX XL C 1.02.0.0 rejects this saying
2771 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2772 struct s { int j; const int *ap[3]; };
2773 struct s *b; b->j = 5;
2775 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2781 if { (eval echo configure:2782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2785 echo "configure: failed program was:" >&5
2786 cat conftest.$ac_ext >&5
2793 echo "$ac_t""$ac_cv_c_const" 1>&6
2794 if test $ac_cv_c_const = no; then
2795 cat >> confdefs.h <<\EOF
2801 echo $ac_n "checking for inline""... $ac_c" 1>&6
2802 echo "configure:2803: checking for inline" >&5
2803 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2804 echo $ac_n "(cached) $ac_c" 1>&6
2807 for ac_kw in inline __inline__ __inline; do
2808 cat > conftest.$ac_ext <<EOF
2809 #line 2810 "configure"
2810 #include "confdefs.h"
2816 if { (eval echo configure:2817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2818 ac_cv_c_inline=$ac_kw; break
2820 echo "configure: failed program was:" >&5
2821 cat conftest.$ac_ext >&5
2828 echo "$ac_t""$ac_cv_c_inline" 1>&6
2829 case "$ac_cv_c_inline" in
2831 no) cat >> confdefs.h <<\EOF
2835 *) cat >> confdefs.h <<EOF
2836 #define inline $ac_cv_c_inline
2841 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2842 echo "configure:2843: checking whether byte ordering is bigendian" >&5
2843 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2844 echo $ac_n "(cached) $ac_c" 1>&6
2846 ac_cv_c_bigendian=unknown
2847 # See if sys/param.h defines the BYTE_ORDER macro.
2848 cat > conftest.$ac_ext <<EOF
2849 #line 2850 "configure"
2850 #include "confdefs.h"
2851 #include <sys/types.h>
2852 #include <sys/param.h>
2855 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2860 if { (eval echo configure:2861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2862 # It does; now see whether it defined to BIG_ENDIAN or not.
2863 cat > conftest.$ac_ext <<EOF
2864 #line 2865 "configure"
2865 #include "confdefs.h"
2866 #include <sys/types.h>
2867 #include <sys/param.h>
2870 #if BYTE_ORDER != BIG_ENDIAN
2875 if { (eval echo configure:2876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2877 ac_cv_c_bigendian=yes
2879 echo "configure: failed program was:" >&5
2880 cat conftest.$ac_ext >&5
2882 ac_cv_c_bigendian=no
2886 echo "configure: failed program was:" >&5
2887 cat conftest.$ac_ext >&5
2890 if test $ac_cv_c_bigendian = unknown; then
2891 if test "$cross_compiling" = yes; then
2892 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2894 cat > conftest.$ac_ext <<EOF
2895 #line 2896 "configure"
2896 #include "confdefs.h"
2898 /* Are we little or big endian? From Harbison&Steele. */
2902 char c[sizeof (long)];
2905 exit (u.c[sizeof (long) - 1] == 1);
2908 if { (eval echo configure:2909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2910 ac_cv_c_bigendian=no
2912 echo "configure: failed program was:" >&5
2913 cat conftest.$ac_ext >&5
2915 ac_cv_c_bigendian=yes
2923 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2924 if test $ac_cv_c_bigendian = yes; then
2925 cat >> confdefs.h <<\EOF
2926 #define WORDS_BIGENDIAN 1
2931 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2932 echo "configure:2933: checking whether char is unsigned" >&5
2933 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2934 echo $ac_n "(cached) $ac_c" 1>&6
2936 if test "$GCC" = yes; then
2937 # GCC predefines this symbol on systems where it applies.
2938 cat > conftest.$ac_ext <<EOF
2939 #line 2940 "configure"
2940 #include "confdefs.h"
2941 #ifdef __CHAR_UNSIGNED__
2946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2947 egrep "yes" >/dev/null 2>&1; then
2949 ac_cv_c_char_unsigned=yes
2952 ac_cv_c_char_unsigned=no
2957 if test "$cross_compiling" = yes; then
2958 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2960 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2963 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2964 #if !defined(__STDC__) || __STDC__ != 1
2968 volatile char c = 255; exit(c < 0);
2971 if { (eval echo configure:2972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2973 ac_cv_c_char_unsigned=yes
2975 echo "configure: failed program was:" >&5
2976 cat conftest.$ac_ext >&5
2978 ac_cv_c_char_unsigned=no
2986 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2987 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2988 cat >> confdefs.h <<\EOF
2989 #define __CHAR_UNSIGNED__ 1
2995 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2996 echo "configure:2997: checking return type of signal handlers" >&5
2997 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2998 echo $ac_n "(cached) $ac_c" 1>&6
3000 cat > conftest.$ac_ext <<EOF
3001 #line 3002 "configure"
3002 #include "confdefs.h"
3003 #include <sys/types.h>
3009 extern "C" void (*signal (int, void (*)(int)))(int);
3011 void (*signal ()) ();
3018 if { (eval echo configure:3019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3020 ac_cv_type_signal=void
3022 echo "configure: failed program was:" >&5
3023 cat conftest.$ac_ext >&5
3025 ac_cv_type_signal=int
3030 echo "$ac_t""$ac_cv_type_signal" 1>&6
3031 cat >> confdefs.h <<EOF
3032 #define RETSIGTYPE $ac_cv_type_signal
3036 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3037 echo "configure:3038: checking for uid_t in sys/types.h" >&5
3038 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3039 echo $ac_n "(cached) $ac_c" 1>&6
3041 cat > conftest.$ac_ext <<EOF
3042 #line 3043 "configure"
3043 #include "confdefs.h"
3044 #include <sys/types.h>
3046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3047 egrep "uid_t" >/dev/null 2>&1; then
3049 ac_cv_type_uid_t=yes
3058 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3059 if test $ac_cv_type_uid_t = no; then
3060 cat >> confdefs.h <<\EOF
3064 cat >> confdefs.h <<\EOF
3070 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3071 echo "configure:3072: checking for mode_t" >&5
3072 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3073 echo $ac_n "(cached) $ac_c" 1>&6
3075 cat > conftest.$ac_ext <<EOF
3076 #line 3077 "configure"
3077 #include "confdefs.h"
3078 #include <sys/types.h>
3084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3085 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3087 ac_cv_type_mode_t=yes
3090 ac_cv_type_mode_t=no
3095 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3096 if test $ac_cv_type_mode_t = no; then
3097 cat >> confdefs.h <<\EOF
3103 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3104 echo "configure:3105: checking for off_t" >&5
3105 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3106 echo $ac_n "(cached) $ac_c" 1>&6
3108 cat > conftest.$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3111 #include <sys/types.h>
3117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3118 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3120 ac_cv_type_off_t=yes
3128 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3129 if test $ac_cv_type_off_t = no; then
3130 cat >> confdefs.h <<\EOF
3136 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3137 echo "configure:3138: checking for size_t" >&5
3138 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3139 echo $ac_n "(cached) $ac_c" 1>&6
3141 cat > conftest.$ac_ext <<EOF
3142 #line 3143 "configure"
3143 #include "confdefs.h"
3144 #include <sys/types.h>
3150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3151 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3153 ac_cv_type_size_t=yes
3156 ac_cv_type_size_t=no
3161 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3162 if test $ac_cv_type_size_t = no; then
3163 cat >> confdefs.h <<\EOF
3164 #define size_t unsigned
3169 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3170 echo "configure:3171: checking for pid_t" >&5
3171 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3172 echo $ac_n "(cached) $ac_c" 1>&6
3174 cat > conftest.$ac_ext <<EOF
3175 #line 3176 "configure"
3176 #include "confdefs.h"
3177 #include <sys/types.h>
3183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3184 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3186 ac_cv_type_pid_t=yes
3194 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3195 if test $ac_cv_type_pid_t = no; then
3196 cat >> confdefs.h <<\EOF
3202 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3203 echo "configure:3204: checking for st_rdev in struct stat" >&5
3204 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3205 echo $ac_n "(cached) $ac_c" 1>&6
3207 cat > conftest.$ac_ext <<EOF
3208 #line 3209 "configure"
3209 #include "confdefs.h"
3210 #include <sys/types.h>
3211 #include <sys/stat.h>
3213 struct stat s; s.st_rdev;
3216 if { (eval echo configure:3217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3218 ac_cv_struct_st_rdev=yes
3220 echo "configure: failed program was:" >&5
3221 cat conftest.$ac_ext >&5
3223 ac_cv_struct_st_rdev=no
3228 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3229 if test $ac_cv_struct_st_rdev = yes; then
3230 cat >> confdefs.h <<\EOF
3231 #define HAVE_ST_RDEV 1
3236 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3237 echo "configure:3238: checking for d_off in dirent" >&5
3238 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3239 echo $ac_n "(cached) $ac_c" 1>&6
3241 cat > conftest.$ac_ext <<EOF
3242 #line 3243 "configure"
3243 #include "confdefs.h"
3246 #include <sys/types.h>
3249 struct dirent d; d.d_off;
3252 if { (eval echo configure:3253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3254 ac_cv_dirent_d_off=yes
3256 echo "configure: failed program was:" >&5
3257 cat conftest.$ac_ext >&5
3259 ac_cv_dirent_d_off=no
3264 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3265 if test $ac_cv_dirent_d_off = yes; then
3266 cat >> confdefs.h <<\EOF
3267 #define HAVE_DIRENT_D_OFF 1
3272 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3273 echo "configure:3274: checking for ino_t" >&5
3274 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3275 echo $ac_n "(cached) $ac_c" 1>&6
3277 cat > conftest.$ac_ext <<EOF
3278 #line 3279 "configure"
3279 #include "confdefs.h"
3280 #include <sys/types.h>
3286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3287 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3289 ac_cv_type_ino_t=yes
3297 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3298 if test $ac_cv_type_ino_t = no; then
3299 cat >> confdefs.h <<\EOF
3300 #define ino_t unsigned
3305 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3306 echo "configure:3307: checking for loff_t" >&5
3307 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3308 echo $ac_n "(cached) $ac_c" 1>&6
3310 cat > conftest.$ac_ext <<EOF
3311 #line 3312 "configure"
3312 #include "confdefs.h"
3313 #include <sys/types.h>
3319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3320 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3322 ac_cv_type_loff_t=yes
3325 ac_cv_type_loff_t=no
3330 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3331 if test $ac_cv_type_loff_t = no; then
3332 cat >> confdefs.h <<\EOF
3333 #define loff_t off_t
3338 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3339 echo "configure:3340: checking for offset_t" >&5
3340 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3341 echo $ac_n "(cached) $ac_c" 1>&6
3343 cat > conftest.$ac_ext <<EOF
3344 #line 3345 "configure"
3345 #include "confdefs.h"
3346 #include <sys/types.h>
3352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3353 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3355 ac_cv_type_offset_t=yes
3358 ac_cv_type_offset_t=no
3363 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3364 if test $ac_cv_type_offset_t = no; then
3365 cat >> confdefs.h <<\EOF
3366 #define offset_t loff_t
3371 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3372 echo "configure:3373: checking for ssize_t" >&5
3373 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3374 echo $ac_n "(cached) $ac_c" 1>&6
3376 cat > conftest.$ac_ext <<EOF
3377 #line 3378 "configure"
3378 #include "confdefs.h"
3379 #include <sys/types.h>
3385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3386 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3388 ac_cv_type_ssize_t=yes
3391 ac_cv_type_ssize_t=no
3396 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3397 if test $ac_cv_type_ssize_t = no; then
3398 cat >> confdefs.h <<\EOF
3404 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3405 echo "configure:3406: checking for wchar_t" >&5
3406 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3407 echo $ac_n "(cached) $ac_c" 1>&6
3409 cat > conftest.$ac_ext <<EOF
3410 #line 3411 "configure"
3411 #include "confdefs.h"
3412 #include <sys/types.h>
3418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3419 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3421 ac_cv_type_wchar_t=yes
3424 ac_cv_type_wchar_t=no
3429 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3430 if test $ac_cv_type_wchar_t = no; then
3431 cat >> confdefs.h <<\EOF
3432 #define wchar_t unsigned short
3438 ############################################
3439 # for cups support we need libcups, and a handful of header files
3441 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3442 echo "configure:3443: checking for httpConnect in -lcups" >&5
3443 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3444 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3445 echo $ac_n "(cached) $ac_c" 1>&6
3447 ac_save_LIBS="$LIBS"
3449 cat > conftest.$ac_ext <<EOF
3450 #line 3451 "configure"
3451 #include "confdefs.h"
3452 /* Override any gcc2 internal prototype to avoid an error. */
3453 /* We use char because int might match the return type of a gcc2
3454 builtin and then its argument prototype would still apply. */
3461 if { (eval echo configure:3462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3463 eval "ac_cv_lib_$ac_lib_var=yes"
3465 echo "configure: failed program was:" >&5
3466 cat conftest.$ac_ext >&5
3468 eval "ac_cv_lib_$ac_lib_var=no"
3471 LIBS="$ac_save_LIBS"
3474 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3475 echo "$ac_t""yes" 1>&6
3476 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3477 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3478 cat >> confdefs.h <<EOF
3479 #define $ac_tr_lib 1
3485 echo "$ac_t""no" 1>&6
3489 # I wonder if there is a nicer way of doing this?
3491 if test x"$ac_cv_lib_cups_httpConnect" = x"yes"; then
3492 for ac_hdr in cups/cups.h cups/language.h
3494 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3495 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3496 echo "configure:3497: checking for $ac_hdr" >&5
3497 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3498 echo $ac_n "(cached) $ac_c" 1>&6
3500 cat > conftest.$ac_ext <<EOF
3501 #line 3502 "configure"
3502 #include "confdefs.h"
3505 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3506 { (eval echo configure:3507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3507 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3508 if test -z "$ac_err"; then
3510 eval "ac_cv_header_$ac_safe=yes"
3513 echo "configure: failed program was:" >&5
3514 cat conftest.$ac_ext >&5
3516 eval "ac_cv_header_$ac_safe=no"
3520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3521 echo "$ac_t""yes" 1>&6
3522 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3523 cat >> confdefs.h <<EOF
3524 #define $ac_tr_hdr 1
3528 echo "$ac_t""no" 1>&6
3532 if test x"$ac_cv_header_cups_cups_h" = x"yes"; then
3533 if test x"$ac_cv_header_cups_language_h" = x"yes"; then
3534 cat >> confdefs.h <<\EOF
3542 ############################################
3543 # we need libdl for PAM, the password database plugins and the new VFS code
3544 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3545 echo "configure:3546: checking for dlopen in -ldl" >&5
3546 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3547 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3548 echo $ac_n "(cached) $ac_c" 1>&6
3550 ac_save_LIBS="$LIBS"
3552 cat > conftest.$ac_ext <<EOF
3553 #line 3554 "configure"
3554 #include "confdefs.h"
3555 /* Override any gcc2 internal prototype to avoid an error. */
3556 /* We use char because int might match the return type of a gcc2
3557 builtin and then its argument prototype would still apply. */
3564 if { (eval echo configure:3565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3566 eval "ac_cv_lib_$ac_lib_var=yes"
3568 echo "configure: failed program was:" >&5
3569 cat conftest.$ac_ext >&5
3571 eval "ac_cv_lib_$ac_lib_var=no"
3574 LIBS="$ac_save_LIBS"
3577 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3578 echo "$ac_t""yes" 1>&6
3580 cat >> confdefs.h <<\EOF
3581 #define HAVE_LIBDL 1
3585 echo "$ac_t""no" 1>&6
3589 ############################################
3590 # check if the compiler can do immediate structures
3591 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3592 echo "configure:3593: checking for immediate structures" >&5
3593 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3594 echo $ac_n "(cached) $ac_c" 1>&6
3597 cat > conftest.$ac_ext <<EOF
3598 #line 3599 "configure"
3599 #include "confdefs.h"
3604 typedef struct {unsigned x;} FOOBAR;
3605 #define X_FOOBAR(x) ((FOOBAR) { x })
3606 #define FOO_ONE X_FOOBAR(1)
3616 if { (eval echo configure:3617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3618 samba_cv_immediate_structures=yes
3620 echo "configure: failed program was:" >&5
3621 cat conftest.$ac_ext >&5
3623 samba_cv_immediate_structures=no
3628 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3629 if test x"$samba_cv_immediate_structures" = x"yes"; then
3630 cat >> confdefs.h <<\EOF
3631 #define HAVE_IMMEDIATE_STRUCTURES 1
3636 ############################################
3637 # check for unix domain sockets
3638 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3639 echo "configure:3640: checking for unix domain sockets" >&5
3640 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3641 echo $ac_n "(cached) $ac_c" 1>&6
3644 cat > conftest.$ac_ext <<EOF
3645 #line 3646 "configure"
3646 #include "confdefs.h"
3648 #include <sys/types.h>
3651 #include <sys/socket.h>
3655 struct sockaddr_un sunaddr;
3656 sunaddr.sun_family = AF_UNIX;
3660 if { (eval echo configure:3661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3662 samba_cv_unixsocket=yes
3664 echo "configure: failed program was:" >&5
3665 cat conftest.$ac_ext >&5
3667 samba_cv_unixsocket=no
3672 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3673 if test x"$samba_cv_unixsocket" = x"yes"; then
3674 cat >> confdefs.h <<\EOF
3675 #define HAVE_UNIXSOCKET 1
3681 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3682 echo "configure:3683: checking for socklen_t type" >&5
3683 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3684 echo $ac_n "(cached) $ac_c" 1>&6
3687 cat > conftest.$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3691 #include <sys/types.h>
3696 #include <sys/socket.h>
3701 if { (eval echo configure:3702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3703 samba_cv_socklen_t=yes
3705 echo "configure: failed program was:" >&5
3706 cat conftest.$ac_ext >&5
3708 samba_cv_socklen_t=no
3713 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3714 if test x"$samba_cv_socklen_t" = x"yes"; then
3715 cat >> confdefs.h <<\EOF
3716 #define HAVE_SOCKLEN_T_TYPE 1
3721 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3722 echo "configure:3723: checking for sig_atomic_t type" >&5
3723 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3724 echo $ac_n "(cached) $ac_c" 1>&6
3727 cat > conftest.$ac_ext <<EOF
3728 #line 3729 "configure"
3729 #include "confdefs.h"
3731 #include <sys/types.h>
3741 if { (eval echo configure:3742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3743 samba_cv_sig_atomic_t=yes
3745 echo "configure: failed program was:" >&5
3746 cat conftest.$ac_ext >&5
3748 samba_cv_sig_atomic_t=no
3753 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3754 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3755 cat >> confdefs.h <<\EOF
3756 #define HAVE_SIG_ATOMIC_T_TYPE 1
3761 # stupid headers have the functions but no declaration. grrrr.
3763 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3764 echo "configure:3765: checking for errno declaration" >&5
3765 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3766 echo $ac_n "(cached) $ac_c" 1>&6
3769 cat > conftest.$ac_ext <<EOF
3770 #line 3771 "configure"
3771 #include "confdefs.h"
3777 if { (eval echo configure:3778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3779 ac_cv_have_errno_decl=yes
3781 echo "configure: failed program was:" >&5
3782 cat conftest.$ac_ext >&5
3784 ac_cv_have_errno_decl=no
3789 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3790 if test x"$ac_cv_have_errno_decl" = x"yes"; then
3791 cat >> confdefs.h <<\EOF
3792 #define HAVE_ERRNO_DECL 1
3798 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3799 echo "configure:3800: checking for setresuid declaration" >&5
3800 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3801 echo $ac_n "(cached) $ac_c" 1>&6
3804 cat > conftest.$ac_ext <<EOF
3805 #line 3806 "configure"
3806 #include "confdefs.h"
3809 int i = (int)setresuid
3812 if { (eval echo configure:3813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3814 ac_cv_have_setresuid_decl=yes
3816 echo "configure: failed program was:" >&5
3817 cat conftest.$ac_ext >&5
3819 ac_cv_have_setresuid_decl=no
3824 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3825 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
3826 cat >> confdefs.h <<\EOF
3827 #define HAVE_SETRESUID_DECL 1
3833 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3834 echo "configure:3835: checking for setresgid declaration" >&5
3835 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3836 echo $ac_n "(cached) $ac_c" 1>&6
3839 cat > conftest.$ac_ext <<EOF
3840 #line 3841 "configure"
3841 #include "confdefs.h"
3844 int i = (int)setresgid
3847 if { (eval echo configure:3848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3849 ac_cv_have_setresgid_decl=yes
3851 echo "configure: failed program was:" >&5
3852 cat conftest.$ac_ext >&5
3854 ac_cv_have_setresgid_decl=no
3859 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3860 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
3861 cat >> confdefs.h <<\EOF
3862 #define HAVE_SETRESGID_DECL 1
3868 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3869 echo "configure:3870: checking for asprintf declaration" >&5
3870 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3871 echo $ac_n "(cached) $ac_c" 1>&6
3874 cat > conftest.$ac_ext <<EOF
3875 #line 3876 "configure"
3876 #include "confdefs.h"
3879 int i = (int)asprintf
3882 if { (eval echo configure:3883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3884 ac_cv_have_asprintf_decl=yes
3886 echo "configure: failed program was:" >&5
3887 cat conftest.$ac_ext >&5
3889 ac_cv_have_asprintf_decl=no
3894 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3895 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
3896 cat >> confdefs.h <<\EOF
3897 #define HAVE_ASPRINTF_DECL 1
3903 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3904 echo "configure:3905: checking for vasprintf declaration" >&5
3905 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3909 cat > conftest.$ac_ext <<EOF
3910 #line 3911 "configure"
3911 #include "confdefs.h"
3914 int i = (int)vasprintf
3917 if { (eval echo configure:3918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3919 ac_cv_have_vasprintf_decl=yes
3921 echo "configure: failed program was:" >&5
3922 cat conftest.$ac_ext >&5
3924 ac_cv_have_vasprintf_decl=no
3929 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
3930 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
3931 cat >> confdefs.h <<\EOF
3932 #define HAVE_VASPRINTF_DECL 1
3938 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
3939 echo "configure:3940: checking for vsnprintf declaration" >&5
3940 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
3941 echo $ac_n "(cached) $ac_c" 1>&6
3944 cat > conftest.$ac_ext <<EOF
3945 #line 3946 "configure"
3946 #include "confdefs.h"
3949 int i = (int)vsnprintf
3952 if { (eval echo configure:3953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3954 ac_cv_have_vsnprintf_decl=yes
3956 echo "configure: failed program was:" >&5
3957 cat conftest.$ac_ext >&5
3959 ac_cv_have_vsnprintf_decl=no
3964 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
3965 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
3966 cat >> confdefs.h <<\EOF
3967 #define HAVE_VSNPRINTF_DECL 1
3973 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
3974 echo "configure:3975: checking for snprintf declaration" >&5
3975 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
3976 echo $ac_n "(cached) $ac_c" 1>&6
3979 cat > conftest.$ac_ext <<EOF
3980 #line 3981 "configure"
3981 #include "confdefs.h"
3984 int i = (int)snprintf
3987 if { (eval echo configure:3988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3989 ac_cv_have_snprintf_decl=yes
3991 echo "configure: failed program was:" >&5
3992 cat conftest.$ac_ext >&5
3994 ac_cv_have_snprintf_decl=no
3999 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4000 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4001 cat >> confdefs.h <<\EOF
4002 #define HAVE_SNPRINTF_DECL 1
4008 # and glibc has setresuid under linux but the function does
4009 # nothing until kernel 2.1.44! very dumb.
4010 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4011 echo "configure:4012: checking for real setresuid" >&5
4012 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4013 echo $ac_n "(cached) $ac_c" 1>&6
4016 if test "$cross_compiling" = yes; then
4017 samba_cv_have_setresuid=cross
4019 cat > conftest.$ac_ext <<EOF
4020 #line 4021 "configure"
4021 #include "confdefs.h"
4023 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4025 if { (eval echo configure:4026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4027 samba_cv_have_setresuid=yes
4029 echo "configure: failed program was:" >&5
4030 cat conftest.$ac_ext >&5
4032 samba_cv_have_setresuid=no
4039 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4040 if test x"$samba_cv_have_setresuid" = x"yes"; then
4041 cat >> confdefs.h <<\EOF
4042 #define HAVE_SETRESUID 1
4047 # Do the same check for setresguid...
4049 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4050 echo "configure:4051: checking for real setresgid" >&5
4051 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4052 echo $ac_n "(cached) $ac_c" 1>&6
4055 if test "$cross_compiling" = yes; then
4056 samba_cv_have_setresgid=cross
4058 cat > conftest.$ac_ext <<EOF
4059 #line 4060 "configure"
4060 #include "confdefs.h"
4063 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4065 if { (eval echo configure:4066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4067 samba_cv_have_setresgid=yes
4069 echo "configure: failed program was:" >&5
4070 cat conftest.$ac_ext >&5
4072 samba_cv_have_setresgid=no
4079 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4080 if test x"$samba_cv_have_setresgid" = x"yes"; then
4081 cat >> confdefs.h <<\EOF
4082 #define HAVE_SETRESGID 1
4087 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4088 echo "configure:4089: checking for 8-bit clean memcmp" >&5
4089 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4090 echo $ac_n "(cached) $ac_c" 1>&6
4092 if test "$cross_compiling" = yes; then
4093 ac_cv_func_memcmp_clean=no
4095 cat > conftest.$ac_ext <<EOF
4096 #line 4097 "configure"
4097 #include "confdefs.h"
4101 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4102 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4106 if { (eval echo configure:4107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4108 ac_cv_func_memcmp_clean=yes
4110 echo "configure: failed program was:" >&5
4111 cat conftest.$ac_ext >&5
4113 ac_cv_func_memcmp_clean=no
4120 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4121 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4124 ###############################################
4125 # test for where we get crypt() from
4126 for ac_func in crypt
4128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4129 echo "configure:4130: checking for $ac_func" >&5
4130 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4131 echo $ac_n "(cached) $ac_c" 1>&6
4133 cat > conftest.$ac_ext <<EOF
4134 #line 4135 "configure"
4135 #include "confdefs.h"
4136 /* System header to define __stub macros and hopefully few prototypes,
4137 which can conflict with char $ac_func(); below. */
4139 /* Override any gcc2 internal prototype to avoid an error. */
4140 /* We use char because int might match the return type of a gcc2
4141 builtin and then its argument prototype would still apply. */
4146 /* The GNU C library defines this for functions which it implements
4147 to always fail with ENOSYS. Some functions are actually named
4148 something starting with __ and the normal name is an alias. */
4149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4157 if { (eval echo configure:4158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4159 eval "ac_cv_func_$ac_func=yes"
4161 echo "configure: failed program was:" >&5
4162 cat conftest.$ac_ext >&5
4164 eval "ac_cv_func_$ac_func=no"
4169 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4170 echo "$ac_t""yes" 1>&6
4171 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4172 cat >> confdefs.h <<EOF
4173 #define $ac_tr_func 1
4177 echo "$ac_t""no" 1>&6
4181 if test x"$ac_cv_func_crypt" = x"no"; then
4182 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4183 echo "configure:4184: checking for crypt in -lcrypt" >&5
4184 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4186 echo $ac_n "(cached) $ac_c" 1>&6
4188 ac_save_LIBS="$LIBS"
4189 LIBS="-lcrypt $LIBS"
4190 cat > conftest.$ac_ext <<EOF
4191 #line 4192 "configure"
4192 #include "confdefs.h"
4193 /* Override any gcc2 internal prototype to avoid an error. */
4194 /* We use char because int might match the return type of a gcc2
4195 builtin and then its argument prototype would still apply. */
4202 if { (eval echo configure:4203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4204 eval "ac_cv_lib_$ac_lib_var=yes"
4206 echo "configure: failed program was:" >&5
4207 cat conftest.$ac_ext >&5
4209 eval "ac_cv_lib_$ac_lib_var=no"
4212 LIBS="$ac_save_LIBS"
4215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4216 echo "$ac_t""yes" 1>&6
4217 LIBS="$LIBS -lcrypt";
4218 cat >> confdefs.h <<\EOF
4219 #define HAVE_CRYPT 1
4223 echo "$ac_t""no" 1>&6
4229 ###############################################
4230 # Readline included by default unless explicitly asked not to
4231 test "${with_readline+set}" != "set" && with_readline=yes
4233 # test for where we get readline() from
4234 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4235 echo "configure:4236: checking whether to use readline" >&5
4236 # Check whether --with-readline or --without-readline was given.
4237 if test "${with_readline+set}" = set; then
4238 withval="$with_readline"
4239 case "$with_readline" in
4241 echo "$ac_t""yes" 1>&6
4243 for ac_hdr in readline.h history.h readline/readline.h
4245 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4246 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4247 echo "configure:4248: checking for $ac_hdr" >&5
4248 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4249 echo $ac_n "(cached) $ac_c" 1>&6
4251 cat > conftest.$ac_ext <<EOF
4252 #line 4253 "configure"
4253 #include "confdefs.h"
4256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4257 { (eval echo configure:4258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4259 if test -z "$ac_err"; then
4261 eval "ac_cv_header_$ac_safe=yes"
4264 echo "configure: failed program was:" >&5
4265 cat conftest.$ac_ext >&5
4267 eval "ac_cv_header_$ac_safe=no"
4271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4272 echo "$ac_t""yes" 1>&6
4273 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4274 cat >> confdefs.h <<EOF
4275 #define $ac_tr_hdr 1
4279 echo "$ac_t""no" 1>&6
4283 for ac_hdr in readline/history.h
4285 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4286 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4287 echo "configure:4288: checking for $ac_hdr" >&5
4288 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4289 echo $ac_n "(cached) $ac_c" 1>&6
4291 cat > conftest.$ac_ext <<EOF
4292 #line 4293 "configure"
4293 #include "confdefs.h"
4296 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4297 { (eval echo configure:4298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4298 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4299 if test -z "$ac_err"; then
4301 eval "ac_cv_header_$ac_safe=yes"
4304 echo "configure: failed program was:" >&5
4305 cat conftest.$ac_ext >&5
4307 eval "ac_cv_header_$ac_safe=no"
4311 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4312 echo "$ac_t""yes" 1>&6
4313 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4314 cat >> confdefs.h <<EOF
4315 #define $ac_tr_hdr 1
4319 echo "$ac_t""no" 1>&6
4324 for ac_hdr in readline.h readline/readline.h
4326 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4327 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4328 echo "configure:4329: checking for $ac_hdr" >&5
4329 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4330 echo $ac_n "(cached) $ac_c" 1>&6
4332 cat > conftest.$ac_ext <<EOF
4333 #line 4334 "configure"
4334 #include "confdefs.h"
4337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4338 { (eval echo configure:4339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4340 if test -z "$ac_err"; then
4342 eval "ac_cv_header_$ac_safe=yes"
4345 echo "configure: failed program was:" >&5
4346 cat conftest.$ac_ext >&5
4348 eval "ac_cv_header_$ac_safe=no"
4352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4353 echo "$ac_t""yes" 1>&6
4354 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4355 cat >> confdefs.h <<EOF
4356 #define $ac_tr_hdr 1
4359 for termlib in ncurses curses termcap terminfo termlib; do
4360 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4361 echo "configure:4362: checking for tgetent in -l${termlib}" >&5
4362 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4364 echo $ac_n "(cached) $ac_c" 1>&6
4366 ac_save_LIBS="$LIBS"
4367 LIBS="-l${termlib} $LIBS"
4368 cat > conftest.$ac_ext <<EOF
4369 #line 4370 "configure"
4370 #include "confdefs.h"
4371 /* Override any gcc2 internal prototype to avoid an error. */
4372 /* We use char because int might match the return type of a gcc2
4373 builtin and then its argument prototype would still apply. */
4380 if { (eval echo configure:4381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4382 eval "ac_cv_lib_$ac_lib_var=yes"
4384 echo "configure: failed program was:" >&5
4385 cat conftest.$ac_ext >&5
4387 eval "ac_cv_lib_$ac_lib_var=no"
4390 LIBS="$ac_save_LIBS"
4393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4394 echo "$ac_t""yes" 1>&6
4395 TERMLIBS="-l${termlib}"; break
4397 echo "$ac_t""no" 1>&6
4401 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4402 echo "configure:4403: checking for rl_callback_handler_install in -lreadline" >&5
4403 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4405 echo $ac_n "(cached) $ac_c" 1>&6
4407 ac_save_LIBS="$LIBS"
4408 LIBS="-lreadline $TERMLIBS $LIBS"
4409 cat > conftest.$ac_ext <<EOF
4410 #line 4411 "configure"
4411 #include "confdefs.h"
4412 /* Override any gcc2 internal prototype to avoid an error. */
4413 /* We use char because int might match the return type of a gcc2
4414 builtin and then its argument prototype would still apply. */
4415 char rl_callback_handler_install();
4418 rl_callback_handler_install()
4421 if { (eval echo configure:4422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4423 eval "ac_cv_lib_$ac_lib_var=yes"
4425 echo "configure: failed program was:" >&5
4426 cat conftest.$ac_ext >&5
4428 eval "ac_cv_lib_$ac_lib_var=no"
4431 LIBS="$ac_save_LIBS"
4434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4435 echo "$ac_t""yes" 1>&6
4436 TERMLIBS="-lreadline $TERMLIBS"
4437 cat >> confdefs.h <<\EOF
4438 #define HAVE_LIBREADLINE 1
4443 echo "$ac_t""no" 1>&6
4448 echo "$ac_t""no" 1>&6
4454 echo "$ac_t""no" 1>&6
4457 echo "$ac_t""yes" 1>&6
4459 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4460 # alternate readline path
4462 _cppflags=${CPPFLAGS}
4464 # Add additional search path
4465 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4466 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4468 for ac_hdr in readline.h history.h readline/readline.h
4470 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4471 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4472 echo "configure:4473: checking for $ac_hdr" >&5
4473 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4474 echo $ac_n "(cached) $ac_c" 1>&6
4476 cat > conftest.$ac_ext <<EOF
4477 #line 4478 "configure"
4478 #include "confdefs.h"
4481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4482 { (eval echo configure:4483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4484 if test -z "$ac_err"; then
4486 eval "ac_cv_header_$ac_safe=yes"
4489 echo "configure: failed program was:" >&5
4490 cat conftest.$ac_ext >&5
4492 eval "ac_cv_header_$ac_safe=no"
4496 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4497 echo "$ac_t""yes" 1>&6
4498 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4499 cat >> confdefs.h <<EOF
4500 #define $ac_tr_hdr 1
4504 echo "$ac_t""no" 1>&6
4508 for ac_hdr in readline/history.h
4510 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4511 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4512 echo "configure:4513: checking for $ac_hdr" >&5
4513 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4514 echo $ac_n "(cached) $ac_c" 1>&6
4516 cat > conftest.$ac_ext <<EOF
4517 #line 4518 "configure"
4518 #include "confdefs.h"
4521 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4522 { (eval echo configure:4523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4523 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4524 if test -z "$ac_err"; then
4526 eval "ac_cv_header_$ac_safe=yes"
4529 echo "configure: failed program was:" >&5
4530 cat conftest.$ac_ext >&5
4532 eval "ac_cv_header_$ac_safe=no"
4536 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4537 echo "$ac_t""yes" 1>&6
4538 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4539 cat >> confdefs.h <<EOF
4540 #define $ac_tr_hdr 1
4544 echo "$ac_t""no" 1>&6
4549 for ac_hdr in readline.h readline/readline.h
4551 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4552 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4553 echo "configure:4554: checking for $ac_hdr" >&5
4554 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4555 echo $ac_n "(cached) $ac_c" 1>&6
4557 cat > conftest.$ac_ext <<EOF
4558 #line 4559 "configure"
4559 #include "confdefs.h"
4562 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4563 { (eval echo configure:4564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4564 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4565 if test -z "$ac_err"; then
4567 eval "ac_cv_header_$ac_safe=yes"
4570 echo "configure: failed program was:" >&5
4571 cat conftest.$ac_ext >&5
4573 eval "ac_cv_header_$ac_safe=no"
4577 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4578 echo "$ac_t""yes" 1>&6
4579 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4580 cat >> confdefs.h <<EOF
4581 #define $ac_tr_hdr 1
4584 for termlib in ncurses curses termcap terminfo termlib; do
4585 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4586 echo "configure:4587: checking for tgetent in -l${termlib}" >&5
4587 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4588 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4589 echo $ac_n "(cached) $ac_c" 1>&6
4591 ac_save_LIBS="$LIBS"
4592 LIBS="-l${termlib} $LIBS"
4593 cat > conftest.$ac_ext <<EOF
4594 #line 4595 "configure"
4595 #include "confdefs.h"
4596 /* Override any gcc2 internal prototype to avoid an error. */
4597 /* We use char because int might match the return type of a gcc2
4598 builtin and then its argument prototype would still apply. */
4605 if { (eval echo configure:4606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4607 eval "ac_cv_lib_$ac_lib_var=yes"
4609 echo "configure: failed program was:" >&5
4610 cat conftest.$ac_ext >&5
4612 eval "ac_cv_lib_$ac_lib_var=no"
4615 LIBS="$ac_save_LIBS"
4618 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4619 echo "$ac_t""yes" 1>&6
4620 TERMLIBS="-l${termlib}"; break
4622 echo "$ac_t""no" 1>&6
4626 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4627 echo "configure:4628: checking for rl_callback_handler_install in -lreadline" >&5
4628 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4629 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4630 echo $ac_n "(cached) $ac_c" 1>&6
4632 ac_save_LIBS="$LIBS"
4633 LIBS="-lreadline $TERMLIBS $LIBS"
4634 cat > conftest.$ac_ext <<EOF
4635 #line 4636 "configure"
4636 #include "confdefs.h"
4637 /* Override any gcc2 internal prototype to avoid an error. */
4638 /* We use char because int might match the return type of a gcc2
4639 builtin and then its argument prototype would still apply. */
4640 char rl_callback_handler_install();
4643 rl_callback_handler_install()
4646 if { (eval echo configure:4647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4648 eval "ac_cv_lib_$ac_lib_var=yes"
4650 echo "configure: failed program was:" >&5
4651 cat conftest.$ac_ext >&5
4653 eval "ac_cv_lib_$ac_lib_var=no"
4656 LIBS="$ac_save_LIBS"
4659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4660 echo "$ac_t""yes" 1>&6
4661 TERMLDFLAGS="-L$with_readline/lib"
4662 TERMCPPFLAGS="-I$with_readline/include"
4663 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4664 TERMLIBS="-lreadline $TERMLIBS"
4665 cat >> confdefs.h <<\EOF
4666 #define HAVE_LIBREADLINE 1
4671 echo "$ac_t""no" 1>&6
4672 TERMLIBS= CPPFLAGS=$_cppflags
4676 echo "$ac_t""no" 1>&6
4685 echo "$ac_t""no" 1>&6
4692 # The readline API changed slightly from readline3 to readline4, so
4693 # code will generate warnings on one of them unless we have a few
4695 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
4696 echo "configure:4697: checking for rl_completion_matches in -lreadline" >&5
4697 ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
4698 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4699 echo $ac_n "(cached) $ac_c" 1>&6
4701 ac_save_LIBS="$LIBS"
4702 LIBS="-lreadline $TERMLIBS $LIBS"
4703 cat > conftest.$ac_ext <<EOF
4704 #line 4705 "configure"
4705 #include "confdefs.h"
4706 /* Override any gcc2 internal prototype to avoid an error. */
4707 /* We use char because int might match the return type of a gcc2
4708 builtin and then its argument prototype would still apply. */
4709 char rl_completion_matches();
4712 rl_completion_matches()
4715 if { (eval echo configure:4716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4717 eval "ac_cv_lib_$ac_lib_var=yes"
4719 echo "configure: failed program was:" >&5
4720 cat conftest.$ac_ext >&5
4722 eval "ac_cv_lib_$ac_lib_var=no"
4725 LIBS="$ac_save_LIBS"
4728 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4729 echo "$ac_t""yes" 1>&6
4730 cat >> confdefs.h <<\EOF
4731 #define HAVE_NEW_LIBREADLINE 1
4735 echo "$ac_t""no" 1>&6
4739 # The following test taken from the cvs sources
4740 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4741 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4742 # libsocket.so which has a bad implementation of gethostbyname (it
4743 # only looks in /etc/hosts), so we only look for -lsocket if we need
4745 for ac_func in connect
4747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4748 echo "configure:4749: checking for $ac_func" >&5
4749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4750 echo $ac_n "(cached) $ac_c" 1>&6
4752 cat > conftest.$ac_ext <<EOF
4753 #line 4754 "configure"
4754 #include "confdefs.h"
4755 /* System header to define __stub macros and hopefully few prototypes,
4756 which can conflict with char $ac_func(); below. */
4758 /* Override any gcc2 internal prototype to avoid an error. */
4759 /* We use char because int might match the return type of a gcc2
4760 builtin and then its argument prototype would still apply. */
4765 /* The GNU C library defines this for functions which it implements
4766 to always fail with ENOSYS. Some functions are actually named
4767 something starting with __ and the normal name is an alias. */
4768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4776 if { (eval echo configure:4777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4778 eval "ac_cv_func_$ac_func=yes"
4780 echo "configure: failed program was:" >&5
4781 cat conftest.$ac_ext >&5
4783 eval "ac_cv_func_$ac_func=no"
4788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4789 echo "$ac_t""yes" 1>&6
4790 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4791 cat >> confdefs.h <<EOF
4792 #define $ac_tr_func 1
4796 echo "$ac_t""no" 1>&6
4800 if test x"$ac_cv_func_connect" = x"no"; then
4803 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4804 echo "configure:4805: checking for printf in -lnsl_s" >&5
4805 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4806 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4807 echo $ac_n "(cached) $ac_c" 1>&6
4809 ac_save_LIBS="$LIBS"
4810 LIBS="-lnsl_s $LIBS"
4811 cat > conftest.$ac_ext <<EOF
4812 #line 4813 "configure"
4813 #include "confdefs.h"
4814 /* Override any gcc2 internal prototype to avoid an error. */
4815 /* We use char because int might match the return type of a gcc2
4816 builtin and then its argument prototype would still apply. */
4823 if { (eval echo configure:4824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4825 eval "ac_cv_lib_$ac_lib_var=yes"
4827 echo "configure: failed program was:" >&5
4828 cat conftest.$ac_ext >&5
4830 eval "ac_cv_lib_$ac_lib_var=no"
4833 LIBS="$ac_save_LIBS"
4836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4837 echo "$ac_t""yes" 1>&6
4838 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4839 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4840 cat >> confdefs.h <<EOF
4841 #define $ac_tr_lib 1
4844 LIBS="-lnsl_s $LIBS"
4847 echo "$ac_t""no" 1>&6
4853 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4854 echo "configure:4855: checking for printf in -lnsl" >&5
4855 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4856 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4857 echo $ac_n "(cached) $ac_c" 1>&6
4859 ac_save_LIBS="$LIBS"
4861 cat > conftest.$ac_ext <<EOF
4862 #line 4863 "configure"
4863 #include "confdefs.h"
4864 /* Override any gcc2 internal prototype to avoid an error. */
4865 /* We use char because int might match the return type of a gcc2
4866 builtin and then its argument prototype would still apply. */
4873 if { (eval echo configure:4874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4875 eval "ac_cv_lib_$ac_lib_var=yes"
4877 echo "configure: failed program was:" >&5
4878 cat conftest.$ac_ext >&5
4880 eval "ac_cv_lib_$ac_lib_var=no"
4883 LIBS="$ac_save_LIBS"
4886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4887 echo "$ac_t""yes" 1>&6
4888 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4889 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4890 cat >> confdefs.h <<EOF
4891 #define $ac_tr_lib 1
4897 echo "$ac_t""no" 1>&6
4903 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4904 echo "configure:4905: checking for connect in -lsocket" >&5
4905 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4906 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4907 echo $ac_n "(cached) $ac_c" 1>&6
4909 ac_save_LIBS="$LIBS"
4910 LIBS="-lsocket $LIBS"
4911 cat > conftest.$ac_ext <<EOF
4912 #line 4913 "configure"
4913 #include "confdefs.h"
4914 /* Override any gcc2 internal prototype to avoid an error. */
4915 /* We use char because int might match the return type of a gcc2
4916 builtin and then its argument prototype would still apply. */
4923 if { (eval echo configure:4924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4925 eval "ac_cv_lib_$ac_lib_var=yes"
4927 echo "configure: failed program was:" >&5
4928 cat conftest.$ac_ext >&5
4930 eval "ac_cv_lib_$ac_lib_var=no"
4933 LIBS="$ac_save_LIBS"
4936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4937 echo "$ac_t""yes" 1>&6
4938 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4939 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4940 cat >> confdefs.h <<EOF
4941 #define $ac_tr_lib 1
4944 LIBS="-lsocket $LIBS"
4947 echo "$ac_t""no" 1>&6
4953 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4954 echo "configure:4955: checking for connect in -linet" >&5
4955 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4956 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4957 echo $ac_n "(cached) $ac_c" 1>&6
4959 ac_save_LIBS="$LIBS"
4961 cat > conftest.$ac_ext <<EOF
4962 #line 4963 "configure"
4963 #include "confdefs.h"
4964 /* Override any gcc2 internal prototype to avoid an error. */
4965 /* We use char because int might match the return type of a gcc2
4966 builtin and then its argument prototype would still apply. */
4973 if { (eval echo configure:4974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4975 eval "ac_cv_lib_$ac_lib_var=yes"
4977 echo "configure: failed program was:" >&5
4978 cat conftest.$ac_ext >&5
4980 eval "ac_cv_lib_$ac_lib_var=no"
4983 LIBS="$ac_save_LIBS"
4986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4987 echo "$ac_t""yes" 1>&6
4988 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4989 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4990 cat >> confdefs.h <<EOF
4991 #define $ac_tr_lib 1
4997 echo "$ac_t""no" 1>&6
5001 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5002 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5003 # ac_cv_func_connect=yes
5004 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5005 cat >> confdefs.h <<\EOF
5006 #define HAVE_CONNECT 1
5012 ###############################################
5013 # test for where we get get_yp_default_domain() from
5014 for ac_func in yp_get_default_domain
5016 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5017 echo "configure:5018: checking for $ac_func" >&5
5018 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5019 echo $ac_n "(cached) $ac_c" 1>&6
5021 cat > conftest.$ac_ext <<EOF
5022 #line 5023 "configure"
5023 #include "confdefs.h"
5024 /* System header to define __stub macros and hopefully few prototypes,
5025 which can conflict with char $ac_func(); below. */
5027 /* Override any gcc2 internal prototype to avoid an error. */
5028 /* We use char because int might match the return type of a gcc2
5029 builtin and then its argument prototype would still apply. */
5034 /* The GNU C library defines this for functions which it implements
5035 to always fail with ENOSYS. Some functions are actually named
5036 something starting with __ and the normal name is an alias. */
5037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5045 if { (eval echo configure:5046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5047 eval "ac_cv_func_$ac_func=yes"
5049 echo "configure: failed program was:" >&5
5050 cat conftest.$ac_ext >&5
5052 eval "ac_cv_func_$ac_func=no"
5057 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5058 echo "$ac_t""yes" 1>&6
5059 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5060 cat >> confdefs.h <<EOF
5061 #define $ac_tr_func 1
5065 echo "$ac_t""no" 1>&6
5069 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5070 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5071 echo "configure:5072: checking for yp_get_default_domain in -lnsl" >&5
5072 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5073 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5074 echo $ac_n "(cached) $ac_c" 1>&6
5076 ac_save_LIBS="$LIBS"
5078 cat > conftest.$ac_ext <<EOF
5079 #line 5080 "configure"
5080 #include "confdefs.h"
5081 /* Override any gcc2 internal prototype to avoid an error. */
5082 /* We use char because int might match the return type of a gcc2
5083 builtin and then its argument prototype would still apply. */
5084 char yp_get_default_domain();
5087 yp_get_default_domain()
5090 if { (eval echo configure:5091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5092 eval "ac_cv_lib_$ac_lib_var=yes"
5094 echo "configure: failed program was:" >&5
5095 cat conftest.$ac_ext >&5
5097 eval "ac_cv_lib_$ac_lib_var=no"
5100 LIBS="$ac_save_LIBS"
5103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5104 echo "$ac_t""yes" 1>&6
5106 cat >> confdefs.h <<\EOF
5107 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5111 echo "$ac_t""no" 1>&6
5116 # Check if we have execl, if not we need to compile smbrun.
5117 for ac_func in execl
5119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5120 echo "configure:5121: checking for $ac_func" >&5
5121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5122 echo $ac_n "(cached) $ac_c" 1>&6
5124 cat > conftest.$ac_ext <<EOF
5125 #line 5126 "configure"
5126 #include "confdefs.h"
5127 /* System header to define __stub macros and hopefully few prototypes,
5128 which can conflict with char $ac_func(); below. */
5130 /* Override any gcc2 internal prototype to avoid an error. */
5131 /* We use char because int might match the return type of a gcc2
5132 builtin and then its argument prototype would still apply. */
5137 /* The GNU C library defines this for functions which it implements
5138 to always fail with ENOSYS. Some functions are actually named
5139 something starting with __ and the normal name is an alias. */
5140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5148 if { (eval echo configure:5149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5150 eval "ac_cv_func_$ac_func=yes"
5152 echo "configure: failed program was:" >&5
5153 cat conftest.$ac_ext >&5
5155 eval "ac_cv_func_$ac_func=no"
5160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5161 echo "$ac_t""yes" 1>&6
5162 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5163 cat >> confdefs.h <<EOF
5164 #define $ac_tr_func 1
5168 echo "$ac_t""no" 1>&6
5172 if test x"$ac_cv_func_execl" = x"no"; then
5173 RUNPROG="bin/smbrun"
5178 for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
5180 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5181 echo "configure:5182: checking for $ac_func" >&5
5182 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5183 echo $ac_n "(cached) $ac_c" 1>&6
5185 cat > conftest.$ac_ext <<EOF
5186 #line 5187 "configure"
5187 #include "confdefs.h"
5188 /* System header to define __stub macros and hopefully few prototypes,
5189 which can conflict with char $ac_func(); below. */
5191 /* Override any gcc2 internal prototype to avoid an error. */
5192 /* We use char because int might match the return type of a gcc2
5193 builtin and then its argument prototype would still apply. */
5198 /* The GNU C library defines this for functions which it implements
5199 to always fail with ENOSYS. Some functions are actually named
5200 something starting with __ and the normal name is an alias. */
5201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5209 if { (eval echo configure:5210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5211 eval "ac_cv_func_$ac_func=yes"
5213 echo "configure: failed program was:" >&5
5214 cat conftest.$ac_ext >&5
5216 eval "ac_cv_func_$ac_func=no"
5221 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5222 echo "$ac_t""yes" 1>&6
5223 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5224 cat >> confdefs.h <<EOF
5225 #define $ac_tr_func 1
5229 echo "$ac_t""no" 1>&6
5233 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
5235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5236 echo "configure:5237: checking for $ac_func" >&5
5237 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5238 echo $ac_n "(cached) $ac_c" 1>&6
5240 cat > conftest.$ac_ext <<EOF
5241 #line 5242 "configure"
5242 #include "confdefs.h"
5243 /* System header to define __stub macros and hopefully few prototypes,
5244 which can conflict with char $ac_func(); below. */
5246 /* Override any gcc2 internal prototype to avoid an error. */
5247 /* We use char because int might match the return type of a gcc2
5248 builtin and then its argument prototype would still apply. */
5253 /* The GNU C library defines this for functions which it implements
5254 to always fail with ENOSYS. Some functions are actually named
5255 something starting with __ and the normal name is an alias. */
5256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5264 if { (eval echo configure:5265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5266 eval "ac_cv_func_$ac_func=yes"
5268 echo "configure: failed program was:" >&5
5269 cat conftest.$ac_ext >&5
5271 eval "ac_cv_func_$ac_func=no"
5276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5277 echo "$ac_t""yes" 1>&6
5278 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5279 cat >> confdefs.h <<EOF
5280 #define $ac_tr_func 1
5284 echo "$ac_t""no" 1>&6
5288 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5291 echo "configure:5292: checking for $ac_func" >&5
5292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5293 echo $ac_n "(cached) $ac_c" 1>&6
5295 cat > conftest.$ac_ext <<EOF
5296 #line 5297 "configure"
5297 #include "confdefs.h"
5298 /* System header to define __stub macros and hopefully few prototypes,
5299 which can conflict with char $ac_func(); below. */
5301 /* Override any gcc2 internal prototype to avoid an error. */
5302 /* We use char because int might match the return type of a gcc2
5303 builtin and then its argument prototype would still apply. */
5308 /* The GNU C library defines this for functions which it implements
5309 to always fail with ENOSYS. Some functions are actually named
5310 something starting with __ and the normal name is an alias. */
5311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5319 if { (eval echo configure:5320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5321 eval "ac_cv_func_$ac_func=yes"
5323 echo "configure: failed program was:" >&5
5324 cat conftest.$ac_ext >&5
5326 eval "ac_cv_func_$ac_func=no"
5331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5332 echo "$ac_t""yes" 1>&6
5333 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5334 cat >> confdefs.h <<EOF
5335 #define $ac_tr_func 1
5339 echo "$ac_t""no" 1>&6
5343 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5346 echo "configure:5347: checking for $ac_func" >&5
5347 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5348 echo $ac_n "(cached) $ac_c" 1>&6
5350 cat > conftest.$ac_ext <<EOF
5351 #line 5352 "configure"
5352 #include "confdefs.h"
5353 /* System header to define __stub macros and hopefully few prototypes,
5354 which can conflict with char $ac_func(); below. */
5356 /* Override any gcc2 internal prototype to avoid an error. */
5357 /* We use char because int might match the return type of a gcc2
5358 builtin and then its argument prototype would still apply. */
5363 /* The GNU C library defines this for functions which it implements
5364 to always fail with ENOSYS. Some functions are actually named
5365 something starting with __ and the normal name is an alias. */
5366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5374 if { (eval echo configure:5375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5376 eval "ac_cv_func_$ac_func=yes"
5378 echo "configure: failed program was:" >&5
5379 cat conftest.$ac_ext >&5
5381 eval "ac_cv_func_$ac_func=no"
5386 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5387 echo "$ac_t""yes" 1>&6
5388 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5389 cat >> confdefs.h <<EOF
5390 #define $ac_tr_func 1
5394 echo "$ac_t""no" 1>&6
5398 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
5400 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5401 echo "configure:5402: checking for $ac_func" >&5
5402 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5403 echo $ac_n "(cached) $ac_c" 1>&6
5405 cat > conftest.$ac_ext <<EOF
5406 #line 5407 "configure"
5407 #include "confdefs.h"
5408 /* System header to define __stub macros and hopefully few prototypes,
5409 which can conflict with char $ac_func(); below. */
5411 /* Override any gcc2 internal prototype to avoid an error. */
5412 /* We use char because int might match the return type of a gcc2
5413 builtin and then its argument prototype would still apply. */
5418 /* The GNU C library defines this for functions which it implements
5419 to always fail with ENOSYS. Some functions are actually named
5420 something starting with __ and the normal name is an alias. */
5421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5429 if { (eval echo configure:5430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5431 eval "ac_cv_func_$ac_func=yes"
5433 echo "configure: failed program was:" >&5
5434 cat conftest.$ac_ext >&5
5436 eval "ac_cv_func_$ac_func=no"
5441 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5442 echo "$ac_t""yes" 1>&6
5443 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5444 cat >> confdefs.h <<EOF
5445 #define $ac_tr_func 1
5449 echo "$ac_t""no" 1>&6
5453 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5456 echo "configure:5457: checking for $ac_func" >&5
5457 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5458 echo $ac_n "(cached) $ac_c" 1>&6
5460 cat > conftest.$ac_ext <<EOF
5461 #line 5462 "configure"
5462 #include "confdefs.h"
5463 /* System header to define __stub macros and hopefully few prototypes,
5464 which can conflict with char $ac_func(); below. */
5466 /* Override any gcc2 internal prototype to avoid an error. */
5467 /* We use char because int might match the return type of a gcc2
5468 builtin and then its argument prototype would still apply. */
5473 /* The GNU C library defines this for functions which it implements
5474 to always fail with ENOSYS. Some functions are actually named
5475 something starting with __ and the normal name is an alias. */
5476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5484 if { (eval echo configure:5485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5486 eval "ac_cv_func_$ac_func=yes"
5488 echo "configure: failed program was:" >&5
5489 cat conftest.$ac_ext >&5
5491 eval "ac_cv_func_$ac_func=no"
5496 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5497 echo "$ac_t""yes" 1>&6
5498 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5499 cat >> confdefs.h <<EOF
5500 #define $ac_tr_func 1
5504 echo "$ac_t""no" 1>&6
5508 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5510 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5511 echo "configure:5512: checking for $ac_func" >&5
5512 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5513 echo $ac_n "(cached) $ac_c" 1>&6
5515 cat > conftest.$ac_ext <<EOF
5516 #line 5517 "configure"
5517 #include "confdefs.h"
5518 /* System header to define __stub macros and hopefully few prototypes,
5519 which can conflict with char $ac_func(); below. */
5521 /* Override any gcc2 internal prototype to avoid an error. */
5522 /* We use char because int might match the return type of a gcc2
5523 builtin and then its argument prototype would still apply. */
5528 /* The GNU C library defines this for functions which it implements
5529 to always fail with ENOSYS. Some functions are actually named
5530 something starting with __ and the normal name is an alias. */
5531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5539 if { (eval echo configure:5540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5541 eval "ac_cv_func_$ac_func=yes"
5543 echo "configure: failed program was:" >&5
5544 cat conftest.$ac_ext >&5
5546 eval "ac_cv_func_$ac_func=no"
5551 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5552 echo "$ac_t""yes" 1>&6
5553 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5554 cat >> confdefs.h <<EOF
5555 #define $ac_tr_func 1
5559 echo "$ac_t""no" 1>&6
5563 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5566 echo "configure:5567: checking for $ac_func" >&5
5567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5568 echo $ac_n "(cached) $ac_c" 1>&6
5570 cat > conftest.$ac_ext <<EOF
5571 #line 5572 "configure"
5572 #include "confdefs.h"
5573 /* System header to define __stub macros and hopefully few prototypes,
5574 which can conflict with char $ac_func(); below. */
5576 /* Override any gcc2 internal prototype to avoid an error. */
5577 /* We use char because int might match the return type of a gcc2
5578 builtin and then its argument prototype would still apply. */
5583 /* The GNU C library defines this for functions which it implements
5584 to always fail with ENOSYS. Some functions are actually named
5585 something starting with __ and the normal name is an alias. */
5586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5594 if { (eval echo configure:5595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5596 eval "ac_cv_func_$ac_func=yes"
5598 echo "configure: failed program was:" >&5
5599 cat conftest.$ac_ext >&5
5601 eval "ac_cv_func_$ac_func=no"
5606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5607 echo "$ac_t""yes" 1>&6
5608 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5609 cat >> confdefs.h <<EOF
5610 #define $ac_tr_func 1
5614 echo "$ac_t""no" 1>&6
5618 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5621 echo "configure:5622: checking for $ac_func" >&5
5622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5623 echo $ac_n "(cached) $ac_c" 1>&6
5625 cat > conftest.$ac_ext <<EOF
5626 #line 5627 "configure"
5627 #include "confdefs.h"
5628 /* System header to define __stub macros and hopefully few prototypes,
5629 which can conflict with char $ac_func(); below. */
5631 /* Override any gcc2 internal prototype to avoid an error. */
5632 /* We use char because int might match the return type of a gcc2
5633 builtin and then its argument prototype would still apply. */
5638 /* The GNU C library defines this for functions which it implements
5639 to always fail with ENOSYS. Some functions are actually named
5640 something starting with __ and the normal name is an alias. */
5641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5649 if { (eval echo configure:5650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5651 eval "ac_cv_func_$ac_func=yes"
5653 echo "configure: failed program was:" >&5
5654 cat conftest.$ac_ext >&5
5656 eval "ac_cv_func_$ac_func=no"
5661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5662 echo "$ac_t""yes" 1>&6
5663 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5664 cat >> confdefs.h <<EOF
5665 #define $ac_tr_func 1
5669 echo "$ac_t""no" 1>&6
5673 for ac_func in syslog vsyslog
5675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5676 echo "configure:5677: checking for $ac_func" >&5
5677 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5678 echo $ac_n "(cached) $ac_c" 1>&6
5680 cat > conftest.$ac_ext <<EOF
5681 #line 5682 "configure"
5682 #include "confdefs.h"
5683 /* System header to define __stub macros and hopefully few prototypes,
5684 which can conflict with char $ac_func(); below. */
5686 /* Override any gcc2 internal prototype to avoid an error. */
5687 /* We use char because int might match the return type of a gcc2
5688 builtin and then its argument prototype would still apply. */
5693 /* The GNU C library defines this for functions which it implements
5694 to always fail with ENOSYS. Some functions are actually named
5695 something starting with __ and the normal name is an alias. */
5696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5704 if { (eval echo configure:5705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5706 eval "ac_cv_func_$ac_func=yes"
5708 echo "configure: failed program was:" >&5
5709 cat conftest.$ac_ext >&5
5711 eval "ac_cv_func_$ac_func=no"
5716 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5717 echo "$ac_t""yes" 1>&6
5718 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5719 cat >> confdefs.h <<EOF
5720 #define $ac_tr_func 1
5724 echo "$ac_t""no" 1>&6
5728 # setbuffer is needed for smbtorture
5729 for ac_func in setbuffer
5731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5732 echo "configure:5733: checking for $ac_func" >&5
5733 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5734 echo $ac_n "(cached) $ac_c" 1>&6
5736 cat > conftest.$ac_ext <<EOF
5737 #line 5738 "configure"
5738 #include "confdefs.h"
5739 /* System header to define __stub macros and hopefully few prototypes,
5740 which can conflict with char $ac_func(); below. */
5742 /* Override any gcc2 internal prototype to avoid an error. */
5743 /* We use char because int might match the return type of a gcc2
5744 builtin and then its argument prototype would still apply. */
5749 /* The GNU C library defines this for functions which it implements
5750 to always fail with ENOSYS. Some functions are actually named
5751 something starting with __ and the normal name is an alias. */
5752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5760 if { (eval echo configure:5761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5762 eval "ac_cv_func_$ac_func=yes"
5764 echo "configure: failed program was:" >&5
5765 cat conftest.$ac_ext >&5
5767 eval "ac_cv_func_$ac_func=no"
5772 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5773 echo "$ac_t""yes" 1>&6
5774 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5775 cat >> confdefs.h <<EOF
5776 #define $ac_tr_func 1
5780 echo "$ac_t""no" 1>&6
5785 # syscall() is needed for smbwrapper.
5786 for ac_func in syscall
5788 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5789 echo "configure:5790: checking for $ac_func" >&5
5790 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5791 echo $ac_n "(cached) $ac_c" 1>&6
5793 cat > conftest.$ac_ext <<EOF
5794 #line 5795 "configure"
5795 #include "confdefs.h"
5796 /* System header to define __stub macros and hopefully few prototypes,
5797 which can conflict with char $ac_func(); below. */
5799 /* Override any gcc2 internal prototype to avoid an error. */
5800 /* We use char because int might match the return type of a gcc2
5801 builtin and then its argument prototype would still apply. */
5806 /* The GNU C library defines this for functions which it implements
5807 to always fail with ENOSYS. Some functions are actually named
5808 something starting with __ and the normal name is an alias. */
5809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5817 if { (eval echo configure:5818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5819 eval "ac_cv_func_$ac_func=yes"
5821 echo "configure: failed program was:" >&5
5822 cat conftest.$ac_ext >&5
5824 eval "ac_cv_func_$ac_func=no"
5829 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5830 echo "$ac_t""yes" 1>&6
5831 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5832 cat >> confdefs.h <<EOF
5833 #define $ac_tr_func 1
5837 echo "$ac_t""no" 1>&6
5842 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5844 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5845 echo "configure:5846: checking for $ac_func" >&5
5846 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5847 echo $ac_n "(cached) $ac_c" 1>&6
5849 cat > conftest.$ac_ext <<EOF
5850 #line 5851 "configure"
5851 #include "confdefs.h"
5852 /* System header to define __stub macros and hopefully few prototypes,
5853 which can conflict with char $ac_func(); below. */
5855 /* Override any gcc2 internal prototype to avoid an error. */
5856 /* We use char because int might match the return type of a gcc2
5857 builtin and then its argument prototype would still apply. */
5862 /* The GNU C library defines this for functions which it implements
5863 to always fail with ENOSYS. Some functions are actually named
5864 something starting with __ and the normal name is an alias. */
5865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5873 if { (eval echo configure:5874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5875 eval "ac_cv_func_$ac_func=yes"
5877 echo "configure: failed program was:" >&5
5878 cat conftest.$ac_ext >&5
5880 eval "ac_cv_func_$ac_func=no"
5885 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5886 echo "$ac_t""yes" 1>&6
5887 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5888 cat >> confdefs.h <<EOF
5889 #define $ac_tr_func 1
5893 echo "$ac_t""no" 1>&6
5897 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5899 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5900 echo "configure:5901: checking for $ac_func" >&5
5901 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5902 echo $ac_n "(cached) $ac_c" 1>&6
5904 cat > conftest.$ac_ext <<EOF
5905 #line 5906 "configure"
5906 #include "confdefs.h"
5907 /* System header to define __stub macros and hopefully few prototypes,
5908 which can conflict with char $ac_func(); below. */
5910 /* Override any gcc2 internal prototype to avoid an error. */
5911 /* We use char because int might match the return type of a gcc2
5912 builtin and then its argument prototype would still apply. */
5917 /* The GNU C library defines this for functions which it implements
5918 to always fail with ENOSYS. Some functions are actually named
5919 something starting with __ and the normal name is an alias. */
5920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5928 if { (eval echo configure:5929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5930 eval "ac_cv_func_$ac_func=yes"
5932 echo "configure: failed program was:" >&5
5933 cat conftest.$ac_ext >&5
5935 eval "ac_cv_func_$ac_func=no"
5940 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5941 echo "$ac_t""yes" 1>&6
5942 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5943 cat >> confdefs.h <<EOF
5944 #define $ac_tr_func 1
5948 echo "$ac_t""no" 1>&6
5952 for ac_func in __getcwd _getcwd
5954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5955 echo "configure:5956: checking for $ac_func" >&5
5956 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5957 echo $ac_n "(cached) $ac_c" 1>&6
5959 cat > conftest.$ac_ext <<EOF
5960 #line 5961 "configure"
5961 #include "confdefs.h"
5962 /* System header to define __stub macros and hopefully few prototypes,
5963 which can conflict with char $ac_func(); below. */
5965 /* Override any gcc2 internal prototype to avoid an error. */
5966 /* We use char because int might match the return type of a gcc2
5967 builtin and then its argument prototype would still apply. */
5972 /* The GNU C library defines this for functions which it implements
5973 to always fail with ENOSYS. Some functions are actually named
5974 something starting with __ and the normal name is an alias. */
5975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5983 if { (eval echo configure:5984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5985 eval "ac_cv_func_$ac_func=yes"
5987 echo "configure: failed program was:" >&5
5988 cat conftest.$ac_ext >&5
5990 eval "ac_cv_func_$ac_func=no"
5995 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5996 echo "$ac_t""yes" 1>&6
5997 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5998 cat >> confdefs.h <<EOF
5999 #define $ac_tr_func 1
6003 echo "$ac_t""no" 1>&6
6007 for ac_func in __xstat __fxstat __lxstat
6009 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6010 echo "configure:6011: checking for $ac_func" >&5
6011 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6012 echo $ac_n "(cached) $ac_c" 1>&6
6014 cat > conftest.$ac_ext <<EOF
6015 #line 6016 "configure"
6016 #include "confdefs.h"
6017 /* System header to define __stub macros and hopefully few prototypes,
6018 which can conflict with char $ac_func(); below. */
6020 /* Override any gcc2 internal prototype to avoid an error. */
6021 /* We use char because int might match the return type of a gcc2
6022 builtin and then its argument prototype would still apply. */
6027 /* The GNU C library defines this for functions which it implements
6028 to always fail with ENOSYS. Some functions are actually named
6029 something starting with __ and the normal name is an alias. */
6030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6038 if { (eval echo configure:6039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6040 eval "ac_cv_func_$ac_func=yes"
6042 echo "configure: failed program was:" >&5
6043 cat conftest.$ac_ext >&5
6045 eval "ac_cv_func_$ac_func=no"
6050 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6051 echo "$ac_t""yes" 1>&6
6052 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6053 cat >> confdefs.h <<EOF
6054 #define $ac_tr_func 1
6058 echo "$ac_t""no" 1>&6
6062 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6064 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6065 echo "configure:6066: checking for $ac_func" >&5
6066 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6067 echo $ac_n "(cached) $ac_c" 1>&6
6069 cat > conftest.$ac_ext <<EOF
6070 #line 6071 "configure"
6071 #include "confdefs.h"
6072 /* System header to define __stub macros and hopefully few prototypes,
6073 which can conflict with char $ac_func(); below. */
6075 /* Override any gcc2 internal prototype to avoid an error. */
6076 /* We use char because int might match the return type of a gcc2
6077 builtin and then its argument prototype would still apply. */
6082 /* The GNU C library defines this for functions which it implements
6083 to always fail with ENOSYS. Some functions are actually named
6084 something starting with __ and the normal name is an alias. */
6085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6093 if { (eval echo configure:6094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6095 eval "ac_cv_func_$ac_func=yes"
6097 echo "configure: failed program was:" >&5
6098 cat conftest.$ac_ext >&5
6100 eval "ac_cv_func_$ac_func=no"
6105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6106 echo "$ac_t""yes" 1>&6
6107 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6108 cat >> confdefs.h <<EOF
6109 #define $ac_tr_func 1
6113 echo "$ac_t""no" 1>&6
6117 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6120 echo "configure:6121: checking for $ac_func" >&5
6121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6122 echo $ac_n "(cached) $ac_c" 1>&6
6124 cat > conftest.$ac_ext <<EOF
6125 #line 6126 "configure"
6126 #include "confdefs.h"
6127 /* System header to define __stub macros and hopefully few prototypes,
6128 which can conflict with char $ac_func(); below. */
6130 /* Override any gcc2 internal prototype to avoid an error. */
6131 /* We use char because int might match the return type of a gcc2
6132 builtin and then its argument prototype would still apply. */
6137 /* The GNU C library defines this for functions which it implements
6138 to always fail with ENOSYS. Some functions are actually named
6139 something starting with __ and the normal name is an alias. */
6140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6148 if { (eval echo configure:6149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6150 eval "ac_cv_func_$ac_func=yes"
6152 echo "configure: failed program was:" >&5
6153 cat conftest.$ac_ext >&5
6155 eval "ac_cv_func_$ac_func=no"
6160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6161 echo "$ac_t""yes" 1>&6
6162 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6163 cat >> confdefs.h <<EOF
6164 #define $ac_tr_func 1
6168 echo "$ac_t""no" 1>&6
6172 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6174 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6175 echo "configure:6176: checking for $ac_func" >&5
6176 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6177 echo $ac_n "(cached) $ac_c" 1>&6
6179 cat > conftest.$ac_ext <<EOF
6180 #line 6181 "configure"
6181 #include "confdefs.h"
6182 /* System header to define __stub macros and hopefully few prototypes,
6183 which can conflict with char $ac_func(); below. */
6185 /* Override any gcc2 internal prototype to avoid an error. */
6186 /* We use char because int might match the return type of a gcc2
6187 builtin and then its argument prototype would still apply. */
6192 /* The GNU C library defines this for functions which it implements
6193 to always fail with ENOSYS. Some functions are actually named
6194 something starting with __ and the normal name is an alias. */
6195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6203 if { (eval echo configure:6204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6205 eval "ac_cv_func_$ac_func=yes"
6207 echo "configure: failed program was:" >&5
6208 cat conftest.$ac_ext >&5
6210 eval "ac_cv_func_$ac_func=no"
6215 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6216 echo "$ac_t""yes" 1>&6
6217 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6218 cat >> confdefs.h <<EOF
6219 #define $ac_tr_func 1
6223 echo "$ac_t""no" 1>&6
6227 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6230 echo "configure:6231: checking for $ac_func" >&5
6231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6232 echo $ac_n "(cached) $ac_c" 1>&6
6234 cat > conftest.$ac_ext <<EOF
6235 #line 6236 "configure"
6236 #include "confdefs.h"
6237 /* System header to define __stub macros and hopefully few prototypes,
6238 which can conflict with char $ac_func(); below. */
6240 /* Override any gcc2 internal prototype to avoid an error. */
6241 /* We use char because int might match the return type of a gcc2
6242 builtin and then its argument prototype would still apply. */
6247 /* The GNU C library defines this for functions which it implements
6248 to always fail with ENOSYS. Some functions are actually named
6249 something starting with __ and the normal name is an alias. */
6250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6258 if { (eval echo configure:6259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6260 eval "ac_cv_func_$ac_func=yes"
6262 echo "configure: failed program was:" >&5
6263 cat conftest.$ac_ext >&5
6265 eval "ac_cv_func_$ac_func=no"
6270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6271 echo "$ac_t""yes" 1>&6
6272 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6273 cat >> confdefs.h <<EOF
6274 #define $ac_tr_func 1
6278 echo "$ac_t""no" 1>&6
6282 for ac_func in _write __write _fork __fork
6284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6285 echo "configure:6286: checking for $ac_func" >&5
6286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6287 echo $ac_n "(cached) $ac_c" 1>&6
6289 cat > conftest.$ac_ext <<EOF
6290 #line 6291 "configure"
6291 #include "confdefs.h"
6292 /* System header to define __stub macros and hopefully few prototypes,
6293 which can conflict with char $ac_func(); below. */
6295 /* Override any gcc2 internal prototype to avoid an error. */
6296 /* We use char because int might match the return type of a gcc2
6297 builtin and then its argument prototype would still apply. */
6302 /* The GNU C library defines this for functions which it implements
6303 to always fail with ENOSYS. Some functions are actually named
6304 something starting with __ and the normal name is an alias. */
6305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6313 if { (eval echo configure:6314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6315 eval "ac_cv_func_$ac_func=yes"
6317 echo "configure: failed program was:" >&5
6318 cat conftest.$ac_ext >&5
6320 eval "ac_cv_func_$ac_func=no"
6325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6326 echo "$ac_t""yes" 1>&6
6327 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6328 cat >> confdefs.h <<EOF
6329 #define $ac_tr_func 1
6333 echo "$ac_t""no" 1>&6
6337 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6339 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6340 echo "configure:6341: checking for $ac_func" >&5
6341 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6342 echo $ac_n "(cached) $ac_c" 1>&6
6344 cat > conftest.$ac_ext <<EOF
6345 #line 6346 "configure"
6346 #include "confdefs.h"
6347 /* System header to define __stub macros and hopefully few prototypes,
6348 which can conflict with char $ac_func(); below. */
6350 /* Override any gcc2 internal prototype to avoid an error. */
6351 /* We use char because int might match the return type of a gcc2
6352 builtin and then its argument prototype would still apply. */
6357 /* The GNU C library defines this for functions which it implements
6358 to always fail with ENOSYS. Some functions are actually named
6359 something starting with __ and the normal name is an alias. */
6360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6368 if { (eval echo configure:6369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6370 eval "ac_cv_func_$ac_func=yes"
6372 echo "configure: failed program was:" >&5
6373 cat conftest.$ac_ext >&5
6375 eval "ac_cv_func_$ac_func=no"
6380 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6381 echo "$ac_t""yes" 1>&6
6382 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6383 cat >> confdefs.h <<EOF
6384 #define $ac_tr_func 1
6388 echo "$ac_t""no" 1>&6
6392 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6395 echo "configure:6396: checking for $ac_func" >&5
6396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6397 echo $ac_n "(cached) $ac_c" 1>&6
6399 cat > conftest.$ac_ext <<EOF
6400 #line 6401 "configure"
6401 #include "confdefs.h"
6402 /* System header to define __stub macros and hopefully few prototypes,
6403 which can conflict with char $ac_func(); below. */
6405 /* Override any gcc2 internal prototype to avoid an error. */
6406 /* We use char because int might match the return type of a gcc2
6407 builtin and then its argument prototype would still apply. */
6412 /* The GNU C library defines this for functions which it implements
6413 to always fail with ENOSYS. Some functions are actually named
6414 something starting with __ and the normal name is an alias. */
6415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6423 if { (eval echo configure:6424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6425 eval "ac_cv_func_$ac_func=yes"
6427 echo "configure: failed program was:" >&5
6428 cat conftest.$ac_ext >&5
6430 eval "ac_cv_func_$ac_func=no"
6435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6436 echo "$ac_t""yes" 1>&6
6437 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6438 cat >> confdefs.h <<EOF
6439 #define $ac_tr_func 1
6443 echo "$ac_t""no" 1>&6
6447 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6449 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6450 echo "configure:6451: checking for $ac_func" >&5
6451 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6452 echo $ac_n "(cached) $ac_c" 1>&6
6454 cat > conftest.$ac_ext <<EOF
6455 #line 6456 "configure"
6456 #include "confdefs.h"
6457 /* System header to define __stub macros and hopefully few prototypes,
6458 which can conflict with char $ac_func(); below. */
6460 /* Override any gcc2 internal prototype to avoid an error. */
6461 /* We use char because int might match the return type of a gcc2
6462 builtin and then its argument prototype would still apply. */
6467 /* The GNU C library defines this for functions which it implements
6468 to always fail with ENOSYS. Some functions are actually named
6469 something starting with __ and the normal name is an alias. */
6470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6478 if { (eval echo configure:6479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6480 eval "ac_cv_func_$ac_func=yes"
6482 echo "configure: failed program was:" >&5
6483 cat conftest.$ac_ext >&5
6485 eval "ac_cv_func_$ac_func=no"
6490 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6491 echo "$ac_t""yes" 1>&6
6492 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6493 cat >> confdefs.h <<EOF
6494 #define $ac_tr_func 1
6498 echo "$ac_t""no" 1>&6
6502 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6505 echo "configure:6506: checking for $ac_func" >&5
6506 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6507 echo $ac_n "(cached) $ac_c" 1>&6
6509 cat > conftest.$ac_ext <<EOF
6510 #line 6511 "configure"
6511 #include "confdefs.h"
6512 /* System header to define __stub macros and hopefully few prototypes,
6513 which can conflict with char $ac_func(); below. */
6515 /* Override any gcc2 internal prototype to avoid an error. */
6516 /* We use char because int might match the return type of a gcc2
6517 builtin and then its argument prototype would still apply. */
6522 /* The GNU C library defines this for functions which it implements
6523 to always fail with ENOSYS. Some functions are actually named
6524 something starting with __ and the normal name is an alias. */
6525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6533 if { (eval echo configure:6534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6535 eval "ac_cv_func_$ac_func=yes"
6537 echo "configure: failed program was:" >&5
6538 cat conftest.$ac_ext >&5
6540 eval "ac_cv_func_$ac_func=no"
6545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6546 echo "$ac_t""yes" 1>&6
6547 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6548 cat >> confdefs.h <<EOF
6549 #define $ac_tr_func 1
6553 echo "$ac_t""no" 1>&6
6557 for ac_func in open64 _open64 __open64 creat64
6559 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6560 echo "configure:6561: checking for $ac_func" >&5
6561 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6562 echo $ac_n "(cached) $ac_c" 1>&6
6564 cat > conftest.$ac_ext <<EOF
6565 #line 6566 "configure"
6566 #include "confdefs.h"
6567 /* System header to define __stub macros and hopefully few prototypes,
6568 which can conflict with char $ac_func(); below. */
6570 /* Override any gcc2 internal prototype to avoid an error. */
6571 /* We use char because int might match the return type of a gcc2
6572 builtin and then its argument prototype would still apply. */
6577 /* The GNU C library defines this for functions which it implements
6578 to always fail with ENOSYS. Some functions are actually named
6579 something starting with __ and the normal name is an alias. */
6580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6588 if { (eval echo configure:6589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6590 eval "ac_cv_func_$ac_func=yes"
6592 echo "configure: failed program was:" >&5
6593 cat conftest.$ac_ext >&5
6595 eval "ac_cv_func_$ac_func=no"
6600 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6601 echo "$ac_t""yes" 1>&6
6602 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6603 cat >> confdefs.h <<EOF
6604 #define $ac_tr_func 1
6608 echo "$ac_t""no" 1>&6
6614 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6617 if test x$ac_cv_func_stat64 = xno ; then
6618 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6619 echo "configure:6620: checking for stat64 in <sys/stat.h>" >&5
6620 cat > conftest.$ac_ext <<EOF
6621 #line 6622 "configure"
6622 #include "confdefs.h"
6624 #if defined(HAVE_UNISTD_H)
6627 #include <sys/stat.h>
6630 struct stat64 st64; exit(stat64(".",&st64));
6633 if { (eval echo configure:6634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6635 ac_cv_func_stat64=yes
6637 echo "configure: failed program was:" >&5
6638 cat conftest.$ac_ext >&5
6641 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6642 if test x$ac_cv_func_stat64 = xyes ; then
6643 cat >> confdefs.h <<\EOF
6644 #define HAVE_STAT64 1
6650 if test x$ac_cv_func_lstat64 = xno ; then
6651 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6652 echo "configure:6653: checking for lstat64 in <sys/stat.h>" >&5
6653 cat > conftest.$ac_ext <<EOF
6654 #line 6655 "configure"
6655 #include "confdefs.h"
6657 #if defined(HAVE_UNISTD_H)
6660 #include <sys/stat.h>
6663 struct stat64 st64; exit(lstat64(".",&st64));
6666 if { (eval echo configure:6667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6668 ac_cv_func_lstat64=yes
6670 echo "configure: failed program was:" >&5
6671 cat conftest.$ac_ext >&5
6674 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6675 if test x$ac_cv_func_lstat64 = xyes ; then
6676 cat >> confdefs.h <<\EOF
6677 #define HAVE_LSTAT64 1
6683 if test x$ac_cv_func_fstat64 = xno ; then
6684 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6685 echo "configure:6686: checking for fstat64 in <sys/stat.h>" >&5
6686 cat > conftest.$ac_ext <<EOF
6687 #line 6688 "configure"
6688 #include "confdefs.h"
6690 #if defined(HAVE_UNISTD_H)
6693 #include <sys/stat.h>
6696 struct stat64 st64; exit(fstat64(0,&st64));
6699 if { (eval echo configure:6700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6701 ac_cv_func_fstat64=yes
6703 echo "configure: failed program was:" >&5
6704 cat conftest.$ac_ext >&5
6707 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6708 if test x$ac_cv_func_fstat64 = xyes ; then
6709 cat >> confdefs.h <<\EOF
6710 #define HAVE_FSTAT64 1
6716 #####################################
6717 # we might need the resolv library on some systems
6718 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
6719 echo "configure:6720: checking for dn_expand in -lresolv" >&5
6720 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
6721 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6722 echo $ac_n "(cached) $ac_c" 1>&6
6724 ac_save_LIBS="$LIBS"
6725 LIBS="-lresolv $LIBS"
6726 cat > conftest.$ac_ext <<EOF
6727 #line 6728 "configure"
6728 #include "confdefs.h"
6729 /* Override any gcc2 internal prototype to avoid an error. */
6730 /* We use char because int might match the return type of a gcc2
6731 builtin and then its argument prototype would still apply. */
6738 if { (eval echo configure:6739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6740 eval "ac_cv_lib_$ac_lib_var=yes"
6742 echo "configure: failed program was:" >&5
6743 cat conftest.$ac_ext >&5
6745 eval "ac_cv_lib_$ac_lib_var=no"
6748 LIBS="$ac_save_LIBS"
6751 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6752 echo "$ac_t""yes" 1>&6
6753 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6754 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6755 cat >> confdefs.h <<EOF
6756 #define $ac_tr_lib 1
6759 LIBS="-lresolv $LIBS"
6762 echo "$ac_t""no" 1>&6
6767 # Check for the functions putprpwnam, set_auth_parameters,
6768 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6769 # Needed for OSF1 and HPUX.
6773 *-lsecurity*) for ac_func in putprpwnam
6775 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6776 echo "configure:6777: checking for $ac_func" >&5
6777 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6778 echo $ac_n "(cached) $ac_c" 1>&6
6780 cat > conftest.$ac_ext <<EOF
6781 #line 6782 "configure"
6782 #include "confdefs.h"
6783 /* System header to define __stub macros and hopefully few prototypes,
6784 which can conflict with char $ac_func(); below. */
6786 /* Override any gcc2 internal prototype to avoid an error. */
6787 /* We use char because int might match the return type of a gcc2
6788 builtin and then its argument prototype would still apply. */
6793 /* The GNU C library defines this for functions which it implements
6794 to always fail with ENOSYS. Some functions are actually named
6795 something starting with __ and the normal name is an alias. */
6796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6804 if { (eval echo configure:6805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6806 eval "ac_cv_func_$ac_func=yes"
6808 echo "configure: failed program was:" >&5
6809 cat conftest.$ac_ext >&5
6811 eval "ac_cv_func_$ac_func=no"
6816 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6817 echo "$ac_t""yes" 1>&6
6818 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6819 cat >> confdefs.h <<EOF
6820 #define $ac_tr_func 1
6824 echo "$ac_t""no" 1>&6
6828 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6829 echo "configure:6830: checking for putprpwnam in -lsecurity" >&5
6830 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6832 echo $ac_n "(cached) $ac_c" 1>&6
6834 ac_save_LIBS="$LIBS"
6835 LIBS="-lsecurity $LIBS"
6836 cat > conftest.$ac_ext <<EOF
6837 #line 6838 "configure"
6838 #include "confdefs.h"
6839 /* Override any gcc2 internal prototype to avoid an error. */
6840 /* We use char because int might match the return type of a gcc2
6841 builtin and then its argument prototype would still apply. */
6848 if { (eval echo configure:6849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6850 eval "ac_cv_lib_$ac_lib_var=yes"
6852 echo "configure: failed program was:" >&5
6853 cat conftest.$ac_ext >&5
6855 eval "ac_cv_lib_$ac_lib_var=no"
6858 LIBS="$ac_save_LIBS"
6861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6862 echo "$ac_t""yes" 1>&6
6863 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6864 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6865 cat >> confdefs.h <<EOF
6866 #define $ac_tr_lib 1
6869 LIBS="-lsecurity $LIBS"
6872 echo "$ac_t""no" 1>&6
6875 for ac_func in putprpwnam
6877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6878 echo "configure:6879: checking for $ac_func" >&5
6879 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6880 echo $ac_n "(cached) $ac_c" 1>&6
6882 cat > conftest.$ac_ext <<EOF
6883 #line 6884 "configure"
6884 #include "confdefs.h"
6885 /* System header to define __stub macros and hopefully few prototypes,
6886 which can conflict with char $ac_func(); below. */
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. */
6895 /* The GNU C library defines this for functions which it implements
6896 to always fail with ENOSYS. Some functions are actually named
6897 something starting with __ and the normal name is an alias. */
6898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6906 if { (eval echo configure:6907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6908 eval "ac_cv_func_$ac_func=yes"
6910 echo "configure: failed program was:" >&5
6911 cat conftest.$ac_ext >&5
6913 eval "ac_cv_func_$ac_func=no"
6918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6919 echo "$ac_t""yes" 1>&6
6920 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6921 cat >> confdefs.h <<EOF
6922 #define $ac_tr_func 1
6926 echo "$ac_t""no" 1>&6
6934 *-lsec*) for ac_func in putprpwnam
6936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6937 echo "configure:6938: checking for $ac_func" >&5
6938 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6939 echo $ac_n "(cached) $ac_c" 1>&6
6941 cat > conftest.$ac_ext <<EOF
6942 #line 6943 "configure"
6943 #include "confdefs.h"
6944 /* System header to define __stub macros and hopefully few prototypes,
6945 which can conflict with char $ac_func(); below. */
6947 /* Override any gcc2 internal prototype to avoid an error. */
6948 /* We use char because int might match the return type of a gcc2
6949 builtin and then its argument prototype would still apply. */
6954 /* The GNU C library defines this for functions which it implements
6955 to always fail with ENOSYS. Some functions are actually named
6956 something starting with __ and the normal name is an alias. */
6957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6965 if { (eval echo configure:6966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6967 eval "ac_cv_func_$ac_func=yes"
6969 echo "configure: failed program was:" >&5
6970 cat conftest.$ac_ext >&5
6972 eval "ac_cv_func_$ac_func=no"
6977 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6978 echo "$ac_t""yes" 1>&6
6979 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6980 cat >> confdefs.h <<EOF
6981 #define $ac_tr_func 1
6985 echo "$ac_t""no" 1>&6
6989 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6990 echo "configure:6991: checking for putprpwnam in -lsec" >&5
6991 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6992 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6993 echo $ac_n "(cached) $ac_c" 1>&6
6995 ac_save_LIBS="$LIBS"
6997 cat > conftest.$ac_ext <<EOF
6998 #line 6999 "configure"
6999 #include "confdefs.h"
7000 /* Override any gcc2 internal prototype to avoid an error. */
7001 /* We use char because int might match the return type of a gcc2
7002 builtin and then its argument prototype would still apply. */
7009 if { (eval echo configure:7010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7011 eval "ac_cv_lib_$ac_lib_var=yes"
7013 echo "configure: failed program was:" >&5
7014 cat conftest.$ac_ext >&5
7016 eval "ac_cv_lib_$ac_lib_var=no"
7019 LIBS="$ac_save_LIBS"
7022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7023 echo "$ac_t""yes" 1>&6
7024 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7025 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7026 cat >> confdefs.h <<EOF
7027 #define $ac_tr_lib 1
7033 echo "$ac_t""no" 1>&6
7036 for ac_func in putprpwnam
7038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7039 echo "configure:7040: checking for $ac_func" >&5
7040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7041 echo $ac_n "(cached) $ac_c" 1>&6
7043 cat > conftest.$ac_ext <<EOF
7044 #line 7045 "configure"
7045 #include "confdefs.h"
7046 /* System header to define __stub macros and hopefully few prototypes,
7047 which can conflict with char $ac_func(); below. */
7049 /* Override any gcc2 internal prototype to avoid an error. */
7050 /* We use char because int might match the return type of a gcc2
7051 builtin and then its argument prototype would still apply. */
7056 /* The GNU C library defines this for functions which it implements
7057 to always fail with ENOSYS. Some functions are actually named
7058 something starting with __ and the normal name is an alias. */
7059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7067 if { (eval echo configure:7068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7069 eval "ac_cv_func_$ac_func=yes"
7071 echo "configure: failed program was:" >&5
7072 cat conftest.$ac_ext >&5
7074 eval "ac_cv_func_$ac_func=no"
7079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7080 echo "$ac_t""yes" 1>&6
7081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7082 cat >> confdefs.h <<EOF
7083 #define $ac_tr_func 1
7087 echo "$ac_t""no" 1>&6
7096 *-lsecurity*) for ac_func in set_auth_parameters
7098 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7099 echo "configure:7100: checking for $ac_func" >&5
7100 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7101 echo $ac_n "(cached) $ac_c" 1>&6
7103 cat > conftest.$ac_ext <<EOF
7104 #line 7105 "configure"
7105 #include "confdefs.h"
7106 /* System header to define __stub macros and hopefully few prototypes,
7107 which can conflict with char $ac_func(); below. */
7109 /* Override any gcc2 internal prototype to avoid an error. */
7110 /* We use char because int might match the return type of a gcc2
7111 builtin and then its argument prototype would still apply. */
7116 /* The GNU C library defines this for functions which it implements
7117 to always fail with ENOSYS. Some functions are actually named
7118 something starting with __ and the normal name is an alias. */
7119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7127 if { (eval echo configure:7128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7129 eval "ac_cv_func_$ac_func=yes"
7131 echo "configure: failed program was:" >&5
7132 cat conftest.$ac_ext >&5
7134 eval "ac_cv_func_$ac_func=no"
7139 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7140 echo "$ac_t""yes" 1>&6
7141 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7142 cat >> confdefs.h <<EOF
7143 #define $ac_tr_func 1
7147 echo "$ac_t""no" 1>&6
7151 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7152 echo "configure:7153: checking for set_auth_parameters in -lsecurity" >&5
7153 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7154 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7155 echo $ac_n "(cached) $ac_c" 1>&6
7157 ac_save_LIBS="$LIBS"
7158 LIBS="-lsecurity $LIBS"
7159 cat > conftest.$ac_ext <<EOF
7160 #line 7161 "configure"
7161 #include "confdefs.h"
7162 /* Override any gcc2 internal prototype to avoid an error. */
7163 /* We use char because int might match the return type of a gcc2
7164 builtin and then its argument prototype would still apply. */
7165 char set_auth_parameters();
7168 set_auth_parameters()
7171 if { (eval echo configure:7172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7173 eval "ac_cv_lib_$ac_lib_var=yes"
7175 echo "configure: failed program was:" >&5
7176 cat conftest.$ac_ext >&5
7178 eval "ac_cv_lib_$ac_lib_var=no"
7181 LIBS="$ac_save_LIBS"
7184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7185 echo "$ac_t""yes" 1>&6
7186 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7187 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7188 cat >> confdefs.h <<EOF
7189 #define $ac_tr_lib 1
7192 LIBS="-lsecurity $LIBS"
7195 echo "$ac_t""no" 1>&6
7198 for ac_func in set_auth_parameters
7200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7201 echo "configure:7202: checking for $ac_func" >&5
7202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7203 echo $ac_n "(cached) $ac_c" 1>&6
7205 cat > conftest.$ac_ext <<EOF
7206 #line 7207 "configure"
7207 #include "confdefs.h"
7208 /* System header to define __stub macros and hopefully few prototypes,
7209 which can conflict with char $ac_func(); below. */
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. */
7218 /* The GNU C library defines this for functions which it implements
7219 to always fail with ENOSYS. Some functions are actually named
7220 something starting with __ and the normal name is an alias. */
7221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7229 if { (eval echo configure:7230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7231 eval "ac_cv_func_$ac_func=yes"
7233 echo "configure: failed program was:" >&5
7234 cat conftest.$ac_ext >&5
7236 eval "ac_cv_func_$ac_func=no"
7241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7242 echo "$ac_t""yes" 1>&6
7243 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7244 cat >> confdefs.h <<EOF
7245 #define $ac_tr_func 1
7249 echo "$ac_t""no" 1>&6
7257 *-lsec*) for ac_func in set_auth_parameters
7259 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7260 echo "configure:7261: checking for $ac_func" >&5
7261 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7262 echo $ac_n "(cached) $ac_c" 1>&6
7264 cat > conftest.$ac_ext <<EOF
7265 #line 7266 "configure"
7266 #include "confdefs.h"
7267 /* System header to define __stub macros and hopefully few prototypes,
7268 which can conflict with char $ac_func(); below. */
7270 /* Override any gcc2 internal prototype to avoid an error. */
7271 /* We use char because int might match the return type of a gcc2
7272 builtin and then its argument prototype would still apply. */
7277 /* The GNU C library defines this for functions which it implements
7278 to always fail with ENOSYS. Some functions are actually named
7279 something starting with __ and the normal name is an alias. */
7280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7288 if { (eval echo configure:7289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7290 eval "ac_cv_func_$ac_func=yes"
7292 echo "configure: failed program was:" >&5
7293 cat conftest.$ac_ext >&5
7295 eval "ac_cv_func_$ac_func=no"
7300 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7301 echo "$ac_t""yes" 1>&6
7302 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7303 cat >> confdefs.h <<EOF
7304 #define $ac_tr_func 1
7308 echo "$ac_t""no" 1>&6
7312 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7313 echo "configure:7314: checking for set_auth_parameters in -lsec" >&5
7314 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7315 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7316 echo $ac_n "(cached) $ac_c" 1>&6
7318 ac_save_LIBS="$LIBS"
7320 cat > conftest.$ac_ext <<EOF
7321 #line 7322 "configure"
7322 #include "confdefs.h"
7323 /* Override any gcc2 internal prototype to avoid an error. */
7324 /* We use char because int might match the return type of a gcc2
7325 builtin and then its argument prototype would still apply. */
7326 char set_auth_parameters();
7329 set_auth_parameters()
7332 if { (eval echo configure:7333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7334 eval "ac_cv_lib_$ac_lib_var=yes"
7336 echo "configure: failed program was:" >&5
7337 cat conftest.$ac_ext >&5
7339 eval "ac_cv_lib_$ac_lib_var=no"
7342 LIBS="$ac_save_LIBS"
7345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7346 echo "$ac_t""yes" 1>&6
7347 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7348 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7349 cat >> confdefs.h <<EOF
7350 #define $ac_tr_lib 1
7356 echo "$ac_t""no" 1>&6
7359 for ac_func in set_auth_parameters
7361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7362 echo "configure:7363: checking for $ac_func" >&5
7363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7364 echo $ac_n "(cached) $ac_c" 1>&6
7366 cat > conftest.$ac_ext <<EOF
7367 #line 7368 "configure"
7368 #include "confdefs.h"
7369 /* System header to define __stub macros and hopefully few prototypes,
7370 which can conflict with char $ac_func(); below. */
7372 /* Override any gcc2 internal prototype to avoid an error. */
7373 /* We use char because int might match the return type of a gcc2
7374 builtin and then its argument prototype would still apply. */
7379 /* The GNU C library defines this for functions which it implements
7380 to always fail with ENOSYS. Some functions are actually named
7381 something starting with __ and the normal name is an alias. */
7382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7390 if { (eval echo configure:7391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7392 eval "ac_cv_func_$ac_func=yes"
7394 echo "configure: failed program was:" >&5
7395 cat conftest.$ac_ext >&5
7397 eval "ac_cv_func_$ac_func=no"
7402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7403 echo "$ac_t""yes" 1>&6
7404 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7405 cat >> confdefs.h <<EOF
7406 #define $ac_tr_func 1
7410 echo "$ac_t""no" 1>&6
7418 # UnixWare 7.x has its getspnam in -lgen
7420 *-lgen*) for ac_func in getspnam
7422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7423 echo "configure:7424: checking for $ac_func" >&5
7424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7425 echo $ac_n "(cached) $ac_c" 1>&6
7427 cat > conftest.$ac_ext <<EOF
7428 #line 7429 "configure"
7429 #include "confdefs.h"
7430 /* System header to define __stub macros and hopefully few prototypes,
7431 which can conflict with char $ac_func(); below. */
7433 /* Override any gcc2 internal prototype to avoid an error. */
7434 /* We use char because int might match the return type of a gcc2
7435 builtin and then its argument prototype would still apply. */
7440 /* The GNU C library defines this for functions which it implements
7441 to always fail with ENOSYS. Some functions are actually named
7442 something starting with __ and the normal name is an alias. */
7443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7451 if { (eval echo configure:7452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7453 eval "ac_cv_func_$ac_func=yes"
7455 echo "configure: failed program was:" >&5
7456 cat conftest.$ac_ext >&5
7458 eval "ac_cv_func_$ac_func=no"
7463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7464 echo "$ac_t""yes" 1>&6
7465 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7466 cat >> confdefs.h <<EOF
7467 #define $ac_tr_func 1
7471 echo "$ac_t""no" 1>&6
7475 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7476 echo "configure:7477: checking for getspnam in -lgen" >&5
7477 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7478 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7479 echo $ac_n "(cached) $ac_c" 1>&6
7481 ac_save_LIBS="$LIBS"
7483 cat > conftest.$ac_ext <<EOF
7484 #line 7485 "configure"
7485 #include "confdefs.h"
7486 /* Override any gcc2 internal prototype to avoid an error. */
7487 /* We use char because int might match the return type of a gcc2
7488 builtin and then its argument prototype would still apply. */
7495 if { (eval echo configure:7496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7497 eval "ac_cv_lib_$ac_lib_var=yes"
7499 echo "configure: failed program was:" >&5
7500 cat conftest.$ac_ext >&5
7502 eval "ac_cv_lib_$ac_lib_var=no"
7505 LIBS="$ac_save_LIBS"
7508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7509 echo "$ac_t""yes" 1>&6
7510 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7511 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7512 cat >> confdefs.h <<EOF
7513 #define $ac_tr_lib 1
7519 echo "$ac_t""no" 1>&6
7522 for ac_func in getspnam
7524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7525 echo "configure:7526: checking for $ac_func" >&5
7526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7527 echo $ac_n "(cached) $ac_c" 1>&6
7529 cat > conftest.$ac_ext <<EOF
7530 #line 7531 "configure"
7531 #include "confdefs.h"
7532 /* System header to define __stub macros and hopefully few prototypes,
7533 which can conflict with char $ac_func(); below. */
7535 /* Override any gcc2 internal prototype to avoid an error. */
7536 /* We use char because int might match the return type of a gcc2
7537 builtin and then its argument prototype would still apply. */
7542 /* The GNU C library defines this for functions which it implements
7543 to always fail with ENOSYS. Some functions are actually named
7544 something starting with __ and the normal name is an alias. */
7545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7553 if { (eval echo configure:7554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7555 eval "ac_cv_func_$ac_func=yes"
7557 echo "configure: failed program was:" >&5
7558 cat conftest.$ac_ext >&5
7560 eval "ac_cv_func_$ac_func=no"
7565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7566 echo "$ac_t""yes" 1>&6
7567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7568 cat >> confdefs.h <<EOF
7569 #define $ac_tr_func 1
7573 echo "$ac_t""no" 1>&6
7582 *-lsecurity*) for ac_func in getspnam
7584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7585 echo "configure:7586: checking for $ac_func" >&5
7586 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7587 echo $ac_n "(cached) $ac_c" 1>&6
7589 cat > conftest.$ac_ext <<EOF
7590 #line 7591 "configure"
7591 #include "confdefs.h"
7592 /* System header to define __stub macros and hopefully few prototypes,
7593 which can conflict with char $ac_func(); below. */
7595 /* Override any gcc2 internal prototype to avoid an error. */
7596 /* We use char because int might match the return type of a gcc2
7597 builtin and then its argument prototype would still apply. */
7602 /* The GNU C library defines this for functions which it implements
7603 to always fail with ENOSYS. Some functions are actually named
7604 something starting with __ and the normal name is an alias. */
7605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7613 if { (eval echo configure:7614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7615 eval "ac_cv_func_$ac_func=yes"
7617 echo "configure: failed program was:" >&5
7618 cat conftest.$ac_ext >&5
7620 eval "ac_cv_func_$ac_func=no"
7625 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7626 echo "$ac_t""yes" 1>&6
7627 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7628 cat >> confdefs.h <<EOF
7629 #define $ac_tr_func 1
7633 echo "$ac_t""no" 1>&6
7637 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7638 echo "configure:7639: checking for getspnam in -lsecurity" >&5
7639 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7640 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7641 echo $ac_n "(cached) $ac_c" 1>&6
7643 ac_save_LIBS="$LIBS"
7644 LIBS="-lsecurity $LIBS"
7645 cat > conftest.$ac_ext <<EOF
7646 #line 7647 "configure"
7647 #include "confdefs.h"
7648 /* Override any gcc2 internal prototype to avoid an error. */
7649 /* We use char because int might match the return type of a gcc2
7650 builtin and then its argument prototype would still apply. */
7657 if { (eval echo configure:7658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7659 eval "ac_cv_lib_$ac_lib_var=yes"
7661 echo "configure: failed program was:" >&5
7662 cat conftest.$ac_ext >&5
7664 eval "ac_cv_lib_$ac_lib_var=no"
7667 LIBS="$ac_save_LIBS"
7670 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7671 echo "$ac_t""yes" 1>&6
7672 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7673 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7674 cat >> confdefs.h <<EOF
7675 #define $ac_tr_lib 1
7678 LIBS="-lsecurity $LIBS"
7681 echo "$ac_t""no" 1>&6
7684 for ac_func in getspnam
7686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7687 echo "configure:7688: checking for $ac_func" >&5
7688 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7689 echo $ac_n "(cached) $ac_c" 1>&6
7691 cat > conftest.$ac_ext <<EOF
7692 #line 7693 "configure"
7693 #include "confdefs.h"
7694 /* System header to define __stub macros and hopefully few prototypes,
7695 which can conflict with char $ac_func(); below. */
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. */
7704 /* The GNU C library defines this for functions which it implements
7705 to always fail with ENOSYS. Some functions are actually named
7706 something starting with __ and the normal name is an alias. */
7707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7715 if { (eval echo configure:7716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7717 eval "ac_cv_func_$ac_func=yes"
7719 echo "configure: failed program was:" >&5
7720 cat conftest.$ac_ext >&5
7722 eval "ac_cv_func_$ac_func=no"
7727 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7728 echo "$ac_t""yes" 1>&6
7729 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7730 cat >> confdefs.h <<EOF
7731 #define $ac_tr_func 1
7735 echo "$ac_t""no" 1>&6
7743 *-lsec*) for ac_func in getspnam
7745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7746 echo "configure:7747: checking for $ac_func" >&5
7747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7748 echo $ac_n "(cached) $ac_c" 1>&6
7750 cat > conftest.$ac_ext <<EOF
7751 #line 7752 "configure"
7752 #include "confdefs.h"
7753 /* System header to define __stub macros and hopefully few prototypes,
7754 which can conflict with char $ac_func(); below. */
7756 /* Override any gcc2 internal prototype to avoid an error. */
7757 /* We use char because int might match the return type of a gcc2
7758 builtin and then its argument prototype would still apply. */
7763 /* The GNU C library defines this for functions which it implements
7764 to always fail with ENOSYS. Some functions are actually named
7765 something starting with __ and the normal name is an alias. */
7766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7774 if { (eval echo configure:7775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7776 eval "ac_cv_func_$ac_func=yes"
7778 echo "configure: failed program was:" >&5
7779 cat conftest.$ac_ext >&5
7781 eval "ac_cv_func_$ac_func=no"
7786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7787 echo "$ac_t""yes" 1>&6
7788 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7789 cat >> confdefs.h <<EOF
7790 #define $ac_tr_func 1
7794 echo "$ac_t""no" 1>&6
7798 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7799 echo "configure:7800: checking for getspnam in -lsec" >&5
7800 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7801 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7802 echo $ac_n "(cached) $ac_c" 1>&6
7804 ac_save_LIBS="$LIBS"
7806 cat > conftest.$ac_ext <<EOF
7807 #line 7808 "configure"
7808 #include "confdefs.h"
7809 /* Override any gcc2 internal prototype to avoid an error. */
7810 /* We use char because int might match the return type of a gcc2
7811 builtin and then its argument prototype would still apply. */
7818 if { (eval echo configure:7819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7820 eval "ac_cv_lib_$ac_lib_var=yes"
7822 echo "configure: failed program was:" >&5
7823 cat conftest.$ac_ext >&5
7825 eval "ac_cv_lib_$ac_lib_var=no"
7828 LIBS="$ac_save_LIBS"
7831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7832 echo "$ac_t""yes" 1>&6
7833 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7834 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7835 cat >> confdefs.h <<EOF
7836 #define $ac_tr_lib 1
7842 echo "$ac_t""no" 1>&6
7845 for ac_func in getspnam
7847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7848 echo "configure:7849: checking for $ac_func" >&5
7849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7850 echo $ac_n "(cached) $ac_c" 1>&6
7852 cat > conftest.$ac_ext <<EOF
7853 #line 7854 "configure"
7854 #include "confdefs.h"
7855 /* System header to define __stub macros and hopefully few prototypes,
7856 which can conflict with char $ac_func(); below. */
7858 /* Override any gcc2 internal prototype to avoid an error. */
7859 /* We use char because int might match the return type of a gcc2
7860 builtin and then its argument prototype would still apply. */
7865 /* The GNU C library defines this for functions which it implements
7866 to always fail with ENOSYS. Some functions are actually named
7867 something starting with __ and the normal name is an alias. */
7868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7876 if { (eval echo configure:7877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7878 eval "ac_cv_func_$ac_func=yes"
7880 echo "configure: failed program was:" >&5
7881 cat conftest.$ac_ext >&5
7883 eval "ac_cv_func_$ac_func=no"
7888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7889 echo "$ac_t""yes" 1>&6
7890 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7891 cat >> confdefs.h <<EOF
7892 #define $ac_tr_func 1
7896 echo "$ac_t""no" 1>&6
7905 *-lsecurity*) for ac_func in bigcrypt
7907 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7908 echo "configure:7909: checking for $ac_func" >&5
7909 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7910 echo $ac_n "(cached) $ac_c" 1>&6
7912 cat > conftest.$ac_ext <<EOF
7913 #line 7914 "configure"
7914 #include "confdefs.h"
7915 /* System header to define __stub macros and hopefully few prototypes,
7916 which can conflict with char $ac_func(); below. */
7918 /* Override any gcc2 internal prototype to avoid an error. */
7919 /* We use char because int might match the return type of a gcc2
7920 builtin and then its argument prototype would still apply. */
7925 /* The GNU C library defines this for functions which it implements
7926 to always fail with ENOSYS. Some functions are actually named
7927 something starting with __ and the normal name is an alias. */
7928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7936 if { (eval echo configure:7937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7938 eval "ac_cv_func_$ac_func=yes"
7940 echo "configure: failed program was:" >&5
7941 cat conftest.$ac_ext >&5
7943 eval "ac_cv_func_$ac_func=no"
7948 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7949 echo "$ac_t""yes" 1>&6
7950 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7951 cat >> confdefs.h <<EOF
7952 #define $ac_tr_func 1
7956 echo "$ac_t""no" 1>&6
7960 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7961 echo "configure:7962: checking for bigcrypt in -lsecurity" >&5
7962 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7963 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7964 echo $ac_n "(cached) $ac_c" 1>&6
7966 ac_save_LIBS="$LIBS"
7967 LIBS="-lsecurity $LIBS"
7968 cat > conftest.$ac_ext <<EOF
7969 #line 7970 "configure"
7970 #include "confdefs.h"
7971 /* Override any gcc2 internal prototype to avoid an error. */
7972 /* We use char because int might match the return type of a gcc2
7973 builtin and then its argument prototype would still apply. */
7980 if { (eval echo configure:7981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7982 eval "ac_cv_lib_$ac_lib_var=yes"
7984 echo "configure: failed program was:" >&5
7985 cat conftest.$ac_ext >&5
7987 eval "ac_cv_lib_$ac_lib_var=no"
7990 LIBS="$ac_save_LIBS"
7993 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7994 echo "$ac_t""yes" 1>&6
7995 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7996 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7997 cat >> confdefs.h <<EOF
7998 #define $ac_tr_lib 1
8001 LIBS="-lsecurity $LIBS"
8004 echo "$ac_t""no" 1>&6
8007 for ac_func in bigcrypt
8009 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8010 echo "configure:8011: checking for $ac_func" >&5
8011 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8012 echo $ac_n "(cached) $ac_c" 1>&6
8014 cat > conftest.$ac_ext <<EOF
8015 #line 8016 "configure"
8016 #include "confdefs.h"
8017 /* System header to define __stub macros and hopefully few prototypes,
8018 which can conflict with char $ac_func(); below. */
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. */
8027 /* The GNU C library defines this for functions which it implements
8028 to always fail with ENOSYS. Some functions are actually named
8029 something starting with __ and the normal name is an alias. */
8030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8038 if { (eval echo configure:8039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8040 eval "ac_cv_func_$ac_func=yes"
8042 echo "configure: failed program was:" >&5
8043 cat conftest.$ac_ext >&5
8045 eval "ac_cv_func_$ac_func=no"
8050 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8051 echo "$ac_t""yes" 1>&6
8052 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8053 cat >> confdefs.h <<EOF
8054 #define $ac_tr_func 1
8058 echo "$ac_t""no" 1>&6
8066 *-lsec*) for ac_func in bigcrypt
8068 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8069 echo "configure:8070: checking for $ac_func" >&5
8070 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8071 echo $ac_n "(cached) $ac_c" 1>&6
8073 cat > conftest.$ac_ext <<EOF
8074 #line 8075 "configure"
8075 #include "confdefs.h"
8076 /* System header to define __stub macros and hopefully few prototypes,
8077 which can conflict with char $ac_func(); below. */
8079 /* Override any gcc2 internal prototype to avoid an error. */
8080 /* We use char because int might match the return type of a gcc2
8081 builtin and then its argument prototype would still apply. */
8086 /* The GNU C library defines this for functions which it implements
8087 to always fail with ENOSYS. Some functions are actually named
8088 something starting with __ and the normal name is an alias. */
8089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8097 if { (eval echo configure:8098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8099 eval "ac_cv_func_$ac_func=yes"
8101 echo "configure: failed program was:" >&5
8102 cat conftest.$ac_ext >&5
8104 eval "ac_cv_func_$ac_func=no"
8109 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8110 echo "$ac_t""yes" 1>&6
8111 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8112 cat >> confdefs.h <<EOF
8113 #define $ac_tr_func 1
8117 echo "$ac_t""no" 1>&6
8121 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8122 echo "configure:8123: checking for bigcrypt in -lsec" >&5
8123 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8124 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8125 echo $ac_n "(cached) $ac_c" 1>&6
8127 ac_save_LIBS="$LIBS"
8129 cat > conftest.$ac_ext <<EOF
8130 #line 8131 "configure"
8131 #include "confdefs.h"
8132 /* Override any gcc2 internal prototype to avoid an error. */
8133 /* We use char because int might match the return type of a gcc2
8134 builtin and then its argument prototype would still apply. */
8141 if { (eval echo configure:8142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8143 eval "ac_cv_lib_$ac_lib_var=yes"
8145 echo "configure: failed program was:" >&5
8146 cat conftest.$ac_ext >&5
8148 eval "ac_cv_lib_$ac_lib_var=no"
8151 LIBS="$ac_save_LIBS"
8154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8155 echo "$ac_t""yes" 1>&6
8156 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8157 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8158 cat >> confdefs.h <<EOF
8159 #define $ac_tr_lib 1
8165 echo "$ac_t""no" 1>&6
8168 for ac_func in bigcrypt
8170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8171 echo "configure:8172: checking for $ac_func" >&5
8172 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8173 echo $ac_n "(cached) $ac_c" 1>&6
8175 cat > conftest.$ac_ext <<EOF
8176 #line 8177 "configure"
8177 #include "confdefs.h"
8178 /* System header to define __stub macros and hopefully few prototypes,
8179 which can conflict with char $ac_func(); below. */
8181 /* Override any gcc2 internal prototype to avoid an error. */
8182 /* We use char because int might match the return type of a gcc2
8183 builtin and then its argument prototype would still apply. */
8188 /* The GNU C library defines this for functions which it implements
8189 to always fail with ENOSYS. Some functions are actually named
8190 something starting with __ and the normal name is an alias. */
8191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8199 if { (eval echo configure:8200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8201 eval "ac_cv_func_$ac_func=yes"
8203 echo "configure: failed program was:" >&5
8204 cat conftest.$ac_ext >&5
8206 eval "ac_cv_func_$ac_func=no"
8211 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8212 echo "$ac_t""yes" 1>&6
8213 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8214 cat >> confdefs.h <<EOF
8215 #define $ac_tr_func 1
8219 echo "$ac_t""no" 1>&6
8228 *-lsecurity*) for ac_func in getprpwnam
8230 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8231 echo "configure:8232: checking for $ac_func" >&5
8232 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8233 echo $ac_n "(cached) $ac_c" 1>&6
8235 cat > conftest.$ac_ext <<EOF
8236 #line 8237 "configure"
8237 #include "confdefs.h"
8238 /* System header to define __stub macros and hopefully few prototypes,
8239 which can conflict with char $ac_func(); below. */
8241 /* Override any gcc2 internal prototype to avoid an error. */
8242 /* We use char because int might match the return type of a gcc2
8243 builtin and then its argument prototype would still apply. */
8248 /* The GNU C library defines this for functions which it implements
8249 to always fail with ENOSYS. Some functions are actually named
8250 something starting with __ and the normal name is an alias. */
8251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8259 if { (eval echo configure:8260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8261 eval "ac_cv_func_$ac_func=yes"
8263 echo "configure: failed program was:" >&5
8264 cat conftest.$ac_ext >&5
8266 eval "ac_cv_func_$ac_func=no"
8271 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8272 echo "$ac_t""yes" 1>&6
8273 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8274 cat >> confdefs.h <<EOF
8275 #define $ac_tr_func 1
8279 echo "$ac_t""no" 1>&6
8283 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8284 echo "configure:8285: checking for getprpwnam in -lsecurity" >&5
8285 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8287 echo $ac_n "(cached) $ac_c" 1>&6
8289 ac_save_LIBS="$LIBS"
8290 LIBS="-lsecurity $LIBS"
8291 cat > conftest.$ac_ext <<EOF
8292 #line 8293 "configure"
8293 #include "confdefs.h"
8294 /* Override any gcc2 internal prototype to avoid an error. */
8295 /* We use char because int might match the return type of a gcc2
8296 builtin and then its argument prototype would still apply. */
8303 if { (eval echo configure:8304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8305 eval "ac_cv_lib_$ac_lib_var=yes"
8307 echo "configure: failed program was:" >&5
8308 cat conftest.$ac_ext >&5
8310 eval "ac_cv_lib_$ac_lib_var=no"
8313 LIBS="$ac_save_LIBS"
8316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8317 echo "$ac_t""yes" 1>&6
8318 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8319 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8320 cat >> confdefs.h <<EOF
8321 #define $ac_tr_lib 1
8324 LIBS="-lsecurity $LIBS"
8327 echo "$ac_t""no" 1>&6
8330 for ac_func in getprpwnam
8332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8333 echo "configure:8334: checking for $ac_func" >&5
8334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8335 echo $ac_n "(cached) $ac_c" 1>&6
8337 cat > conftest.$ac_ext <<EOF
8338 #line 8339 "configure"
8339 #include "confdefs.h"
8340 /* System header to define __stub macros and hopefully few prototypes,
8341 which can conflict with char $ac_func(); below. */
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. */
8350 /* The GNU C library defines this for functions which it implements
8351 to always fail with ENOSYS. Some functions are actually named
8352 something starting with __ and the normal name is an alias. */
8353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8361 if { (eval echo configure:8362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8363 eval "ac_cv_func_$ac_func=yes"
8365 echo "configure: failed program was:" >&5
8366 cat conftest.$ac_ext >&5
8368 eval "ac_cv_func_$ac_func=no"
8373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8374 echo "$ac_t""yes" 1>&6
8375 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8376 cat >> confdefs.h <<EOF
8377 #define $ac_tr_func 1
8381 echo "$ac_t""no" 1>&6
8389 *-lsec*) for ac_func in getprpwnam
8391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8392 echo "configure:8393: checking for $ac_func" >&5
8393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8394 echo $ac_n "(cached) $ac_c" 1>&6
8396 cat > conftest.$ac_ext <<EOF
8397 #line 8398 "configure"
8398 #include "confdefs.h"
8399 /* System header to define __stub macros and hopefully few prototypes,
8400 which can conflict with char $ac_func(); below. */
8402 /* Override any gcc2 internal prototype to avoid an error. */
8403 /* We use char because int might match the return type of a gcc2
8404 builtin and then its argument prototype would still apply. */
8409 /* The GNU C library defines this for functions which it implements
8410 to always fail with ENOSYS. Some functions are actually named
8411 something starting with __ and the normal name is an alias. */
8412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8420 if { (eval echo configure:8421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8422 eval "ac_cv_func_$ac_func=yes"
8424 echo "configure: failed program was:" >&5
8425 cat conftest.$ac_ext >&5
8427 eval "ac_cv_func_$ac_func=no"
8432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8433 echo "$ac_t""yes" 1>&6
8434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8435 cat >> confdefs.h <<EOF
8436 #define $ac_tr_func 1
8440 echo "$ac_t""no" 1>&6
8444 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8445 echo "configure:8446: checking for getprpwnam in -lsec" >&5
8446 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8448 echo $ac_n "(cached) $ac_c" 1>&6
8450 ac_save_LIBS="$LIBS"
8452 cat > conftest.$ac_ext <<EOF
8453 #line 8454 "configure"
8454 #include "confdefs.h"
8455 /* Override any gcc2 internal prototype to avoid an error. */
8456 /* We use char because int might match the return type of a gcc2
8457 builtin and then its argument prototype would still apply. */
8464 if { (eval echo configure:8465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8466 eval "ac_cv_lib_$ac_lib_var=yes"
8468 echo "configure: failed program was:" >&5
8469 cat conftest.$ac_ext >&5
8471 eval "ac_cv_lib_$ac_lib_var=no"
8474 LIBS="$ac_save_LIBS"
8477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8478 echo "$ac_t""yes" 1>&6
8479 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8480 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8481 cat >> confdefs.h <<EOF
8482 #define $ac_tr_lib 1
8488 echo "$ac_t""no" 1>&6
8491 for ac_func in getprpwnam
8493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8494 echo "configure:8495: checking for $ac_func" >&5
8495 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8496 echo $ac_n "(cached) $ac_c" 1>&6
8498 cat > conftest.$ac_ext <<EOF
8499 #line 8500 "configure"
8500 #include "confdefs.h"
8501 /* System header to define __stub macros and hopefully few prototypes,
8502 which can conflict with char $ac_func(); below. */
8504 /* Override any gcc2 internal prototype to avoid an error. */
8505 /* We use char because int might match the return type of a gcc2
8506 builtin and then its argument prototype would still apply. */
8511 /* The GNU C library defines this for functions which it implements
8512 to always fail with ENOSYS. Some functions are actually named
8513 something starting with __ and the normal name is an alias. */
8514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8522 if { (eval echo configure:8523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8524 eval "ac_cv_func_$ac_func=yes"
8526 echo "configure: failed program was:" >&5
8527 cat conftest.$ac_ext >&5
8529 eval "ac_cv_func_$ac_func=no"
8534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8535 echo "$ac_t""yes" 1>&6
8536 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8537 cat >> confdefs.h <<EOF
8538 #define $ac_tr_func 1
8542 echo "$ac_t""no" 1>&6
8550 # this bit needs to be modified for each OS that is suported by
8551 # smbwrapper. You need to specify how to created a shared library and
8552 # how to compile C code to produce PIC object files
8554 # these are the defaults, good for lots of systems
8562 # Assume non-shared by default and override below
8564 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8565 echo "configure:8566: checking ability to build shared libraries" >&5
8567 # and these are for particular systems
8569 *linux*) cat >> confdefs.h <<\EOF
8575 DYNEXP="-Wl,--export-dynamic"
8577 cat >> confdefs.h <<\EOF
8578 #define STAT_ST_BLOCKSIZE 512
8583 cat >> confdefs.h <<\EOF
8588 LDSHFLAGS="-h \$@ -G"
8589 if test "${ac_cv_prog_CC}" = "gcc"; then
8596 cat >> confdefs.h <<\EOF
8597 #define STAT_ST_BLOCKSIZE 512
8601 *sunos*) cat >> confdefs.h <<\EOF
8606 LDSHFLAGS="-Wl,-h,\$@ -G"
8607 PICFLAG="-KPIC" # Is this correct for SunOS
8609 *bsd*) BLDSHARED="true"
8610 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8612 cat >> confdefs.h <<\EOF
8613 #define STAT_ST_BLOCKSIZE 512
8617 *irix*) cat >> confdefs.h <<\EOF
8622 *irix6*) cat >> confdefs.h <<\EOF
8628 ATTEMPT_WRAP32_BUILD=yes
8630 LDSHFLAGS="-soname \$@ -shared"
8632 if test "${ac_cv_prog_CC}" = "gcc"; then
8637 cat >> confdefs.h <<\EOF
8638 #define STAT_ST_BLOCKSIZE 512
8642 *aix*) cat >> confdefs.h <<\EOF
8647 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8648 PICFLAG="-O2 -qmaxmem=6000"
8649 cat >> confdefs.h <<\EOF
8650 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8654 *hpux*) cat >> confdefs.h <<\EOF
8659 # Use special PIC flags for the native HP-UX compiler.
8660 if test $ac_cv_prog_cc_Ae = yes; then
8662 LDSHFLAGS="-b -z +h \$@"
8666 cat >> confdefs.h <<\EOF
8667 #define STAT_ST_BLOCKSIZE 8192
8671 *qnx*) cat >> confdefs.h <<\EOF
8675 *osf*) cat >> confdefs.h <<\EOF
8680 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8684 DYNEXP="-Wl,-Bexport"
8685 cat >> confdefs.h <<\EOF
8690 *unixware*) cat >> confdefs.h <<\EOF
8695 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8698 *next2*) cat >> confdefs.h <<\EOF
8702 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8703 set dummy groff; ac_word=$2
8704 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8705 echo "configure:8706: checking for $ac_word" >&5
8706 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8707 echo $ac_n "(cached) $ac_c" 1>&6
8709 if test -n "$ROFF"; then
8710 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8714 for ac_dir in $ac_dummy; do
8715 test -z "$ac_dir" && ac_dir=.
8716 if test -f $ac_dir/$ac_word; then
8717 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8724 ROFF="$ac_cv_prog_ROFF"
8725 if test -n "$ROFF"; then
8726 echo "$ac_t""$ROFF" 1>&6
8728 echo "$ac_t""no" 1>&6
8734 if test "$GCC" != yes ; then
8735 cat >> confdefs.h <<\EOF
8736 #define HAVE_MEMSET 1
8744 cat >> confdefs.h <<\EOF
8745 #define RELIANTUNIX 1
8753 if test "$GCC" != yes ; then
8754 cat >> confdefs.h <<\EOF
8755 #define HAVE_MEMSET 1
8763 echo "$ac_t""$BLDSHARED" 1>&6
8764 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
8765 echo "configure:8766: checking linker flags for shared libraries" >&5
8766 echo "$ac_t""$LDSHFLAGS" 1>&6
8767 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
8768 echo "configure:8769: checking compiler flags for position-independent code" >&5
8769 echo "$ac_t""$PICFLAGS" 1>&6
8771 #######################################################
8772 # test whether building a shared library actually works
8773 if test $BLDSHARED = true; then
8774 echo $ac_n "checking whether building shared libraries actually works""... $ac_c" 1>&6
8775 echo "configure:8776: checking whether building shared libraries actually works" >&5
8776 if eval "test \"`echo '$''{'ac_cv_shlib_works'+set}'`\" = set"; then
8777 echo $ac_n "(cached) $ac_c" 1>&6
8780 ac_cv_shlib_works=no
8781 # try building a trivial shared library
8782 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
8783 $CC $CPPFLAGS $CFLAGS $LDSHFLAGS -o shlib.so shlib.po &&
8784 ac_cv_shlib_works=yes
8785 rm -f shlib.so shlib.po
8789 echo "$ac_t""$ac_cv_shlib_works" 1>&6
8790 if test $ac_cv_shlib_works = no; then
8796 # this updates our target list if we can build shared libs
8797 if test $BLDSHARED = true; then
8798 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
8800 LIBSMBCLIENT_SHARED=
8805 echo $ac_n "checking for long long""... $ac_c" 1>&6
8806 echo "configure:8807: checking for long long" >&5
8807 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8808 echo $ac_n "(cached) $ac_c" 1>&6
8811 if test "$cross_compiling" = yes; then
8812 samba_cv_have_longlong=cross
8814 cat > conftest.$ac_ext <<EOF
8815 #line 8816 "configure"
8816 #include "confdefs.h"
8818 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8820 if { (eval echo configure:8821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8822 samba_cv_have_longlong=yes
8824 echo "configure: failed program was:" >&5
8825 cat conftest.$ac_ext >&5
8827 samba_cv_have_longlong=no
8834 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8835 if test x"$samba_cv_have_longlong" = x"yes"; then
8836 cat >> confdefs.h <<\EOF
8837 #define HAVE_LONGLONG 1
8843 # Check if the compiler supports the LL prefix on long long integers.
8846 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8847 echo "configure:8848: checking for LL suffix on long long integers" >&5
8848 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8849 echo $ac_n "(cached) $ac_c" 1>&6
8852 cat > conftest.$ac_ext <<EOF
8853 #line 8854 "configure"
8854 #include "confdefs.h"
8857 long long i = 0x8000000000LL
8860 if { (eval echo configure:8861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8862 samba_cv_compiler_supports_ll=yes
8864 echo "configure: failed program was:" >&5
8865 cat conftest.$ac_ext >&5
8867 samba_cv_compiler_supports_ll=no
8872 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8873 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8874 cat >> confdefs.h <<\EOF
8875 #define COMPILER_SUPPORTS_LL 1
8881 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8882 echo "configure:8883: checking for 64 bit off_t" >&5
8883 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8884 echo $ac_n "(cached) $ac_c" 1>&6
8887 if test "$cross_compiling" = yes; then
8888 samba_cv_SIZEOF_OFF_T=cross
8890 cat > conftest.$ac_ext <<EOF
8891 #line 8892 "configure"
8892 #include "confdefs.h"
8894 #include <sys/stat.h>
8895 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8897 if { (eval echo configure:8898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8899 samba_cv_SIZEOF_OFF_T=yes
8901 echo "configure: failed program was:" >&5
8902 cat conftest.$ac_ext >&5
8904 samba_cv_SIZEOF_OFF_T=no
8911 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8912 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8913 cat >> confdefs.h <<\EOF
8914 #define SIZEOF_OFF_T 8
8919 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8920 echo "configure:8921: checking for off64_t" >&5
8921 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8922 echo $ac_n "(cached) $ac_c" 1>&6
8925 if test "$cross_compiling" = yes; then
8926 samba_cv_HAVE_OFF64_T=cross
8928 cat > conftest.$ac_ext <<EOF
8929 #line 8930 "configure"
8930 #include "confdefs.h"
8932 #if defined(HAVE_UNISTD_H)
8936 #include <sys/stat.h>
8937 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8939 if { (eval echo configure:8940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8941 samba_cv_HAVE_OFF64_T=yes
8943 echo "configure: failed program was:" >&5
8944 cat conftest.$ac_ext >&5
8946 samba_cv_HAVE_OFF64_T=no
8953 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8954 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8955 cat >> confdefs.h <<\EOF
8956 #define HAVE_OFF64_T 1
8961 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8962 echo "configure:8963: checking for 64 bit ino_t" >&5
8963 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8964 echo $ac_n "(cached) $ac_c" 1>&6
8967 if test "$cross_compiling" = yes; then
8968 samba_cv_SIZEOF_INO_T=cross
8970 cat > conftest.$ac_ext <<EOF
8971 #line 8972 "configure"
8972 #include "confdefs.h"
8974 #include <sys/stat.h>
8975 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8977 if { (eval echo configure:8978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8979 samba_cv_SIZEOF_INO_T=yes
8981 echo "configure: failed program was:" >&5
8982 cat conftest.$ac_ext >&5
8984 samba_cv_SIZEOF_INO_T=no
8991 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8992 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8993 cat >> confdefs.h <<\EOF
8994 #define SIZEOF_INO_T 8
8999 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9000 echo "configure:9001: checking for ino64_t" >&5
9001 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9002 echo $ac_n "(cached) $ac_c" 1>&6
9005 if test "$cross_compiling" = yes; then
9006 samba_cv_HAVE_INO64_T=cross
9008 cat > conftest.$ac_ext <<EOF
9009 #line 9010 "configure"
9010 #include "confdefs.h"
9012 #if defined(HAVE_UNISTD_H)
9016 #include <sys/stat.h>
9017 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9019 if { (eval echo configure:9020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9021 samba_cv_HAVE_INO64_T=yes
9023 echo "configure: failed program was:" >&5
9024 cat conftest.$ac_ext >&5
9026 samba_cv_HAVE_INO64_T=no
9033 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9034 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9035 cat >> confdefs.h <<\EOF
9036 #define HAVE_INO64_T 1
9041 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9042 echo "configure:9043: checking for dev64_t" >&5
9043 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9044 echo $ac_n "(cached) $ac_c" 1>&6
9047 if test "$cross_compiling" = yes; then
9048 samba_cv_HAVE_DEV64_T=cross
9050 cat > conftest.$ac_ext <<EOF
9051 #line 9052 "configure"
9052 #include "confdefs.h"
9054 #if defined(HAVE_UNISTD_H)
9058 #include <sys/stat.h>
9059 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9061 if { (eval echo configure:9062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9063 samba_cv_HAVE_DEV64_T=yes
9065 echo "configure: failed program was:" >&5
9066 cat conftest.$ac_ext >&5
9068 samba_cv_HAVE_DEV64_T=no
9075 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9076 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
9077 cat >> confdefs.h <<\EOF
9078 #define HAVE_DEV64_T 1
9083 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9084 echo "configure:9085: checking for struct dirent64" >&5
9085 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9086 echo $ac_n "(cached) $ac_c" 1>&6
9089 cat > conftest.$ac_ext <<EOF
9090 #line 9091 "configure"
9091 #include "confdefs.h"
9093 #if defined(HAVE_UNISTD_H)
9096 #include <sys/types.h>
9102 if { (eval echo configure:9103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9104 samba_cv_HAVE_STRUCT_DIRENT64=yes
9106 echo "configure: failed program was:" >&5
9107 cat conftest.$ac_ext >&5
9109 samba_cv_HAVE_STRUCT_DIRENT64=no
9114 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9115 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
9116 cat >> confdefs.h <<\EOF
9117 #define HAVE_STRUCT_DIRENT64 1
9122 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9123 echo "configure:9124: checking for major macro" >&5
9124 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9125 echo $ac_n "(cached) $ac_c" 1>&6
9128 if test "$cross_compiling" = yes; then
9129 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
9131 cat > conftest.$ac_ext <<EOF
9132 #line 9133 "configure"
9133 #include "confdefs.h"
9135 #if defined(HAVE_UNISTD_H)
9138 #include <sys/types.h>
9139 main() { dev_t dev; int i = major(dev); return 0; }
9141 if { (eval echo configure:9142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9143 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
9145 echo "configure: failed program was:" >&5
9146 cat conftest.$ac_ext >&5
9148 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9155 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9156 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9157 cat >> confdefs.h <<\EOF
9158 #define HAVE_DEVICE_MAJOR_FN 1
9163 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9164 echo "configure:9165: checking for minor macro" >&5
9165 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9166 echo $ac_n "(cached) $ac_c" 1>&6
9169 if test "$cross_compiling" = yes; then
9170 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9172 cat > conftest.$ac_ext <<EOF
9173 #line 9174 "configure"
9174 #include "confdefs.h"
9176 #if defined(HAVE_UNISTD_H)
9179 #include <sys/types.h>
9180 main() { dev_t dev; int i = minor(dev); return 0; }
9182 if { (eval echo configure:9183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9184 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9186 echo "configure: failed program was:" >&5
9187 cat conftest.$ac_ext >&5
9189 samba_cv_HAVE_DEVICE_MINOR_FN=no
9196 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9197 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9198 cat >> confdefs.h <<\EOF
9199 #define HAVE_DEVICE_MINOR_FN 1
9204 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9205 echo "configure:9206: checking for unsigned char" >&5
9206 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9207 echo $ac_n "(cached) $ac_c" 1>&6
9210 if test "$cross_compiling" = yes; then
9211 samba_cv_HAVE_UNSIGNED_CHAR=cross
9213 cat > conftest.$ac_ext <<EOF
9214 #line 9215 "configure"
9215 #include "confdefs.h"
9217 main() { char c; c=250; exit((c > 0)?0:1); }
9219 if { (eval echo configure:9220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9221 samba_cv_HAVE_UNSIGNED_CHAR=yes
9223 echo "configure: failed program was:" >&5
9224 cat conftest.$ac_ext >&5
9226 samba_cv_HAVE_UNSIGNED_CHAR=no
9233 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9234 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9235 cat >> confdefs.h <<\EOF
9236 #define HAVE_UNSIGNED_CHAR 1
9241 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9242 echo "configure:9243: checking for sin_len in sock" >&5
9243 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9244 echo $ac_n "(cached) $ac_c" 1>&6
9247 cat > conftest.$ac_ext <<EOF
9248 #line 9249 "configure"
9249 #include "confdefs.h"
9250 #include <sys/types.h>
9251 #include <sys/socket.h>
9252 #include <netinet/in.h>
9254 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9257 if { (eval echo configure:9258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9259 samba_cv_HAVE_SOCK_SIN_LEN=yes
9261 echo "configure: failed program was:" >&5
9262 cat conftest.$ac_ext >&5
9264 samba_cv_HAVE_SOCK_SIN_LEN=no
9269 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9270 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9271 cat >> confdefs.h <<\EOF
9272 #define HAVE_SOCK_SIN_LEN 1
9277 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9278 echo "configure:9279: checking whether seekdir returns void" >&5
9279 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9280 echo $ac_n "(cached) $ac_c" 1>&6
9283 cat > conftest.$ac_ext <<EOF
9284 #line 9285 "configure"
9285 #include "confdefs.h"
9286 #include <sys/types.h>
9288 void seekdir(DIR *d, long loc) { return; }
9293 if { (eval echo configure:9294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9295 samba_cv_SEEKDIR_RETURNS_VOID=yes
9297 echo "configure: failed program was:" >&5
9298 cat conftest.$ac_ext >&5
9300 samba_cv_SEEKDIR_RETURNS_VOID=no
9305 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9306 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9307 cat >> confdefs.h <<\EOF
9308 #define SEEKDIR_RETURNS_VOID 1
9313 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9314 echo "configure:9315: checking for __FILE__ macro" >&5
9315 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9316 echo $ac_n "(cached) $ac_c" 1>&6
9319 cat > conftest.$ac_ext <<EOF
9320 #line 9321 "configure"
9321 #include "confdefs.h"
9324 printf("%s\n", __FILE__);
9327 if { (eval echo configure:9328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9329 samba_cv_HAVE_FILE_MACRO=yes
9331 echo "configure: failed program was:" >&5
9332 cat conftest.$ac_ext >&5
9334 samba_cv_HAVE_FILE_MACRO=no
9339 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9340 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9341 cat >> confdefs.h <<\EOF
9342 #define HAVE_FILE_MACRO 1
9347 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9348 echo "configure:9349: checking for __FUNCTION__ macro" >&5
9349 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9350 echo $ac_n "(cached) $ac_c" 1>&6
9353 cat > conftest.$ac_ext <<EOF
9354 #line 9355 "configure"
9355 #include "confdefs.h"
9358 printf("%s\n", __FUNCTION__);
9361 if { (eval echo configure:9362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9363 samba_cv_HAVE_FUNCTION_MACRO=yes
9365 echo "configure: failed program was:" >&5
9366 cat conftest.$ac_ext >&5
9368 samba_cv_HAVE_FUNCTION_MACRO=no
9373 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9374 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9375 cat >> confdefs.h <<\EOF
9376 #define HAVE_FUNCTION_MACRO 1
9381 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9382 echo "configure:9383: checking if gettimeofday takes tz argument" >&5
9383 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9384 echo $ac_n "(cached) $ac_c" 1>&6
9387 if test "$cross_compiling" = yes; then
9388 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9390 cat > conftest.$ac_ext <<EOF
9391 #line 9392 "configure"
9392 #include "confdefs.h"
9394 #include <sys/time.h>
9396 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9398 if { (eval echo configure:9399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9400 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9402 echo "configure: failed program was:" >&5
9403 cat conftest.$ac_ext >&5
9405 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9412 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9413 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9414 cat >> confdefs.h <<\EOF
9415 #define HAVE_GETTIMEOFDAY_TZ 1
9420 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9421 echo "configure:9422: checking for C99 vsnprintf" >&5
9422 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9423 echo $ac_n "(cached) $ac_c" 1>&6
9426 if test "$cross_compiling" = yes; then
9427 samba_cv_HAVE_C99_VSNPRINTF=cross
9429 cat > conftest.$ac_ext <<EOF
9430 #line 9431 "configure"
9431 #include "confdefs.h"
9433 #include <sys/types.h>
9435 void foo(const char *format, ...) {
9440 va_start(ap, format);
9441 len = vsnprintf(buf, 0, format, ap);
9443 if (len != 5) exit(1);
9445 va_start(ap, format);
9446 len = vsnprintf(0, 0, format, ap);
9448 if (len != 5) exit(1);
9450 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9454 main() { foo("hello"); }
9457 if { (eval echo configure:9458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9459 samba_cv_HAVE_C99_VSNPRINTF=yes
9461 echo "configure: failed program was:" >&5
9462 cat conftest.$ac_ext >&5
9464 samba_cv_HAVE_C99_VSNPRINTF=no
9471 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9472 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9473 cat >> confdefs.h <<\EOF
9474 #define HAVE_C99_VSNPRINTF 1
9479 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9480 echo "configure:9481: checking for broken readdir" >&5
9481 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9482 echo $ac_n "(cached) $ac_c" 1>&6
9485 if test "$cross_compiling" = yes; then
9486 samba_cv_HAVE_BROKEN_READDIR=cross
9488 cat > conftest.$ac_ext <<EOF
9489 #line 9490 "configure"
9490 #include "confdefs.h"
9491 #include <sys/types.h>
9493 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9494 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9495 di->d_name[0] == 0) exit(0); exit(1);}
9497 if { (eval echo configure:9498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9499 samba_cv_HAVE_BROKEN_READDIR=yes
9501 echo "configure: failed program was:" >&5
9502 cat conftest.$ac_ext >&5
9504 samba_cv_HAVE_BROKEN_READDIR=no
9511 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9512 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9513 cat >> confdefs.h <<\EOF
9514 #define HAVE_BROKEN_READDIR 1
9519 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9520 echo "configure:9521: checking for utimbuf" >&5
9521 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9522 echo $ac_n "(cached) $ac_c" 1>&6
9525 cat > conftest.$ac_ext <<EOF
9526 #line 9527 "configure"
9527 #include "confdefs.h"
9528 #include <sys/types.h>
9531 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9534 if { (eval echo configure:9535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9536 samba_cv_HAVE_UTIMBUF=yes
9538 echo "configure: failed program was:" >&5
9539 cat conftest.$ac_ext >&5
9541 samba_cv_HAVE_UTIMBUF=no
9546 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9547 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9548 cat >> confdefs.h <<\EOF
9549 #define HAVE_UTIMBUF 1
9555 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9557 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9558 echo "configure:9559: checking for $ac_func" >&5
9559 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9560 echo $ac_n "(cached) $ac_c" 1>&6
9562 cat > conftest.$ac_ext <<EOF
9563 #line 9564 "configure"
9564 #include "confdefs.h"
9565 /* System header to define __stub macros and hopefully few prototypes,
9566 which can conflict with char $ac_func(); below. */
9568 /* Override any gcc2 internal prototype to avoid an error. */
9569 /* We use char because int might match the return type of a gcc2
9570 builtin and then its argument prototype would still apply. */
9575 /* The GNU C library defines this for functions which it implements
9576 to always fail with ENOSYS. Some functions are actually named
9577 something starting with __ and the normal name is an alias. */
9578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9586 if { (eval echo configure:9587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9588 eval "ac_cv_func_$ac_func=yes"
9590 echo "configure: failed program was:" >&5
9591 cat conftest.$ac_ext >&5
9593 eval "ac_cv_func_$ac_func=no"
9598 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9599 echo "$ac_t""yes" 1>&6
9600 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9601 cat >> confdefs.h <<EOF
9602 #define $ac_tr_func 1
9606 echo "$ac_t""no" 1>&6
9611 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9612 echo "configure:9613: checking for ut_name in utmp" >&5
9613 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9614 echo $ac_n "(cached) $ac_c" 1>&6
9617 cat > conftest.$ac_ext <<EOF
9618 #line 9619 "configure"
9619 #include "confdefs.h"
9620 #include <sys/types.h>
9623 struct utmp ut; ut.ut_name[0] = 'a';
9626 if { (eval echo configure:9627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9628 samba_cv_HAVE_UT_UT_NAME=yes
9630 echo "configure: failed program was:" >&5
9631 cat conftest.$ac_ext >&5
9633 samba_cv_HAVE_UT_UT_NAME=no
9638 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9639 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9640 cat >> confdefs.h <<\EOF
9641 #define HAVE_UT_UT_NAME 1
9646 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9647 echo "configure:9648: checking for ut_user in utmp" >&5
9648 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9649 echo $ac_n "(cached) $ac_c" 1>&6
9652 cat > conftest.$ac_ext <<EOF
9653 #line 9654 "configure"
9654 #include "confdefs.h"
9655 #include <sys/types.h>
9658 struct utmp ut; ut.ut_user[0] = 'a';
9661 if { (eval echo configure:9662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9663 samba_cv_HAVE_UT_UT_USER=yes
9665 echo "configure: failed program was:" >&5
9666 cat conftest.$ac_ext >&5
9668 samba_cv_HAVE_UT_UT_USER=no
9673 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9674 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9675 cat >> confdefs.h <<\EOF
9676 #define HAVE_UT_UT_USER 1
9681 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9682 echo "configure:9683: checking for ut_id in utmp" >&5
9683 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9684 echo $ac_n "(cached) $ac_c" 1>&6
9687 cat > conftest.$ac_ext <<EOF
9688 #line 9689 "configure"
9689 #include "confdefs.h"
9690 #include <sys/types.h>
9693 struct utmp ut; ut.ut_id[0] = 'a';
9696 if { (eval echo configure:9697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9698 samba_cv_HAVE_UT_UT_ID=yes
9700 echo "configure: failed program was:" >&5
9701 cat conftest.$ac_ext >&5
9703 samba_cv_HAVE_UT_UT_ID=no
9708 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9709 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9710 cat >> confdefs.h <<\EOF
9711 #define HAVE_UT_UT_ID 1
9716 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9717 echo "configure:9718: checking for ut_host in utmp" >&5
9718 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9719 echo $ac_n "(cached) $ac_c" 1>&6
9722 cat > conftest.$ac_ext <<EOF
9723 #line 9724 "configure"
9724 #include "confdefs.h"
9725 #include <sys/types.h>
9728 struct utmp ut; ut.ut_host[0] = 'a';
9731 if { (eval echo configure:9732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9733 samba_cv_HAVE_UT_UT_HOST=yes
9735 echo "configure: failed program was:" >&5
9736 cat conftest.$ac_ext >&5
9738 samba_cv_HAVE_UT_UT_HOST=no
9743 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9744 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9745 cat >> confdefs.h <<\EOF
9746 #define HAVE_UT_UT_HOST 1
9751 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9752 echo "configure:9753: checking for ut_time in utmp" >&5
9753 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9754 echo $ac_n "(cached) $ac_c" 1>&6
9757 cat > conftest.$ac_ext <<EOF
9758 #line 9759 "configure"
9759 #include "confdefs.h"
9760 #include <sys/types.h>
9763 struct utmp ut; time_t t; ut.ut_time = t;
9766 if { (eval echo configure:9767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9768 samba_cv_HAVE_UT_UT_TIME=yes
9770 echo "configure: failed program was:" >&5
9771 cat conftest.$ac_ext >&5
9773 samba_cv_HAVE_UT_UT_TIME=no
9778 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9779 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9780 cat >> confdefs.h <<\EOF
9781 #define HAVE_UT_UT_TIME 1
9786 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9787 echo "configure:9788: checking for ut_tv in utmp" >&5
9788 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9789 echo $ac_n "(cached) $ac_c" 1>&6
9792 cat > conftest.$ac_ext <<EOF
9793 #line 9794 "configure"
9794 #include "confdefs.h"
9795 #include <sys/types.h>
9798 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9801 if { (eval echo configure:9802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9803 samba_cv_HAVE_UT_UT_TV=yes
9805 echo "configure: failed program was:" >&5
9806 cat conftest.$ac_ext >&5
9808 samba_cv_HAVE_UT_UT_TV=no
9813 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9814 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9815 cat >> confdefs.h <<\EOF
9816 #define HAVE_UT_UT_TV 1
9821 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9822 echo "configure:9823: checking for ut_type in utmp" >&5
9823 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9824 echo $ac_n "(cached) $ac_c" 1>&6
9827 cat > conftest.$ac_ext <<EOF
9828 #line 9829 "configure"
9829 #include "confdefs.h"
9830 #include <sys/types.h>
9833 struct utmp ut; ut.ut_type = 0;
9836 if { (eval echo configure:9837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9838 samba_cv_HAVE_UT_UT_TYPE=yes
9840 echo "configure: failed program was:" >&5
9841 cat conftest.$ac_ext >&5
9843 samba_cv_HAVE_UT_UT_TYPE=no
9848 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9849 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9850 cat >> confdefs.h <<\EOF
9851 #define HAVE_UT_UT_TYPE 1
9856 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9857 echo "configure:9858: checking for ut_pid in utmp" >&5
9858 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9859 echo $ac_n "(cached) $ac_c" 1>&6
9862 cat > conftest.$ac_ext <<EOF
9863 #line 9864 "configure"
9864 #include "confdefs.h"
9865 #include <sys/types.h>
9868 struct utmp ut; ut.ut_pid = 0;
9871 if { (eval echo configure:9872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9873 samba_cv_HAVE_UT_UT_PID=yes
9875 echo "configure: failed program was:" >&5
9876 cat conftest.$ac_ext >&5
9878 samba_cv_HAVE_UT_UT_PID=no
9883 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9884 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9885 cat >> confdefs.h <<\EOF
9886 #define HAVE_UT_UT_PID 1
9891 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9892 echo "configure:9893: checking for ut_exit in utmp" >&5
9893 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9894 echo $ac_n "(cached) $ac_c" 1>&6
9897 cat > conftest.$ac_ext <<EOF
9898 #line 9899 "configure"
9899 #include "confdefs.h"
9900 #include <sys/types.h>
9903 struct utmp ut; ut.ut_exit.e_exit = 0;
9906 if { (eval echo configure:9907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9908 samba_cv_HAVE_UT_UT_EXIT=yes
9910 echo "configure: failed program was:" >&5
9911 cat conftest.$ac_ext >&5
9913 samba_cv_HAVE_UT_UT_EXIT=no
9918 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9919 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9920 cat >> confdefs.h <<\EOF
9921 #define HAVE_UT_UT_EXIT 1
9926 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9927 echo "configure:9928: checking for ut_addr in utmp" >&5
9928 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9929 echo $ac_n "(cached) $ac_c" 1>&6
9932 cat > conftest.$ac_ext <<EOF
9933 #line 9934 "configure"
9934 #include "confdefs.h"
9935 #include <sys/types.h>
9938 struct utmp ut; ut.ut_addr = 0;
9941 if { (eval echo configure:9942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9943 samba_cv_HAVE_UT_UT_ADDR=yes
9945 echo "configure: failed program was:" >&5
9946 cat conftest.$ac_ext >&5
9948 samba_cv_HAVE_UT_UT_ADDR=no
9953 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9954 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9955 cat >> confdefs.h <<\EOF
9956 #define HAVE_UT_UT_ADDR 1
9961 if test x$ac_cv_func_pututline = xyes ; then
9962 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9963 echo "configure:9964: checking whether pututline returns pointer" >&5
9964 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9965 echo $ac_n "(cached) $ac_c" 1>&6
9968 cat > conftest.$ac_ext <<EOF
9969 #line 9970 "configure"
9970 #include "confdefs.h"
9971 #include <sys/types.h>
9974 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9977 if { (eval echo configure:9978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9979 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9981 echo "configure: failed program was:" >&5
9982 cat conftest.$ac_ext >&5
9984 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9989 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9990 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9991 cat >> confdefs.h <<\EOF
9992 #define PUTUTLINE_RETURNS_UTMP 1
9998 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9999 echo "configure:10000: checking for ut_syslen in utmpx" >&5
10000 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10001 echo $ac_n "(cached) $ac_c" 1>&6
10004 cat > conftest.$ac_ext <<EOF
10005 #line 10006 "configure"
10006 #include "confdefs.h"
10007 #include <sys/types.h>
10010 struct utmpx ux; ux.ut_syslen = 0;
10013 if { (eval echo configure:10014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10015 samba_cv_HAVE_UX_UT_SYSLEN=yes
10017 echo "configure: failed program was:" >&5
10018 cat conftest.$ac_ext >&5
10020 samba_cv_HAVE_UX_UT_SYSLEN=no
10025 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10026 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
10027 cat >> confdefs.h <<\EOF
10028 #define HAVE_UX_UT_SYSLEN 1
10034 #################################################
10035 # check for libiconv support
10036 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
10037 echo "configure:10038: checking whether to use libiconv" >&5
10038 # Check whether --with-libiconv or --without-libiconv was given.
10039 if test "${with_libiconv+set}" = set; then
10040 withval="$with_libiconv"
10043 echo "$ac_t""no" 1>&6
10046 echo "$ac_t""yes" 1>&6
10047 CFLAGS="$CFLAGS -I$withval/include"
10048 LDFLAGS="$LDFLAGS -L$withval/lib"
10049 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
10050 echo "configure:10051: checking for iconv_open in -liconv" >&5
10051 ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
10052 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10053 echo $ac_n "(cached) $ac_c" 1>&6
10055 ac_save_LIBS="$LIBS"
10056 LIBS="-liconv $LIBS"
10057 cat > conftest.$ac_ext <<EOF
10058 #line 10059 "configure"
10059 #include "confdefs.h"
10060 /* Override any gcc2 internal prototype to avoid an error. */
10061 /* We use char because int might match the return type of a gcc2
10062 builtin and then its argument prototype would still apply. */
10069 if { (eval echo configure:10070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10071 eval "ac_cv_lib_$ac_lib_var=yes"
10073 echo "configure: failed program was:" >&5
10074 cat conftest.$ac_ext >&5
10076 eval "ac_cv_lib_$ac_lib_var=no"
10079 LIBS="$ac_save_LIBS"
10082 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10083 echo "$ac_t""yes" 1>&6
10084 ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10085 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10086 cat >> confdefs.h <<EOF
10087 #define $ac_tr_lib 1
10090 LIBS="-liconv $LIBS"
10093 echo "$ac_t""no" 1>&6
10096 cat >> confdefs.h <<EOF
10097 #define WITH_LIBICONV "${withval}"
10103 echo "$ac_t""no" 1>&6
10110 # check for iconv in libc
10111 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
10112 echo "configure:10113: checking for working iconv" >&5
10113 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
10114 echo $ac_n "(cached) $ac_c" 1>&6
10117 if test "$cross_compiling" = yes; then
10118 samba_cv_HAVE_NATIVE_ICONV=cross
10120 cat > conftest.$ac_ext <<EOF
10121 #line 10122 "configure"
10122 #include "confdefs.h"
10126 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
10127 if (cd == 0 || cd == (iconv_t)-1) return -1;
10132 if { (eval echo configure:10133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10134 samba_cv_HAVE_NATIVE_ICONV=yes
10136 echo "configure: failed program was:" >&5
10137 cat conftest.$ac_ext >&5
10139 samba_cv_HAVE_NATIVE_ICONV=no
10146 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
10147 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
10148 cat >> confdefs.h <<\EOF
10149 #define HAVE_NATIVE_ICONV 1
10155 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10156 echo "configure:10157: checking for Linux kernel oplocks" >&5
10157 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10158 echo $ac_n "(cached) $ac_c" 1>&6
10161 if test "$cross_compiling" = yes; then
10162 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10164 cat > conftest.$ac_ext <<EOF
10165 #line 10166 "configure"
10166 #include "confdefs.h"
10168 #include <sys/types.h>
10171 #define F_GETLEASE 1025
10174 int fd = open("/dev/null", O_RDONLY);
10175 return fcntl(fd, F_GETLEASE, 0) == -1;
10179 if { (eval echo configure:10180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10181 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10183 echo "configure: failed program was:" >&5
10184 cat conftest.$ac_ext >&5
10186 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10193 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10194 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10195 cat >> confdefs.h <<\EOF
10196 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10201 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10202 echo "configure:10203: checking for kernel change notify support" >&5
10203 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10204 echo $ac_n "(cached) $ac_c" 1>&6
10207 if test "$cross_compiling" = yes; then
10208 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10210 cat > conftest.$ac_ext <<EOF
10211 #line 10212 "configure"
10212 #include "confdefs.h"
10214 #include <sys/types.h>
10216 #include <signal.h>
10218 #define F_NOTIFY 1026
10221 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10225 if { (eval echo configure:10226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10227 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10229 echo "configure: failed program was:" >&5
10230 cat conftest.$ac_ext >&5
10232 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10239 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10240 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
10241 cat >> confdefs.h <<\EOF
10242 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10247 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10248 echo "configure:10249: checking for kernel share modes" >&5
10249 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10250 echo $ac_n "(cached) $ac_c" 1>&6
10253 if test "$cross_compiling" = yes; then
10254 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10256 cat > conftest.$ac_ext <<EOF
10257 #line 10258 "configure"
10258 #include "confdefs.h"
10260 #include <sys/types.h>
10262 #include <signal.h>
10263 #include <sys/file.h>
10265 #define LOCK_MAND 32
10266 #define LOCK_READ 64
10269 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10273 if { (eval echo configure:10274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10275 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10277 echo "configure: failed program was:" >&5
10278 cat conftest.$ac_ext >&5
10280 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10287 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10288 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10289 cat >> confdefs.h <<\EOF
10290 #define HAVE_KERNEL_SHARE_MODES 1
10298 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10299 echo "configure:10300: checking for IRIX kernel oplock type definitions" >&5
10300 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10301 echo $ac_n "(cached) $ac_c" 1>&6
10304 cat > conftest.$ac_ext <<EOF
10305 #line 10306 "configure"
10306 #include "confdefs.h"
10307 #include <sys/types.h>
10310 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10313 if { (eval echo configure:10314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10315 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10317 echo "configure: failed program was:" >&5
10318 cat conftest.$ac_ext >&5
10320 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10325 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10326 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10327 cat >> confdefs.h <<\EOF
10328 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10333 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10334 echo "configure:10335: checking for irix specific capabilities" >&5
10335 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10336 echo $ac_n "(cached) $ac_c" 1>&6
10339 if test "$cross_compiling" = yes; then
10340 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10342 cat > conftest.$ac_ext <<EOF
10343 #line 10344 "configure"
10344 #include "confdefs.h"
10345 #include <sys/types.h>
10346 #include <sys/capability.h>
10349 if ((cap = cap_get_proc()) == NULL)
10351 cap->cap_effective |= CAP_NETWORK_MGT;
10352 cap->cap_inheritable |= CAP_NETWORK_MGT;
10358 if { (eval echo configure:10359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10360 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10362 echo "configure: failed program was:" >&5
10363 cat conftest.$ac_ext >&5
10365 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10372 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10373 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10374 cat >> confdefs.h <<\EOF
10375 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10381 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10382 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10385 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10386 echo "configure:10387: checking for int16 typedef included by rpc/rpc.h" >&5
10387 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10388 echo $ac_n "(cached) $ac_c" 1>&6
10391 cat > conftest.$ac_ext <<EOF
10392 #line 10393 "configure"
10393 #include "confdefs.h"
10394 #include <sys/types.h>
10395 #if defined(HAVE_RPC_RPC_H)
10396 #include <rpc/rpc.h>
10402 if { (eval echo configure:10403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10404 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10406 echo "configure: failed program was:" >&5
10407 cat conftest.$ac_ext >&5
10409 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10414 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10415 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10416 cat >> confdefs.h <<\EOF
10417 #define HAVE_INT16_FROM_RPC_RPC_H 1
10422 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10423 echo "configure:10424: checking for uint16 typedef included by rpc/rpc.h" >&5
10424 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10425 echo $ac_n "(cached) $ac_c" 1>&6
10428 cat > conftest.$ac_ext <<EOF
10429 #line 10430 "configure"
10430 #include "confdefs.h"
10431 #include <sys/types.h>
10432 #if defined(HAVE_RPC_RPC_H)
10433 #include <rpc/rpc.h>
10439 if { (eval echo configure:10440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10441 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10443 echo "configure: failed program was:" >&5
10444 cat conftest.$ac_ext >&5
10446 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10451 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10452 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10453 cat >> confdefs.h <<\EOF
10454 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10459 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10460 echo "configure:10461: checking for int32 typedef included by rpc/rpc.h" >&5
10461 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10462 echo $ac_n "(cached) $ac_c" 1>&6
10465 cat > conftest.$ac_ext <<EOF
10466 #line 10467 "configure"
10467 #include "confdefs.h"
10468 #include <sys/types.h>
10469 #if defined(HAVE_RPC_RPC_H)
10470 #include <rpc/rpc.h>
10476 if { (eval echo configure:10477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10478 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10480 echo "configure: failed program was:" >&5
10481 cat conftest.$ac_ext >&5
10483 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10488 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10489 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10490 cat >> confdefs.h <<\EOF
10491 #define HAVE_INT32_FROM_RPC_RPC_H 1
10496 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10497 echo "configure:10498: checking for uint32 typedef included by rpc/rpc.h" >&5
10498 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10499 echo $ac_n "(cached) $ac_c" 1>&6
10502 cat > conftest.$ac_ext <<EOF
10503 #line 10504 "configure"
10504 #include "confdefs.h"
10505 #include <sys/types.h>
10506 #if defined(HAVE_RPC_RPC_H)
10507 #include <rpc/rpc.h>
10513 if { (eval echo configure:10514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10515 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10517 echo "configure: failed program was:" >&5
10518 cat conftest.$ac_ext >&5
10520 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10525 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10526 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10527 cat >> confdefs.h <<\EOF
10528 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10534 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10535 echo "configure:10536: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10536 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10537 echo $ac_n "(cached) $ac_c" 1>&6
10540 cat > conftest.$ac_ext <<EOF
10541 #line 10542 "configure"
10542 #include "confdefs.h"
10543 #include <sys/types.h>
10544 #ifdef HAVE_SYS_SECURITY_H
10545 #include <sys/security.h>
10547 #endif /* HAVE_SYS_SECURITY_H */
10548 #if defined(HAVE_RPC_RPC_H)
10549 #include <rpc/rpc.h>
10555 if { (eval echo configure:10556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10557 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10559 echo "configure: failed program was:" >&5
10560 cat conftest.$ac_ext >&5
10562 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10567 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10568 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10569 cat >> confdefs.h <<\EOF
10570 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10575 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10576 echo "configure:10577: checking for test routines" >&5
10577 if test "$cross_compiling" = yes; then
10578 echo "configure: warning: cannot run when cross-compiling" 1>&2
10580 cat > conftest.$ac_ext <<EOF
10581 #line 10582 "configure"
10582 #include "confdefs.h"
10583 #include "${srcdir-.}/tests/trivial.c"
10585 if { (eval echo configure:10586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10587 echo "$ac_t""yes" 1>&6
10589 echo "configure: failed program was:" >&5
10590 cat conftest.$ac_ext >&5
10592 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10598 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10599 echo "configure:10600: checking for ftruncate extend" >&5
10600 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10601 echo $ac_n "(cached) $ac_c" 1>&6
10604 if test "$cross_compiling" = yes; then
10605 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10607 cat > conftest.$ac_ext <<EOF
10608 #line 10609 "configure"
10609 #include "confdefs.h"
10610 #include "${srcdir-.}/tests/ftruncate.c"
10612 if { (eval echo configure:10613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10614 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10616 echo "configure: failed program was:" >&5
10617 cat conftest.$ac_ext >&5
10619 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10626 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10627 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10628 cat >> confdefs.h <<\EOF
10629 #define HAVE_FTRUNCATE_EXTEND 1
10634 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10635 echo "configure:10636: checking for AF_LOCAL socket support" >&5
10636 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10637 echo $ac_n "(cached) $ac_c" 1>&6
10640 if test "$cross_compiling" = yes; then
10641 samba_cv_HAVE_WORKING_AF_LOCAL=cross
10643 cat > conftest.$ac_ext <<EOF
10644 #line 10645 "configure"
10645 #include "confdefs.h"
10646 #include "${srcdir-.}/tests/unixsock.c"
10648 if { (eval echo configure:10649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10650 samba_cv_HAVE_WORKING_AF_LOCAL=yes
10652 echo "configure: failed program was:" >&5
10653 cat conftest.$ac_ext >&5
10655 samba_cv_HAVE_WORKING_AF_LOCAL=no
10662 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
10663 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
10665 cat >> confdefs.h <<\EOF
10666 #define HAVE_WORKING_AF_LOCAL 1
10671 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10672 echo "configure:10673: checking for broken getgroups" >&5
10673 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10674 echo $ac_n "(cached) $ac_c" 1>&6
10677 if test "$cross_compiling" = yes; then
10678 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10680 cat > conftest.$ac_ext <<EOF
10681 #line 10682 "configure"
10682 #include "confdefs.h"
10683 #include "${srcdir-.}/tests/getgroups.c"
10685 if { (eval echo configure:10686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10687 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10689 echo "configure: failed program was:" >&5
10690 cat conftest.$ac_ext >&5
10692 samba_cv_HAVE_BROKEN_GETGROUPS=no
10699 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10700 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10701 cat >> confdefs.h <<\EOF
10702 #define HAVE_BROKEN_GETGROUPS 1
10707 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10708 echo "configure:10709: checking whether getpass should be replaced" >&5
10709 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10710 echo $ac_n "(cached) $ac_c" 1>&6
10713 SAVE_CPPFLAGS="$CPPFLAGS"
10714 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10715 cat > conftest.$ac_ext <<EOF
10716 #line 10717 "configure"
10717 #include "confdefs.h"
10719 #define REPLACE_GETPASS 1
10720 #define NO_CONFIG_H 1
10721 #define main dont_declare_main
10722 #include "${srcdir-.}/lib/getsmbpass.c"
10729 if { (eval echo configure:10730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10731 samba_cv_REPLACE_GETPASS=yes
10733 echo "configure: failed program was:" >&5
10734 cat conftest.$ac_ext >&5
10736 samba_cv_REPLACE_GETPASS=no
10739 CPPFLAGS="$SAVE_CPPFLAGS"
10743 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10744 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10745 cat >> confdefs.h <<\EOF
10746 #define REPLACE_GETPASS 1
10751 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10752 echo "configure:10753: checking for broken inet_ntoa" >&5
10753 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10754 echo $ac_n "(cached) $ac_c" 1>&6
10757 if test "$cross_compiling" = yes; then
10758 samba_cv_REPLACE_INET_NTOA=cross
10760 cat > conftest.$ac_ext <<EOF
10761 #line 10762 "configure"
10762 #include "confdefs.h"
10765 #include <sys/types.h>
10766 #include <netinet/in.h>
10767 #ifdef HAVE_ARPA_INET_H
10768 #include <arpa/inet.h>
10770 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10771 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10772 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10775 if { (eval echo configure:10776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10777 samba_cv_REPLACE_INET_NTOA=yes
10779 echo "configure: failed program was:" >&5
10780 cat conftest.$ac_ext >&5
10782 samba_cv_REPLACE_INET_NTOA=no
10789 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10790 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10791 cat >> confdefs.h <<\EOF
10792 #define REPLACE_INET_NTOA 1
10797 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10798 echo "configure:10799: checking for secure mkstemp" >&5
10799 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10800 echo $ac_n "(cached) $ac_c" 1>&6
10803 if test "$cross_compiling" = yes; then
10804 samba_cv_HAVE_SECURE_MKSTEMP=cross
10806 cat > conftest.$ac_ext <<EOF
10807 #line 10808 "configure"
10808 #include "confdefs.h"
10809 #include <stdlib.h>
10810 #include <sys/types.h>
10811 #include <sys/stat.h>
10812 #include <unistd.h>
10815 char tpl[20]="/tmp/test.XXXXXX";
10816 int fd = mkstemp(tpl);
10817 if (fd == -1) exit(1);
10819 if (fstat(fd, &st) != 0) exit(1);
10820 if ((st.st_mode & 0777) != 0600) exit(1);
10824 if { (eval echo configure:10825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10826 samba_cv_HAVE_SECURE_MKSTEMP=yes
10828 echo "configure: failed program was:" >&5
10829 cat conftest.$ac_ext >&5
10831 samba_cv_HAVE_SECURE_MKSTEMP=no
10838 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10839 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10840 cat >> confdefs.h <<\EOF
10841 #define HAVE_SECURE_MKSTEMP 1
10846 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10847 echo "configure:10848: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10848 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10849 echo $ac_n "(cached) $ac_c" 1>&6
10852 if test "$cross_compiling" = yes; then
10853 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10855 cat > conftest.$ac_ext <<EOF
10856 #line 10857 "configure"
10857 #include "confdefs.h"
10858 #include <unistd.h>
10859 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10861 if { (eval echo configure:10862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10863 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10865 echo "configure: failed program was:" >&5
10866 cat conftest.$ac_ext >&5
10868 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10875 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10876 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10877 cat >> confdefs.h <<\EOF
10878 #define SYSCONF_SC_NGROUPS_MAX 1
10883 echo $ac_n "checking for root""... $ac_c" 1>&6
10884 echo "configure:10885: checking for root" >&5
10885 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10886 echo $ac_n "(cached) $ac_c" 1>&6
10889 if test "$cross_compiling" = yes; then
10890 samba_cv_HAVE_ROOT=cross
10892 cat > conftest.$ac_ext <<EOF
10893 #line 10894 "configure"
10894 #include "confdefs.h"
10895 main() { exit(getuid() != 0); }
10897 if { (eval echo configure:10898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10899 samba_cv_HAVE_ROOT=yes
10901 echo "configure: failed program was:" >&5
10902 cat conftest.$ac_ext >&5
10904 samba_cv_HAVE_ROOT=no
10911 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10912 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10913 cat >> confdefs.h <<\EOF
10914 #define HAVE_ROOT 1
10918 echo "configure: warning: running as non-root will disable some tests" 1>&2
10922 # look for a method of finding the list of network interfaces
10924 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10925 echo "configure:10926: checking for iface AIX" >&5
10926 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10927 echo $ac_n "(cached) $ac_c" 1>&6
10930 if test "$cross_compiling" = yes; then
10931 samba_cv_HAVE_IFACE_AIX=cross
10933 cat > conftest.$ac_ext <<EOF
10934 #line 10935 "configure"
10935 #include "confdefs.h"
10937 #define HAVE_IFACE_AIX 1
10938 #define AUTOCONF_TEST 1
10939 #include "confdefs.h"
10940 #include "${srcdir-.}/lib/interfaces.c"
10942 if { (eval echo configure:10943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10944 samba_cv_HAVE_IFACE_AIX=yes
10946 echo "configure: failed program was:" >&5
10947 cat conftest.$ac_ext >&5
10949 samba_cv_HAVE_IFACE_AIX=no
10956 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10957 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10958 iface=yes;cat >> confdefs.h <<\EOF
10959 #define HAVE_IFACE_AIX 1
10964 if test $iface = no; then
10965 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10966 echo "configure:10967: checking for iface ifconf" >&5
10967 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10968 echo $ac_n "(cached) $ac_c" 1>&6
10971 if test "$cross_compiling" = yes; then
10972 samba_cv_HAVE_IFACE_IFCONF=cross
10974 cat > conftest.$ac_ext <<EOF
10975 #line 10976 "configure"
10976 #include "confdefs.h"
10978 #define HAVE_IFACE_IFCONF 1
10979 #define AUTOCONF_TEST 1
10980 #include "confdefs.h"
10981 #include "${srcdir-.}/lib/interfaces.c"
10983 if { (eval echo configure:10984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10985 samba_cv_HAVE_IFACE_IFCONF=yes
10987 echo "configure: failed program was:" >&5
10988 cat conftest.$ac_ext >&5
10990 samba_cv_HAVE_IFACE_IFCONF=no
10997 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10998 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
10999 iface=yes;cat >> confdefs.h <<\EOF
11000 #define HAVE_IFACE_IFCONF 1
11006 if test $iface = no; then
11007 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11008 echo "configure:11009: checking for iface ifreq" >&5
11009 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11010 echo $ac_n "(cached) $ac_c" 1>&6
11013 if test "$cross_compiling" = yes; then
11014 samba_cv_HAVE_IFACE_IFREQ=cross
11016 cat > conftest.$ac_ext <<EOF
11017 #line 11018 "configure"
11018 #include "confdefs.h"
11020 #define HAVE_IFACE_IFREQ 1
11021 #define AUTOCONF_TEST 1
11022 #include "confdefs.h"
11023 #include "${srcdir-.}/lib/interfaces.c"
11025 if { (eval echo configure:11026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11027 samba_cv_HAVE_IFACE_IFREQ=yes
11029 echo "configure: failed program was:" >&5
11030 cat conftest.$ac_ext >&5
11032 samba_cv_HAVE_IFACE_IFREQ=no
11039 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11040 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
11041 iface=yes;cat >> confdefs.h <<\EOF
11042 #define HAVE_IFACE_IFREQ 1
11049 ################################################
11050 # look for a method of setting the effective uid
11052 if test $seteuid = no; then
11053 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11054 echo "configure:11055: checking for setresuid" >&5
11055 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11056 echo $ac_n "(cached) $ac_c" 1>&6
11059 if test "$cross_compiling" = yes; then
11060 samba_cv_USE_SETRESUID=cross
11062 cat > conftest.$ac_ext <<EOF
11063 #line 11064 "configure"
11064 #include "confdefs.h"
11066 #define AUTOCONF_TEST 1
11067 #define USE_SETRESUID 1
11068 #include "confdefs.h"
11069 #include "${srcdir-.}/lib/util_sec.c"
11071 if { (eval echo configure:11072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11073 samba_cv_USE_SETRESUID=yes
11075 echo "configure: failed program was:" >&5
11076 cat conftest.$ac_ext >&5
11078 samba_cv_USE_SETRESUID=no
11085 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11086 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
11087 seteuid=yes;cat >> confdefs.h <<\EOF
11088 #define USE_SETRESUID 1
11095 if test $seteuid = no; then
11096 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11097 echo "configure:11098: checking for setreuid" >&5
11098 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11099 echo $ac_n "(cached) $ac_c" 1>&6
11102 if test "$cross_compiling" = yes; then
11103 samba_cv_USE_SETREUID=cross
11105 cat > conftest.$ac_ext <<EOF
11106 #line 11107 "configure"
11107 #include "confdefs.h"
11109 #define AUTOCONF_TEST 1
11110 #define USE_SETREUID 1
11111 #include "confdefs.h"
11112 #include "${srcdir-.}/lib/util_sec.c"
11114 if { (eval echo configure:11115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11116 samba_cv_USE_SETREUID=yes
11118 echo "configure: failed program was:" >&5
11119 cat conftest.$ac_ext >&5
11121 samba_cv_USE_SETREUID=no
11128 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11129 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11130 seteuid=yes;cat >> confdefs.h <<\EOF
11131 #define USE_SETREUID 1
11137 if test $seteuid = no; then
11138 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11139 echo "configure:11140: checking for seteuid" >&5
11140 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11141 echo $ac_n "(cached) $ac_c" 1>&6
11144 if test "$cross_compiling" = yes; then
11145 samba_cv_USE_SETEUID=cross
11147 cat > conftest.$ac_ext <<EOF
11148 #line 11149 "configure"
11149 #include "confdefs.h"
11151 #define AUTOCONF_TEST 1
11152 #define USE_SETEUID 1
11153 #include "confdefs.h"
11154 #include "${srcdir-.}/lib/util_sec.c"
11156 if { (eval echo configure:11157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11158 samba_cv_USE_SETEUID=yes
11160 echo "configure: failed program was:" >&5
11161 cat conftest.$ac_ext >&5
11163 samba_cv_USE_SETEUID=no
11170 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11171 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11172 seteuid=yes;cat >> confdefs.h <<\EOF
11173 #define USE_SETEUID 1
11179 if test $seteuid = no; then
11180 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11181 echo "configure:11182: checking for setuidx" >&5
11182 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11183 echo $ac_n "(cached) $ac_c" 1>&6
11186 if test "$cross_compiling" = yes; then
11187 samba_cv_USE_SETUIDX=cross
11189 cat > conftest.$ac_ext <<EOF
11190 #line 11191 "configure"
11191 #include "confdefs.h"
11193 #define AUTOCONF_TEST 1
11194 #define USE_SETUIDX 1
11195 #include "confdefs.h"
11196 #include "${srcdir-.}/lib/util_sec.c"
11198 if { (eval echo configure:11199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11200 samba_cv_USE_SETUIDX=yes
11202 echo "configure: failed program was:" >&5
11203 cat conftest.$ac_ext >&5
11205 samba_cv_USE_SETUIDX=no
11212 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11213 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11214 seteuid=yes;cat >> confdefs.h <<\EOF
11215 #define USE_SETUIDX 1
11222 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11223 echo "configure:11224: checking for working mmap" >&5
11224 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11225 echo $ac_n "(cached) $ac_c" 1>&6
11228 if test "$cross_compiling" = yes; then
11229 samba_cv_HAVE_MMAP=cross
11231 cat > conftest.$ac_ext <<EOF
11232 #line 11233 "configure"
11233 #include "confdefs.h"
11234 #include "${srcdir-.}/tests/shared_mmap.c"
11236 if { (eval echo configure:11237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11238 samba_cv_HAVE_MMAP=yes
11240 echo "configure: failed program was:" >&5
11241 cat conftest.$ac_ext >&5
11243 samba_cv_HAVE_MMAP=no
11250 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11251 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11252 cat >> confdefs.h <<\EOF
11253 #define HAVE_MMAP 1
11258 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11259 echo "configure:11260: checking for ftruncate needs root" >&5
11260 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11261 echo $ac_n "(cached) $ac_c" 1>&6
11264 if test "$cross_compiling" = yes; then
11265 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11267 cat > conftest.$ac_ext <<EOF
11268 #line 11269 "configure"
11269 #include "confdefs.h"
11270 #include "${srcdir-.}/tests/ftruncroot.c"
11272 if { (eval echo configure:11273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11274 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11276 echo "configure: failed program was:" >&5
11277 cat conftest.$ac_ext >&5
11279 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11286 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11287 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11288 cat >> confdefs.h <<\EOF
11289 #define FTRUNCATE_NEEDS_ROOT 1
11294 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11295 echo "configure:11296: checking for fcntl locking" >&5
11296 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11297 echo $ac_n "(cached) $ac_c" 1>&6
11300 if test "$cross_compiling" = yes; then
11301 samba_cv_HAVE_FCNTL_LOCK=cross
11303 cat > conftest.$ac_ext <<EOF
11304 #line 11305 "configure"
11305 #include "confdefs.h"
11306 #include "${srcdir-.}/tests/fcntl_lock.c"
11308 if { (eval echo configure:11309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11310 samba_cv_HAVE_FCNTL_LOCK=yes
11312 echo "configure: failed program was:" >&5
11313 cat conftest.$ac_ext >&5
11315 samba_cv_HAVE_FCNTL_LOCK=no
11322 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11323 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11324 cat >> confdefs.h <<\EOF
11325 #define HAVE_FCNTL_LOCK 1
11330 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11331 echo "configure:11332: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11332 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11333 echo $ac_n "(cached) $ac_c" 1>&6
11336 if test "$cross_compiling" = yes; then
11337 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11339 cat > conftest.$ac_ext <<EOF
11340 #line 11341 "configure"
11341 #include "confdefs.h"
11342 #include "${srcdir-.}/tests/fcntl_lock64.c"
11344 if { (eval echo configure:11345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11346 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11348 echo "configure: failed program was:" >&5
11349 cat conftest.$ac_ext >&5
11351 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11358 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11359 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11360 cat >> confdefs.h <<\EOF
11361 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11368 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11369 echo "configure:11370: checking for 64 bit fcntl locking" >&5
11370 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11371 echo $ac_n "(cached) $ac_c" 1>&6
11374 if test "$cross_compiling" = yes; then
11375 samba_cv_HAVE_STRUCT_FLOCK64=cross
11377 cat > conftest.$ac_ext <<EOF
11378 #line 11379 "configure"
11379 #include "confdefs.h"
11381 #if defined(HAVE_UNISTD_H)
11382 #include <unistd.h>
11385 #include <stdlib.h>
11387 #ifdef HAVE_FCNTL_H
11391 #ifdef HAVE_SYS_FCNTL_H
11392 #include <sys/fcntl.h>
11394 main() { struct flock64 fl64;
11395 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11402 if { (eval echo configure:11403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11404 samba_cv_HAVE_STRUCT_FLOCK64=yes
11406 echo "configure: failed program was:" >&5
11407 cat conftest.$ac_ext >&5
11409 samba_cv_HAVE_STRUCT_FLOCK64=no
11416 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11418 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11419 cat >> confdefs.h <<\EOF
11420 #define HAVE_STRUCT_FLOCK64 1
11426 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11427 echo "configure:11428: checking for st_blocks in struct stat" >&5
11428 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11429 echo $ac_n "(cached) $ac_c" 1>&6
11432 cat > conftest.$ac_ext <<EOF
11433 #line 11434 "configure"
11434 #include "confdefs.h"
11435 #include <sys/types.h>
11436 #include <sys/stat.h>
11437 #include <unistd.h>
11439 struct stat st; st.st_blocks = 0;
11442 if { (eval echo configure:11443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11444 samba_cv_HAVE_STAT_ST_BLOCKS=yes
11446 echo "configure: failed program was:" >&5
11447 cat conftest.$ac_ext >&5
11449 samba_cv_HAVE_STAT_ST_BLOCKS=no
11454 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11455 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
11456 cat >> confdefs.h <<\EOF
11457 #define HAVE_STAT_ST_BLOCKS 1
11464 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11465 echo "configure:11466: checking for broken RedHat 7.2 system header files" >&5
11466 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11467 echo $ac_n "(cached) $ac_c" 1>&6
11470 cat > conftest.$ac_ext <<EOF
11471 #line 11472 "configure"
11472 #include "confdefs.h"
11474 #ifdef HAVE_SYS_VFS_H
11475 #include <sys/vfs.h>
11477 #ifdef HAVE_SYS_CAPABILITY_H
11478 #include <sys/capability.h>
11485 if { (eval echo configure:11486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11487 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11489 echo "configure: failed program was:" >&5
11490 cat conftest.$ac_ext >&5
11492 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11497 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11498 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11499 cat >> confdefs.h <<\EOF
11500 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11507 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11508 echo "configure:11509: checking for broken nisplus include files" >&5
11509 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11510 echo $ac_n "(cached) $ac_c" 1>&6
11513 cat > conftest.$ac_ext <<EOF
11514 #line 11515 "configure"
11515 #include "confdefs.h"
11516 #include <sys/acl.h>
11517 #if defined(HAVE_RPCSVC_NIS_H)
11518 #include <rpcsvc/nis.h>
11524 if { (eval echo configure:11525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11526 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11528 echo "configure: failed program was:" >&5
11529 cat conftest.$ac_ext >&5
11531 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11536 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11537 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11538 cat >> confdefs.h <<\EOF
11539 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11545 #################################################
11546 # check for smbwrapper support
11547 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11548 echo "configure:11549: checking whether to use smbwrapper" >&5
11549 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11550 if test "${with_smbwrapper+set}" = set; then
11551 withval="$with_smbwrapper"
11554 echo "$ac_t""yes" 1>&6
11555 cat >> confdefs.h <<\EOF
11556 #define WITH_SMBWRAPPER 1
11559 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11561 if test x$ATTEMPT_WRAP32_BUILD = x; then
11564 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11567 # Conditions under which smbwrapper should not be built.
11569 if test x$PICFLAG = x; then
11570 echo No support for PIC code - disabling smbwrapper and smbsh
11573 elif test x$ac_cv_func_syscall = xno; then
11574 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11580 echo "$ac_t""no" 1>&6
11584 echo "$ac_t""no" 1>&6
11589 #################################################
11590 # check for AFS clear-text auth support
11591 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
11592 echo "configure:11593: checking whether to use AFS clear-text auth" >&5
11593 # Check whether --with-afs or --without-afs was given.
11594 if test "${with_afs+set}" = set; then
11595 withval="$with_afs"
11598 echo "$ac_t""yes" 1>&6
11599 cat >> confdefs.h <<\EOF
11605 echo "$ac_t""no" 1>&6
11609 echo "$ac_t""no" 1>&6
11615 #################################################
11616 # check for the DFS clear-text auth system
11617 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
11618 echo "configure:11619: checking whether to use DFS clear-text auth" >&5
11619 # Check whether --with-dfs or --without-dfs was given.
11620 if test "${with_dfs+set}" = set; then
11621 withval="$with_dfs"
11624 echo "$ac_t""yes" 1>&6
11625 cat >> confdefs.h <<\EOF
11631 echo "$ac_t""no" 1>&6
11635 echo "$ac_t""no" 1>&6
11641 #################################################
11642 # see if this box has the RedHat location for kerberos
11643 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
11644 echo "configure:11645: checking for /usr/kerberos" >&5
11645 if test -d /usr/kerberos; then
11646 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
11647 CFLAGS="$CFLAGS -I/usr/kerberos/include"
11648 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
11649 echo "$ac_t""yes" 1>&6
11651 echo "$ac_t""no" 1>&6
11654 #################################################
11655 # check for location of Kerberos 5 install
11656 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
11657 echo "configure:11658: checking for kerberos 5 install path" >&5
11658 # Check whether --with-krb5 or --without-krb5 was given.
11659 if test "${with_krb5+set}" = set; then
11660 withval="$with_krb5"
11663 echo "$ac_t""no" 1>&6
11666 echo "$ac_t""yes" 1>&6
11667 LIBS="$LIBS -lkrb5"
11668 CFLAGS="$CFLAGS -I$withval/include"
11669 CPPFLAGS="$CPPFLAGS -I$withval/include"
11670 LDFLAGS="$LDFLAGS -L$withval/lib"
11674 echo "$ac_t""no" 1>&6
11679 # now check for krb5.h. Some systems have the libraries without the headers!
11680 # note that this check is done here to allow for different kerberos
11682 for ac_hdr in krb5.h
11684 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11685 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11686 echo "configure:11687: checking for $ac_hdr" >&5
11687 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11688 echo $ac_n "(cached) $ac_c" 1>&6
11690 cat > conftest.$ac_ext <<EOF
11691 #line 11692 "configure"
11692 #include "confdefs.h"
11695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11696 { (eval echo configure:11697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11697 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11698 if test -z "$ac_err"; then
11700 eval "ac_cv_header_$ac_safe=yes"
11703 echo "configure: failed program was:" >&5
11704 cat conftest.$ac_ext >&5
11706 eval "ac_cv_header_$ac_safe=no"
11710 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11711 echo "$ac_t""yes" 1>&6
11712 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11713 cat >> confdefs.h <<EOF
11714 #define $ac_tr_hdr 1
11718 echo "$ac_t""no" 1>&6
11723 # now check for gssapi headers. This is also done here to allow for
11724 # different kerberos include paths
11725 for ac_hdr in gssapi/gssapi_generic.h gssapi/gssapi.h
11727 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11728 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11729 echo "configure:11730: checking for $ac_hdr" >&5
11730 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11731 echo $ac_n "(cached) $ac_c" 1>&6
11733 cat > conftest.$ac_ext <<EOF
11734 #line 11735 "configure"
11735 #include "confdefs.h"
11738 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11739 { (eval echo configure:11740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11740 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11741 if test -z "$ac_err"; then
11743 eval "ac_cv_header_$ac_safe=yes"
11746 echo "configure: failed program was:" >&5
11747 cat conftest.$ac_ext >&5
11749 eval "ac_cv_header_$ac_safe=no"
11753 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11754 echo "$ac_t""yes" 1>&6
11755 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11756 cat >> confdefs.h <<EOF
11757 #define $ac_tr_hdr 1
11761 echo "$ac_t""no" 1>&6
11766 ##################################################################
11767 # we might need the k5crypto and com_err libraries on some systems
11768 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
11769 echo "configure:11770: checking for _et_list in -lcom_err" >&5
11770 ac_lib_var=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
11771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11772 echo $ac_n "(cached) $ac_c" 1>&6
11774 ac_save_LIBS="$LIBS"
11775 LIBS="-lcom_err $LIBS"
11776 cat > conftest.$ac_ext <<EOF
11777 #line 11778 "configure"
11778 #include "confdefs.h"
11779 /* Override any gcc2 internal prototype to avoid an error. */
11780 /* We use char because int might match the return type of a gcc2
11781 builtin and then its argument prototype would still apply. */
11788 if { (eval echo configure:11789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11790 eval "ac_cv_lib_$ac_lib_var=yes"
11792 echo "configure: failed program was:" >&5
11793 cat conftest.$ac_ext >&5
11795 eval "ac_cv_lib_$ac_lib_var=no"
11798 LIBS="$ac_save_LIBS"
11801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11802 echo "$ac_t""yes" 1>&6
11803 LIBS="$LIBS -lcom_err"
11805 echo "$ac_t""no" 1>&6
11808 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
11809 echo "configure:11810: checking for krb5_encrypt_data in -lk5crypto" >&5
11810 ac_lib_var=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
11811 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11812 echo $ac_n "(cached) $ac_c" 1>&6
11814 ac_save_LIBS="$LIBS"
11815 LIBS="-lk5crypto $LIBS"
11816 cat > conftest.$ac_ext <<EOF
11817 #line 11818 "configure"
11818 #include "confdefs.h"
11819 /* Override any gcc2 internal prototype to avoid an error. */
11820 /* We use char because int might match the return type of a gcc2
11821 builtin and then its argument prototype would still apply. */
11822 char krb5_encrypt_data();
11825 krb5_encrypt_data()
11828 if { (eval echo configure:11829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11830 eval "ac_cv_lib_$ac_lib_var=yes"
11832 echo "configure: failed program was:" >&5
11833 cat conftest.$ac_ext >&5
11835 eval "ac_cv_lib_$ac_lib_var=no"
11838 LIBS="$ac_save_LIBS"
11841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11842 echo "$ac_t""yes" 1>&6
11843 LIBS="$LIBS -lk5crypto"
11845 echo "$ac_t""no" 1>&6
11849 ########################################################
11850 # now see if we can find the krb5 libs in standard paths
11851 # or as specified above
11852 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
11853 echo "configure:11854: checking for krb5_mk_req_extended in -lkrb5" >&5
11854 ac_lib_var=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
11855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11856 echo $ac_n "(cached) $ac_c" 1>&6
11858 ac_save_LIBS="$LIBS"
11859 LIBS="-lkrb5 $LIBS"
11860 cat > conftest.$ac_ext <<EOF
11861 #line 11862 "configure"
11862 #include "confdefs.h"
11863 /* Override any gcc2 internal prototype to avoid an error. */
11864 /* We use char because int might match the return type of a gcc2
11865 builtin and then its argument prototype would still apply. */
11866 char krb5_mk_req_extended();
11869 krb5_mk_req_extended()
11872 if { (eval echo configure:11873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11874 eval "ac_cv_lib_$ac_lib_var=yes"
11876 echo "configure: failed program was:" >&5
11877 cat conftest.$ac_ext >&5
11879 eval "ac_cv_lib_$ac_lib_var=no"
11882 LIBS="$ac_save_LIBS"
11885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11886 echo "$ac_t""yes" 1>&6
11887 LIBS="$LIBS -lkrb5";
11888 cat >> confdefs.h <<\EOF
11889 #define HAVE_KRB5 1
11893 echo "$ac_t""no" 1>&6
11897 ########################################################
11898 # now see if we can find the gssapi libs in standard paths
11899 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
11900 echo "configure:11901: checking for gss_display_status in -lgssapi_krb5" >&5
11901 ac_lib_var=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
11902 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11903 echo $ac_n "(cached) $ac_c" 1>&6
11905 ac_save_LIBS="$LIBS"
11906 LIBS="-lgssapi_krb5 $LIBS"
11907 cat > conftest.$ac_ext <<EOF
11908 #line 11909 "configure"
11909 #include "confdefs.h"
11910 /* Override any gcc2 internal prototype to avoid an error. */
11911 /* We use char because int might match the return type of a gcc2
11912 builtin and then its argument prototype would still apply. */
11913 char gss_display_status();
11916 gss_display_status()
11919 if { (eval echo configure:11920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11921 eval "ac_cv_lib_$ac_lib_var=yes"
11923 echo "configure: failed program was:" >&5
11924 cat conftest.$ac_ext >&5
11926 eval "ac_cv_lib_$ac_lib_var=no"
11929 LIBS="$ac_save_LIBS"
11932 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11933 echo "$ac_t""yes" 1>&6
11934 LIBS="$LIBS -lgssapi_krb5";
11935 cat >> confdefs.h <<\EOF
11936 #define HAVE_GSSAPI 1
11940 echo "$ac_t""no" 1>&6
11944 ##################################################################
11945 # we might need the lber lib on some systems. To avoid link errors
11946 # this test must be before the libldap test
11947 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
11948 echo "configure:11949: checking for ber_scanf in -llber" >&5
11949 ac_lib_var=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
11950 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11951 echo $ac_n "(cached) $ac_c" 1>&6
11953 ac_save_LIBS="$LIBS"
11954 LIBS="-llber $LIBS"
11955 cat > conftest.$ac_ext <<EOF
11956 #line 11957 "configure"
11957 #include "confdefs.h"
11958 /* Override any gcc2 internal prototype to avoid an error. */
11959 /* We use char because int might match the return type of a gcc2
11960 builtin and then its argument prototype would still apply. */
11967 if { (eval echo configure:11968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11969 eval "ac_cv_lib_$ac_lib_var=yes"
11971 echo "configure: failed program was:" >&5
11972 cat conftest.$ac_ext >&5
11974 eval "ac_cv_lib_$ac_lib_var=no"
11977 LIBS="$ac_save_LIBS"
11980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11981 echo "$ac_t""yes" 1>&6
11982 LIBS="$LIBS -llber"
11984 echo "$ac_t""no" 1>&6
11988 ########################################################
11989 # now see if we can find the ldap libs in standard paths
11990 if test x$have_ldap != xyes; then
11991 echo $ac_n "checking for ldap_domain2hostlist in -lldap""... $ac_c" 1>&6
11992 echo "configure:11993: checking for ldap_domain2hostlist in -lldap" >&5
11993 ac_lib_var=`echo ldap'_'ldap_domain2hostlist | sed 'y%./+-%__p_%'`
11994 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11995 echo $ac_n "(cached) $ac_c" 1>&6
11997 ac_save_LIBS="$LIBS"
11998 LIBS="-lldap $LIBS"
11999 cat > conftest.$ac_ext <<EOF
12000 #line 12001 "configure"
12001 #include "confdefs.h"
12002 /* Override any gcc2 internal prototype to avoid an error. */
12003 /* We use char because int might match the return type of a gcc2
12004 builtin and then its argument prototype would still apply. */
12005 char ldap_domain2hostlist();
12008 ldap_domain2hostlist()
12011 if { (eval echo configure:12012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12013 eval "ac_cv_lib_$ac_lib_var=yes"
12015 echo "configure: failed program was:" >&5
12016 cat conftest.$ac_ext >&5
12018 eval "ac_cv_lib_$ac_lib_var=no"
12021 LIBS="$ac_save_LIBS"
12024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12025 echo "$ac_t""yes" 1>&6
12026 LIBS="$LIBS -lldap";
12027 cat >> confdefs.h <<\EOF
12028 #define HAVE_LDAP 1
12032 echo "$ac_t""no" 1>&6
12037 #################################################
12038 # check for automount support
12039 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
12040 echo "configure:12041: checking whether to use AUTOMOUNT" >&5
12041 # Check whether --with-automount or --without-automount was given.
12042 if test "${with_automount+set}" = set; then
12043 withval="$with_automount"
12046 echo "$ac_t""yes" 1>&6
12047 cat >> confdefs.h <<\EOF
12048 #define WITH_AUTOMOUNT 1
12053 echo "$ac_t""no" 1>&6
12057 echo "$ac_t""no" 1>&6
12062 #################################################
12063 # check for smbmount support
12064 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
12065 echo "configure:12066: checking whether to use SMBMOUNT" >&5
12066 # Check whether --with-smbmount or --without-smbmount was given.
12067 if test "${with_smbmount+set}" = set; then
12068 withval="$with_smbmount"
12073 echo "$ac_t""yes" 1>&6
12074 cat >> confdefs.h <<\EOF
12075 #define WITH_SMBMOUNT 1
12078 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
12081 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
12086 echo "$ac_t""no" 1>&6
12091 echo "$ac_t""no" 1>&6
12098 #################################################
12099 # check for a PAM clear-text auth, accounts, password and session support
12100 with_pam_for_crypt=no
12101 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
12102 echo "configure:12103: checking whether to use PAM" >&5
12103 # Check whether --with-pam or --without-pam was given.
12104 if test "${with_pam+set}" = set; then
12105 withval="$with_pam"
12108 echo "$ac_t""yes" 1>&6
12109 cat >> confdefs.h <<\EOF
12114 with_pam_for_crypt=yes
12117 echo "$ac_t""no" 1>&6
12121 echo "$ac_t""no" 1>&6
12126 # we can't build a pam module if we don't have pam.
12127 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
12128 echo "configure:12129: checking for pam_get_data in -lpam" >&5
12129 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
12130 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12131 echo $ac_n "(cached) $ac_c" 1>&6
12133 ac_save_LIBS="$LIBS"
12135 cat > conftest.$ac_ext <<EOF
12136 #line 12137 "configure"
12137 #include "confdefs.h"
12138 /* Override any gcc2 internal prototype to avoid an error. */
12139 /* We use char because int might match the return type of a gcc2
12140 builtin and then its argument prototype would still apply. */
12141 char pam_get_data();
12147 if { (eval echo configure:12148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12149 eval "ac_cv_lib_$ac_lib_var=yes"
12151 echo "configure: failed program was:" >&5
12152 cat conftest.$ac_ext >&5
12154 eval "ac_cv_lib_$ac_lib_var=no"
12157 LIBS="$ac_save_LIBS"
12160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12161 echo "$ac_t""yes" 1>&6
12162 cat >> confdefs.h <<\EOF
12163 #define HAVE_LIBPAM 1
12167 echo "$ac_t""no" 1>&6
12171 #################################################
12172 # check for pam_smbpass support
12173 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
12174 echo "configure:12175: checking whether to use pam_smbpass" >&5
12175 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
12176 if test "${with_pam_smbpass+set}" = set; then
12177 withval="$with_pam_smbpass"
12180 echo "$ac_t""yes" 1>&6
12182 # Conditions under which pam_smbpass should not be built.
12184 if test x$PICFLAG = x; then
12185 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
12187 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
12188 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
12191 PAM_MOD="bin/pam_smbpass.so"
12195 echo "$ac_t""no" 1>&6
12199 echo "$ac_t""no" 1>&6
12205 ###############################################
12206 # test for where we get crypt() from, but only
12208 if test $with_pam_for_crypt = no; then
12209 for ac_func in crypt
12211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12212 echo "configure:12213: checking for $ac_func" >&5
12213 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12214 echo $ac_n "(cached) $ac_c" 1>&6
12216 cat > conftest.$ac_ext <<EOF
12217 #line 12218 "configure"
12218 #include "confdefs.h"
12219 /* System header to define __stub macros and hopefully few prototypes,
12220 which can conflict with char $ac_func(); below. */
12221 #include <assert.h>
12222 /* Override any gcc2 internal prototype to avoid an error. */
12223 /* We use char because int might match the return type of a gcc2
12224 builtin and then its argument prototype would still apply. */
12229 /* The GNU C library defines this for functions which it implements
12230 to always fail with ENOSYS. Some functions are actually named
12231 something starting with __ and the normal name is an alias. */
12232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12240 if { (eval echo configure:12241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12242 eval "ac_cv_func_$ac_func=yes"
12244 echo "configure: failed program was:" >&5
12245 cat conftest.$ac_ext >&5
12247 eval "ac_cv_func_$ac_func=no"
12252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12253 echo "$ac_t""yes" 1>&6
12254 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12255 cat >> confdefs.h <<EOF
12256 #define $ac_tr_func 1
12260 echo "$ac_t""no" 1>&6
12264 if test x"$ac_cv_func_crypt" = x"no"; then
12265 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12266 echo "configure:12267: checking for crypt in -lcrypt" >&5
12267 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12268 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12269 echo $ac_n "(cached) $ac_c" 1>&6
12271 ac_save_LIBS="$LIBS"
12272 LIBS="-lcrypt $LIBS"
12273 cat > conftest.$ac_ext <<EOF
12274 #line 12275 "configure"
12275 #include "confdefs.h"
12276 /* Override any gcc2 internal prototype to avoid an error. */
12277 /* We use char because int might match the return type of a gcc2
12278 builtin and then its argument prototype would still apply. */
12285 if { (eval echo configure:12286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12287 eval "ac_cv_lib_$ac_lib_var=yes"
12289 echo "configure: failed program was:" >&5
12290 cat conftest.$ac_ext >&5
12292 eval "ac_cv_lib_$ac_lib_var=no"
12295 LIBS="$ac_save_LIBS"
12298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12299 echo "$ac_t""yes" 1>&6
12300 LIBS="$LIBS -lcrypt";
12301 cat >> confdefs.h <<\EOF
12302 #define HAVE_CRYPT 1
12306 echo "$ac_t""no" 1>&6
12313 ## moved after the check for -lcrypt in order to
12314 ## ensure that the necessary libraries are included
12315 ## check checking for truncated salt. Wrapped by the
12316 ## $with_pam_for_crypt variable as above --jerry
12318 if test $with_pam_for_crypt = no; then
12319 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12320 echo "configure:12321: checking for a crypt that needs truncated salt" >&5
12321 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12322 echo $ac_n "(cached) $ac_c" 1>&6
12325 if test "$cross_compiling" = yes; then
12326 samba_cv_HAVE_TRUNCATED_SALT=cross
12328 cat > conftest.$ac_ext <<EOF
12329 #line 12330 "configure"
12330 #include "confdefs.h"
12331 #include "${srcdir-.}/tests/crypttest.c"
12333 if { (eval echo configure:12334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12335 samba_cv_HAVE_TRUNCATED_SALT=no
12337 echo "configure: failed program was:" >&5
12338 cat conftest.$ac_ext >&5
12340 samba_cv_HAVE_TRUNCATED_SALT=yes
12347 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12348 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
12349 cat >> confdefs.h <<\EOF
12350 #define HAVE_TRUNCATED_SALT 1
12358 ########################################################################################
12360 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12362 ########################################################################################
12364 #################################################
12365 # check for a TDB password database
12366 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12367 echo "configure:12368: checking whether to use TDB SAM database" >&5
12368 # Check whether --with-tdbsam or --without-tdbsam was given.
12369 if test "${with_tdbsam+set}" = set; then
12370 withval="$with_tdbsam"
12373 echo "$ac_t""yes" 1>&6
12374 cat >> confdefs.h <<\EOF
12375 #define WITH_TDB_SAM 1
12380 echo "$ac_t""no" 1>&6
12384 echo "$ac_t""no" 1>&6
12389 #################################################
12390 # check for a LDAP password database
12391 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12392 echo "configure:12393: checking whether to use LDAP SAM database" >&5
12393 # Check whether --with-ldapsam or --without-ldapsam was given.
12394 if test "${with_ldapsam+set}" = set; then
12395 withval="$with_ldapsam"
12398 echo "$ac_t""yes" 1>&6
12399 cat >> confdefs.h <<\EOF
12400 #define WITH_LDAP_SAM 1
12403 LIBS="-lldap -llber $LIBS"
12406 echo "$ac_t""no" 1>&6
12410 echo "$ac_t""no" 1>&6
12415 #################################################
12416 # check for a NISPLUS password database
12417 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12418 echo "configure:12419: checking whether to use NISPLUS SAM database" >&5
12419 # Check whether --with-nisplussam or --without-nisplussam was given.
12420 if test "${with_nisplussam+set}" = set; then
12421 withval="$with_nisplussam"
12424 echo "$ac_t""yes" 1>&6
12425 cat >> confdefs.h <<\EOF
12426 #define WITH_NISPLUS_SAM 1
12431 echo "$ac_t""no" 1>&6
12435 echo "$ac_t""no" 1>&6
12440 ########################################################################################
12442 ## END OF TESTS FOR SAM BACKENDS.
12444 ########################################################################################
12446 #################################################
12447 # check for a NISPLUS_HOME support
12448 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12449 echo "configure:12450: checking whether to use NISPLUS_HOME" >&5
12450 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12451 if test "${with_nisplus_home+set}" = set; then
12452 withval="$with_nisplus_home"
12455 echo "$ac_t""yes" 1>&6
12456 cat >> confdefs.h <<\EOF
12457 #define WITH_NISPLUS_HOME 1
12462 echo "$ac_t""no" 1>&6
12466 echo "$ac_t""no" 1>&6
12471 #################################################
12472 # check for the secure socket layer
12473 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12474 echo "configure:12475: checking whether to use SSL" >&5
12475 # Check whether --with-ssl or --without-ssl was given.
12476 if test "${with_ssl+set}" = set; then
12477 withval="$with_ssl"
12480 echo "$ac_t""yes" 1>&6
12481 cat >> confdefs.h <<\EOF
12485 withval="/usr/local/ssl" # default
12487 if test "${with_sslinc+set}" = set; then
12489 withval="$with_sslinc"
12492 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12493 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12496 CFLAGS="-I${withval} $CFLAGS"
12502 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12506 if test "${with_ssllib+set}" = set; then
12508 withval="$with_ssllib"
12511 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12512 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12515 LDFLAGS="-L${withval}/lib $LDFLAGS"
12521 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12525 LIBS="-lssl -lcrypto $LIBS"
12527 # if test ! -d ${withval}; then
12528 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12532 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12536 echo "$ac_t""no" 1>&6
12540 echo "$ac_t""no" 1>&6
12545 #################################################
12546 # check for syslog logging
12547 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12548 echo "configure:12549: checking whether to use syslog logging" >&5
12549 # Check whether --with-syslog or --without-syslog was given.
12550 if test "${with_syslog+set}" = set; then
12551 withval="$with_syslog"
12554 echo "$ac_t""yes" 1>&6
12555 cat >> confdefs.h <<\EOF
12556 #define WITH_SYSLOG 1
12561 echo "$ac_t""no" 1>&6
12565 echo "$ac_t""no" 1>&6
12570 #################################################
12571 # check for a shared memory profiling support
12572 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12573 echo "configure:12574: checking whether to use profiling" >&5
12574 # Check whether --with-profiling-data or --without-profiling-data was given.
12575 if test "${with_profiling_data+set}" = set; then
12576 withval="$with_profiling_data"
12579 echo "$ac_t""yes" 1>&6
12580 cat >> confdefs.h <<\EOF
12581 #define WITH_PROFILE 1
12586 echo "$ac_t""no" 1>&6
12590 echo "$ac_t""no" 1>&6
12596 #################################################
12597 # check for experimental disk-quotas support
12598 QUOTAOBJS=smbd/noquotas.o
12600 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12601 echo "configure:12602: checking whether to support disk-quotas" >&5
12602 # Check whether --with-quotas or --without-quotas was given.
12603 if test "${with_quotas+set}" = set; then
12604 withval="$with_quotas"
12607 echo "$ac_t""yes" 1>&6
12610 # Check for kernel 2.4.x quota braindamage...
12611 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
12612 echo "configure:12613: checking for linux 2.4.x quota braindamage.." >&5
12613 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
12614 echo $ac_n "(cached) $ac_c" 1>&6
12617 cat > conftest.$ac_ext <<EOF
12618 #line 12619 "configure"
12619 #include "confdefs.h"
12621 #include <sys/types.h>
12622 #include <asm/types.h>
12623 #include <linux/quota.h>
12624 #include <mntent.h>
12625 #include <linux/unistd.h>
12627 struct mem_dqblk D;
12630 if { (eval echo configure:12631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12632 samba_cv_linux_2_4_quota_braindamage=yes
12634 echo "configure: failed program was:" >&5
12635 cat conftest.$ac_ext >&5
12637 samba_cv_linux_2_4_quota_braindamage=no
12642 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
12643 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
12644 cat >> confdefs.h <<\EOF
12645 #define LINUX_QUOTAS_2 1
12649 cat >> confdefs.h <<\EOF
12650 #define LINUX_QUOTAS_1 1
12658 QUOTAOBJS=smbd/quotas.o
12659 cat >> confdefs.h <<\EOF
12660 #define WITH_QUOTAS 1
12665 echo "$ac_t""no" 1>&6
12669 echo "$ac_t""no" 1>&6
12675 #################################################
12676 # check for experimental utmp accounting
12678 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12679 echo "configure:12680: checking whether to support utmp accounting" >&5
12680 # Check whether --with-utmp or --without-utmp was given.
12681 if test "${with_utmp+set}" = set; then
12682 withval="$with_utmp"
12685 echo "$ac_t""yes" 1>&6
12686 cat >> confdefs.h <<\EOF
12687 #define WITH_UTMP 1
12692 echo "$ac_t""no" 1>&6
12696 echo "$ac_t""no" 1>&6
12701 #################################################
12702 # set private directory location
12703 # Check whether --with-privatedir or --without-privatedir was given.
12704 if test "${with_privatedir+set}" = set; then
12705 withval="$with_privatedir"
12709 # Just in case anybody calls it without argument
12711 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
12712 privatedir='${prefix}/private'
12715 privatedir="$withval"
12720 privatedir='${prefix}/private'
12726 #################################################
12727 # set lock directory location
12728 # Check whether --with-lockdir or --without-lockdir was given.
12729 if test "${with_lockdir+set}" = set; then
12730 withval="$with_lockdir"
12734 # Just in case anybody calls it without argument
12736 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
12737 lockdir='$(VARDIR)/locks'
12745 lockdir='$(VARDIR)/locks'
12751 #################################################
12752 # set SWAT directory location
12753 # Check whether --with-swatdir or --without-swatdir was given.
12754 if test "${with_swatdir+set}" = set; then
12755 withval="$with_swatdir"
12759 # Just in case anybody does it
12761 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
12762 swatdir='${prefix}/swat'
12770 swatdir='${prefix}/swat'
12776 #################################################
12777 # choose native language(s) of man pages
12778 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
12779 echo "configure:12780: checking chosen man pages' language(s)" >&5
12780 # Check whether --with-manpages-langs or --without-manpages-langs was given.
12781 if test "${with_manpages_langs+set}" = set; then
12782 withval="$with_manpages_langs"
12785 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
12789 manlangs="$withval"
12793 echo "$ac_t""$manlangs" 1>&6
12794 manlangs=`echo $manlangs | sed "s/,/ /"` # replacing commas with spaces to produce a list
12798 echo "$ac_t""$manlangs" 1>&6
12804 #################################################
12805 # these tests are taken from the GNU fileutils package
12806 echo "checking how to get filesystem space usage" 1>&6
12807 echo "configure:12808: checking how to get filesystem space usage" >&5
12810 # Test for statvfs64.
12811 if test $space = no; then
12813 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12814 echo "configure:12815: checking statvfs64 function (SVR4)" >&5
12815 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12816 echo $ac_n "(cached) $ac_c" 1>&6
12818 if test "$cross_compiling" = yes; then
12819 fu_cv_sys_stat_statvfs64=cross
12821 cat > conftest.$ac_ext <<EOF
12822 #line 12823 "configure"
12823 #include "confdefs.h"
12825 #if defined(HAVE_UNISTD_H)
12826 #include <unistd.h>
12828 #include <sys/types.h>
12829 #include <sys/statvfs.h>
12832 struct statvfs64 fsd;
12833 exit (statvfs64 (".", &fsd));
12836 if { (eval echo configure:12837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12838 fu_cv_sys_stat_statvfs64=yes
12840 echo "configure: failed program was:" >&5
12841 cat conftest.$ac_ext >&5
12843 fu_cv_sys_stat_statvfs64=no
12850 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12851 if test $fu_cv_sys_stat_statvfs64 = yes; then
12853 cat >> confdefs.h <<\EOF
12854 #define STAT_STATVFS64 1
12860 # Perform only the link test since it seems there are no variants of the
12861 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12862 # because that got a false positive on SCO OSR5. Adding the declaration
12863 # of a `struct statvfs' causes this test to fail (as it should) on such
12864 # systems. That system is reported to work fine with STAT_STATFS4 which
12865 # is what it gets when this test fails.
12866 if test $space = no; then
12868 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12869 echo "configure:12870: checking statvfs function (SVR4)" >&5
12870 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12871 echo $ac_n "(cached) $ac_c" 1>&6
12873 cat > conftest.$ac_ext <<EOF
12874 #line 12875 "configure"
12875 #include "confdefs.h"
12876 #include <sys/types.h>
12877 #include <sys/statvfs.h>
12879 struct statvfs fsd; statvfs (0, &fsd);
12882 if { (eval echo configure:12883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12884 fu_cv_sys_stat_statvfs=yes
12886 echo "configure: failed program was:" >&5
12887 cat conftest.$ac_ext >&5
12889 fu_cv_sys_stat_statvfs=no
12894 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12895 if test $fu_cv_sys_stat_statvfs = yes; then
12897 cat >> confdefs.h <<\EOF
12898 #define STAT_STATVFS 1
12904 if test $space = no; then
12905 # DEC Alpha running OSF/1
12906 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12907 echo "configure:12908: checking for 3-argument statfs function (DEC OSF/1)" >&5
12908 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12909 echo $ac_n "(cached) $ac_c" 1>&6
12911 if test "$cross_compiling" = yes; then
12912 fu_cv_sys_stat_statfs3_osf1=no
12914 cat > conftest.$ac_ext <<EOF
12915 #line 12916 "configure"
12916 #include "confdefs.h"
12918 #include <sys/param.h>
12919 #include <sys/types.h>
12920 #include <sys/mount.h>
12925 exit (statfs (".", &fsd, sizeof (struct statfs)));
12928 if { (eval echo configure:12929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12930 fu_cv_sys_stat_statfs3_osf1=yes
12932 echo "configure: failed program was:" >&5
12933 cat conftest.$ac_ext >&5
12935 fu_cv_sys_stat_statfs3_osf1=no
12942 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12943 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12945 cat >> confdefs.h <<\EOF
12946 #define STAT_STATFS3_OSF1 1
12952 if test $space = no; then
12954 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12955 echo "configure:12956: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12956 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12957 echo $ac_n "(cached) $ac_c" 1>&6
12959 if test "$cross_compiling" = yes; then
12960 fu_cv_sys_stat_statfs2_bsize=no
12962 cat > conftest.$ac_ext <<EOF
12963 #line 12964 "configure"
12964 #include "confdefs.h"
12966 #ifdef HAVE_SYS_PARAM_H
12967 #include <sys/param.h>
12969 #ifdef HAVE_SYS_MOUNT_H
12970 #include <sys/mount.h>
12972 #ifdef HAVE_SYS_VFS_H
12973 #include <sys/vfs.h>
12979 exit (statfs (".", &fsd));
12982 if { (eval echo configure:12983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12984 fu_cv_sys_stat_statfs2_bsize=yes
12986 echo "configure: failed program was:" >&5
12987 cat conftest.$ac_ext >&5
12989 fu_cv_sys_stat_statfs2_bsize=no
12996 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12997 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12999 cat >> confdefs.h <<\EOF
13000 #define STAT_STATFS2_BSIZE 1
13006 if test $space = no; then
13008 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
13009 echo "configure:13010: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
13010 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
13011 echo $ac_n "(cached) $ac_c" 1>&6
13013 if test "$cross_compiling" = yes; then
13014 fu_cv_sys_stat_statfs4=no
13016 cat > conftest.$ac_ext <<EOF
13017 #line 13018 "configure"
13018 #include "confdefs.h"
13019 #include <sys/types.h>
13020 #include <sys/statfs.h>
13024 exit (statfs (".", &fsd, sizeof fsd, 0));
13027 if { (eval echo configure:13028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13029 fu_cv_sys_stat_statfs4=yes
13031 echo "configure: failed program was:" >&5
13032 cat conftest.$ac_ext >&5
13034 fu_cv_sys_stat_statfs4=no
13041 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
13042 if test $fu_cv_sys_stat_statfs4 = yes; then
13044 cat >> confdefs.h <<\EOF
13045 #define STAT_STATFS4 1
13051 if test $space = no; then
13052 # 4.4BSD and NetBSD
13053 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
13054 echo "configure:13055: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
13055 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
13056 echo $ac_n "(cached) $ac_c" 1>&6
13058 if test "$cross_compiling" = yes; then
13059 fu_cv_sys_stat_statfs2_fsize=no
13061 cat > conftest.$ac_ext <<EOF
13062 #line 13063 "configure"
13063 #include "confdefs.h"
13064 #include <sys/types.h>
13065 #ifdef HAVE_SYS_PARAM_H
13066 #include <sys/param.h>
13068 #ifdef HAVE_SYS_MOUNT_H
13069 #include <sys/mount.h>
13075 exit (statfs (".", &fsd));
13078 if { (eval echo configure:13079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13080 fu_cv_sys_stat_statfs2_fsize=yes
13082 echo "configure: failed program was:" >&5
13083 cat conftest.$ac_ext >&5
13085 fu_cv_sys_stat_statfs2_fsize=no
13092 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
13093 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
13095 cat >> confdefs.h <<\EOF
13096 #define STAT_STATFS2_FSIZE 1
13102 if test $space = no; then
13104 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
13105 echo "configure:13106: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13106 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
13107 echo $ac_n "(cached) $ac_c" 1>&6
13109 if test "$cross_compiling" = yes; then
13110 fu_cv_sys_stat_fs_data=no
13112 cat > conftest.$ac_ext <<EOF
13113 #line 13114 "configure"
13114 #include "confdefs.h"
13115 #include <sys/types.h>
13116 #ifdef HAVE_SYS_PARAM_H
13117 #include <sys/param.h>
13119 #ifdef HAVE_SYS_MOUNT_H
13120 #include <sys/mount.h>
13122 #ifdef HAVE_SYS_FS_TYPES_H
13123 #include <sys/fs_types.h>
13127 struct fs_data fsd;
13128 /* Ultrix's statfs returns 1 for success,
13129 0 for not mounted, -1 for failure. */
13130 exit (statfs (".", &fsd) != 1);
13133 if { (eval echo configure:13134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13135 fu_cv_sys_stat_fs_data=yes
13137 echo "configure: failed program was:" >&5
13138 cat conftest.$ac_ext >&5
13140 fu_cv_sys_stat_fs_data=no
13147 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
13148 if test $fu_cv_sys_stat_fs_data = yes; then
13150 cat >> confdefs.h <<\EOF
13151 #define STAT_STATFS2_FS_DATA 1
13158 # As a gating factor for large file support, in order to
13159 # use <4GB files we must have the following minimal support
13161 # long long, and a 64 bit off_t or off64_t.
13162 # If we don't have all of these then disable large
13165 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
13166 echo "configure:13167: checking if large file support can be enabled" >&5
13167 cat > conftest.$ac_ext <<EOF
13168 #line 13169 "configure"
13169 #include "confdefs.h"
13171 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13172 #include <sys/types.h>
13181 if { (eval echo configure:13182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13183 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
13185 echo "configure: failed program was:" >&5
13186 cat conftest.$ac_ext >&5
13188 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
13191 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
13192 cat >> confdefs.h <<\EOF
13193 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13197 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
13199 # Check whether --with-spinlocks or --without-spinlocks was given.
13200 if test "${with_spinlocks+set}" = set; then
13201 withval="$with_spinlocks"
13205 if test "x$with_spinlocks" = "xyes"; then
13206 cat >> confdefs.h <<\EOF
13207 #define USE_SPINLOCKS 1
13211 case "$host_cpu" in
13213 cat >> confdefs.h <<\EOF
13214 #define SPARC_SPINLOCKS 1
13219 i386|i486|i586|i686)
13220 cat >> confdefs.h <<\EOF
13221 #define INTEL_SPINLOCKS 1
13227 cat >> confdefs.h <<\EOF
13228 #define MIPS_SPINLOCKS 1
13234 cat >> confdefs.h <<\EOF
13235 #define POWERPC_SPINLOCKS 1
13242 #################################################
13243 # check for ACL support
13245 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13246 echo "configure:13247: checking whether to support ACLs" >&5
13247 # Check whether --with-acl-support or --without-acl-support was given.
13248 if test "${with_acl_support+set}" = set; then
13249 withval="$with_acl_support"
13255 echo "$ac_t""Using UnixWare ACLs" 1>&6
13256 cat >> confdefs.h <<\EOF
13257 #define HAVE_UNIXWARE_ACLS 1
13262 echo "$ac_t""Using solaris ACLs" 1>&6
13263 cat >> confdefs.h <<\EOF
13264 #define HAVE_SOLARIS_ACLS 1
13269 echo "$ac_t""Using HPUX ACLs" 1>&6
13270 cat >> confdefs.h <<\EOF
13271 #define HAVE_HPUX_ACLS 1
13276 echo "$ac_t""Using IRIX ACLs" 1>&6
13277 cat >> confdefs.h <<\EOF
13278 #define HAVE_IRIX_ACLS 1
13283 echo "$ac_t""Using AIX ACLs" 1>&6
13284 cat >> confdefs.h <<\EOF
13285 #define HAVE_AIX_ACLS 1
13290 echo "$ac_t""Using Tru64 ACLs" 1>&6
13291 cat >> confdefs.h <<\EOF
13292 #define HAVE_TRU64_ACLS 1
13295 LIBS="$LIBS -lpacl"
13298 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13299 echo "configure:13300: checking for acl_get_file in -lacl" >&5
13300 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13301 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13302 echo $ac_n "(cached) $ac_c" 1>&6
13304 ac_save_LIBS="$LIBS"
13306 cat > conftest.$ac_ext <<EOF
13307 #line 13308 "configure"
13308 #include "confdefs.h"
13309 /* Override any gcc2 internal prototype to avoid an error. */
13310 /* We use char because int might match the return type of a gcc2
13311 builtin and then its argument prototype would still apply. */
13312 char acl_get_file();
13318 if { (eval echo configure:13319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13320 eval "ac_cv_lib_$ac_lib_var=yes"
13322 echo "configure: failed program was:" >&5
13323 cat conftest.$ac_ext >&5
13325 eval "ac_cv_lib_$ac_lib_var=no"
13328 LIBS="$ac_save_LIBS"
13331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13332 echo "$ac_t""yes" 1>&6
13333 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13334 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13335 cat >> confdefs.h <<EOF
13336 #define $ac_tr_lib 1
13342 echo "$ac_t""no" 1>&6
13345 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13346 echo "configure:13347: checking for ACL support" >&5
13347 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13348 echo $ac_n "(cached) $ac_c" 1>&6
13351 cat > conftest.$ac_ext <<EOF
13352 #line 13353 "configure"
13353 #include "confdefs.h"
13354 #include <sys/types.h>
13355 #include <sys/acl.h>
13357 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13360 if { (eval echo configure:13361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13362 samba_cv_HAVE_POSIX_ACLS=yes
13364 echo "configure: failed program was:" >&5
13365 cat conftest.$ac_ext >&5
13367 samba_cv_HAVE_POSIX_ACLS=no
13372 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13373 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
13374 echo "$ac_t""Using posix ACLs" 1>&6
13375 cat >> confdefs.h <<\EOF
13376 #define HAVE_POSIX_ACLS 1
13379 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13380 echo "configure:13381: checking for acl_get_perm_np" >&5
13381 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13382 echo $ac_n "(cached) $ac_c" 1>&6
13385 cat > conftest.$ac_ext <<EOF
13386 #line 13387 "configure"
13387 #include "confdefs.h"
13388 #include <sys/types.h>
13389 #include <sys/acl.h>
13391 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13394 if { (eval echo configure:13395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13396 samba_cv_HAVE_ACL_GET_PERM_NP=yes
13398 echo "configure: failed program was:" >&5
13399 cat conftest.$ac_ext >&5
13401 samba_cv_HAVE_ACL_GET_PERM_NP=no
13406 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13407 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
13408 cat >> confdefs.h <<\EOF
13409 #define HAVE_ACL_GET_PERM_NP 1
13418 echo "$ac_t""no" 1>&6
13419 cat >> confdefs.h <<\EOF
13420 #define HAVE_NO_ACLS 1
13426 cat >> confdefs.h <<\EOF
13427 #define HAVE_NO_ACLS 1
13430 echo "$ac_t""no" 1>&6
13435 #################################################
13436 # Check whether winbind is supported on this platform. If so we need to
13437 # build and install client programs (WINBIND_TARGETS), sbin programs
13438 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13440 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13441 echo "configure:13442: checking whether to build winbind" >&5
13443 # Initially, the value of $host_os decides whether winbind is supported
13446 *linux*|*solaris*|*irix*)
13451 winbind_no_reason=", unsupported on $host_os"
13455 # Check the setting of --with-winbindd
13457 # Check whether --with-winbind or --without-winbind was given.
13458 if test "${with_winbind+set}" = set; then
13459 withval="$with_winbind"
13473 # We need unix domain sockets for winbind
13475 if test x"$HAVE_WINBIND" = x"yes"; then
13476 if test x"$samba_cv_unixsocket" = x"no"; then
13477 winbind_no_reason=", no unix domain socket support on $host_os"
13482 # Display test results
13485 WINBIND_STARGETS=""
13486 WINBIND_LTARGETS=""
13487 WINBIND_PAM_PROGS=""
13489 if test x"$HAVE_WINBIND" = x"yes"; then
13490 echo "$ac_t""yes" 1>&6
13492 WINBIND_TARGETS="bin/wbinfo"
13493 WINBIND_STARGETS="bin/winbindd"
13494 if test x"$BLDSHARED" = x"true"; then
13495 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
13496 if test x"$with_pam" = x"yes"; then
13497 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
13501 echo "$ac_t""no$winbind_no_reason" 1>&6
13504 # Substitution time!
13511 #################################################
13512 # Check to see if we should use the included popt
13514 # Check whether --with-included-popt or --without-included-popt was given.
13515 if test "${with_included_popt+set}" = set; then
13516 withval="$with_included_popt"
13528 if test x"$INCLUDED_POPT" != x"yes"; then
13529 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13530 echo "configure:13531: checking for poptGetContext in -lpopt" >&5
13531 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13532 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13533 echo $ac_n "(cached) $ac_c" 1>&6
13535 ac_save_LIBS="$LIBS"
13536 LIBS="-lpopt $LIBS"
13537 cat > conftest.$ac_ext <<EOF
13538 #line 13539 "configure"
13539 #include "confdefs.h"
13540 /* Override any gcc2 internal prototype to avoid an error. */
13541 /* We use char because int might match the return type of a gcc2
13542 builtin and then its argument prototype would still apply. */
13543 char poptGetContext();
13549 if { (eval echo configure:13550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13551 eval "ac_cv_lib_$ac_lib_var=yes"
13553 echo "configure: failed program was:" >&5
13554 cat conftest.$ac_ext >&5
13556 eval "ac_cv_lib_$ac_lib_var=no"
13559 LIBS="$ac_save_LIBS"
13562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13563 echo "$ac_t""yes" 1>&6
13566 echo "$ac_t""no" 1>&6
13572 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
13573 echo "configure:13574: checking whether to use included popt" >&5
13574 if test x"$INCLUDED_POPT" = x"yes"; then
13575 echo "$ac_t""$srcdir/popt" 1>&6
13576 BUILD_POPT='$(POPT_OBJS)'
13577 FLAGS1="-I$srcdir/popt"
13579 echo "$ac_t""no" 1>&6
13580 LIBS="$LIBS -lpopt"
13585 #################################################
13586 # final configure stuff
13588 echo "checking configure summary"
13589 if test "$cross_compiling" = yes; then
13592 cat > conftest.$ac_ext <<EOF
13593 #line 13594 "configure"
13594 #include "confdefs.h"
13595 #include "${srcdir-.}/tests/summary.c"
13597 if { (eval echo configure:13598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13599 echo "configure OK";
13601 echo "configure: failed program was:" >&5
13602 cat conftest.$ac_ext >&5
13604 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
13614 cat > confcache <<\EOF
13615 # This file is a shell script that caches the results of configure
13616 # tests run on this system so they can be shared between configure
13617 # scripts and configure runs. It is not useful on other systems.
13618 # If it contains results you don't want to keep, you may remove or edit it.
13620 # By default, configure uses ./config.cache as the cache file,
13621 # creating it if it does not exist already. You can give configure
13622 # the --cache-file=FILE option to use a different cache file; that is
13623 # what configure does when it calls configure scripts in
13624 # subdirectories, so they share the cache.
13625 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13626 # config.status only pays attention to the cache file if you give it the
13627 # --recheck option to rerun configure.
13630 # The following way of writing the cache mishandles newlines in values,
13631 # but we know of no workaround that is simple, portable, and efficient.
13632 # So, don't put newlines in cache variables' values.
13633 # Ultrix sh set writes to stderr and can't be redirected directly,
13634 # and sets the high bit in the cache file unless we assign to the vars.
13636 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13638 # `set' does not quote correctly, so add quotes (double-quote substitution
13639 # turns \\\\ into \\, and sed turns \\ into \).
13641 -e "s/'/'\\\\''/g" \
13642 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13645 # `set' quotes correctly as required by POSIX, so do not add quotes.
13646 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13649 if cmp -s $cache_file confcache; then
13652 if test -w $cache_file; then
13653 echo "updating cache $cache_file"
13654 cat confcache > $cache_file
13656 echo "not updating unwritable cache $cache_file"
13661 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13663 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13664 # Let make expand exec_prefix.
13665 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13667 # Any assignment to VPATH causes Sun make to only execute
13668 # the first set of double-colon rules, so remove it if not needed.
13669 # If there is a colon in the path, we need to keep it.
13670 if test "x$srcdir" = x.; then
13671 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13674 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13676 DEFS=-DHAVE_CONFIG_H
13678 # Without the "./", some shells look in PATH for config.status.
13679 : ${CONFIG_STATUS=./config.status}
13681 echo creating $CONFIG_STATUS
13682 rm -f $CONFIG_STATUS
13683 cat > $CONFIG_STATUS <<EOF
13685 # Generated automatically by configure.
13686 # Run this file to recreate the current configuration.
13687 # This directory was configured as follows,
13688 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13690 # $0 $ac_configure_args
13692 # Compiler output produced by configure, useful for debugging
13693 # configure, is in ./config.log if it exists.
13695 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13698 case "\$ac_option" in
13699 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13700 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13701 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13702 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13703 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13705 -help | --help | --hel | --he | --h)
13706 echo "\$ac_cs_usage"; exit 0 ;;
13707 *) echo "\$ac_cs_usage"; exit 1 ;;
13711 ac_given_srcdir=$srcdir
13712 ac_given_INSTALL="$INSTALL"
13714 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13716 cat >> $CONFIG_STATUS <<EOF
13718 # Protect against being on the right side of a sed subst in config.status.
13719 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13720 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13724 s%@CFLAGS@%$CFLAGS%g
13725 s%@CPPFLAGS@%$CPPFLAGS%g
13726 s%@CXXFLAGS@%$CXXFLAGS%g
13727 s%@FFLAGS@%$FFLAGS%g
13729 s%@LDFLAGS@%$LDFLAGS%g
13731 s%@exec_prefix@%$exec_prefix%g
13732 s%@prefix@%$prefix%g
13733 s%@program_transform_name@%$program_transform_name%g
13734 s%@bindir@%$bindir%g
13735 s%@sbindir@%$sbindir%g
13736 s%@libexecdir@%$libexecdir%g
13737 s%@datadir@%$datadir%g
13738 s%@sysconfdir@%$sysconfdir%g
13739 s%@sharedstatedir@%$sharedstatedir%g
13740 s%@localstatedir@%$localstatedir%g
13741 s%@libdir@%$libdir%g
13742 s%@includedir@%$includedir%g
13743 s%@oldincludedir@%$oldincludedir%g
13744 s%@infodir@%$infodir%g
13745 s%@mandir@%$mandir%g
13746 s%@RUNPROG@%$RUNPROG%g
13747 s%@MPROGS@%$MPROGS%g
13748 s%@LDSHFLAGS@%$LDSHFLAGS%g
13750 s%@HOST_OS@%$HOST_OS%g
13751 s%@PAM_MOD@%$PAM_MOD%g
13753 s%@WRAP32@%$WRAP32%g
13754 s%@PICFLAG@%$PICFLAG%g
13755 s%@PICSUFFIX@%$PICSUFFIX%g
13756 s%@POBAD_CC@%$POBAD_CC%g
13757 s%@SHLIBEXT@%$SHLIBEXT%g
13758 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
13760 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13761 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13762 s%@INSTALL_DATA@%$INSTALL_DATA%g
13764 s%@BROKEN_CC@%$BROKEN_CC%g
13766 s%@host_alias@%$host_alias%g
13767 s%@host_cpu@%$host_cpu%g
13768 s%@host_vendor@%$host_vendor%g
13769 s%@host_os@%$host_os%g
13770 s%@target@%$target%g
13771 s%@target_alias@%$target_alias%g
13772 s%@target_cpu@%$target_cpu%g
13773 s%@target_vendor@%$target_vendor%g
13774 s%@target_os@%$target_os%g
13776 s%@build_alias@%$build_alias%g
13777 s%@build_cpu@%$build_cpu%g
13778 s%@build_vendor@%$build_vendor%g
13779 s%@build_os@%$build_os%g
13781 s%@LIBOBJS@%$LIBOBJS%g
13782 s%@TERMLIBS@%$TERMLIBS%g
13783 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13785 s%@DYNEXP@%$DYNEXP%g
13786 s%@QUOTAOBJS@%$QUOTAOBJS%g
13787 s%@privatedir@%$privatedir%g
13788 s%@lockdir@%$lockdir%g
13789 s%@swatdir@%$swatdir%g
13790 s%@manlangs@%$manlangs%g
13791 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13792 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
13793 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
13794 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
13795 s%@BUILD_POPT@%$BUILD_POPT%g
13796 s%@FLAGS1@%$FLAGS1%g
13797 s%@builddir@%$builddir%g
13802 cat >> $CONFIG_STATUS <<\EOF
13804 # Split the substitutions into bite-sized pieces for seds with
13805 # small command number limits, like on Digital OSF/1 and HP-UX.
13806 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13807 ac_file=1 # Number of current file.
13808 ac_beg=1 # First line for current file.
13809 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13812 while $ac_more_lines; do
13813 if test $ac_beg -gt 1; then
13814 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13816 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13818 if test ! -s conftest.s$ac_file; then
13819 ac_more_lines=false
13820 rm -f conftest.s$ac_file
13822 if test -z "$ac_sed_cmds"; then
13823 ac_sed_cmds="sed -f conftest.s$ac_file"
13825 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13827 ac_file=`expr $ac_file + 1`
13829 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13832 if test -z "$ac_sed_cmds"; then
13837 cat >> $CONFIG_STATUS <<EOF
13839 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
13841 cat >> $CONFIG_STATUS <<\EOF
13842 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13843 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13845 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13846 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13847 *) ac_file_in="${ac_file}.in" ;;
13850 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13852 # Remove last slash and all that follows it. Not all systems have dirname.
13853 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13854 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13855 # The file is in a subdirectory.
13856 test ! -d "$ac_dir" && mkdir "$ac_dir"
13857 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13858 # A "../" for each directory in $ac_dir_suffix.
13859 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13861 ac_dir_suffix= ac_dots=
13864 case "$ac_given_srcdir" in
13866 if test -z "$ac_dots"; then top_srcdir=.
13867 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13868 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13869 *) # Relative path.
13870 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13871 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13874 case "$ac_given_INSTALL" in
13875 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13876 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13879 echo creating "$ac_file"
13881 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13883 *Makefile*) ac_comsub="1i\\
13884 # $configure_input" ;;
13888 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13890 s%@configure_input@%$configure_input%g
13891 s%@srcdir@%$srcdir%g
13892 s%@top_srcdir@%$top_srcdir%g
13893 s%@INSTALL@%$INSTALL%g
13894 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13898 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13899 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13901 # ac_d sets the value in "#define NAME VALUE" lines.
13902 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13903 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13906 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13907 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13908 ac_uB='\([ ]\)%\1#\2define\3'
13911 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13912 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13913 ac_eB='$%\1#\2define\3'
13917 if test "${CONFIG_HEADERS+set}" != set; then
13919 cat >> $CONFIG_STATUS <<EOF
13920 CONFIG_HEADERS="include/config.h"
13922 cat >> $CONFIG_STATUS <<\EOF
13924 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13925 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13927 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13928 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13929 *) ac_file_in="${ac_file}.in" ;;
13932 echo creating $ac_file
13934 rm -f conftest.frag conftest.in conftest.out
13935 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13936 cat $ac_file_inputs > conftest.in
13940 # Transform confdefs.h into a sed script conftest.vals that substitutes
13941 # the proper values into config.h.in to produce config.h. And first:
13942 # Protect against being on the right side of a sed subst in config.status.
13943 # Protect against being in an unquoted here document in config.status.
13944 rm -f conftest.vals
13945 cat > conftest.hdr <<\EOF
13948 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13952 sed -n -f conftest.hdr confdefs.h > conftest.vals
13955 # This sed command replaces #undef with comments. This is necessary, for
13956 # example, in the case of _POSIX_SOURCE, which is predefined and required
13957 # on some systems where configure will not decide to define it.
13958 cat >> conftest.vals <<\EOF
13959 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13962 # Break up conftest.vals because some shells have a limit on
13963 # the size of here documents, and old seds have small limits too.
13965 rm -f conftest.tail
13968 ac_lines=`grep -c . conftest.vals`
13969 # grep -c gives empty output for an empty file on some AIX systems.
13970 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13971 # Write a limited-size here document to conftest.frag.
13972 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13973 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13975 sed -f conftest.frag conftest.in > conftest.out
13977 mv conftest.out conftest.in
13978 ' >> $CONFIG_STATUS
13979 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13980 rm -f conftest.vals
13981 mv conftest.tail conftest.vals
13983 rm -f conftest.vals
13985 cat >> $CONFIG_STATUS <<\EOF
13986 rm -f conftest.frag conftest.h
13987 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13988 cat conftest.in >> conftest.h
13990 if cmp -s $ac_file conftest.h 2>/dev/null; then
13991 echo "$ac_file is unchanged"
13994 # Remove last slash and all that follows it. Not all systems have dirname.
13995 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13996 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13997 # The file is in a subdirectory.
13998 test ! -d "$ac_dir" && mkdir "$ac_dir"
14001 mv conftest.h $ac_file
14006 cat >> $CONFIG_STATUS <<EOF
14009 cat >> $CONFIG_STATUS <<\EOF
14013 chmod +x $CONFIG_STATUS
14014 rm -fr confdefs* $ac_clean_files
14015 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
14018 #################################################
14019 # Print very concise instructions on building/use
14020 if test "x$enable_dmalloc" = xyes
14022 echo "$ac_t""Note: The dmalloc debug library will be included. To turn it on use" 1>&6
14023 echo "$ac_t"" \$ eval \`dmalloc samba\`." 1>&6