3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/samba
16 --enable-debug turn on debugging [default=no]"
18 --enable-developer turn on developer warnings and debugging [default=no]"
20 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
22 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
24 --with-smbwrapper Include SMB wrapper support (default=no) "
26 --with-afs Include AFS support (default=no) "
28 --with-dce-dfs Include DCE/DFS support (default=no)"
30 --with-krb4=base-dir Include Kerberos IV support (default=no)"
32 --with-krb5=base-dir Include Kerberos 5 support (default=no)"
34 --with-automount Include AUTOMOUNT support (default=no)"
36 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
38 --with-pam Include PAM password database support (default=no)"
40 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
42 --with-tdbsam Include experimental TDB SAM support (default=no)"
44 --with-ldapsam Include experimental LDAP SAM support (default=no)"
46 --with-nisplussam Include NISPLUS SAM support (default=no)"
48 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
50 --with-ssl Include SSL support (default=no)
51 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
52 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
54 --with-syslog Include experimental SYSLOG support (default=no)"
56 --with-profiling-data Include gathering source code profile information (default=no)"
58 --with-quotas Include experimental disk-quota support (default=no)"
60 --with-utmp Include experimental utmp accounting (default=no)"
62 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
64 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
66 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
68 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
70 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
72 --with-acl-support Include ACL support (default=no)"
74 --with-winbind Build winbind (default, if supported by OS)"
76 # Initialize some variables set by options.
77 # The variables have the same names as the options, with
78 # dashes changed to underlines.
80 cache_file=./config.cache
89 program_transform_name=s,x,x,
97 bindir='${exec_prefix}/bin'
98 sbindir='${exec_prefix}/sbin'
99 libexecdir='${exec_prefix}/libexec'
100 datadir='${prefix}/share'
101 sysconfdir='${prefix}/etc'
102 sharedstatedir='${prefix}/com'
103 localstatedir='${prefix}/var'
104 libdir='${exec_prefix}/lib'
105 includedir='${prefix}/include'
106 oldincludedir='/usr/include'
107 infodir='${prefix}/info'
108 mandir='${prefix}/man'
110 # Initialize some other variables.
113 SHELL=${CONFIG_SHELL-/bin/sh}
114 # Maximum number of lines to put in a shell here document.
121 # If the previous option needs an argument, assign it.
122 if test -n "$ac_prev"; then
123 eval "$ac_prev=\$ac_option"
129 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
133 # Accept the important Cygnus configure options, so we can diagnose typos.
137 -bindir | --bindir | --bindi | --bind | --bin | --bi)
139 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
140 bindir="$ac_optarg" ;;
142 -build | --build | --buil | --bui | --bu)
144 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
145 build="$ac_optarg" ;;
147 -cache-file | --cache-file | --cache-fil | --cache-fi \
148 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
149 ac_prev=cache_file ;;
150 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
151 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
152 cache_file="$ac_optarg" ;;
154 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
156 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
158 datadir="$ac_optarg" ;;
160 -disable-* | --disable-*)
161 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
167 eval "enable_${ac_feature}=no" ;;
169 -enable-* | --enable-*)
170 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
171 # Reject names that are not valid shell variable names.
172 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
173 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
175 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
180 eval "enable_${ac_feature}='$ac_optarg'" ;;
182 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
183 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
184 | --exec | --exe | --ex)
185 ac_prev=exec_prefix ;;
186 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
187 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
188 | --exec=* | --exe=* | --ex=*)
189 exec_prefix="$ac_optarg" ;;
191 -gas | --gas | --ga | --g)
192 # Obsolete; use --with-gas.
195 -help | --help | --hel | --he)
196 # Omit some internal or obsolete options to make the list less imposing.
197 # This message is too long to be a string in the A/UX 3.1 sh.
199 Usage: configure [options] [host]
200 Options: [defaults in brackets after descriptions]
202 --cache-file=FILE cache test results in FILE
203 --help print this message
204 --no-create do not create output files
205 --quiet, --silent do not print \`checking...' messages
206 --version print the version of autoconf that created configure
207 Directory and file names:
208 --prefix=PREFIX install architecture-independent files in PREFIX
210 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
212 --bindir=DIR user executables in DIR [EPREFIX/bin]
213 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
214 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
215 --datadir=DIR read-only architecture-independent data in DIR
217 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
218 --sharedstatedir=DIR modifiable architecture-independent data in DIR
220 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
221 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
222 --includedir=DIR C header files in DIR [PREFIX/include]
223 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
224 --infodir=DIR info documentation in DIR [PREFIX/info]
225 --mandir=DIR man documentation in DIR [PREFIX/man]
226 --srcdir=DIR find the sources in DIR [configure dir or ..]
227 --program-prefix=PREFIX prepend PREFIX to installed program names
228 --program-suffix=SUFFIX append SUFFIX to installed program names
229 --program-transform-name=PROGRAM
230 run sed PROGRAM on installed program names
234 --build=BUILD configure for building on BUILD [BUILD=HOST]
235 --host=HOST configure for HOST [guessed]
236 --target=TARGET configure for TARGET [TARGET=HOST]
237 Features and packages:
238 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
239 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
240 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
241 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
242 --x-includes=DIR X include files are in DIR
243 --x-libraries=DIR X library files are in DIR
245 if test -n "$ac_help"; then
246 echo "--enable and --with options recognized:$ac_help"
250 -host | --host | --hos | --ho)
252 -host=* | --host=* | --hos=* | --ho=*)
255 -includedir | --includedir | --includedi | --included | --include \
256 | --includ | --inclu | --incl | --inc)
257 ac_prev=includedir ;;
258 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
259 | --includ=* | --inclu=* | --incl=* | --inc=*)
260 includedir="$ac_optarg" ;;
262 -infodir | --infodir | --infodi | --infod | --info | --inf)
264 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
265 infodir="$ac_optarg" ;;
267 -libdir | --libdir | --libdi | --libd)
269 -libdir=* | --libdir=* | --libdi=* | --libd=*)
270 libdir="$ac_optarg" ;;
272 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
273 | --libexe | --libex | --libe)
274 ac_prev=libexecdir ;;
275 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
276 | --libexe=* | --libex=* | --libe=*)
277 libexecdir="$ac_optarg" ;;
279 -localstatedir | --localstatedir | --localstatedi | --localstated \
280 | --localstate | --localstat | --localsta | --localst \
281 | --locals | --local | --loca | --loc | --lo)
282 ac_prev=localstatedir ;;
283 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
284 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
285 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
286 localstatedir="$ac_optarg" ;;
288 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
290 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
291 mandir="$ac_optarg" ;;
294 # Obsolete; use --without-fp.
297 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
301 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
302 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
305 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
306 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
307 | --oldin | --oldi | --old | --ol | --o)
308 ac_prev=oldincludedir ;;
309 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
310 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
311 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
312 oldincludedir="$ac_optarg" ;;
314 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
316 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
317 prefix="$ac_optarg" ;;
319 -program-prefix | --program-prefix | --program-prefi | --program-pref \
320 | --program-pre | --program-pr | --program-p)
321 ac_prev=program_prefix ;;
322 -program-prefix=* | --program-prefix=* | --program-prefi=* \
323 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
324 program_prefix="$ac_optarg" ;;
326 -program-suffix | --program-suffix | --program-suffi | --program-suff \
327 | --program-suf | --program-su | --program-s)
328 ac_prev=program_suffix ;;
329 -program-suffix=* | --program-suffix=* | --program-suffi=* \
330 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
331 program_suffix="$ac_optarg" ;;
333 -program-transform-name | --program-transform-name \
334 | --program-transform-nam | --program-transform-na \
335 | --program-transform-n | --program-transform- \
336 | --program-transform | --program-transfor \
337 | --program-transfo | --program-transf \
338 | --program-trans | --program-tran \
339 | --progr-tra | --program-tr | --program-t)
340 ac_prev=program_transform_name ;;
341 -program-transform-name=* | --program-transform-name=* \
342 | --program-transform-nam=* | --program-transform-na=* \
343 | --program-transform-n=* | --program-transform-=* \
344 | --program-transform=* | --program-transfor=* \
345 | --program-transfo=* | --program-transf=* \
346 | --program-trans=* | --program-tran=* \
347 | --progr-tra=* | --program-tr=* | --program-t=*)
348 program_transform_name="$ac_optarg" ;;
350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
351 | -silent | --silent | --silen | --sile | --sil)
354 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
356 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
358 sbindir="$ac_optarg" ;;
360 -sharedstatedir | --sharedstatedir | --sharedstatedi \
361 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
362 | --sharedst | --shareds | --shared | --share | --shar \
364 ac_prev=sharedstatedir ;;
365 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
366 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
367 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
369 sharedstatedir="$ac_optarg" ;;
371 -site | --site | --sit)
373 -site=* | --site=* | --sit=*)
376 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
378 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
379 srcdir="$ac_optarg" ;;
381 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
382 | --syscon | --sysco | --sysc | --sys | --sy)
383 ac_prev=sysconfdir ;;
384 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
385 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
386 sysconfdir="$ac_optarg" ;;
388 -target | --target | --targe | --targ | --tar | --ta | --t)
390 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
391 target="$ac_optarg" ;;
393 -v | -verbose | --verbose | --verbos | --verbo | --verb)
396 -version | --version | --versio | --versi | --vers)
397 echo "configure generated by autoconf version 2.13"
401 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
402 # Reject names that are not valid shell variable names.
403 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
404 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406 ac_package=`echo $ac_package| sed 's/-/_/g'`
411 eval "with_${ac_package}='$ac_optarg'" ;;
413 -without-* | --without-*)
414 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
415 # Reject names that are not valid shell variable names.
416 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
417 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419 ac_package=`echo $ac_package| sed 's/-/_/g'`
420 eval "with_${ac_package}=no" ;;
423 # Obsolete; use --with-x.
426 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
427 | --x-incl | --x-inc | --x-in | --x-i)
428 ac_prev=x_includes ;;
429 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
430 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
431 x_includes="$ac_optarg" ;;
433 -x-libraries | --x-libraries | --x-librarie | --x-librari \
434 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
435 ac_prev=x_libraries ;;
436 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
437 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
438 x_libraries="$ac_optarg" ;;
440 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
444 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
445 echo "configure: warning: $ac_option: invalid host type" 1>&2
447 if test "x$nonopt" != xNONE; then
448 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
456 if test -n "$ac_prev"; then
457 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
460 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
462 # File descriptor usage:
465 # 2 errors and warnings
466 # 3 some systems may open it to /dev/tty
467 # 4 used on the Kubota Titan
468 # 6 checking for... messages and results
469 # 5 compiler messages saved in config.log
470 if test "$silent" = yes; then
478 This file contains any messages produced by compilers while
479 running configure, to aid debugging if configure makes a mistake.
482 # Strip out --no-create and --no-recursion so they do not pile up.
483 # Also quote any args containing shell metacharacters.
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c) ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
492 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
493 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
494 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
499 # Only set these to C if already set. These must not be set unconditionally
500 # because not all systems understand e.g. LANG=C (notably SCO).
501 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
502 # Non-C LC_CTYPE values break the ctype check.
503 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
504 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
505 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
506 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
508 # confdefs.h avoids OS command line length limits that DEFS can exceed.
509 rm -rf conftest* confdefs.h
510 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
513 # A filename unique to this package, relative to the directory that
514 # configure is in, which we can look for to find out if srcdir is correct.
515 ac_unique_file=include/includes.h
517 # Find the source files, if location was not specified.
518 if test -z "$srcdir"; then
519 ac_srcdir_defaulted=yes
520 # Try the directory containing this script, then its parent.
522 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
523 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
525 if test ! -r $srcdir/$ac_unique_file; then
529 ac_srcdir_defaulted=no
531 if test ! -r $srcdir/$ac_unique_file; then
532 if test "$ac_srcdir_defaulted" = yes; then
533 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
535 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
538 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
540 # Prefer explicitly selected file to automatically selected ones.
541 if test -z "$CONFIG_SITE"; then
542 if test "x$prefix" != xNONE; then
543 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
545 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
548 for ac_site_file in $CONFIG_SITE; do
549 if test -r "$ac_site_file"; then
550 echo "loading site script $ac_site_file"
555 if test -r "$cache_file"; then
556 echo "loading cache $cache_file"
559 echo "creating cache $cache_file"
564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
565 ac_cpp='$CPP $CPPFLAGS'
566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
568 cross_compiling=$ac_cv_prog_cc_cross
572 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
573 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
574 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
581 ac_n= ac_c='\c' ac_t=
586 # we want to be compatibe with older versions of Samba
604 # compile with optimisation and without debugging by default
605 CFLAGS="-O ${CFLAGS}"
607 # Check whether --enable-debug or --disable-debug was given.
608 if test "${enable_debug+set}" = set; then
609 enableval="$enable_debug"
610 if eval "test x$enable_debug = xyes"; then
611 CFLAGS="${CFLAGS} -g"
616 # Check whether --enable-developer or --disable-developer was given.
617 if test "${enable_developer+set}" = set; then
618 enableval="$enable_developer"
619 if eval "test x$enable_developer = xyes"; then
620 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
625 # Extract the first word of "gcc", so it can be a program name with args.
626 set dummy gcc; ac_word=$2
627 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
628 echo "configure:629: checking for $ac_word" >&5
629 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
630 echo $ac_n "(cached) $ac_c" 1>&6
632 if test -n "$CC"; then
633 ac_cv_prog_CC="$CC" # Let the user override the test.
635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
637 for ac_dir in $ac_dummy; do
638 test -z "$ac_dir" && ac_dir=.
639 if test -f $ac_dir/$ac_word; then
648 if test -n "$CC"; then
649 echo "$ac_t""$CC" 1>&6
651 echo "$ac_t""no" 1>&6
654 if test -z "$CC"; then
655 # Extract the first word of "cc", so it can be a program name with args.
656 set dummy cc; ac_word=$2
657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
658 echo "configure:659: checking for $ac_word" >&5
659 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
660 echo $ac_n "(cached) $ac_c" 1>&6
662 if test -n "$CC"; then
663 ac_cv_prog_CC="$CC" # Let the user override the test.
665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
668 for ac_dir in $ac_dummy; do
669 test -z "$ac_dir" && ac_dir=.
670 if test -f $ac_dir/$ac_word; then
671 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
680 if test $ac_prog_rejected = yes; then
681 # We found a bogon in the path, so make sure we never use it.
682 set dummy $ac_cv_prog_CC
684 if test $# -gt 0; then
685 # We chose a different compiler from the bogus one.
686 # However, it has the same basename, so the bogon will be chosen
687 # first if we set CC to just the basename; use the full file name.
689 set dummy "$ac_dir/$ac_word" "$@"
697 if test -n "$CC"; then
698 echo "$ac_t""$CC" 1>&6
700 echo "$ac_t""no" 1>&6
703 if test -z "$CC"; then
706 # Extract the first word of "cl", so it can be a program name with args.
707 set dummy cl; ac_word=$2
708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
709 echo "configure:710: checking for $ac_word" >&5
710 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
711 echo $ac_n "(cached) $ac_c" 1>&6
713 if test -n "$CC"; then
714 ac_cv_prog_CC="$CC" # Let the user override the test.
716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
718 for ac_dir in $ac_dummy; do
719 test -z "$ac_dir" && ac_dir=.
720 if test -f $ac_dir/$ac_word; then
729 if test -n "$CC"; then
730 echo "$ac_t""$CC" 1>&6
732 echo "$ac_t""no" 1>&6
737 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
740 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
741 echo "configure:742: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
744 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
745 ac_cpp='$CPP $CPPFLAGS'
746 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
747 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
748 cross_compiling=$ac_cv_prog_cc_cross
750 cat > conftest.$ac_ext << EOF
752 #line 753 "configure"
753 #include "confdefs.h"
757 if { (eval echo configure:758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
758 ac_cv_prog_cc_works=yes
759 # If we can't run a trivial program, we are probably using a cross compiler.
760 if (./conftest; exit) 2>/dev/null; then
761 ac_cv_prog_cc_cross=no
763 ac_cv_prog_cc_cross=yes
766 echo "configure: failed program was:" >&5
767 cat conftest.$ac_ext >&5
768 ac_cv_prog_cc_works=no
772 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
773 ac_cpp='$CPP $CPPFLAGS'
774 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
775 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
776 cross_compiling=$ac_cv_prog_cc_cross
778 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
779 if test $ac_cv_prog_cc_works = no; then
780 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
782 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
783 echo "configure:784: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
784 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
785 cross_compiling=$ac_cv_prog_cc_cross
787 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
788 echo "configure:789: checking whether we are using GNU C" >&5
789 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
790 echo $ac_n "(cached) $ac_c" 1>&6
792 cat > conftest.c <<EOF
797 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
804 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
806 if test $ac_cv_prog_gcc = yes; then
812 ac_test_CFLAGS="${CFLAGS+set}"
813 ac_save_CFLAGS="$CFLAGS"
815 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
816 echo "configure:817: checking whether ${CC-cc} accepts -g" >&5
817 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
818 echo $ac_n "(cached) $ac_c" 1>&6
820 echo 'void f(){}' > conftest.c
821 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
830 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
831 if test "$ac_test_CFLAGS" = set; then
832 CFLAGS="$ac_save_CFLAGS"
833 elif test $ac_cv_prog_cc_g = yes; then
834 if test "$GCC" = yes; then
840 if test "$GCC" = yes; then
848 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
849 if test -f $ac_dir/install-sh; then
851 ac_install_sh="$ac_aux_dir/install-sh -c"
853 elif test -f $ac_dir/install.sh; then
855 ac_install_sh="$ac_aux_dir/install.sh -c"
859 if test -z "$ac_aux_dir"; then
860 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
862 ac_config_guess=$ac_aux_dir/config.guess
863 ac_config_sub=$ac_aux_dir/config.sub
864 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
866 # Find a good install program. We prefer a C program (faster),
867 # so one script is as good as another. But avoid the broken or
868 # incompatible versions:
869 # SysV /etc/install, /usr/sbin/install
870 # SunOS /usr/etc/install
873 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
874 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
875 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
876 # ./install, which can be erroneously created by make from ./install.sh.
877 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
878 echo "configure:879: checking for a BSD compatible install" >&5
879 if test -z "$INSTALL"; then
880 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
881 echo $ac_n "(cached) $ac_c" 1>&6
883 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
884 for ac_dir in $PATH; do
885 # Account for people who put trailing slashes in PATH elements.
887 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
889 # OSF1 and SCO ODT 3.0 have their own names for install.
890 # Don't use installbsd from OSF since it installs stuff as root
892 for ac_prog in ginstall scoinst install; do
893 if test -f $ac_dir/$ac_prog; then
894 if test $ac_prog = install &&
895 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
896 # AIX install. It has an incompatible calling convention.
899 ac_cv_path_install="$ac_dir/$ac_prog -c"
910 if test "${ac_cv_path_install+set}" = set; then
911 INSTALL="$ac_cv_path_install"
913 # As a last resort, use the slow shell script. We don't cache a
914 # path for INSTALL within a source directory, because that will
915 # break other packages using the cache if that directory is
916 # removed, or if the path is relative.
917 INSTALL="$ac_install_sh"
920 echo "$ac_t""$INSTALL" 1>&6
922 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
923 # It thinks the first close brace ends the variable substitution.
924 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
926 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
928 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
930 for ac_prog in mawk gawk nawk awk
932 # Extract the first word of "$ac_prog", so it can be a program name with args.
933 set dummy $ac_prog; ac_word=$2
934 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
935 echo "configure:936: checking for $ac_word" >&5
936 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
937 echo $ac_n "(cached) $ac_c" 1>&6
939 if test -n "$AWK"; then
940 ac_cv_prog_AWK="$AWK" # Let the user override the test.
942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
944 for ac_dir in $ac_dummy; do
945 test -z "$ac_dir" && ac_dir=.
946 if test -f $ac_dir/$ac_word; then
947 ac_cv_prog_AWK="$ac_prog"
954 AWK="$ac_cv_prog_AWK"
955 if test -n "$AWK"; then
956 echo "$ac_t""$AWK" 1>&6
958 echo "$ac_t""no" 1>&6
961 test -n "$AWK" && break
965 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
966 echo "configure:967: checking for POSIXized ISC" >&5
967 if test -d /etc/conf/kconfig.d &&
968 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
970 echo "$ac_t""yes" 1>&6
971 ISC=yes # If later tests want to check for ISC.
972 cat >> confdefs.h <<\EOF
973 #define _POSIX_SOURCE 1
976 if test "$GCC" = yes; then
982 echo "$ac_t""no" 1>&6
987 if test "x$CC" != xcc; then
988 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
989 echo "configure:990: checking whether $CC and cc understand -c and -o together" >&5
991 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
992 echo "configure:993: checking whether cc understands -c and -o together" >&5
994 set dummy $CC; ac_cc="`echo $2 |
995 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
996 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
999 echo 'foo(){}' > conftest.c
1000 # Make sure it works both with $CC and with simple cc.
1001 # We do the test twice because some compilers refuse to overwrite an
1002 # existing .o file with -o, though they will create one.
1003 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1004 if { (eval echo configure:1005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1005 test -f conftest.o && { (eval echo configure:1006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1007 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1008 if test "x$CC" != xcc; then
1009 # Test first that cc exists at all.
1010 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1011 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1012 if { (eval echo configure:1013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1013 test -f conftest.o && { (eval echo configure:1014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1018 # cc exists but doesn't like -o.
1019 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1024 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1029 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1030 echo "$ac_t""yes" 1>&6
1032 echo "$ac_t""no" 1>&6
1033 cat >> confdefs.h <<\EOF
1034 #define NO_MINUS_C_MINUS_O 1
1039 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1046 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1047 echo "configure:1048: checking that the C compiler understands volatile" >&5
1048 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1049 echo $ac_n "(cached) $ac_c" 1>&6
1052 cat > conftest.$ac_ext <<EOF
1053 #line 1054 "configure"
1054 #include "confdefs.h"
1055 #include <sys/types.h>
1060 if { (eval echo configure:1061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1062 samba_cv_volatile=yes
1064 echo "configure: failed program was:" >&5
1065 cat conftest.$ac_ext >&5
1067 samba_cv_volatile=no
1072 echo "$ac_t""$samba_cv_volatile" 1>&6
1073 if test x"$samba_cv_volatile" = x"yes"; then
1074 cat >> confdefs.h <<\EOF
1075 #define HAVE_VOLATILE 1
1082 # Do some error checking and defaulting for the host and target type.
1084 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1087 # 1. You are not allowed to specify --host, --target, and nonopt at the
1089 # 2. Host defaults to nonopt.
1090 # 3. If nonopt is not specified, then host defaults to the current host,
1091 # as determined by config.guess.
1092 # 4. Target and build default to nonopt.
1093 # 5. If nonopt is not specified, then target and build default to host.
1095 # The aliases save the names the user supplied, while $host etc.
1096 # will get canonicalized.
1097 case $host---$target---$nonopt in
1098 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1099 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1103 # Make sure we can run config.sub.
1104 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1105 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1108 echo $ac_n "checking host system type""... $ac_c" 1>&6
1109 echo "configure:1110: checking host system type" >&5
1112 case "$host_alias" in
1116 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1117 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1119 *) host_alias=$nonopt ;;
1123 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1124 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1125 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1126 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1127 echo "$ac_t""$host" 1>&6
1129 echo $ac_n "checking target system type""... $ac_c" 1>&6
1130 echo "configure:1131: checking target system type" >&5
1132 target_alias=$target
1133 case "$target_alias" in
1136 NONE) target_alias=$host_alias ;;
1137 *) target_alias=$nonopt ;;
1141 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1142 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1143 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1144 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1145 echo "$ac_t""$target" 1>&6
1147 echo $ac_n "checking build system type""... $ac_c" 1>&6
1148 echo "configure:1149: checking build system type" >&5
1151 case "$build_alias" in
1154 NONE) build_alias=$host_alias ;;
1155 *) build_alias=$nonopt ;;
1159 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1160 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1161 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1162 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1163 echo "$ac_t""$build" 1>&6
1165 test "$host_alias" != "$target_alias" &&
1166 test "$program_prefix$program_suffix$program_transform_name" = \
1168 program_prefix=${target_alias}-
1172 *irix6*) cat >> confdefs.h <<\EOF
1173 #include <standards.h>
1181 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1182 echo "configure:1183: checking config.cache system type" >&5
1183 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1184 test x"$ac_cv_host_system_type" != x"$host"; } ||
1185 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1186 test x"$ac_cv_build_system_type" != x"$build"; } ||
1187 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1188 test x"$ac_cv_target_system_type" != x"$target"; }; then
1189 echo "$ac_t""different" 1>&6
1190 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1192 echo "$ac_t""same" 1>&6
1194 ac_cv_host_system_type="$host"
1195 ac_cv_build_system_type="$build"
1196 ac_cv_target_system_type="$target"
1200 # Config CPPFLAG settings for strange OS's that must be set
1201 # before other tests.
1204 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1206 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1207 echo "configure:1208: checking whether ${CC-cc} accepts -Ae" >&5
1208 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1211 echo 'void f(){}' > conftest.c
1212 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1213 ac_cv_prog_cc_Ae=yes
1221 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1222 # mmap on HPUX is completely broken...
1223 cat >> confdefs.h <<\EOF
1224 #define MMAP_BLACKLIST 1
1227 if test $ac_cv_prog_cc_Ae = yes; then
1228 CPPFLAGS="$CPPFLAGS -Ae"
1231 # Defines needed for HPUX support.
1232 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1233 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1237 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1238 cat >> confdefs.h <<\EOF
1239 #define USE_BOTH_CRYPT_CALLS 1
1244 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1245 cat >> confdefs.h <<\EOF
1246 #define USE_BOTH_CRYPT_CALLS 1
1253 # AIX4.x doesn't even admit to having large
1254 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1257 echo "$ac_t""enabling large file support" 1>&6
1258 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1261 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1262 # to the existance of large files..
1263 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1264 # recommendations on large file support, however it makes the
1265 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1266 # recommendation makes the compile fail on gcc2.7. JRA.
1270 5.0*|5.1*|5.2*|5.3*|5.5*)
1271 echo "$ac_t""no large file support" 1>&6
1274 echo "$ac_t""enabling large file support" 1>&6
1275 if test "$ac_cv_prog_gcc" = yes; then
1276 ${CC-cc} -v >conftest.c 2>&1
1277 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1279 case "$ac_cv_gcc_compiler_version_number" in
1280 *"gcc version 2.6"*|*"gcc version 2.7"*)
1281 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1284 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1288 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1294 # Tests needed for SINIX large file support.
1297 if test $host = mips-sni-sysv4 ; then
1298 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1299 echo "configure:1300: checking for LFS support" >&5
1300 old_CPPFLAGS="$CPPFLAGS"
1301 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1302 if test "$cross_compiling" = yes; then
1303 SINIX_LFS_SUPPORT=cross
1305 cat > conftest.$ac_ext <<EOF
1306 #line 1307 "configure"
1307 #include "confdefs.h"
1311 #if _LFS64_LARGEFILE == 1
1318 if { (eval echo configure:1319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1320 SINIX_LFS_SUPPORT=yes
1322 echo "configure: failed program was:" >&5
1323 cat conftest.$ac_ext >&5
1325 SINIX_LFS_SUPPORT=no
1330 CPPFLAGS="$old_CPPFLAGS"
1331 if test x$SINIX_LFS_SUPPORT = xyes ; then
1332 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1333 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1334 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1335 LIBS="`getconf LFS64_LIBS` $LIBS"
1337 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1341 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1344 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1345 echo "configure:1346: checking for LFS support" >&5
1346 old_CPPFLAGS="$CPPFLAGS"
1347 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1348 if test "$cross_compiling" = yes; then
1349 LINUX_LFS_SUPPORT=cross
1351 cat > conftest.$ac_ext <<EOF
1352 #line 1353 "configure"
1353 #include "confdefs.h"
1356 #include <sys/utsname.h>
1358 #if _LFS64_LARGEFILE == 1
1363 /* Ensure this is glibc 2.2 or higher */
1364 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1365 int libc_major = __GLIBC__;
1366 int libc_minor = __GLIBC_MINOR__;
1374 /* Ensure this is kernel 2.4 or higher */
1377 release = uts.release;
1378 major = atoi(strsep(&release, "."));
1379 minor = atoi(strsep(&release, "."));
1381 if (major > 2 || (major == 2 && minor > 3))
1390 if { (eval echo configure:1391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1392 LINUX_LFS_SUPPORT=yes
1394 echo "configure: failed program was:" >&5
1395 cat conftest.$ac_ext >&5
1397 LINUX_LFS_SUPPORT=no
1402 CPPFLAGS="$old_CPPFLAGS"
1403 if test x$LINUX_LFS_SUPPORT = xyes ; then
1404 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1406 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1410 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1411 echo "configure:1412: checking for LFS support" >&5
1412 old_CPPFLAGS="$CPPFLAGS"
1413 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1414 if test "$cross_compiling" = yes; then
1415 GLIBC_LFS_SUPPORT=cross
1417 cat > conftest.$ac_ext <<EOF
1418 #line 1419 "configure"
1419 #include "confdefs.h"
1423 #if _LFS64_LARGEFILE == 1
1430 if { (eval echo configure:1431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1432 GLIBC_LFS_SUPPORT=yes
1434 echo "configure: failed program was:" >&5
1435 cat conftest.$ac_ext >&5
1437 GLIBC_LFS_SUPPORT=no
1442 CPPFLAGS="$old_CPPFLAGS"
1443 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1444 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1446 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1451 echo $ac_n "checking for inline""... $ac_c" 1>&6
1452 echo "configure:1453: checking for inline" >&5
1453 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1454 echo $ac_n "(cached) $ac_c" 1>&6
1457 for ac_kw in inline __inline__ __inline; do
1458 cat > conftest.$ac_ext <<EOF
1459 #line 1460 "configure"
1460 #include "confdefs.h"
1466 if { (eval echo configure:1467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1468 ac_cv_c_inline=$ac_kw; break
1470 echo "configure: failed program was:" >&5
1471 cat conftest.$ac_ext >&5
1478 echo "$ac_t""$ac_cv_c_inline" 1>&6
1479 case "$ac_cv_c_inline" in
1481 no) cat >> confdefs.h <<\EOF
1485 *) cat >> confdefs.h <<EOF
1486 #define inline $ac_cv_c_inline
1491 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1492 echo "configure:1493: checking how to run the C preprocessor" >&5
1493 # On Suns, sometimes $CPP names a directory.
1494 if test -n "$CPP" && test -d "$CPP"; then
1497 if test -z "$CPP"; then
1498 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1501 # This must be in double quotes, not single quotes, because CPP may get
1502 # substituted into the Makefile and "${CC-cc}" will confuse make.
1504 # On the NeXT, cc -E runs the code through the compiler's parser,
1505 # not just through cpp.
1506 cat > conftest.$ac_ext <<EOF
1507 #line 1508 "configure"
1508 #include "confdefs.h"
1512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1513 { (eval echo configure:1514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1515 if test -z "$ac_err"; then
1519 echo "configure: failed program was:" >&5
1520 cat conftest.$ac_ext >&5
1522 CPP="${CC-cc} -E -traditional-cpp"
1523 cat > conftest.$ac_ext <<EOF
1524 #line 1525 "configure"
1525 #include "confdefs.h"
1529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1530 { (eval echo configure:1531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1532 if test -z "$ac_err"; then
1536 echo "configure: failed program was:" >&5
1537 cat conftest.$ac_ext >&5
1539 CPP="${CC-cc} -nologo -E"
1540 cat > conftest.$ac_ext <<EOF
1541 #line 1542 "configure"
1542 #include "confdefs.h"
1546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1547 { (eval echo configure:1548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1548 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1549 if test -z "$ac_err"; then
1553 echo "configure: failed program was:" >&5
1554 cat conftest.$ac_ext >&5
1563 ac_cv_prog_CPP="$CPP"
1565 CPP="$ac_cv_prog_CPP"
1567 ac_cv_prog_CPP="$CPP"
1569 echo "$ac_t""$CPP" 1>&6
1571 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1572 echo "configure:1573: checking for ANSI C header files" >&5
1573 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1576 cat > conftest.$ac_ext <<EOF
1577 #line 1578 "configure"
1578 #include "confdefs.h"
1584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1585 { (eval echo configure:1586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1587 if test -z "$ac_err"; then
1589 ac_cv_header_stdc=yes
1592 echo "configure: failed program was:" >&5
1593 cat conftest.$ac_ext >&5
1595 ac_cv_header_stdc=no
1599 if test $ac_cv_header_stdc = yes; then
1600 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1601 cat > conftest.$ac_ext <<EOF
1602 #line 1603 "configure"
1603 #include "confdefs.h"
1606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1607 egrep "memchr" >/dev/null 2>&1; then
1611 ac_cv_header_stdc=no
1617 if test $ac_cv_header_stdc = yes; then
1618 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1619 cat > conftest.$ac_ext <<EOF
1620 #line 1621 "configure"
1621 #include "confdefs.h"
1624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1625 egrep "free" >/dev/null 2>&1; then
1629 ac_cv_header_stdc=no
1635 if test $ac_cv_header_stdc = yes; then
1636 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1637 if test "$cross_compiling" = yes; then
1640 cat > conftest.$ac_ext <<EOF
1641 #line 1642 "configure"
1642 #include "confdefs.h"
1644 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1645 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1646 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1647 int main () { int i; for (i = 0; i < 256; i++)
1648 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1652 if { (eval echo configure:1653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1656 echo "configure: failed program was:" >&5
1657 cat conftest.$ac_ext >&5
1659 ac_cv_header_stdc=no
1667 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1668 if test $ac_cv_header_stdc = yes; then
1669 cat >> confdefs.h <<\EOF
1670 #define STDC_HEADERS 1
1676 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1678 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1679 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1680 echo "configure:1681: checking for $ac_hdr that defines DIR" >&5
1681 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1684 cat > conftest.$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1687 #include <sys/types.h>
1693 if { (eval echo configure:1694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1695 eval "ac_cv_header_dirent_$ac_safe=yes"
1697 echo "configure: failed program was:" >&5
1698 cat conftest.$ac_ext >&5
1700 eval "ac_cv_header_dirent_$ac_safe=no"
1704 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1705 echo "$ac_t""yes" 1>&6
1706 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1707 cat >> confdefs.h <<EOF
1708 #define $ac_tr_hdr 1
1710 ac_header_dirent=$ac_hdr; break
1712 echo "$ac_t""no" 1>&6
1715 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1716 if test $ac_header_dirent = dirent.h; then
1717 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1718 echo "configure:1719: checking for opendir in -ldir" >&5
1719 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1720 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1721 echo $ac_n "(cached) $ac_c" 1>&6
1723 ac_save_LIBS="$LIBS"
1725 cat > conftest.$ac_ext <<EOF
1726 #line 1727 "configure"
1727 #include "confdefs.h"
1728 /* Override any gcc2 internal prototype to avoid an error. */
1729 /* We use char because int might match the return type of a gcc2
1730 builtin and then its argument prototype would still apply. */
1737 if { (eval echo configure:1738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1739 eval "ac_cv_lib_$ac_lib_var=yes"
1741 echo "configure: failed program was:" >&5
1742 cat conftest.$ac_ext >&5
1744 eval "ac_cv_lib_$ac_lib_var=no"
1747 LIBS="$ac_save_LIBS"
1750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1751 echo "$ac_t""yes" 1>&6
1754 echo "$ac_t""no" 1>&6
1758 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1759 echo "configure:1760: checking for opendir in -lx" >&5
1760 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1764 ac_save_LIBS="$LIBS"
1766 cat > conftest.$ac_ext <<EOF
1767 #line 1768 "configure"
1768 #include "confdefs.h"
1769 /* Override any gcc2 internal prototype to avoid an error. */
1770 /* We use char because int might match the return type of a gcc2
1771 builtin and then its argument prototype would still apply. */
1778 if { (eval echo configure:1779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1780 eval "ac_cv_lib_$ac_lib_var=yes"
1782 echo "configure: failed program was:" >&5
1783 cat conftest.$ac_ext >&5
1785 eval "ac_cv_lib_$ac_lib_var=no"
1788 LIBS="$ac_save_LIBS"
1791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1792 echo "$ac_t""yes" 1>&6
1795 echo "$ac_t""no" 1>&6
1800 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1801 echo "configure:1802: checking whether time.h and sys/time.h may both be included" >&5
1802 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1805 cat > conftest.$ac_ext <<EOF
1806 #line 1807 "configure"
1807 #include "confdefs.h"
1808 #include <sys/types.h>
1809 #include <sys/time.h>
1815 if { (eval echo configure:1816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1817 ac_cv_header_time=yes
1819 echo "configure: failed program was:" >&5
1820 cat conftest.$ac_ext >&5
1822 ac_cv_header_time=no
1827 echo "$ac_t""$ac_cv_header_time" 1>&6
1828 if test $ac_cv_header_time = yes; then
1829 cat >> confdefs.h <<\EOF
1830 #define TIME_WITH_SYS_TIME 1
1835 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1836 echo "configure:1837: checking for sys/wait.h that is POSIX.1 compatible" >&5
1837 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 cat > conftest.$ac_ext <<EOF
1841 #line 1842 "configure"
1842 #include "confdefs.h"
1843 #include <sys/types.h>
1844 #include <sys/wait.h>
1846 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1849 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1854 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1857 if { (eval echo configure:1858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1859 ac_cv_header_sys_wait_h=yes
1861 echo "configure: failed program was:" >&5
1862 cat conftest.$ac_ext >&5
1864 ac_cv_header_sys_wait_h=no
1869 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1870 if test $ac_cv_header_sys_wait_h = yes; then
1871 cat >> confdefs.h <<\EOF
1872 #define HAVE_SYS_WAIT_H 1
1877 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1879 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1880 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1881 echo "configure:1882: checking for $ac_hdr" >&5
1882 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1885 cat > conftest.$ac_ext <<EOF
1886 #line 1887 "configure"
1887 #include "confdefs.h"
1890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1891 { (eval echo configure:1892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1892 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1893 if test -z "$ac_err"; then
1895 eval "ac_cv_header_$ac_safe=yes"
1898 echo "configure: failed program was:" >&5
1899 cat conftest.$ac_ext >&5
1901 eval "ac_cv_header_$ac_safe=no"
1905 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1906 echo "$ac_t""yes" 1>&6
1907 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1908 cat >> confdefs.h <<EOF
1909 #define $ac_tr_hdr 1
1913 echo "$ac_t""no" 1>&6
1917 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
1919 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1920 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1921 echo "configure:1922: checking for $ac_hdr" >&5
1922 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1923 echo $ac_n "(cached) $ac_c" 1>&6
1925 cat > conftest.$ac_ext <<EOF
1926 #line 1927 "configure"
1927 #include "confdefs.h"
1930 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1931 { (eval echo configure:1932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1932 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1933 if test -z "$ac_err"; then
1935 eval "ac_cv_header_$ac_safe=yes"
1938 echo "configure: failed program was:" >&5
1939 cat conftest.$ac_ext >&5
1941 eval "ac_cv_header_$ac_safe=no"
1945 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1946 echo "$ac_t""yes" 1>&6
1947 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1948 cat >> confdefs.h <<EOF
1949 #define $ac_tr_hdr 1
1953 echo "$ac_t""no" 1>&6
1957 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
1959 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1960 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1961 echo "configure:1962: checking for $ac_hdr" >&5
1962 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1963 echo $ac_n "(cached) $ac_c" 1>&6
1965 cat > conftest.$ac_ext <<EOF
1966 #line 1967 "configure"
1967 #include "confdefs.h"
1970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1971 { (eval echo configure:1972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1973 if test -z "$ac_err"; then
1975 eval "ac_cv_header_$ac_safe=yes"
1978 echo "configure: failed program was:" >&5
1979 cat conftest.$ac_ext >&5
1981 eval "ac_cv_header_$ac_safe=no"
1985 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1986 echo "$ac_t""yes" 1>&6
1987 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1988 cat >> confdefs.h <<EOF
1989 #define $ac_tr_hdr 1
1993 echo "$ac_t""no" 1>&6
1997 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
1999 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2000 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2001 echo "configure:2002: checking for $ac_hdr" >&5
2002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2003 echo $ac_n "(cached) $ac_c" 1>&6
2005 cat > conftest.$ac_ext <<EOF
2006 #line 2007 "configure"
2007 #include "confdefs.h"
2010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2011 { (eval echo configure:2012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2013 if test -z "$ac_err"; then
2015 eval "ac_cv_header_$ac_safe=yes"
2018 echo "configure: failed program was:" >&5
2019 cat conftest.$ac_ext >&5
2021 eval "ac_cv_header_$ac_safe=no"
2025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2026 echo "$ac_t""yes" 1>&6
2027 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2028 cat >> confdefs.h <<EOF
2029 #define $ac_tr_hdr 1
2033 echo "$ac_t""no" 1>&6
2037 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h
2039 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2040 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2041 echo "configure:2042: checking for $ac_hdr" >&5
2042 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2045 cat > conftest.$ac_ext <<EOF
2046 #line 2047 "configure"
2047 #include "confdefs.h"
2050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2051 { (eval echo configure:2052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2053 if test -z "$ac_err"; then
2055 eval "ac_cv_header_$ac_safe=yes"
2058 echo "configure: failed program was:" >&5
2059 cat conftest.$ac_ext >&5
2061 eval "ac_cv_header_$ac_safe=no"
2065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2066 echo "$ac_t""yes" 1>&6
2067 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2068 cat >> confdefs.h <<EOF
2069 #define $ac_tr_hdr 1
2073 echo "$ac_t""no" 1>&6
2077 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2079 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2080 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2081 echo "configure:2082: checking for $ac_hdr" >&5
2082 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2083 echo $ac_n "(cached) $ac_c" 1>&6
2085 cat > conftest.$ac_ext <<EOF
2086 #line 2087 "configure"
2087 #include "confdefs.h"
2090 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2091 { (eval echo configure:2092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2092 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2093 if test -z "$ac_err"; then
2095 eval "ac_cv_header_$ac_safe=yes"
2098 echo "configure: failed program was:" >&5
2099 cat conftest.$ac_ext >&5
2101 eval "ac_cv_header_$ac_safe=no"
2105 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2106 echo "$ac_t""yes" 1>&6
2107 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2108 cat >> confdefs.h <<EOF
2109 #define $ac_tr_hdr 1
2113 echo "$ac_t""no" 1>&6
2117 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2119 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2120 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2121 echo "configure:2122: checking for $ac_hdr" >&5
2122 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2123 echo $ac_n "(cached) $ac_c" 1>&6
2125 cat > conftest.$ac_ext <<EOF
2126 #line 2127 "configure"
2127 #include "confdefs.h"
2130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131 { (eval echo configure:2132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2133 if test -z "$ac_err"; then
2135 eval "ac_cv_header_$ac_safe=yes"
2138 echo "configure: failed program was:" >&5
2139 cat conftest.$ac_ext >&5
2141 eval "ac_cv_header_$ac_safe=no"
2145 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2146 echo "$ac_t""yes" 1>&6
2147 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2148 cat >> confdefs.h <<EOF
2149 #define $ac_tr_hdr 1
2153 echo "$ac_t""no" 1>&6
2157 for ac_hdr in security/pam_modules.h security/_pam_macros.h
2159 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2160 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2161 echo "configure:2162: checking for $ac_hdr" >&5
2162 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2163 echo $ac_n "(cached) $ac_c" 1>&6
2165 cat > conftest.$ac_ext <<EOF
2166 #line 2167 "configure"
2167 #include "confdefs.h"
2170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2171 { (eval echo configure:2172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2172 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2173 if test -z "$ac_err"; then
2175 eval "ac_cv_header_$ac_safe=yes"
2178 echo "configure: failed program was:" >&5
2179 cat conftest.$ac_ext >&5
2181 eval "ac_cv_header_$ac_safe=no"
2185 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2186 echo "$ac_t""yes" 1>&6
2187 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2188 cat >> confdefs.h <<EOF
2189 #define $ac_tr_hdr 1
2193 echo "$ac_t""no" 1>&6
2199 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2200 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2204 cat > conftest.$ac_ext <<EOF
2205 #line 2206 "configure"
2206 #include "confdefs.h"
2212 if { (eval echo configure:2213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2214 ac_cv_header_shadow_h=yes
2216 echo "configure: failed program was:" >&5
2217 cat conftest.$ac_ext >&5
2219 ac_cv_header_shadow_h=no
2222 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2223 cat >> confdefs.h <<\EOF
2224 #define HAVE_SHADOW_H 1
2230 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2232 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2233 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2234 echo "configure:2235: checking for $ac_hdr" >&5
2235 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2236 echo $ac_n "(cached) $ac_c" 1>&6
2238 cat > conftest.$ac_ext <<EOF
2239 #line 2240 "configure"
2240 #include "confdefs.h"
2243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2244 { (eval echo configure:2245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2245 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2246 if test -z "$ac_err"; then
2248 eval "ac_cv_header_$ac_safe=yes"
2251 echo "configure: failed program was:" >&5
2252 cat conftest.$ac_ext >&5
2254 eval "ac_cv_header_$ac_safe=no"
2258 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2259 echo "$ac_t""yes" 1>&6
2260 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2261 cat >> confdefs.h <<EOF
2262 #define $ac_tr_hdr 1
2266 echo "$ac_t""no" 1>&6
2270 for ac_hdr in nss.h nss_common.h sys/security.h security/pam_appl.h security/pam_modules.h
2272 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2273 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2274 echo "configure:2275: checking for $ac_hdr" >&5
2275 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2276 echo $ac_n "(cached) $ac_c" 1>&6
2278 cat > conftest.$ac_ext <<EOF
2279 #line 2280 "configure"
2280 #include "confdefs.h"
2283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2284 { (eval echo configure:2285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2286 if test -z "$ac_err"; then
2288 eval "ac_cv_header_$ac_safe=yes"
2291 echo "configure: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2294 eval "ac_cv_header_$ac_safe=no"
2298 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2299 echo "$ac_t""yes" 1>&6
2300 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2301 cat >> confdefs.h <<EOF
2302 #define $ac_tr_hdr 1
2306 echo "$ac_t""no" 1>&6
2310 for ac_hdr in stropts.h poll.h
2312 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2313 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2314 echo "configure:2315: checking for $ac_hdr" >&5
2315 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2318 cat > conftest.$ac_ext <<EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2324 { (eval echo configure:2325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2326 if test -z "$ac_err"; then
2328 eval "ac_cv_header_$ac_safe=yes"
2331 echo "configure: failed program was:" >&5
2332 cat conftest.$ac_ext >&5
2334 eval "ac_cv_header_$ac_safe=no"
2338 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2339 echo "$ac_t""yes" 1>&6
2340 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2341 cat >> confdefs.h <<EOF
2342 #define $ac_tr_hdr 1
2346 echo "$ac_t""no" 1>&6
2350 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2352 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2353 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2354 echo "configure:2355: checking for $ac_hdr" >&5
2355 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2356 echo $ac_n "(cached) $ac_c" 1>&6
2358 cat > conftest.$ac_ext <<EOF
2359 #line 2360 "configure"
2360 #include "confdefs.h"
2363 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2364 { (eval echo configure:2365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2365 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2366 if test -z "$ac_err"; then
2368 eval "ac_cv_header_$ac_safe=yes"
2371 echo "configure: failed program was:" >&5
2372 cat conftest.$ac_ext >&5
2374 eval "ac_cv_header_$ac_safe=no"
2378 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2379 echo "$ac_t""yes" 1>&6
2380 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2381 cat >> confdefs.h <<EOF
2382 #define $ac_tr_hdr 1
2386 echo "$ac_t""no" 1>&6
2390 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2392 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2393 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2394 echo "configure:2395: checking for $ac_hdr" >&5
2395 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2398 cat > conftest.$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2404 { (eval echo configure:2405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2406 if test -z "$ac_err"; then
2408 eval "ac_cv_header_$ac_safe=yes"
2411 echo "configure: failed program was:" >&5
2412 cat conftest.$ac_ext >&5
2414 eval "ac_cv_header_$ac_safe=no"
2418 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2419 echo "$ac_t""yes" 1>&6
2420 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2421 cat >> confdefs.h <<EOF
2422 #define $ac_tr_hdr 1
2426 echo "$ac_t""no" 1>&6
2431 # For experimental utmp support (lastlog on some BSD-like systems)
2432 for ac_hdr in utmp.h utmpx.h lastlog.h
2434 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2435 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2436 echo "configure:2437: checking for $ac_hdr" >&5
2437 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2438 echo $ac_n "(cached) $ac_c" 1>&6
2440 cat > conftest.$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2446 { (eval echo configure:2447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2448 if test -z "$ac_err"; then
2450 eval "ac_cv_header_$ac_safe=yes"
2453 echo "configure: failed program was:" >&5
2454 cat conftest.$ac_ext >&5
2456 eval "ac_cv_header_$ac_safe=no"
2460 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2461 echo "$ac_t""yes" 1>&6
2462 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2463 cat >> confdefs.h <<EOF
2464 #define $ac_tr_hdr 1
2468 echo "$ac_t""no" 1>&6
2473 # For quotas on Veritas VxFS filesystems
2474 for ac_hdr in sys/fs/vx_quota.h
2476 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2477 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2478 echo "configure:2479: checking for $ac_hdr" >&5
2479 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2482 cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2487 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2488 { (eval echo configure:2489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2489 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2490 if test -z "$ac_err"; then
2492 eval "ac_cv_header_$ac_safe=yes"
2495 echo "configure: failed program was:" >&5
2496 cat conftest.$ac_ext >&5
2498 eval "ac_cv_header_$ac_safe=no"
2502 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2503 echo "$ac_t""yes" 1>&6
2504 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2505 cat >> confdefs.h <<EOF
2506 #define $ac_tr_hdr 1
2510 echo "$ac_t""no" 1>&6
2515 echo $ac_n "checking size of int""... $ac_c" 1>&6
2516 echo "configure:2517: checking size of int" >&5
2517 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2518 echo $ac_n "(cached) $ac_c" 1>&6
2520 if test "$cross_compiling" = yes; then
2521 ac_cv_sizeof_int=cross
2523 cat > conftest.$ac_ext <<EOF
2524 #line 2525 "configure"
2525 #include "confdefs.h"
2527 #include <sys/types.h>
2530 FILE *f=fopen("conftestval", "w");
2532 fprintf(f, "%d\n", sizeof(int));
2536 if { (eval echo configure:2537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2538 ac_cv_sizeof_int=`cat conftestval`
2540 echo "configure: failed program was:" >&5
2541 cat conftest.$ac_ext >&5
2549 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2550 cat >> confdefs.h <<EOF
2551 #define SIZEOF_INT $ac_cv_sizeof_int
2555 echo $ac_n "checking size of long""... $ac_c" 1>&6
2556 echo "configure:2557: checking size of long" >&5
2557 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2558 echo $ac_n "(cached) $ac_c" 1>&6
2560 if test "$cross_compiling" = yes; then
2561 ac_cv_sizeof_long=cross
2563 cat > conftest.$ac_ext <<EOF
2564 #line 2565 "configure"
2565 #include "confdefs.h"
2567 #include <sys/types.h>
2570 FILE *f=fopen("conftestval", "w");
2572 fprintf(f, "%d\n", sizeof(long));
2576 if { (eval echo configure:2577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2578 ac_cv_sizeof_long=`cat conftestval`
2580 echo "configure: failed program was:" >&5
2581 cat conftest.$ac_ext >&5
2589 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2590 cat >> confdefs.h <<EOF
2591 #define SIZEOF_LONG $ac_cv_sizeof_long
2595 echo $ac_n "checking size of short""... $ac_c" 1>&6
2596 echo "configure:2597: checking size of short" >&5
2597 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2598 echo $ac_n "(cached) $ac_c" 1>&6
2600 if test "$cross_compiling" = yes; then
2601 ac_cv_sizeof_short=cross
2603 cat > conftest.$ac_ext <<EOF
2604 #line 2605 "configure"
2605 #include "confdefs.h"
2607 #include <sys/types.h>
2610 FILE *f=fopen("conftestval", "w");
2612 fprintf(f, "%d\n", sizeof(short));
2616 if { (eval echo configure:2617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2618 ac_cv_sizeof_short=`cat conftestval`
2620 echo "configure: failed program was:" >&5
2621 cat conftest.$ac_ext >&5
2623 ac_cv_sizeof_short=0
2629 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2630 cat >> confdefs.h <<EOF
2631 #define SIZEOF_SHORT $ac_cv_sizeof_short
2636 echo $ac_n "checking for working const""... $ac_c" 1>&6
2637 echo "configure:2638: checking for working const" >&5
2638 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2639 echo $ac_n "(cached) $ac_c" 1>&6
2641 cat > conftest.$ac_ext <<EOF
2642 #line 2643 "configure"
2643 #include "confdefs.h"
2647 /* Ultrix mips cc rejects this. */
2648 typedef int charset[2]; const charset x;
2649 /* SunOS 4.1.1 cc rejects this. */
2650 char const *const *ccp;
2652 /* NEC SVR4.0.2 mips cc rejects this. */
2653 struct point {int x, y;};
2654 static struct point const zero = {0,0};
2655 /* AIX XL C 1.02.0.0 rejects this.
2656 It does not let you subtract one const X* pointer from another in an arm
2657 of an if-expression whose if-part is not a constant expression */
2658 const char *g = "string";
2659 ccp = &g + (g ? g-g : 0);
2660 /* HPUX 7.0 cc rejects these. */
2663 ccp = (char const *const *) p;
2664 { /* SCO 3.2v4 cc rejects this. */
2666 char const *s = 0 ? (char *) 0 : (char const *) 0;
2670 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2672 const int *foo = &x[0];
2675 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2676 typedef const int *iptr;
2680 { /* AIX XL C 1.02.0.0 rejects this saying
2681 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2682 struct s { int j; const int *ap[3]; };
2683 struct s *b; b->j = 5;
2685 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2691 if { (eval echo configure:2692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2695 echo "configure: failed program was:" >&5
2696 cat conftest.$ac_ext >&5
2703 echo "$ac_t""$ac_cv_c_const" 1>&6
2704 if test $ac_cv_c_const = no; then
2705 cat >> confdefs.h <<\EOF
2711 echo $ac_n "checking for inline""... $ac_c" 1>&6
2712 echo "configure:2713: checking for inline" >&5
2713 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2714 echo $ac_n "(cached) $ac_c" 1>&6
2717 for ac_kw in inline __inline__ __inline; do
2718 cat > conftest.$ac_ext <<EOF
2719 #line 2720 "configure"
2720 #include "confdefs.h"
2726 if { (eval echo configure:2727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2728 ac_cv_c_inline=$ac_kw; break
2730 echo "configure: failed program was:" >&5
2731 cat conftest.$ac_ext >&5
2738 echo "$ac_t""$ac_cv_c_inline" 1>&6
2739 case "$ac_cv_c_inline" in
2741 no) cat >> confdefs.h <<\EOF
2745 *) cat >> confdefs.h <<EOF
2746 #define inline $ac_cv_c_inline
2751 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2752 echo "configure:2753: checking whether byte ordering is bigendian" >&5
2753 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2754 echo $ac_n "(cached) $ac_c" 1>&6
2756 ac_cv_c_bigendian=unknown
2757 # See if sys/param.h defines the BYTE_ORDER macro.
2758 cat > conftest.$ac_ext <<EOF
2759 #line 2760 "configure"
2760 #include "confdefs.h"
2761 #include <sys/types.h>
2762 #include <sys/param.h>
2765 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2770 if { (eval echo configure:2771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2772 # It does; now see whether it defined to BIG_ENDIAN or not.
2773 cat > conftest.$ac_ext <<EOF
2774 #line 2775 "configure"
2775 #include "confdefs.h"
2776 #include <sys/types.h>
2777 #include <sys/param.h>
2780 #if BYTE_ORDER != BIG_ENDIAN
2785 if { (eval echo configure:2786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2787 ac_cv_c_bigendian=yes
2789 echo "configure: failed program was:" >&5
2790 cat conftest.$ac_ext >&5
2792 ac_cv_c_bigendian=no
2796 echo "configure: failed program was:" >&5
2797 cat conftest.$ac_ext >&5
2800 if test $ac_cv_c_bigendian = unknown; then
2801 if test "$cross_compiling" = yes; then
2802 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2804 cat > conftest.$ac_ext <<EOF
2805 #line 2806 "configure"
2806 #include "confdefs.h"
2808 /* Are we little or big endian? From Harbison&Steele. */
2812 char c[sizeof (long)];
2815 exit (u.c[sizeof (long) - 1] == 1);
2818 if { (eval echo configure:2819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2820 ac_cv_c_bigendian=no
2822 echo "configure: failed program was:" >&5
2823 cat conftest.$ac_ext >&5
2825 ac_cv_c_bigendian=yes
2833 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2834 if test $ac_cv_c_bigendian = yes; then
2835 cat >> confdefs.h <<\EOF
2836 #define WORDS_BIGENDIAN 1
2841 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2842 echo "configure:2843: checking whether char is unsigned" >&5
2843 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2844 echo $ac_n "(cached) $ac_c" 1>&6
2846 if test "$GCC" = yes; then
2847 # GCC predefines this symbol on systems where it applies.
2848 cat > conftest.$ac_ext <<EOF
2849 #line 2850 "configure"
2850 #include "confdefs.h"
2851 #ifdef __CHAR_UNSIGNED__
2856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2857 egrep "yes" >/dev/null 2>&1; then
2859 ac_cv_c_char_unsigned=yes
2862 ac_cv_c_char_unsigned=no
2867 if test "$cross_compiling" = yes; then
2868 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2870 cat > conftest.$ac_ext <<EOF
2871 #line 2872 "configure"
2872 #include "confdefs.h"
2873 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2874 #if !defined(__STDC__) || __STDC__ != 1
2878 volatile char c = 255; exit(c < 0);
2881 if { (eval echo configure:2882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2883 ac_cv_c_char_unsigned=yes
2885 echo "configure: failed program was:" >&5
2886 cat conftest.$ac_ext >&5
2888 ac_cv_c_char_unsigned=no
2896 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2897 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2898 cat >> confdefs.h <<\EOF
2899 #define __CHAR_UNSIGNED__ 1
2905 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2906 echo "configure:2907: checking return type of signal handlers" >&5
2907 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2908 echo $ac_n "(cached) $ac_c" 1>&6
2910 cat > conftest.$ac_ext <<EOF
2911 #line 2912 "configure"
2912 #include "confdefs.h"
2913 #include <sys/types.h>
2919 extern "C" void (*signal (int, void (*)(int)))(int);
2921 void (*signal ()) ();
2928 if { (eval echo configure:2929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2930 ac_cv_type_signal=void
2932 echo "configure: failed program was:" >&5
2933 cat conftest.$ac_ext >&5
2935 ac_cv_type_signal=int
2940 echo "$ac_t""$ac_cv_type_signal" 1>&6
2941 cat >> confdefs.h <<EOF
2942 #define RETSIGTYPE $ac_cv_type_signal
2946 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2947 echo "configure:2948: checking for uid_t in sys/types.h" >&5
2948 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2949 echo $ac_n "(cached) $ac_c" 1>&6
2951 cat > conftest.$ac_ext <<EOF
2952 #line 2953 "configure"
2953 #include "confdefs.h"
2954 #include <sys/types.h>
2956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2957 egrep "uid_t" >/dev/null 2>&1; then
2959 ac_cv_type_uid_t=yes
2968 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2969 if test $ac_cv_type_uid_t = no; then
2970 cat >> confdefs.h <<\EOF
2974 cat >> confdefs.h <<\EOF
2980 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2981 echo "configure:2982: checking for mode_t" >&5
2982 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2985 cat > conftest.$ac_ext <<EOF
2986 #line 2987 "configure"
2987 #include "confdefs.h"
2988 #include <sys/types.h>
2994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2995 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2997 ac_cv_type_mode_t=yes
3000 ac_cv_type_mode_t=no
3005 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3006 if test $ac_cv_type_mode_t = no; then
3007 cat >> confdefs.h <<\EOF
3013 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3014 echo "configure:3015: checking for off_t" >&5
3015 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3016 echo $ac_n "(cached) $ac_c" 1>&6
3018 cat > conftest.$ac_ext <<EOF
3019 #line 3020 "configure"
3020 #include "confdefs.h"
3021 #include <sys/types.h>
3027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3028 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3030 ac_cv_type_off_t=yes
3038 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3039 if test $ac_cv_type_off_t = no; then
3040 cat >> confdefs.h <<\EOF
3046 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3047 echo "configure:3048: checking for size_t" >&5
3048 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3049 echo $ac_n "(cached) $ac_c" 1>&6
3051 cat > conftest.$ac_ext <<EOF
3052 #line 3053 "configure"
3053 #include "confdefs.h"
3054 #include <sys/types.h>
3060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3061 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3063 ac_cv_type_size_t=yes
3066 ac_cv_type_size_t=no
3071 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3072 if test $ac_cv_type_size_t = no; then
3073 cat >> confdefs.h <<\EOF
3074 #define size_t unsigned
3079 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3080 echo "configure:3081: checking for pid_t" >&5
3081 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3084 cat > conftest.$ac_ext <<EOF
3085 #line 3086 "configure"
3086 #include "confdefs.h"
3087 #include <sys/types.h>
3093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3094 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3096 ac_cv_type_pid_t=yes
3104 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3105 if test $ac_cv_type_pid_t = no; then
3106 cat >> confdefs.h <<\EOF
3112 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3113 echo "configure:3114: checking for st_rdev in struct stat" >&5
3114 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3115 echo $ac_n "(cached) $ac_c" 1>&6
3117 cat > conftest.$ac_ext <<EOF
3118 #line 3119 "configure"
3119 #include "confdefs.h"
3120 #include <sys/types.h>
3121 #include <sys/stat.h>
3123 struct stat s; s.st_rdev;
3126 if { (eval echo configure:3127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3128 ac_cv_struct_st_rdev=yes
3130 echo "configure: failed program was:" >&5
3131 cat conftest.$ac_ext >&5
3133 ac_cv_struct_st_rdev=no
3138 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3139 if test $ac_cv_struct_st_rdev = yes; then
3140 cat >> confdefs.h <<\EOF
3141 #define HAVE_ST_RDEV 1
3146 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3147 echo "configure:3148: checking for d_off in dirent" >&5
3148 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3149 echo $ac_n "(cached) $ac_c" 1>&6
3151 cat > conftest.$ac_ext <<EOF
3152 #line 3153 "configure"
3153 #include "confdefs.h"
3156 #include <sys/types.h>
3159 struct dirent d; d.d_off;
3162 if { (eval echo configure:3163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3164 ac_cv_dirent_d_off=yes
3166 echo "configure: failed program was:" >&5
3167 cat conftest.$ac_ext >&5
3169 ac_cv_dirent_d_off=no
3174 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3175 if test $ac_cv_dirent_d_off = yes; then
3176 cat >> confdefs.h <<\EOF
3177 #define HAVE_DIRENT_D_OFF 1
3182 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3183 echo "configure:3184: checking for ino_t" >&5
3184 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3185 echo $ac_n "(cached) $ac_c" 1>&6
3187 cat > conftest.$ac_ext <<EOF
3188 #line 3189 "configure"
3189 #include "confdefs.h"
3190 #include <sys/types.h>
3196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3197 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3199 ac_cv_type_ino_t=yes
3207 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3208 if test $ac_cv_type_ino_t = no; then
3209 cat >> confdefs.h <<\EOF
3210 #define ino_t unsigned
3215 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3216 echo "configure:3217: checking for loff_t" >&5
3217 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3218 echo $ac_n "(cached) $ac_c" 1>&6
3220 cat > conftest.$ac_ext <<EOF
3221 #line 3222 "configure"
3222 #include "confdefs.h"
3223 #include <sys/types.h>
3229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3230 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3232 ac_cv_type_loff_t=yes
3235 ac_cv_type_loff_t=no
3240 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3241 if test $ac_cv_type_loff_t = no; then
3242 cat >> confdefs.h <<\EOF
3243 #define loff_t off_t
3248 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3249 echo "configure:3250: checking for offset_t" >&5
3250 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3251 echo $ac_n "(cached) $ac_c" 1>&6
3253 cat > conftest.$ac_ext <<EOF
3254 #line 3255 "configure"
3255 #include "confdefs.h"
3256 #include <sys/types.h>
3262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3263 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3265 ac_cv_type_offset_t=yes
3268 ac_cv_type_offset_t=no
3273 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3274 if test $ac_cv_type_offset_t = no; then
3275 cat >> confdefs.h <<\EOF
3276 #define offset_t loff_t
3281 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3282 echo "configure:3283: checking for ssize_t" >&5
3283 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3284 echo $ac_n "(cached) $ac_c" 1>&6
3286 cat > conftest.$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3289 #include <sys/types.h>
3295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3296 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3298 ac_cv_type_ssize_t=yes
3301 ac_cv_type_ssize_t=no
3306 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3307 if test $ac_cv_type_ssize_t = no; then
3308 cat >> confdefs.h <<\EOF
3314 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3315 echo "configure:3316: checking for wchar_t" >&5
3316 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3319 cat > conftest.$ac_ext <<EOF
3320 #line 3321 "configure"
3321 #include "confdefs.h"
3322 #include <sys/types.h>
3328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3329 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3331 ac_cv_type_wchar_t=yes
3334 ac_cv_type_wchar_t=no
3339 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3340 if test $ac_cv_type_wchar_t = no; then
3341 cat >> confdefs.h <<\EOF
3342 #define wchar_t unsigned short
3348 ############################################
3349 # for cups support we need libcups, and a handful of header files
3351 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3352 echo "configure:3353: checking for httpConnect in -lcups" >&5
3353 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3354 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3355 echo $ac_n "(cached) $ac_c" 1>&6
3357 ac_save_LIBS="$LIBS"
3359 cat > conftest.$ac_ext <<EOF
3360 #line 3361 "configure"
3361 #include "confdefs.h"
3362 /* Override any gcc2 internal prototype to avoid an error. */
3363 /* We use char because int might match the return type of a gcc2
3364 builtin and then its argument prototype would still apply. */
3371 if { (eval echo configure:3372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3373 eval "ac_cv_lib_$ac_lib_var=yes"
3375 echo "configure: failed program was:" >&5
3376 cat conftest.$ac_ext >&5
3378 eval "ac_cv_lib_$ac_lib_var=no"
3381 LIBS="$ac_save_LIBS"
3384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3385 echo "$ac_t""yes" 1>&6
3386 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3387 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3388 cat >> confdefs.h <<EOF
3389 #define $ac_tr_lib 1
3395 echo "$ac_t""no" 1>&6
3399 # I wonder if there is a nicer way of doing this?
3401 if test x"$ac_cv_lib_cups_httpConnect" = x"yes"; then
3402 for ac_hdr in cups/cups.h cups/language.h
3404 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3405 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3406 echo "configure:3407: checking for $ac_hdr" >&5
3407 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3410 cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3416 { (eval echo configure:3417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3418 if test -z "$ac_err"; then
3420 eval "ac_cv_header_$ac_safe=yes"
3423 echo "configure: failed program was:" >&5
3424 cat conftest.$ac_ext >&5
3426 eval "ac_cv_header_$ac_safe=no"
3430 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3431 echo "$ac_t""yes" 1>&6
3432 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3433 cat >> confdefs.h <<EOF
3434 #define $ac_tr_hdr 1
3438 echo "$ac_t""no" 1>&6
3442 if test x"$ac_cv_header_cups_cups_h" = x"yes"; then
3443 if test x"$ac_cv_header_cups_language_h" = x"yes"; then
3444 cat >> confdefs.h <<\EOF
3452 ############################################
3453 # we need libdl for PAM and the new VFS code
3454 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3455 echo "configure:3456: checking for dlopen in -ldl" >&5
3456 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3457 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3458 echo $ac_n "(cached) $ac_c" 1>&6
3460 ac_save_LIBS="$LIBS"
3462 cat > conftest.$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3465 /* Override any gcc2 internal prototype to avoid an error. */
3466 /* We use char because int might match the return type of a gcc2
3467 builtin and then its argument prototype would still apply. */
3474 if { (eval echo configure:3475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3476 eval "ac_cv_lib_$ac_lib_var=yes"
3478 echo "configure: failed program was:" >&5
3479 cat conftest.$ac_ext >&5
3481 eval "ac_cv_lib_$ac_lib_var=no"
3484 LIBS="$ac_save_LIBS"
3487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3488 echo "$ac_t""yes" 1>&6
3490 cat >> confdefs.h <<\EOF
3491 #define HAVE_LIBDL 1
3495 echo "$ac_t""no" 1>&6
3499 ############################################
3500 # check if the compiler can do immediate structures
3501 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3502 echo "configure:3503: checking for immediate structures" >&5
3503 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3504 echo $ac_n "(cached) $ac_c" 1>&6
3507 cat > conftest.$ac_ext <<EOF
3508 #line 3509 "configure"
3509 #include "confdefs.h"
3514 #define X_FOOBAR(x) ((FOOBAR) { x })
3515 typedef struct {unsigned x;} FOOBAR;
3516 FOOBAR f = X_FOOBAR(1);
3520 if { (eval echo configure:3521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3522 samba_cv_immediate_structures=yes
3524 echo "configure: failed program was:" >&5
3525 cat conftest.$ac_ext >&5
3527 samba_cv_immediate_structures=no
3532 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3533 if test x"$samba_cv_immediate_structures" = x"yes"; then
3534 cat >> confdefs.h <<\EOF
3535 #define HAVE_IMMEDIATE_STRUCTURES 1
3540 ############################################
3541 # check for unix domain sockets
3542 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3543 echo "configure:3544: checking for unix domain sockets" >&5
3544 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3545 echo $ac_n "(cached) $ac_c" 1>&6
3548 cat > conftest.$ac_ext <<EOF
3549 #line 3550 "configure"
3550 #include "confdefs.h"
3552 #include <sys/types.h>
3555 #include <sys/socket.h>
3559 struct sockaddr_un sunaddr;
3560 sunaddr.sun_family = AF_UNIX;
3564 if { (eval echo configure:3565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3566 samba_cv_unixsocket=yes
3568 echo "configure: failed program was:" >&5
3569 cat conftest.$ac_ext >&5
3571 samba_cv_unixsocket=no
3576 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3577 if test x"$samba_cv_unixsocket" = x"yes"; then
3578 cat >> confdefs.h <<\EOF
3579 #define HAVE_UNIXSOCKET 1
3585 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3586 echo "configure:3587: checking for socklen_t type" >&5
3587 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3588 echo $ac_n "(cached) $ac_c" 1>&6
3591 cat > conftest.$ac_ext <<EOF
3592 #line 3593 "configure"
3593 #include "confdefs.h"
3595 #include <sys/types.h>
3600 #include <sys/socket.h>
3605 if { (eval echo configure:3606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3607 samba_cv_socklen_t=yes
3609 echo "configure: failed program was:" >&5
3610 cat conftest.$ac_ext >&5
3612 samba_cv_socklen_t=no
3617 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3618 if test x"$samba_cv_socklen_t" = x"yes"; then
3619 cat >> confdefs.h <<\EOF
3620 #define HAVE_SOCKLEN_T_TYPE 1
3625 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3626 echo "configure:3627: checking for sig_atomic_t type" >&5
3627 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3628 echo $ac_n "(cached) $ac_c" 1>&6
3631 cat > conftest.$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3635 #include <sys/types.h>
3645 if { (eval echo configure:3646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3647 samba_cv_sig_atomic_t=yes
3649 echo "configure: failed program was:" >&5
3650 cat conftest.$ac_ext >&5
3652 samba_cv_sig_atomic_t=no
3657 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3658 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3659 cat >> confdefs.h <<\EOF
3660 #define HAVE_SIG_ATOMIC_T_TYPE 1
3665 # stupid headers have the functions but no declaration. grrrr.
3667 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3668 echo "configure:3669: checking for errno declaration" >&5
3669 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3670 echo $ac_n "(cached) $ac_c" 1>&6
3673 cat > conftest.$ac_ext <<EOF
3674 #line 3675 "configure"
3675 #include "confdefs.h"
3681 if { (eval echo configure:3682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3683 ac_cv_have_errno_decl=yes
3685 echo "configure: failed program was:" >&5
3686 cat conftest.$ac_ext >&5
3688 ac_cv_have_errno_decl=no
3693 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3694 if test x"$ac_cv_have_errno_decl" = x"yes"; then
3695 cat >> confdefs.h <<\EOF
3696 #define HAVE_ERRNO_DECL 1
3702 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3703 echo "configure:3704: checking for setresuid declaration" >&5
3704 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3705 echo $ac_n "(cached) $ac_c" 1>&6
3708 cat > conftest.$ac_ext <<EOF
3709 #line 3710 "configure"
3710 #include "confdefs.h"
3713 int i = (int)setresuid
3716 if { (eval echo configure:3717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3718 ac_cv_have_setresuid_decl=yes
3720 echo "configure: failed program was:" >&5
3721 cat conftest.$ac_ext >&5
3723 ac_cv_have_setresuid_decl=no
3728 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3729 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
3730 cat >> confdefs.h <<\EOF
3731 #define HAVE_SETRESUID_DECL 1
3737 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3738 echo "configure:3739: checking for setresgid declaration" >&5
3739 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3740 echo $ac_n "(cached) $ac_c" 1>&6
3743 cat > conftest.$ac_ext <<EOF
3744 #line 3745 "configure"
3745 #include "confdefs.h"
3748 int i = (int)setresgid
3751 if { (eval echo configure:3752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3753 ac_cv_have_setresgid_decl=yes
3755 echo "configure: failed program was:" >&5
3756 cat conftest.$ac_ext >&5
3758 ac_cv_have_setresgid_decl=no
3763 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3764 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
3765 cat >> confdefs.h <<\EOF
3766 #define HAVE_SETRESGID_DECL 1
3772 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3773 echo "configure:3774: checking for asprintf declaration" >&5
3774 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3775 echo $ac_n "(cached) $ac_c" 1>&6
3778 cat > conftest.$ac_ext <<EOF
3779 #line 3780 "configure"
3780 #include "confdefs.h"
3783 int i = (int)asprintf
3786 if { (eval echo configure:3787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3788 ac_cv_have_asprintf_decl=yes
3790 echo "configure: failed program was:" >&5
3791 cat conftest.$ac_ext >&5
3793 ac_cv_have_asprintf_decl=no
3798 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3799 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
3800 cat >> confdefs.h <<\EOF
3801 #define HAVE_ASPRINTF_DECL 1
3807 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3808 echo "configure:3809: checking for vasprintf declaration" >&5
3809 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3810 echo $ac_n "(cached) $ac_c" 1>&6
3813 cat > conftest.$ac_ext <<EOF
3814 #line 3815 "configure"
3815 #include "confdefs.h"
3818 int i = (int)vasprintf
3821 if { (eval echo configure:3822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3823 ac_cv_have_vasprintf_decl=yes
3825 echo "configure: failed program was:" >&5
3826 cat conftest.$ac_ext >&5
3828 ac_cv_have_vasprintf_decl=no
3833 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
3834 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
3835 cat >> confdefs.h <<\EOF
3836 #define HAVE_VASPRINTF_DECL 1
3842 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
3843 echo "configure:3844: checking for vsnprintf declaration" >&5
3844 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
3845 echo $ac_n "(cached) $ac_c" 1>&6
3848 cat > conftest.$ac_ext <<EOF
3849 #line 3850 "configure"
3850 #include "confdefs.h"
3853 int i = (int)vsnprintf
3856 if { (eval echo configure:3857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3858 ac_cv_have_vsnprintf_decl=yes
3860 echo "configure: failed program was:" >&5
3861 cat conftest.$ac_ext >&5
3863 ac_cv_have_vsnprintf_decl=no
3868 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
3869 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
3870 cat >> confdefs.h <<\EOF
3871 #define HAVE_VSNPRINTF_DECL 1
3877 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
3878 echo "configure:3879: checking for snprintf declaration" >&5
3879 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
3880 echo $ac_n "(cached) $ac_c" 1>&6
3883 cat > conftest.$ac_ext <<EOF
3884 #line 3885 "configure"
3885 #include "confdefs.h"
3888 int i = (int)snprintf
3891 if { (eval echo configure:3892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3893 ac_cv_have_snprintf_decl=yes
3895 echo "configure: failed program was:" >&5
3896 cat conftest.$ac_ext >&5
3898 ac_cv_have_snprintf_decl=no
3903 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
3904 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
3905 cat >> confdefs.h <<\EOF
3906 #define HAVE_SNPRINTF_DECL 1
3912 # and glibc has setresuid under linux but the function does
3913 # nothing until kernel 2.1.44! very dumb.
3914 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3915 echo "configure:3916: checking for real setresuid" >&5
3916 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3917 echo $ac_n "(cached) $ac_c" 1>&6
3920 if test "$cross_compiling" = yes; then
3921 samba_cv_have_setresuid=cross
3923 cat > conftest.$ac_ext <<EOF
3924 #line 3925 "configure"
3925 #include "confdefs.h"
3927 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3929 if { (eval echo configure:3930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3931 samba_cv_have_setresuid=yes
3933 echo "configure: failed program was:" >&5
3934 cat conftest.$ac_ext >&5
3936 samba_cv_have_setresuid=no
3943 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3944 if test x"$samba_cv_have_setresuid" = x"yes"; then
3945 cat >> confdefs.h <<\EOF
3946 #define HAVE_SETRESUID 1
3951 # Do the same check for setresguid...
3953 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
3954 echo "configure:3955: checking for real setresgid" >&5
3955 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
3956 echo $ac_n "(cached) $ac_c" 1>&6
3959 if test "$cross_compiling" = yes; then
3960 samba_cv_have_setresgid=cross
3962 cat > conftest.$ac_ext <<EOF
3963 #line 3964 "configure"
3964 #include "confdefs.h"
3967 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
3969 if { (eval echo configure:3970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3971 samba_cv_have_setresgid=yes
3973 echo "configure: failed program was:" >&5
3974 cat conftest.$ac_ext >&5
3976 samba_cv_have_setresgid=no
3983 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
3984 if test x"$samba_cv_have_setresgid" = x"yes"; then
3985 cat >> confdefs.h <<\EOF
3986 #define HAVE_SETRESGID 1
3991 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3992 echo "configure:3993: checking for 8-bit clean memcmp" >&5
3993 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3994 echo $ac_n "(cached) $ac_c" 1>&6
3996 if test "$cross_compiling" = yes; then
3997 ac_cv_func_memcmp_clean=no
3999 cat > conftest.$ac_ext <<EOF
4000 #line 4001 "configure"
4001 #include "confdefs.h"
4005 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4006 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4010 if { (eval echo configure:4011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4012 ac_cv_func_memcmp_clean=yes
4014 echo "configure: failed program was:" >&5
4015 cat conftest.$ac_ext >&5
4017 ac_cv_func_memcmp_clean=no
4024 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4025 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4028 ###############################################
4029 # test for where we get crypt() from
4030 for ac_func in crypt
4032 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4033 echo "configure:4034: checking for $ac_func" >&5
4034 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4035 echo $ac_n "(cached) $ac_c" 1>&6
4037 cat > conftest.$ac_ext <<EOF
4038 #line 4039 "configure"
4039 #include "confdefs.h"
4040 /* System header to define __stub macros and hopefully few prototypes,
4041 which can conflict with char $ac_func(); below. */
4043 /* Override any gcc2 internal prototype to avoid an error. */
4044 /* We use char because int might match the return type of a gcc2
4045 builtin and then its argument prototype would still apply. */
4050 /* The GNU C library defines this for functions which it implements
4051 to always fail with ENOSYS. Some functions are actually named
4052 something starting with __ and the normal name is an alias. */
4053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4061 if { (eval echo configure:4062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4063 eval "ac_cv_func_$ac_func=yes"
4065 echo "configure: failed program was:" >&5
4066 cat conftest.$ac_ext >&5
4068 eval "ac_cv_func_$ac_func=no"
4073 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4074 echo "$ac_t""yes" 1>&6
4075 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4076 cat >> confdefs.h <<EOF
4077 #define $ac_tr_func 1
4081 echo "$ac_t""no" 1>&6
4085 if test x"$ac_cv_func_crypt" = x"no"; then
4086 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4087 echo "configure:4088: checking for crypt in -lcrypt" >&5
4088 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4089 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4090 echo $ac_n "(cached) $ac_c" 1>&6
4092 ac_save_LIBS="$LIBS"
4093 LIBS="-lcrypt $LIBS"
4094 cat > conftest.$ac_ext <<EOF
4095 #line 4096 "configure"
4096 #include "confdefs.h"
4097 /* Override any gcc2 internal prototype to avoid an error. */
4098 /* We use char because int might match the return type of a gcc2
4099 builtin and then its argument prototype would still apply. */
4106 if { (eval echo configure:4107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4108 eval "ac_cv_lib_$ac_lib_var=yes"
4110 echo "configure: failed program was:" >&5
4111 cat conftest.$ac_ext >&5
4113 eval "ac_cv_lib_$ac_lib_var=no"
4116 LIBS="$ac_save_LIBS"
4119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4120 echo "$ac_t""yes" 1>&6
4121 LIBS="$LIBS -lcrypt";
4122 cat >> confdefs.h <<\EOF
4123 #define HAVE_CRYPT 1
4127 echo "$ac_t""no" 1>&6
4133 ###############################################
4134 # Readline included by default unless explicitly asked not to
4135 test "${with_readline+set}" != "set" && with_readline=yes
4137 # test for where we get readline() from
4138 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4139 echo "configure:4140: checking whether to use readline" >&5
4140 # Check whether --with-readline or --without-readline was given.
4141 if test "${with_readline+set}" = set; then
4142 withval="$with_readline"
4143 case "$with_readline" in
4145 echo "$ac_t""yes" 1>&6
4147 for ac_hdr in readline.h history.h readline/readline.h
4149 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4150 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4151 echo "configure:4152: checking for $ac_hdr" >&5
4152 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4153 echo $ac_n "(cached) $ac_c" 1>&6
4155 cat > conftest.$ac_ext <<EOF
4156 #line 4157 "configure"
4157 #include "confdefs.h"
4160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4161 { (eval echo configure:4162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4162 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4163 if test -z "$ac_err"; then
4165 eval "ac_cv_header_$ac_safe=yes"
4168 echo "configure: failed program was:" >&5
4169 cat conftest.$ac_ext >&5
4171 eval "ac_cv_header_$ac_safe=no"
4175 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4176 echo "$ac_t""yes" 1>&6
4177 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4178 cat >> confdefs.h <<EOF
4179 #define $ac_tr_hdr 1
4183 echo "$ac_t""no" 1>&6
4187 for ac_hdr in readline/history.h
4189 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4190 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4191 echo "configure:4192: checking for $ac_hdr" >&5
4192 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4193 echo $ac_n "(cached) $ac_c" 1>&6
4195 cat > conftest.$ac_ext <<EOF
4196 #line 4197 "configure"
4197 #include "confdefs.h"
4200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4201 { (eval echo configure:4202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4202 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4203 if test -z "$ac_err"; then
4205 eval "ac_cv_header_$ac_safe=yes"
4208 echo "configure: failed program was:" >&5
4209 cat conftest.$ac_ext >&5
4211 eval "ac_cv_header_$ac_safe=no"
4215 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4216 echo "$ac_t""yes" 1>&6
4217 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4218 cat >> confdefs.h <<EOF
4219 #define $ac_tr_hdr 1
4223 echo "$ac_t""no" 1>&6
4228 for ac_hdr in readline.h readline/readline.h
4230 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4231 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4232 echo "configure:4233: checking for $ac_hdr" >&5
4233 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4234 echo $ac_n "(cached) $ac_c" 1>&6
4236 cat > conftest.$ac_ext <<EOF
4237 #line 4238 "configure"
4238 #include "confdefs.h"
4241 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4242 { (eval echo configure:4243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4243 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4244 if test -z "$ac_err"; then
4246 eval "ac_cv_header_$ac_safe=yes"
4249 echo "configure: failed program was:" >&5
4250 cat conftest.$ac_ext >&5
4252 eval "ac_cv_header_$ac_safe=no"
4256 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4257 echo "$ac_t""yes" 1>&6
4258 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4259 cat >> confdefs.h <<EOF
4260 #define $ac_tr_hdr 1
4263 for termlib in ncurses curses termcap terminfo termlib; do
4264 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4265 echo "configure:4266: checking for tgetent in -l${termlib}" >&5
4266 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4267 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4268 echo $ac_n "(cached) $ac_c" 1>&6
4270 ac_save_LIBS="$LIBS"
4271 LIBS="-l${termlib} $LIBS"
4272 cat > conftest.$ac_ext <<EOF
4273 #line 4274 "configure"
4274 #include "confdefs.h"
4275 /* Override any gcc2 internal prototype to avoid an error. */
4276 /* We use char because int might match the return type of a gcc2
4277 builtin and then its argument prototype would still apply. */
4284 if { (eval echo configure:4285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4286 eval "ac_cv_lib_$ac_lib_var=yes"
4288 echo "configure: failed program was:" >&5
4289 cat conftest.$ac_ext >&5
4291 eval "ac_cv_lib_$ac_lib_var=no"
4294 LIBS="$ac_save_LIBS"
4297 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4298 echo "$ac_t""yes" 1>&6
4299 TERMLIBS="-l${termlib}"; break
4301 echo "$ac_t""no" 1>&6
4305 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4306 echo "configure:4307: checking for rl_callback_handler_install in -lreadline" >&5
4307 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4308 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4309 echo $ac_n "(cached) $ac_c" 1>&6
4311 ac_save_LIBS="$LIBS"
4312 LIBS="-lreadline $TERMLIBS $LIBS"
4313 cat > conftest.$ac_ext <<EOF
4314 #line 4315 "configure"
4315 #include "confdefs.h"
4316 /* Override any gcc2 internal prototype to avoid an error. */
4317 /* We use char because int might match the return type of a gcc2
4318 builtin and then its argument prototype would still apply. */
4319 char rl_callback_handler_install();
4322 rl_callback_handler_install()
4325 if { (eval echo configure:4326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4327 eval "ac_cv_lib_$ac_lib_var=yes"
4329 echo "configure: failed program was:" >&5
4330 cat conftest.$ac_ext >&5
4332 eval "ac_cv_lib_$ac_lib_var=no"
4335 LIBS="$ac_save_LIBS"
4338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4339 echo "$ac_t""yes" 1>&6
4340 TERMLIBS="-lreadline $TERMLIBS"
4341 cat >> confdefs.h <<\EOF
4342 #define HAVE_LIBREADLINE 1
4347 echo "$ac_t""no" 1>&6
4352 echo "$ac_t""no" 1>&6
4358 echo "$ac_t""no" 1>&6
4361 echo "$ac_t""yes" 1>&6
4363 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4364 # alternate readline path
4366 _cppflags=${CPPFLAGS}
4368 # Add additional search path
4369 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4370 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4372 for ac_hdr in readline.h history.h readline/readline.h
4374 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4375 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4376 echo "configure:4377: checking for $ac_hdr" >&5
4377 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4378 echo $ac_n "(cached) $ac_c" 1>&6
4380 cat > conftest.$ac_ext <<EOF
4381 #line 4382 "configure"
4382 #include "confdefs.h"
4385 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4386 { (eval echo configure:4387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4387 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4388 if test -z "$ac_err"; then
4390 eval "ac_cv_header_$ac_safe=yes"
4393 echo "configure: failed program was:" >&5
4394 cat conftest.$ac_ext >&5
4396 eval "ac_cv_header_$ac_safe=no"
4400 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4401 echo "$ac_t""yes" 1>&6
4402 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4403 cat >> confdefs.h <<EOF
4404 #define $ac_tr_hdr 1
4408 echo "$ac_t""no" 1>&6
4412 for ac_hdr in readline/history.h
4414 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4415 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4416 echo "configure:4417: checking for $ac_hdr" >&5
4417 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4418 echo $ac_n "(cached) $ac_c" 1>&6
4420 cat > conftest.$ac_ext <<EOF
4421 #line 4422 "configure"
4422 #include "confdefs.h"
4425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4426 { (eval echo configure:4427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4428 if test -z "$ac_err"; then
4430 eval "ac_cv_header_$ac_safe=yes"
4433 echo "configure: failed program was:" >&5
4434 cat conftest.$ac_ext >&5
4436 eval "ac_cv_header_$ac_safe=no"
4440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4441 echo "$ac_t""yes" 1>&6
4442 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4443 cat >> confdefs.h <<EOF
4444 #define $ac_tr_hdr 1
4448 echo "$ac_t""no" 1>&6
4453 for ac_hdr in readline.h readline/readline.h
4455 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4456 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4457 echo "configure:4458: checking for $ac_hdr" >&5
4458 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4459 echo $ac_n "(cached) $ac_c" 1>&6
4461 cat > conftest.$ac_ext <<EOF
4462 #line 4463 "configure"
4463 #include "confdefs.h"
4466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4467 { (eval echo configure:4468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4468 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4469 if test -z "$ac_err"; then
4471 eval "ac_cv_header_$ac_safe=yes"
4474 echo "configure: failed program was:" >&5
4475 cat conftest.$ac_ext >&5
4477 eval "ac_cv_header_$ac_safe=no"
4481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4482 echo "$ac_t""yes" 1>&6
4483 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4484 cat >> confdefs.h <<EOF
4485 #define $ac_tr_hdr 1
4488 for termlib in ncurses curses termcap terminfo termlib; do
4489 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4490 echo "configure:4491: checking for tgetent in -l${termlib}" >&5
4491 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4492 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4493 echo $ac_n "(cached) $ac_c" 1>&6
4495 ac_save_LIBS="$LIBS"
4496 LIBS="-l${termlib} $LIBS"
4497 cat > conftest.$ac_ext <<EOF
4498 #line 4499 "configure"
4499 #include "confdefs.h"
4500 /* Override any gcc2 internal prototype to avoid an error. */
4501 /* We use char because int might match the return type of a gcc2
4502 builtin and then its argument prototype would still apply. */
4509 if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4511 eval "ac_cv_lib_$ac_lib_var=yes"
4513 echo "configure: failed program was:" >&5
4514 cat conftest.$ac_ext >&5
4516 eval "ac_cv_lib_$ac_lib_var=no"
4519 LIBS="$ac_save_LIBS"
4522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4523 echo "$ac_t""yes" 1>&6
4524 TERMLIBS="-l${termlib}"; break
4526 echo "$ac_t""no" 1>&6
4530 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4531 echo "configure:4532: checking for rl_callback_handler_install in -lreadline" >&5
4532 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4533 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4536 ac_save_LIBS="$LIBS"
4537 LIBS="-lreadline $TERMLIBS $LIBS"
4538 cat > conftest.$ac_ext <<EOF
4539 #line 4540 "configure"
4540 #include "confdefs.h"
4541 /* Override any gcc2 internal prototype to avoid an error. */
4542 /* We use char because int might match the return type of a gcc2
4543 builtin and then its argument prototype would still apply. */
4544 char rl_callback_handler_install();
4547 rl_callback_handler_install()
4550 if { (eval echo configure:4551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4552 eval "ac_cv_lib_$ac_lib_var=yes"
4554 echo "configure: failed program was:" >&5
4555 cat conftest.$ac_ext >&5
4557 eval "ac_cv_lib_$ac_lib_var=no"
4560 LIBS="$ac_save_LIBS"
4563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4564 echo "$ac_t""yes" 1>&6
4565 TERMLDFLAGS="-L$with_readline/lib"
4566 TERMCPPFLAGS="-I$with_readline/include"
4567 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4568 TERMLIBS="-lreadline $TERMLIBS"
4569 cat >> confdefs.h <<\EOF
4570 #define HAVE_LIBREADLINE 1
4575 echo "$ac_t""no" 1>&6
4576 TERMLIBS= CPPFLAGS=$_cppflags
4580 echo "$ac_t""no" 1>&6
4589 echo "$ac_t""no" 1>&6
4596 # The following test taken from the cvs sources
4597 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4598 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4599 # libsocket.so which has a bad implementation of gethostbyname (it
4600 # only looks in /etc/hosts), so we only look for -lsocket if we need
4602 for ac_func in connect
4604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4605 echo "configure:4606: checking for $ac_func" >&5
4606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4607 echo $ac_n "(cached) $ac_c" 1>&6
4609 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4612 /* System header to define __stub macros and hopefully few prototypes,
4613 which can conflict with char $ac_func(); below. */
4615 /* Override any gcc2 internal prototype to avoid an error. */
4616 /* We use char because int might match the return type of a gcc2
4617 builtin and then its argument prototype would still apply. */
4622 /* The GNU C library defines this for functions which it implements
4623 to always fail with ENOSYS. Some functions are actually named
4624 something starting with __ and the normal name is an alias. */
4625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4633 if { (eval echo configure:4634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4635 eval "ac_cv_func_$ac_func=yes"
4637 echo "configure: failed program was:" >&5
4638 cat conftest.$ac_ext >&5
4640 eval "ac_cv_func_$ac_func=no"
4645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4646 echo "$ac_t""yes" 1>&6
4647 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4648 cat >> confdefs.h <<EOF
4649 #define $ac_tr_func 1
4653 echo "$ac_t""no" 1>&6
4657 if test x"$ac_cv_func_connect" = x"no"; then
4660 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4661 echo "configure:4662: checking for printf in -lnsl_s" >&5
4662 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4663 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4664 echo $ac_n "(cached) $ac_c" 1>&6
4666 ac_save_LIBS="$LIBS"
4667 LIBS="-lnsl_s $LIBS"
4668 cat > conftest.$ac_ext <<EOF
4669 #line 4670 "configure"
4670 #include "confdefs.h"
4671 /* Override any gcc2 internal prototype to avoid an error. */
4672 /* We use char because int might match the return type of a gcc2
4673 builtin and then its argument prototype would still apply. */
4680 if { (eval echo configure:4681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4682 eval "ac_cv_lib_$ac_lib_var=yes"
4684 echo "configure: failed program was:" >&5
4685 cat conftest.$ac_ext >&5
4687 eval "ac_cv_lib_$ac_lib_var=no"
4690 LIBS="$ac_save_LIBS"
4693 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4694 echo "$ac_t""yes" 1>&6
4695 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4696 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4697 cat >> confdefs.h <<EOF
4698 #define $ac_tr_lib 1
4701 LIBS="-lnsl_s $LIBS"
4704 echo "$ac_t""no" 1>&6
4710 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4711 echo "configure:4712: checking for printf in -lnsl" >&5
4712 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4713 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4714 echo $ac_n "(cached) $ac_c" 1>&6
4716 ac_save_LIBS="$LIBS"
4718 cat > conftest.$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4721 /* Override any gcc2 internal prototype to avoid an error. */
4722 /* We use char because int might match the return type of a gcc2
4723 builtin and then its argument prototype would still apply. */
4730 if { (eval echo configure:4731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4732 eval "ac_cv_lib_$ac_lib_var=yes"
4734 echo "configure: failed program was:" >&5
4735 cat conftest.$ac_ext >&5
4737 eval "ac_cv_lib_$ac_lib_var=no"
4740 LIBS="$ac_save_LIBS"
4743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4744 echo "$ac_t""yes" 1>&6
4745 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4746 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4747 cat >> confdefs.h <<EOF
4748 #define $ac_tr_lib 1
4754 echo "$ac_t""no" 1>&6
4760 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4761 echo "configure:4762: checking for connect in -lsocket" >&5
4762 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4763 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4764 echo $ac_n "(cached) $ac_c" 1>&6
4766 ac_save_LIBS="$LIBS"
4767 LIBS="-lsocket $LIBS"
4768 cat > conftest.$ac_ext <<EOF
4769 #line 4770 "configure"
4770 #include "confdefs.h"
4771 /* Override any gcc2 internal prototype to avoid an error. */
4772 /* We use char because int might match the return type of a gcc2
4773 builtin and then its argument prototype would still apply. */
4780 if { (eval echo configure:4781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4782 eval "ac_cv_lib_$ac_lib_var=yes"
4784 echo "configure: failed program was:" >&5
4785 cat conftest.$ac_ext >&5
4787 eval "ac_cv_lib_$ac_lib_var=no"
4790 LIBS="$ac_save_LIBS"
4793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4794 echo "$ac_t""yes" 1>&6
4795 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4796 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4797 cat >> confdefs.h <<EOF
4798 #define $ac_tr_lib 1
4801 LIBS="-lsocket $LIBS"
4804 echo "$ac_t""no" 1>&6
4810 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4811 echo "configure:4812: checking for connect in -linet" >&5
4812 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4813 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4814 echo $ac_n "(cached) $ac_c" 1>&6
4816 ac_save_LIBS="$LIBS"
4818 cat > conftest.$ac_ext <<EOF
4819 #line 4820 "configure"
4820 #include "confdefs.h"
4821 /* Override any gcc2 internal prototype to avoid an error. */
4822 /* We use char because int might match the return type of a gcc2
4823 builtin and then its argument prototype would still apply. */
4830 if { (eval echo configure:4831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4832 eval "ac_cv_lib_$ac_lib_var=yes"
4834 echo "configure: failed program was:" >&5
4835 cat conftest.$ac_ext >&5
4837 eval "ac_cv_lib_$ac_lib_var=no"
4840 LIBS="$ac_save_LIBS"
4843 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4844 echo "$ac_t""yes" 1>&6
4845 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4846 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4847 cat >> confdefs.h <<EOF
4848 #define $ac_tr_lib 1
4854 echo "$ac_t""no" 1>&6
4858 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4859 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4860 # ac_cv_func_connect=yes
4861 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4862 cat >> confdefs.h <<\EOF
4863 #define HAVE_CONNECT 1
4869 ###############################################
4870 # test for where we get get_yp_default_domain() from
4871 for ac_func in yp_get_default_domain
4873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4874 echo "configure:4875: checking for $ac_func" >&5
4875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4876 echo $ac_n "(cached) $ac_c" 1>&6
4878 cat > conftest.$ac_ext <<EOF
4879 #line 4880 "configure"
4880 #include "confdefs.h"
4881 /* System header to define __stub macros and hopefully few prototypes,
4882 which can conflict with char $ac_func(); below. */
4884 /* Override any gcc2 internal prototype to avoid an error. */
4885 /* We use char because int might match the return type of a gcc2
4886 builtin and then its argument prototype would still apply. */
4891 /* The GNU C library defines this for functions which it implements
4892 to always fail with ENOSYS. Some functions are actually named
4893 something starting with __ and the normal name is an alias. */
4894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4902 if { (eval echo configure:4903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4904 eval "ac_cv_func_$ac_func=yes"
4906 echo "configure: failed program was:" >&5
4907 cat conftest.$ac_ext >&5
4909 eval "ac_cv_func_$ac_func=no"
4914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4915 echo "$ac_t""yes" 1>&6
4916 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4917 cat >> confdefs.h <<EOF
4918 #define $ac_tr_func 1
4922 echo "$ac_t""no" 1>&6
4926 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
4927 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4928 echo "configure:4929: checking for yp_get_default_domain in -lnsl" >&5
4929 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
4930 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4931 echo $ac_n "(cached) $ac_c" 1>&6
4933 ac_save_LIBS="$LIBS"
4935 cat > conftest.$ac_ext <<EOF
4936 #line 4937 "configure"
4937 #include "confdefs.h"
4938 /* Override any gcc2 internal prototype to avoid an error. */
4939 /* We use char because int might match the return type of a gcc2
4940 builtin and then its argument prototype would still apply. */
4941 char yp_get_default_domain();
4944 yp_get_default_domain()
4947 if { (eval echo configure:4948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4949 eval "ac_cv_lib_$ac_lib_var=yes"
4951 echo "configure: failed program was:" >&5
4952 cat conftest.$ac_ext >&5
4954 eval "ac_cv_lib_$ac_lib_var=no"
4957 LIBS="$ac_save_LIBS"
4960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4961 echo "$ac_t""yes" 1>&6
4963 cat >> confdefs.h <<\EOF
4964 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
4968 echo "$ac_t""no" 1>&6
4973 # Check if we have execl, if not we need to compile smbrun.
4974 for ac_func in execl
4976 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4977 echo "configure:4978: checking for $ac_func" >&5
4978 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4979 echo $ac_n "(cached) $ac_c" 1>&6
4981 cat > conftest.$ac_ext <<EOF
4982 #line 4983 "configure"
4983 #include "confdefs.h"
4984 /* System header to define __stub macros and hopefully few prototypes,
4985 which can conflict with char $ac_func(); below. */
4987 /* Override any gcc2 internal prototype to avoid an error. */
4988 /* We use char because int might match the return type of a gcc2
4989 builtin and then its argument prototype would still apply. */
4994 /* The GNU C library defines this for functions which it implements
4995 to always fail with ENOSYS. Some functions are actually named
4996 something starting with __ and the normal name is an alias. */
4997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5005 if { (eval echo configure:5006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5007 eval "ac_cv_func_$ac_func=yes"
5009 echo "configure: failed program was:" >&5
5010 cat conftest.$ac_ext >&5
5012 eval "ac_cv_func_$ac_func=no"
5017 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5018 echo "$ac_t""yes" 1>&6
5019 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5020 cat >> confdefs.h <<EOF
5021 #define $ac_tr_func 1
5025 echo "$ac_t""no" 1>&6
5029 if test x"$ac_cv_func_execl" = x"no"; then
5030 RUNPROG="bin/smbrun"
5035 for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot
5037 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5038 echo "configure:5039: checking for $ac_func" >&5
5039 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5040 echo $ac_n "(cached) $ac_c" 1>&6
5042 cat > conftest.$ac_ext <<EOF
5043 #line 5044 "configure"
5044 #include "confdefs.h"
5045 /* System header to define __stub macros and hopefully few prototypes,
5046 which can conflict with char $ac_func(); below. */
5048 /* Override any gcc2 internal prototype to avoid an error. */
5049 /* We use char because int might match the return type of a gcc2
5050 builtin and then its argument prototype would still apply. */
5055 /* The GNU C library defines this for functions which it implements
5056 to always fail with ENOSYS. Some functions are actually named
5057 something starting with __ and the normal name is an alias. */
5058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5066 if { (eval echo configure:5067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5068 eval "ac_cv_func_$ac_func=yes"
5070 echo "configure: failed program was:" >&5
5071 cat conftest.$ac_ext >&5
5073 eval "ac_cv_func_$ac_func=no"
5078 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5079 echo "$ac_t""yes" 1>&6
5080 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5081 cat >> confdefs.h <<EOF
5082 #define $ac_tr_func 1
5086 echo "$ac_t""no" 1>&6
5090 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
5092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5093 echo "configure:5094: checking for $ac_func" >&5
5094 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5095 echo $ac_n "(cached) $ac_c" 1>&6
5097 cat > conftest.$ac_ext <<EOF
5098 #line 5099 "configure"
5099 #include "confdefs.h"
5100 /* System header to define __stub macros and hopefully few prototypes,
5101 which can conflict with char $ac_func(); below. */
5103 /* Override any gcc2 internal prototype to avoid an error. */
5104 /* We use char because int might match the return type of a gcc2
5105 builtin and then its argument prototype would still apply. */
5110 /* The GNU C library defines this for functions which it implements
5111 to always fail with ENOSYS. Some functions are actually named
5112 something starting with __ and the normal name is an alias. */
5113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5121 if { (eval echo configure:5122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5123 eval "ac_cv_func_$ac_func=yes"
5125 echo "configure: failed program was:" >&5
5126 cat conftest.$ac_ext >&5
5128 eval "ac_cv_func_$ac_func=no"
5133 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5134 echo "$ac_t""yes" 1>&6
5135 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5136 cat >> confdefs.h <<EOF
5137 #define $ac_tr_func 1
5141 echo "$ac_t""no" 1>&6
5145 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5148 echo "configure:5149: checking for $ac_func" >&5
5149 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5150 echo $ac_n "(cached) $ac_c" 1>&6
5152 cat > conftest.$ac_ext <<EOF
5153 #line 5154 "configure"
5154 #include "confdefs.h"
5155 /* System header to define __stub macros and hopefully few prototypes,
5156 which can conflict with char $ac_func(); below. */
5158 /* Override any gcc2 internal prototype to avoid an error. */
5159 /* We use char because int might match the return type of a gcc2
5160 builtin and then its argument prototype would still apply. */
5165 /* The GNU C library defines this for functions which it implements
5166 to always fail with ENOSYS. Some functions are actually named
5167 something starting with __ and the normal name is an alias. */
5168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5176 if { (eval echo configure:5177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5178 eval "ac_cv_func_$ac_func=yes"
5180 echo "configure: failed program was:" >&5
5181 cat conftest.$ac_ext >&5
5183 eval "ac_cv_func_$ac_func=no"
5188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5189 echo "$ac_t""yes" 1>&6
5190 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5191 cat >> confdefs.h <<EOF
5192 #define $ac_tr_func 1
5196 echo "$ac_t""no" 1>&6
5200 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5203 echo "configure:5204: checking for $ac_func" >&5
5204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5205 echo $ac_n "(cached) $ac_c" 1>&6
5207 cat > conftest.$ac_ext <<EOF
5208 #line 5209 "configure"
5209 #include "confdefs.h"
5210 /* System header to define __stub macros and hopefully few prototypes,
5211 which can conflict with char $ac_func(); below. */
5213 /* Override any gcc2 internal prototype to avoid an error. */
5214 /* We use char because int might match the return type of a gcc2
5215 builtin and then its argument prototype would still apply. */
5220 /* The GNU C library defines this for functions which it implements
5221 to always fail with ENOSYS. Some functions are actually named
5222 something starting with __ and the normal name is an alias. */
5223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5231 if { (eval echo configure:5232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5233 eval "ac_cv_func_$ac_func=yes"
5235 echo "configure: failed program was:" >&5
5236 cat conftest.$ac_ext >&5
5238 eval "ac_cv_func_$ac_func=no"
5243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5244 echo "$ac_t""yes" 1>&6
5245 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5246 cat >> confdefs.h <<EOF
5247 #define $ac_tr_func 1
5251 echo "$ac_t""no" 1>&6
5255 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
5257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5258 echo "configure:5259: checking for $ac_func" >&5
5259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5260 echo $ac_n "(cached) $ac_c" 1>&6
5262 cat > conftest.$ac_ext <<EOF
5263 #line 5264 "configure"
5264 #include "confdefs.h"
5265 /* System header to define __stub macros and hopefully few prototypes,
5266 which can conflict with char $ac_func(); below. */
5268 /* Override any gcc2 internal prototype to avoid an error. */
5269 /* We use char because int might match the return type of a gcc2
5270 builtin and then its argument prototype would still apply. */
5275 /* The GNU C library defines this for functions which it implements
5276 to always fail with ENOSYS. Some functions are actually named
5277 something starting with __ and the normal name is an alias. */
5278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5286 if { (eval echo configure:5287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5288 eval "ac_cv_func_$ac_func=yes"
5290 echo "configure: failed program was:" >&5
5291 cat conftest.$ac_ext >&5
5293 eval "ac_cv_func_$ac_func=no"
5298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5299 echo "$ac_t""yes" 1>&6
5300 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5301 cat >> confdefs.h <<EOF
5302 #define $ac_tr_func 1
5306 echo "$ac_t""no" 1>&6
5310 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5313 echo "configure:5314: checking for $ac_func" >&5
5314 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5315 echo $ac_n "(cached) $ac_c" 1>&6
5317 cat > conftest.$ac_ext <<EOF
5318 #line 5319 "configure"
5319 #include "confdefs.h"
5320 /* System header to define __stub macros and hopefully few prototypes,
5321 which can conflict with char $ac_func(); below. */
5323 /* Override any gcc2 internal prototype to avoid an error. */
5324 /* We use char because int might match the return type of a gcc2
5325 builtin and then its argument prototype would still apply. */
5330 /* The GNU C library defines this for functions which it implements
5331 to always fail with ENOSYS. Some functions are actually named
5332 something starting with __ and the normal name is an alias. */
5333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5341 if { (eval echo configure:5342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5343 eval "ac_cv_func_$ac_func=yes"
5345 echo "configure: failed program was:" >&5
5346 cat conftest.$ac_ext >&5
5348 eval "ac_cv_func_$ac_func=no"
5353 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5354 echo "$ac_t""yes" 1>&6
5355 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5356 cat >> confdefs.h <<EOF
5357 #define $ac_tr_func 1
5361 echo "$ac_t""no" 1>&6
5365 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5368 echo "configure:5369: checking for $ac_func" >&5
5369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5370 echo $ac_n "(cached) $ac_c" 1>&6
5372 cat > conftest.$ac_ext <<EOF
5373 #line 5374 "configure"
5374 #include "confdefs.h"
5375 /* System header to define __stub macros and hopefully few prototypes,
5376 which can conflict with char $ac_func(); below. */
5378 /* Override any gcc2 internal prototype to avoid an error. */
5379 /* We use char because int might match the return type of a gcc2
5380 builtin and then its argument prototype would still apply. */
5385 /* The GNU C library defines this for functions which it implements
5386 to always fail with ENOSYS. Some functions are actually named
5387 something starting with __ and the normal name is an alias. */
5388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5396 if { (eval echo configure:5397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5398 eval "ac_cv_func_$ac_func=yes"
5400 echo "configure: failed program was:" >&5
5401 cat conftest.$ac_ext >&5
5403 eval "ac_cv_func_$ac_func=no"
5408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5409 echo "$ac_t""yes" 1>&6
5410 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5411 cat >> confdefs.h <<EOF
5412 #define $ac_tr_func 1
5416 echo "$ac_t""no" 1>&6
5420 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5423 echo "configure:5424: checking for $ac_func" >&5
5424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5425 echo $ac_n "(cached) $ac_c" 1>&6
5427 cat > conftest.$ac_ext <<EOF
5428 #line 5429 "configure"
5429 #include "confdefs.h"
5430 /* System header to define __stub macros and hopefully few prototypes,
5431 which can conflict with char $ac_func(); below. */
5433 /* Override any gcc2 internal prototype to avoid an error. */
5434 /* We use char because int might match the return type of a gcc2
5435 builtin and then its argument prototype would still apply. */
5440 /* The GNU C library defines this for functions which it implements
5441 to always fail with ENOSYS. Some functions are actually named
5442 something starting with __ and the normal name is an alias. */
5443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5451 if { (eval echo configure:5452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5453 eval "ac_cv_func_$ac_func=yes"
5455 echo "configure: failed program was:" >&5
5456 cat conftest.$ac_ext >&5
5458 eval "ac_cv_func_$ac_func=no"
5463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5464 echo "$ac_t""yes" 1>&6
5465 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5466 cat >> confdefs.h <<EOF
5467 #define $ac_tr_func 1
5471 echo "$ac_t""no" 1>&6
5475 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5478 echo "configure:5479: checking for $ac_func" >&5
5479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5480 echo $ac_n "(cached) $ac_c" 1>&6
5482 cat > conftest.$ac_ext <<EOF
5483 #line 5484 "configure"
5484 #include "confdefs.h"
5485 /* System header to define __stub macros and hopefully few prototypes,
5486 which can conflict with char $ac_func(); below. */
5488 /* Override any gcc2 internal prototype to avoid an error. */
5489 /* We use char because int might match the return type of a gcc2
5490 builtin and then its argument prototype would still apply. */
5495 /* The GNU C library defines this for functions which it implements
5496 to always fail with ENOSYS. Some functions are actually named
5497 something starting with __ and the normal name is an alias. */
5498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5506 if { (eval echo configure:5507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5508 eval "ac_cv_func_$ac_func=yes"
5510 echo "configure: failed program was:" >&5
5511 cat conftest.$ac_ext >&5
5513 eval "ac_cv_func_$ac_func=no"
5518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5519 echo "$ac_t""yes" 1>&6
5520 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5521 cat >> confdefs.h <<EOF
5522 #define $ac_tr_func 1
5526 echo "$ac_t""no" 1>&6
5530 # setbuffer is needed for smbtorture
5531 for ac_func in setbuffer
5533 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5534 echo "configure:5535: checking for $ac_func" >&5
5535 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5536 echo $ac_n "(cached) $ac_c" 1>&6
5538 cat > conftest.$ac_ext <<EOF
5539 #line 5540 "configure"
5540 #include "confdefs.h"
5541 /* System header to define __stub macros and hopefully few prototypes,
5542 which can conflict with char $ac_func(); below. */
5544 /* Override any gcc2 internal prototype to avoid an error. */
5545 /* We use char because int might match the return type of a gcc2
5546 builtin and then its argument prototype would still apply. */
5551 /* The GNU C library defines this for functions which it implements
5552 to always fail with ENOSYS. Some functions are actually named
5553 something starting with __ and the normal name is an alias. */
5554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5562 if { (eval echo configure:5563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5564 eval "ac_cv_func_$ac_func=yes"
5566 echo "configure: failed program was:" >&5
5567 cat conftest.$ac_ext >&5
5569 eval "ac_cv_func_$ac_func=no"
5574 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5575 echo "$ac_t""yes" 1>&6
5576 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5577 cat >> confdefs.h <<EOF
5578 #define $ac_tr_func 1
5582 echo "$ac_t""no" 1>&6
5587 # syscall() is needed for smbwrapper.
5588 for ac_func in syscall
5590 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5591 echo "configure:5592: checking for $ac_func" >&5
5592 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5593 echo $ac_n "(cached) $ac_c" 1>&6
5595 cat > conftest.$ac_ext <<EOF
5596 #line 5597 "configure"
5597 #include "confdefs.h"
5598 /* System header to define __stub macros and hopefully few prototypes,
5599 which can conflict with char $ac_func(); below. */
5601 /* Override any gcc2 internal prototype to avoid an error. */
5602 /* We use char because int might match the return type of a gcc2
5603 builtin and then its argument prototype would still apply. */
5608 /* The GNU C library defines this for functions which it implements
5609 to always fail with ENOSYS. Some functions are actually named
5610 something starting with __ and the normal name is an alias. */
5611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5619 if { (eval echo configure:5620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5621 eval "ac_cv_func_$ac_func=yes"
5623 echo "configure: failed program was:" >&5
5624 cat conftest.$ac_ext >&5
5626 eval "ac_cv_func_$ac_func=no"
5631 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5632 echo "$ac_t""yes" 1>&6
5633 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5634 cat >> confdefs.h <<EOF
5635 #define $ac_tr_func 1
5639 echo "$ac_t""no" 1>&6
5644 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5646 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5647 echo "configure:5648: checking for $ac_func" >&5
5648 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5649 echo $ac_n "(cached) $ac_c" 1>&6
5651 cat > conftest.$ac_ext <<EOF
5652 #line 5653 "configure"
5653 #include "confdefs.h"
5654 /* System header to define __stub macros and hopefully few prototypes,
5655 which can conflict with char $ac_func(); below. */
5657 /* Override any gcc2 internal prototype to avoid an error. */
5658 /* We use char because int might match the return type of a gcc2
5659 builtin and then its argument prototype would still apply. */
5664 /* The GNU C library defines this for functions which it implements
5665 to always fail with ENOSYS. Some functions are actually named
5666 something starting with __ and the normal name is an alias. */
5667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5675 if { (eval echo configure:5676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5677 eval "ac_cv_func_$ac_func=yes"
5679 echo "configure: failed program was:" >&5
5680 cat conftest.$ac_ext >&5
5682 eval "ac_cv_func_$ac_func=no"
5687 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5688 echo "$ac_t""yes" 1>&6
5689 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5690 cat >> confdefs.h <<EOF
5691 #define $ac_tr_func 1
5695 echo "$ac_t""no" 1>&6
5699 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5701 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5702 echo "configure:5703: checking for $ac_func" >&5
5703 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5704 echo $ac_n "(cached) $ac_c" 1>&6
5706 cat > conftest.$ac_ext <<EOF
5707 #line 5708 "configure"
5708 #include "confdefs.h"
5709 /* System header to define __stub macros and hopefully few prototypes,
5710 which can conflict with char $ac_func(); below. */
5712 /* Override any gcc2 internal prototype to avoid an error. */
5713 /* We use char because int might match the return type of a gcc2
5714 builtin and then its argument prototype would still apply. */
5719 /* The GNU C library defines this for functions which it implements
5720 to always fail with ENOSYS. Some functions are actually named
5721 something starting with __ and the normal name is an alias. */
5722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5730 if { (eval echo configure:5731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5732 eval "ac_cv_func_$ac_func=yes"
5734 echo "configure: failed program was:" >&5
5735 cat conftest.$ac_ext >&5
5737 eval "ac_cv_func_$ac_func=no"
5742 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5743 echo "$ac_t""yes" 1>&6
5744 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5745 cat >> confdefs.h <<EOF
5746 #define $ac_tr_func 1
5750 echo "$ac_t""no" 1>&6
5754 for ac_func in __getcwd _getcwd
5756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5757 echo "configure:5758: checking for $ac_func" >&5
5758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5759 echo $ac_n "(cached) $ac_c" 1>&6
5761 cat > conftest.$ac_ext <<EOF
5762 #line 5763 "configure"
5763 #include "confdefs.h"
5764 /* System header to define __stub macros and hopefully few prototypes,
5765 which can conflict with char $ac_func(); below. */
5767 /* Override any gcc2 internal prototype to avoid an error. */
5768 /* We use char because int might match the return type of a gcc2
5769 builtin and then its argument prototype would still apply. */
5774 /* The GNU C library defines this for functions which it implements
5775 to always fail with ENOSYS. Some functions are actually named
5776 something starting with __ and the normal name is an alias. */
5777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5785 if { (eval echo configure:5786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5787 eval "ac_cv_func_$ac_func=yes"
5789 echo "configure: failed program was:" >&5
5790 cat conftest.$ac_ext >&5
5792 eval "ac_cv_func_$ac_func=no"
5797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5798 echo "$ac_t""yes" 1>&6
5799 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5800 cat >> confdefs.h <<EOF
5801 #define $ac_tr_func 1
5805 echo "$ac_t""no" 1>&6
5809 for ac_func in __xstat __fxstat __lxstat
5811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5812 echo "configure:5813: checking for $ac_func" >&5
5813 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5814 echo $ac_n "(cached) $ac_c" 1>&6
5816 cat > conftest.$ac_ext <<EOF
5817 #line 5818 "configure"
5818 #include "confdefs.h"
5819 /* System header to define __stub macros and hopefully few prototypes,
5820 which can conflict with char $ac_func(); below. */
5822 /* Override any gcc2 internal prototype to avoid an error. */
5823 /* We use char because int might match the return type of a gcc2
5824 builtin and then its argument prototype would still apply. */
5829 /* The GNU C library defines this for functions which it implements
5830 to always fail with ENOSYS. Some functions are actually named
5831 something starting with __ and the normal name is an alias. */
5832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5840 if { (eval echo configure:5841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5842 eval "ac_cv_func_$ac_func=yes"
5844 echo "configure: failed program was:" >&5
5845 cat conftest.$ac_ext >&5
5847 eval "ac_cv_func_$ac_func=no"
5852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5853 echo "$ac_t""yes" 1>&6
5854 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5855 cat >> confdefs.h <<EOF
5856 #define $ac_tr_func 1
5860 echo "$ac_t""no" 1>&6
5864 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
5866 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5867 echo "configure:5868: checking for $ac_func" >&5
5868 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5869 echo $ac_n "(cached) $ac_c" 1>&6
5871 cat > conftest.$ac_ext <<EOF
5872 #line 5873 "configure"
5873 #include "confdefs.h"
5874 /* System header to define __stub macros and hopefully few prototypes,
5875 which can conflict with char $ac_func(); below. */
5877 /* Override any gcc2 internal prototype to avoid an error. */
5878 /* We use char because int might match the return type of a gcc2
5879 builtin and then its argument prototype would still apply. */
5884 /* The GNU C library defines this for functions which it implements
5885 to always fail with ENOSYS. Some functions are actually named
5886 something starting with __ and the normal name is an alias. */
5887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5895 if { (eval echo configure:5896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5897 eval "ac_cv_func_$ac_func=yes"
5899 echo "configure: failed program was:" >&5
5900 cat conftest.$ac_ext >&5
5902 eval "ac_cv_func_$ac_func=no"
5907 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5908 echo "$ac_t""yes" 1>&6
5909 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5910 cat >> confdefs.h <<EOF
5911 #define $ac_tr_func 1
5915 echo "$ac_t""no" 1>&6
5919 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
5921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5922 echo "configure:5923: checking for $ac_func" >&5
5923 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5924 echo $ac_n "(cached) $ac_c" 1>&6
5926 cat > conftest.$ac_ext <<EOF
5927 #line 5928 "configure"
5928 #include "confdefs.h"
5929 /* System header to define __stub macros and hopefully few prototypes,
5930 which can conflict with char $ac_func(); below. */
5932 /* Override any gcc2 internal prototype to avoid an error. */
5933 /* We use char because int might match the return type of a gcc2
5934 builtin and then its argument prototype would still apply. */
5939 /* The GNU C library defines this for functions which it implements
5940 to always fail with ENOSYS. Some functions are actually named
5941 something starting with __ and the normal name is an alias. */
5942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5950 if { (eval echo configure:5951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5952 eval "ac_cv_func_$ac_func=yes"
5954 echo "configure: failed program was:" >&5
5955 cat conftest.$ac_ext >&5
5957 eval "ac_cv_func_$ac_func=no"
5962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5963 echo "$ac_t""yes" 1>&6
5964 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5965 cat >> confdefs.h <<EOF
5966 #define $ac_tr_func 1
5970 echo "$ac_t""no" 1>&6
5974 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
5976 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5977 echo "configure:5978: checking for $ac_func" >&5
5978 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5979 echo $ac_n "(cached) $ac_c" 1>&6
5981 cat > conftest.$ac_ext <<EOF
5982 #line 5983 "configure"
5983 #include "confdefs.h"
5984 /* System header to define __stub macros and hopefully few prototypes,
5985 which can conflict with char $ac_func(); below. */
5987 /* Override any gcc2 internal prototype to avoid an error. */
5988 /* We use char because int might match the return type of a gcc2
5989 builtin and then its argument prototype would still apply. */
5994 /* The GNU C library defines this for functions which it implements
5995 to always fail with ENOSYS. Some functions are actually named
5996 something starting with __ and the normal name is an alias. */
5997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6005 if { (eval echo configure:6006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6007 eval "ac_cv_func_$ac_func=yes"
6009 echo "configure: failed program was:" >&5
6010 cat conftest.$ac_ext >&5
6012 eval "ac_cv_func_$ac_func=no"
6017 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6018 echo "$ac_t""yes" 1>&6
6019 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6020 cat >> confdefs.h <<EOF
6021 #define $ac_tr_func 1
6025 echo "$ac_t""no" 1>&6
6029 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6032 echo "configure:6033: checking for $ac_func" >&5
6033 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6034 echo $ac_n "(cached) $ac_c" 1>&6
6036 cat > conftest.$ac_ext <<EOF
6037 #line 6038 "configure"
6038 #include "confdefs.h"
6039 /* System header to define __stub macros and hopefully few prototypes,
6040 which can conflict with char $ac_func(); below. */
6042 /* Override any gcc2 internal prototype to avoid an error. */
6043 /* We use char because int might match the return type of a gcc2
6044 builtin and then its argument prototype would still apply. */
6049 /* The GNU C library defines this for functions which it implements
6050 to always fail with ENOSYS. Some functions are actually named
6051 something starting with __ and the normal name is an alias. */
6052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6060 if { (eval echo configure:6061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6062 eval "ac_cv_func_$ac_func=yes"
6064 echo "configure: failed program was:" >&5
6065 cat conftest.$ac_ext >&5
6067 eval "ac_cv_func_$ac_func=no"
6072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6073 echo "$ac_t""yes" 1>&6
6074 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6075 cat >> confdefs.h <<EOF
6076 #define $ac_tr_func 1
6080 echo "$ac_t""no" 1>&6
6084 for ac_func in _write __write _fork __fork
6086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6087 echo "configure:6088: checking for $ac_func" >&5
6088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6089 echo $ac_n "(cached) $ac_c" 1>&6
6091 cat > conftest.$ac_ext <<EOF
6092 #line 6093 "configure"
6093 #include "confdefs.h"
6094 /* System header to define __stub macros and hopefully few prototypes,
6095 which can conflict with char $ac_func(); below. */
6097 /* Override any gcc2 internal prototype to avoid an error. */
6098 /* We use char because int might match the return type of a gcc2
6099 builtin and then its argument prototype would still apply. */
6104 /* The GNU C library defines this for functions which it implements
6105 to always fail with ENOSYS. Some functions are actually named
6106 something starting with __ and the normal name is an alias. */
6107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6115 if { (eval echo configure:6116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6117 eval "ac_cv_func_$ac_func=yes"
6119 echo "configure: failed program was:" >&5
6120 cat conftest.$ac_ext >&5
6122 eval "ac_cv_func_$ac_func=no"
6127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6128 echo "$ac_t""yes" 1>&6
6129 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6130 cat >> confdefs.h <<EOF
6131 #define $ac_tr_func 1
6135 echo "$ac_t""no" 1>&6
6139 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6141 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6142 echo "configure:6143: checking for $ac_func" >&5
6143 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6144 echo $ac_n "(cached) $ac_c" 1>&6
6146 cat > conftest.$ac_ext <<EOF
6147 #line 6148 "configure"
6148 #include "confdefs.h"
6149 /* System header to define __stub macros and hopefully few prototypes,
6150 which can conflict with char $ac_func(); below. */
6152 /* Override any gcc2 internal prototype to avoid an error. */
6153 /* We use char because int might match the return type of a gcc2
6154 builtin and then its argument prototype would still apply. */
6159 /* The GNU C library defines this for functions which it implements
6160 to always fail with ENOSYS. Some functions are actually named
6161 something starting with __ and the normal name is an alias. */
6162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6170 if { (eval echo configure:6171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6172 eval "ac_cv_func_$ac_func=yes"
6174 echo "configure: failed program was:" >&5
6175 cat conftest.$ac_ext >&5
6177 eval "ac_cv_func_$ac_func=no"
6182 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6183 echo "$ac_t""yes" 1>&6
6184 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6185 cat >> confdefs.h <<EOF
6186 #define $ac_tr_func 1
6190 echo "$ac_t""no" 1>&6
6194 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6197 echo "configure:6198: checking for $ac_func" >&5
6198 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6199 echo $ac_n "(cached) $ac_c" 1>&6
6201 cat > conftest.$ac_ext <<EOF
6202 #line 6203 "configure"
6203 #include "confdefs.h"
6204 /* System header to define __stub macros and hopefully few prototypes,
6205 which can conflict with char $ac_func(); below. */
6207 /* Override any gcc2 internal prototype to avoid an error. */
6208 /* We use char because int might match the return type of a gcc2
6209 builtin and then its argument prototype would still apply. */
6214 /* The GNU C library defines this for functions which it implements
6215 to always fail with ENOSYS. Some functions are actually named
6216 something starting with __ and the normal name is an alias. */
6217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6225 if { (eval echo configure:6226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6227 eval "ac_cv_func_$ac_func=yes"
6229 echo "configure: failed program was:" >&5
6230 cat conftest.$ac_ext >&5
6232 eval "ac_cv_func_$ac_func=no"
6237 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6238 echo "$ac_t""yes" 1>&6
6239 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6240 cat >> confdefs.h <<EOF
6241 #define $ac_tr_func 1
6245 echo "$ac_t""no" 1>&6
6249 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6251 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6252 echo "configure:6253: checking for $ac_func" >&5
6253 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6254 echo $ac_n "(cached) $ac_c" 1>&6
6256 cat > conftest.$ac_ext <<EOF
6257 #line 6258 "configure"
6258 #include "confdefs.h"
6259 /* System header to define __stub macros and hopefully few prototypes,
6260 which can conflict with char $ac_func(); below. */
6262 /* Override any gcc2 internal prototype to avoid an error. */
6263 /* We use char because int might match the return type of a gcc2
6264 builtin and then its argument prototype would still apply. */
6269 /* The GNU C library defines this for functions which it implements
6270 to always fail with ENOSYS. Some functions are actually named
6271 something starting with __ and the normal name is an alias. */
6272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6280 if { (eval echo configure:6281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6282 eval "ac_cv_func_$ac_func=yes"
6284 echo "configure: failed program was:" >&5
6285 cat conftest.$ac_ext >&5
6287 eval "ac_cv_func_$ac_func=no"
6292 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6293 echo "$ac_t""yes" 1>&6
6294 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6295 cat >> confdefs.h <<EOF
6296 #define $ac_tr_func 1
6300 echo "$ac_t""no" 1>&6
6304 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6306 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6307 echo "configure:6308: checking for $ac_func" >&5
6308 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6309 echo $ac_n "(cached) $ac_c" 1>&6
6311 cat > conftest.$ac_ext <<EOF
6312 #line 6313 "configure"
6313 #include "confdefs.h"
6314 /* System header to define __stub macros and hopefully few prototypes,
6315 which can conflict with char $ac_func(); below. */
6317 /* Override any gcc2 internal prototype to avoid an error. */
6318 /* We use char because int might match the return type of a gcc2
6319 builtin and then its argument prototype would still apply. */
6324 /* The GNU C library defines this for functions which it implements
6325 to always fail with ENOSYS. Some functions are actually named
6326 something starting with __ and the normal name is an alias. */
6327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6335 if { (eval echo configure:6336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6337 eval "ac_cv_func_$ac_func=yes"
6339 echo "configure: failed program was:" >&5
6340 cat conftest.$ac_ext >&5
6342 eval "ac_cv_func_$ac_func=no"
6347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6348 echo "$ac_t""yes" 1>&6
6349 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6350 cat >> confdefs.h <<EOF
6351 #define $ac_tr_func 1
6355 echo "$ac_t""no" 1>&6
6359 for ac_func in open64 _open64 __open64 creat64
6361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6362 echo "configure:6363: checking for $ac_func" >&5
6363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6364 echo $ac_n "(cached) $ac_c" 1>&6
6366 cat > conftest.$ac_ext <<EOF
6367 #line 6368 "configure"
6368 #include "confdefs.h"
6369 /* System header to define __stub macros and hopefully few prototypes,
6370 which can conflict with char $ac_func(); below. */
6372 /* Override any gcc2 internal prototype to avoid an error. */
6373 /* We use char because int might match the return type of a gcc2
6374 builtin and then its argument prototype would still apply. */
6379 /* The GNU C library defines this for functions which it implements
6380 to always fail with ENOSYS. Some functions are actually named
6381 something starting with __ and the normal name is an alias. */
6382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6390 if { (eval echo configure:6391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6392 eval "ac_cv_func_$ac_func=yes"
6394 echo "configure: failed program was:" >&5
6395 cat conftest.$ac_ext >&5
6397 eval "ac_cv_func_$ac_func=no"
6402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6403 echo "$ac_t""yes" 1>&6
6404 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6405 cat >> confdefs.h <<EOF
6406 #define $ac_tr_func 1
6410 echo "$ac_t""no" 1>&6
6416 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6419 if test x$ac_cv_func_stat64 = xno ; then
6420 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6421 echo "configure:6422: checking for stat64 in <sys/stat.h>" >&5
6422 cat > conftest.$ac_ext <<EOF
6423 #line 6424 "configure"
6424 #include "confdefs.h"
6426 #if defined(HAVE_UNISTD_H)
6429 #include <sys/stat.h>
6432 struct stat64 st64; exit(stat64(".",&st64));
6435 if { (eval echo configure:6436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6437 ac_cv_func_stat64=yes
6439 echo "configure: failed program was:" >&5
6440 cat conftest.$ac_ext >&5
6443 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6444 if test x$ac_cv_func_stat64 = xyes ; then
6445 cat >> confdefs.h <<\EOF
6446 #define HAVE_STAT64 1
6452 if test x$ac_cv_func_lstat64 = xno ; then
6453 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6454 echo "configure:6455: checking for lstat64 in <sys/stat.h>" >&5
6455 cat > conftest.$ac_ext <<EOF
6456 #line 6457 "configure"
6457 #include "confdefs.h"
6459 #if defined(HAVE_UNISTD_H)
6462 #include <sys/stat.h>
6465 struct stat64 st64; exit(lstat64(".",&st64));
6468 if { (eval echo configure:6469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6470 ac_cv_func_lstat64=yes
6472 echo "configure: failed program was:" >&5
6473 cat conftest.$ac_ext >&5
6476 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6477 if test x$ac_cv_func_lstat64 = xyes ; then
6478 cat >> confdefs.h <<\EOF
6479 #define HAVE_LSTAT64 1
6485 if test x$ac_cv_func_fstat64 = xno ; then
6486 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6487 echo "configure:6488: checking for fstat64 in <sys/stat.h>" >&5
6488 cat > conftest.$ac_ext <<EOF
6489 #line 6490 "configure"
6490 #include "confdefs.h"
6492 #if defined(HAVE_UNISTD_H)
6495 #include <sys/stat.h>
6498 struct stat64 st64; exit(fstat64(0,&st64));
6501 if { (eval echo configure:6502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6503 ac_cv_func_fstat64=yes
6505 echo "configure: failed program was:" >&5
6506 cat conftest.$ac_ext >&5
6509 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6510 if test x$ac_cv_func_fstat64 = xyes ; then
6511 cat >> confdefs.h <<\EOF
6512 #define HAVE_FSTAT64 1
6518 #####################################
6519 # we might need the resolv library on some systems
6520 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
6521 echo "configure:6522: checking for dn_expand in -lresolv" >&5
6522 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
6523 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6524 echo $ac_n "(cached) $ac_c" 1>&6
6526 ac_save_LIBS="$LIBS"
6527 LIBS="-lresolv $LIBS"
6528 cat > conftest.$ac_ext <<EOF
6529 #line 6530 "configure"
6530 #include "confdefs.h"
6531 /* Override any gcc2 internal prototype to avoid an error. */
6532 /* We use char because int might match the return type of a gcc2
6533 builtin and then its argument prototype would still apply. */
6540 if { (eval echo configure:6541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6542 eval "ac_cv_lib_$ac_lib_var=yes"
6544 echo "configure: failed program was:" >&5
6545 cat conftest.$ac_ext >&5
6547 eval "ac_cv_lib_$ac_lib_var=no"
6550 LIBS="$ac_save_LIBS"
6553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6554 echo "$ac_t""yes" 1>&6
6555 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6556 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6557 cat >> confdefs.h <<EOF
6558 #define $ac_tr_lib 1
6561 LIBS="-lresolv $LIBS"
6564 echo "$ac_t""no" 1>&6
6569 # Check for the functions putprpwnam, set_auth_parameters,
6570 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6571 # Needed for OSF1 and HPUX.
6575 *-lsecurity*) for ac_func in putprpwnam
6577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6578 echo "configure:6579: checking for $ac_func" >&5
6579 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6580 echo $ac_n "(cached) $ac_c" 1>&6
6582 cat > conftest.$ac_ext <<EOF
6583 #line 6584 "configure"
6584 #include "confdefs.h"
6585 /* System header to define __stub macros and hopefully few prototypes,
6586 which can conflict with char $ac_func(); below. */
6588 /* Override any gcc2 internal prototype to avoid an error. */
6589 /* We use char because int might match the return type of a gcc2
6590 builtin and then its argument prototype would still apply. */
6595 /* The GNU C library defines this for functions which it implements
6596 to always fail with ENOSYS. Some functions are actually named
6597 something starting with __ and the normal name is an alias. */
6598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6606 if { (eval echo configure:6607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6608 eval "ac_cv_func_$ac_func=yes"
6610 echo "configure: failed program was:" >&5
6611 cat conftest.$ac_ext >&5
6613 eval "ac_cv_func_$ac_func=no"
6618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6619 echo "$ac_t""yes" 1>&6
6620 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6621 cat >> confdefs.h <<EOF
6622 #define $ac_tr_func 1
6626 echo "$ac_t""no" 1>&6
6630 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6631 echo "configure:6632: checking for putprpwnam in -lsecurity" >&5
6632 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6633 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6634 echo $ac_n "(cached) $ac_c" 1>&6
6636 ac_save_LIBS="$LIBS"
6637 LIBS="-lsecurity $LIBS"
6638 cat > conftest.$ac_ext <<EOF
6639 #line 6640 "configure"
6640 #include "confdefs.h"
6641 /* Override any gcc2 internal prototype to avoid an error. */
6642 /* We use char because int might match the return type of a gcc2
6643 builtin and then its argument prototype would still apply. */
6650 if { (eval echo configure:6651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6652 eval "ac_cv_lib_$ac_lib_var=yes"
6654 echo "configure: failed program was:" >&5
6655 cat conftest.$ac_ext >&5
6657 eval "ac_cv_lib_$ac_lib_var=no"
6660 LIBS="$ac_save_LIBS"
6663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6664 echo "$ac_t""yes" 1>&6
6665 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6666 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6667 cat >> confdefs.h <<EOF
6668 #define $ac_tr_lib 1
6671 LIBS="-lsecurity $LIBS"
6674 echo "$ac_t""no" 1>&6
6677 for ac_func in putprpwnam
6679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6680 echo "configure:6681: checking for $ac_func" >&5
6681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6682 echo $ac_n "(cached) $ac_c" 1>&6
6684 cat > conftest.$ac_ext <<EOF
6685 #line 6686 "configure"
6686 #include "confdefs.h"
6687 /* System header to define __stub macros and hopefully few prototypes,
6688 which can conflict with char $ac_func(); below. */
6690 /* Override any gcc2 internal prototype to avoid an error. */
6691 /* We use char because int might match the return type of a gcc2
6692 builtin and then its argument prototype would still apply. */
6697 /* The GNU C library defines this for functions which it implements
6698 to always fail with ENOSYS. Some functions are actually named
6699 something starting with __ and the normal name is an alias. */
6700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6708 if { (eval echo configure:6709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6710 eval "ac_cv_func_$ac_func=yes"
6712 echo "configure: failed program was:" >&5
6713 cat conftest.$ac_ext >&5
6715 eval "ac_cv_func_$ac_func=no"
6720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6721 echo "$ac_t""yes" 1>&6
6722 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6723 cat >> confdefs.h <<EOF
6724 #define $ac_tr_func 1
6728 echo "$ac_t""no" 1>&6
6736 *-lsec*) for ac_func in putprpwnam
6738 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6739 echo "configure:6740: checking for $ac_func" >&5
6740 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6741 echo $ac_n "(cached) $ac_c" 1>&6
6743 cat > conftest.$ac_ext <<EOF
6744 #line 6745 "configure"
6745 #include "confdefs.h"
6746 /* System header to define __stub macros and hopefully few prototypes,
6747 which can conflict with char $ac_func(); below. */
6749 /* Override any gcc2 internal prototype to avoid an error. */
6750 /* We use char because int might match the return type of a gcc2
6751 builtin and then its argument prototype would still apply. */
6756 /* The GNU C library defines this for functions which it implements
6757 to always fail with ENOSYS. Some functions are actually named
6758 something starting with __ and the normal name is an alias. */
6759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6767 if { (eval echo configure:6768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6769 eval "ac_cv_func_$ac_func=yes"
6771 echo "configure: failed program was:" >&5
6772 cat conftest.$ac_ext >&5
6774 eval "ac_cv_func_$ac_func=no"
6779 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6780 echo "$ac_t""yes" 1>&6
6781 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6782 cat >> confdefs.h <<EOF
6783 #define $ac_tr_func 1
6787 echo "$ac_t""no" 1>&6
6791 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6792 echo "configure:6793: checking for putprpwnam in -lsec" >&5
6793 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6795 echo $ac_n "(cached) $ac_c" 1>&6
6797 ac_save_LIBS="$LIBS"
6799 cat > conftest.$ac_ext <<EOF
6800 #line 6801 "configure"
6801 #include "confdefs.h"
6802 /* Override any gcc2 internal prototype to avoid an error. */
6803 /* We use char because int might match the return type of a gcc2
6804 builtin and then its argument prototype would still apply. */
6811 if { (eval echo configure:6812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6813 eval "ac_cv_lib_$ac_lib_var=yes"
6815 echo "configure: failed program was:" >&5
6816 cat conftest.$ac_ext >&5
6818 eval "ac_cv_lib_$ac_lib_var=no"
6821 LIBS="$ac_save_LIBS"
6824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6825 echo "$ac_t""yes" 1>&6
6826 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6827 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6828 cat >> confdefs.h <<EOF
6829 #define $ac_tr_lib 1
6835 echo "$ac_t""no" 1>&6
6838 for ac_func in putprpwnam
6840 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6841 echo "configure:6842: checking for $ac_func" >&5
6842 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6843 echo $ac_n "(cached) $ac_c" 1>&6
6845 cat > conftest.$ac_ext <<EOF
6846 #line 6847 "configure"
6847 #include "confdefs.h"
6848 /* System header to define __stub macros and hopefully few prototypes,
6849 which can conflict with char $ac_func(); below. */
6851 /* Override any gcc2 internal prototype to avoid an error. */
6852 /* We use char because int might match the return type of a gcc2
6853 builtin and then its argument prototype would still apply. */
6858 /* The GNU C library defines this for functions which it implements
6859 to always fail with ENOSYS. Some functions are actually named
6860 something starting with __ and the normal name is an alias. */
6861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6869 if { (eval echo configure:6870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6871 eval "ac_cv_func_$ac_func=yes"
6873 echo "configure: failed program was:" >&5
6874 cat conftest.$ac_ext >&5
6876 eval "ac_cv_func_$ac_func=no"
6881 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6882 echo "$ac_t""yes" 1>&6
6883 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6884 cat >> confdefs.h <<EOF
6885 #define $ac_tr_func 1
6889 echo "$ac_t""no" 1>&6
6898 *-lsecurity*) for ac_func in set_auth_parameters
6900 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6901 echo "configure:6902: checking for $ac_func" >&5
6902 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6903 echo $ac_n "(cached) $ac_c" 1>&6
6905 cat > conftest.$ac_ext <<EOF
6906 #line 6907 "configure"
6907 #include "confdefs.h"
6908 /* System header to define __stub macros and hopefully few prototypes,
6909 which can conflict with char $ac_func(); below. */
6911 /* Override any gcc2 internal prototype to avoid an error. */
6912 /* We use char because int might match the return type of a gcc2
6913 builtin and then its argument prototype would still apply. */
6918 /* The GNU C library defines this for functions which it implements
6919 to always fail with ENOSYS. Some functions are actually named
6920 something starting with __ and the normal name is an alias. */
6921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6929 if { (eval echo configure:6930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6931 eval "ac_cv_func_$ac_func=yes"
6933 echo "configure: failed program was:" >&5
6934 cat conftest.$ac_ext >&5
6936 eval "ac_cv_func_$ac_func=no"
6941 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6942 echo "$ac_t""yes" 1>&6
6943 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6944 cat >> confdefs.h <<EOF
6945 #define $ac_tr_func 1
6949 echo "$ac_t""no" 1>&6
6953 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6954 echo "configure:6955: checking for set_auth_parameters in -lsecurity" >&5
6955 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6956 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6957 echo $ac_n "(cached) $ac_c" 1>&6
6959 ac_save_LIBS="$LIBS"
6960 LIBS="-lsecurity $LIBS"
6961 cat > conftest.$ac_ext <<EOF
6962 #line 6963 "configure"
6963 #include "confdefs.h"
6964 /* Override any gcc2 internal prototype to avoid an error. */
6965 /* We use char because int might match the return type of a gcc2
6966 builtin and then its argument prototype would still apply. */
6967 char set_auth_parameters();
6970 set_auth_parameters()
6973 if { (eval echo configure:6974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6975 eval "ac_cv_lib_$ac_lib_var=yes"
6977 echo "configure: failed program was:" >&5
6978 cat conftest.$ac_ext >&5
6980 eval "ac_cv_lib_$ac_lib_var=no"
6983 LIBS="$ac_save_LIBS"
6986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6987 echo "$ac_t""yes" 1>&6
6988 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6989 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6990 cat >> confdefs.h <<EOF
6991 #define $ac_tr_lib 1
6994 LIBS="-lsecurity $LIBS"
6997 echo "$ac_t""no" 1>&6
7000 for ac_func in set_auth_parameters
7002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7003 echo "configure:7004: checking for $ac_func" >&5
7004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7005 echo $ac_n "(cached) $ac_c" 1>&6
7007 cat > conftest.$ac_ext <<EOF
7008 #line 7009 "configure"
7009 #include "confdefs.h"
7010 /* System header to define __stub macros and hopefully few prototypes,
7011 which can conflict with char $ac_func(); below. */
7013 /* Override any gcc2 internal prototype to avoid an error. */
7014 /* We use char because int might match the return type of a gcc2
7015 builtin and then its argument prototype would still apply. */
7020 /* The GNU C library defines this for functions which it implements
7021 to always fail with ENOSYS. Some functions are actually named
7022 something starting with __ and the normal name is an alias. */
7023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7031 if { (eval echo configure:7032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7033 eval "ac_cv_func_$ac_func=yes"
7035 echo "configure: failed program was:" >&5
7036 cat conftest.$ac_ext >&5
7038 eval "ac_cv_func_$ac_func=no"
7043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7044 echo "$ac_t""yes" 1>&6
7045 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7046 cat >> confdefs.h <<EOF
7047 #define $ac_tr_func 1
7051 echo "$ac_t""no" 1>&6
7059 *-lsec*) for ac_func in set_auth_parameters
7061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7062 echo "configure:7063: checking for $ac_func" >&5
7063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7064 echo $ac_n "(cached) $ac_c" 1>&6
7066 cat > conftest.$ac_ext <<EOF
7067 #line 7068 "configure"
7068 #include "confdefs.h"
7069 /* System header to define __stub macros and hopefully few prototypes,
7070 which can conflict with char $ac_func(); below. */
7072 /* Override any gcc2 internal prototype to avoid an error. */
7073 /* We use char because int might match the return type of a gcc2
7074 builtin and then its argument prototype would still apply. */
7079 /* The GNU C library defines this for functions which it implements
7080 to always fail with ENOSYS. Some functions are actually named
7081 something starting with __ and the normal name is an alias. */
7082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7090 if { (eval echo configure:7091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7092 eval "ac_cv_func_$ac_func=yes"
7094 echo "configure: failed program was:" >&5
7095 cat conftest.$ac_ext >&5
7097 eval "ac_cv_func_$ac_func=no"
7102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7103 echo "$ac_t""yes" 1>&6
7104 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7105 cat >> confdefs.h <<EOF
7106 #define $ac_tr_func 1
7110 echo "$ac_t""no" 1>&6
7114 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7115 echo "configure:7116: checking for set_auth_parameters in -lsec" >&5
7116 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7117 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7118 echo $ac_n "(cached) $ac_c" 1>&6
7120 ac_save_LIBS="$LIBS"
7122 cat > conftest.$ac_ext <<EOF
7123 #line 7124 "configure"
7124 #include "confdefs.h"
7125 /* Override any gcc2 internal prototype to avoid an error. */
7126 /* We use char because int might match the return type of a gcc2
7127 builtin and then its argument prototype would still apply. */
7128 char set_auth_parameters();
7131 set_auth_parameters()
7134 if { (eval echo configure:7135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7136 eval "ac_cv_lib_$ac_lib_var=yes"
7138 echo "configure: failed program was:" >&5
7139 cat conftest.$ac_ext >&5
7141 eval "ac_cv_lib_$ac_lib_var=no"
7144 LIBS="$ac_save_LIBS"
7147 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7148 echo "$ac_t""yes" 1>&6
7149 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7150 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7151 cat >> confdefs.h <<EOF
7152 #define $ac_tr_lib 1
7158 echo "$ac_t""no" 1>&6
7161 for ac_func in set_auth_parameters
7163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7164 echo "configure:7165: checking for $ac_func" >&5
7165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7166 echo $ac_n "(cached) $ac_c" 1>&6
7168 cat > conftest.$ac_ext <<EOF
7169 #line 7170 "configure"
7170 #include "confdefs.h"
7171 /* System header to define __stub macros and hopefully few prototypes,
7172 which can conflict with char $ac_func(); below. */
7174 /* Override any gcc2 internal prototype to avoid an error. */
7175 /* We use char because int might match the return type of a gcc2
7176 builtin and then its argument prototype would still apply. */
7181 /* The GNU C library defines this for functions which it implements
7182 to always fail with ENOSYS. Some functions are actually named
7183 something starting with __ and the normal name is an alias. */
7184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7192 if { (eval echo configure:7193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7194 eval "ac_cv_func_$ac_func=yes"
7196 echo "configure: failed program was:" >&5
7197 cat conftest.$ac_ext >&5
7199 eval "ac_cv_func_$ac_func=no"
7204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7205 echo "$ac_t""yes" 1>&6
7206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7207 cat >> confdefs.h <<EOF
7208 #define $ac_tr_func 1
7212 echo "$ac_t""no" 1>&6
7220 # UnixWare 7.x has its getspnam in -lgen
7222 *-lgen*) for ac_func in getspnam
7224 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7225 echo "configure:7226: checking for $ac_func" >&5
7226 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7227 echo $ac_n "(cached) $ac_c" 1>&6
7229 cat > conftest.$ac_ext <<EOF
7230 #line 7231 "configure"
7231 #include "confdefs.h"
7232 /* System header to define __stub macros and hopefully few prototypes,
7233 which can conflict with char $ac_func(); below. */
7235 /* Override any gcc2 internal prototype to avoid an error. */
7236 /* We use char because int might match the return type of a gcc2
7237 builtin and then its argument prototype would still apply. */
7242 /* The GNU C library defines this for functions which it implements
7243 to always fail with ENOSYS. Some functions are actually named
7244 something starting with __ and the normal name is an alias. */
7245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7253 if { (eval echo configure:7254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7255 eval "ac_cv_func_$ac_func=yes"
7257 echo "configure: failed program was:" >&5
7258 cat conftest.$ac_ext >&5
7260 eval "ac_cv_func_$ac_func=no"
7265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7266 echo "$ac_t""yes" 1>&6
7267 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7268 cat >> confdefs.h <<EOF
7269 #define $ac_tr_func 1
7273 echo "$ac_t""no" 1>&6
7277 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7278 echo "configure:7279: checking for getspnam in -lgen" >&5
7279 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7280 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7281 echo $ac_n "(cached) $ac_c" 1>&6
7283 ac_save_LIBS="$LIBS"
7285 cat > conftest.$ac_ext <<EOF
7286 #line 7287 "configure"
7287 #include "confdefs.h"
7288 /* Override any gcc2 internal prototype to avoid an error. */
7289 /* We use char because int might match the return type of a gcc2
7290 builtin and then its argument prototype would still apply. */
7297 if { (eval echo configure:7298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7299 eval "ac_cv_lib_$ac_lib_var=yes"
7301 echo "configure: failed program was:" >&5
7302 cat conftest.$ac_ext >&5
7304 eval "ac_cv_lib_$ac_lib_var=no"
7307 LIBS="$ac_save_LIBS"
7310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7311 echo "$ac_t""yes" 1>&6
7312 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7313 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7314 cat >> confdefs.h <<EOF
7315 #define $ac_tr_lib 1
7321 echo "$ac_t""no" 1>&6
7324 for ac_func in getspnam
7326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7327 echo "configure:7328: checking for $ac_func" >&5
7328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7329 echo $ac_n "(cached) $ac_c" 1>&6
7331 cat > conftest.$ac_ext <<EOF
7332 #line 7333 "configure"
7333 #include "confdefs.h"
7334 /* System header to define __stub macros and hopefully few prototypes,
7335 which can conflict with char $ac_func(); below. */
7337 /* Override any gcc2 internal prototype to avoid an error. */
7338 /* We use char because int might match the return type of a gcc2
7339 builtin and then its argument prototype would still apply. */
7344 /* The GNU C library defines this for functions which it implements
7345 to always fail with ENOSYS. Some functions are actually named
7346 something starting with __ and the normal name is an alias. */
7347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7355 if { (eval echo configure:7356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7357 eval "ac_cv_func_$ac_func=yes"
7359 echo "configure: failed program was:" >&5
7360 cat conftest.$ac_ext >&5
7362 eval "ac_cv_func_$ac_func=no"
7367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7368 echo "$ac_t""yes" 1>&6
7369 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7370 cat >> confdefs.h <<EOF
7371 #define $ac_tr_func 1
7375 echo "$ac_t""no" 1>&6
7384 *-lsecurity*) for ac_func in getspnam
7386 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7387 echo "configure:7388: checking for $ac_func" >&5
7388 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7389 echo $ac_n "(cached) $ac_c" 1>&6
7391 cat > conftest.$ac_ext <<EOF
7392 #line 7393 "configure"
7393 #include "confdefs.h"
7394 /* System header to define __stub macros and hopefully few prototypes,
7395 which can conflict with char $ac_func(); below. */
7397 /* Override any gcc2 internal prototype to avoid an error. */
7398 /* We use char because int might match the return type of a gcc2
7399 builtin and then its argument prototype would still apply. */
7404 /* The GNU C library defines this for functions which it implements
7405 to always fail with ENOSYS. Some functions are actually named
7406 something starting with __ and the normal name is an alias. */
7407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7415 if { (eval echo configure:7416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7417 eval "ac_cv_func_$ac_func=yes"
7419 echo "configure: failed program was:" >&5
7420 cat conftest.$ac_ext >&5
7422 eval "ac_cv_func_$ac_func=no"
7427 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7428 echo "$ac_t""yes" 1>&6
7429 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7430 cat >> confdefs.h <<EOF
7431 #define $ac_tr_func 1
7435 echo "$ac_t""no" 1>&6
7439 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7440 echo "configure:7441: checking for getspnam in -lsecurity" >&5
7441 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7442 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7443 echo $ac_n "(cached) $ac_c" 1>&6
7445 ac_save_LIBS="$LIBS"
7446 LIBS="-lsecurity $LIBS"
7447 cat > conftest.$ac_ext <<EOF
7448 #line 7449 "configure"
7449 #include "confdefs.h"
7450 /* Override any gcc2 internal prototype to avoid an error. */
7451 /* We use char because int might match the return type of a gcc2
7452 builtin and then its argument prototype would still apply. */
7459 if { (eval echo configure:7460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7461 eval "ac_cv_lib_$ac_lib_var=yes"
7463 echo "configure: failed program was:" >&5
7464 cat conftest.$ac_ext >&5
7466 eval "ac_cv_lib_$ac_lib_var=no"
7469 LIBS="$ac_save_LIBS"
7472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7473 echo "$ac_t""yes" 1>&6
7474 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7475 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7476 cat >> confdefs.h <<EOF
7477 #define $ac_tr_lib 1
7480 LIBS="-lsecurity $LIBS"
7483 echo "$ac_t""no" 1>&6
7486 for ac_func in getspnam
7488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7489 echo "configure:7490: checking for $ac_func" >&5
7490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7491 echo $ac_n "(cached) $ac_c" 1>&6
7493 cat > conftest.$ac_ext <<EOF
7494 #line 7495 "configure"
7495 #include "confdefs.h"
7496 /* System header to define __stub macros and hopefully few prototypes,
7497 which can conflict with char $ac_func(); below. */
7499 /* Override any gcc2 internal prototype to avoid an error. */
7500 /* We use char because int might match the return type of a gcc2
7501 builtin and then its argument prototype would still apply. */
7506 /* The GNU C library defines this for functions which it implements
7507 to always fail with ENOSYS. Some functions are actually named
7508 something starting with __ and the normal name is an alias. */
7509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7517 if { (eval echo configure:7518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7519 eval "ac_cv_func_$ac_func=yes"
7521 echo "configure: failed program was:" >&5
7522 cat conftest.$ac_ext >&5
7524 eval "ac_cv_func_$ac_func=no"
7529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7530 echo "$ac_t""yes" 1>&6
7531 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7532 cat >> confdefs.h <<EOF
7533 #define $ac_tr_func 1
7537 echo "$ac_t""no" 1>&6
7545 *-lsec*) for ac_func in getspnam
7547 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7548 echo "configure:7549: checking for $ac_func" >&5
7549 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7550 echo $ac_n "(cached) $ac_c" 1>&6
7552 cat > conftest.$ac_ext <<EOF
7553 #line 7554 "configure"
7554 #include "confdefs.h"
7555 /* System header to define __stub macros and hopefully few prototypes,
7556 which can conflict with char $ac_func(); below. */
7558 /* Override any gcc2 internal prototype to avoid an error. */
7559 /* We use char because int might match the return type of a gcc2
7560 builtin and then its argument prototype would still apply. */
7565 /* The GNU C library defines this for functions which it implements
7566 to always fail with ENOSYS. Some functions are actually named
7567 something starting with __ and the normal name is an alias. */
7568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7576 if { (eval echo configure:7577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7578 eval "ac_cv_func_$ac_func=yes"
7580 echo "configure: failed program was:" >&5
7581 cat conftest.$ac_ext >&5
7583 eval "ac_cv_func_$ac_func=no"
7588 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7589 echo "$ac_t""yes" 1>&6
7590 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7591 cat >> confdefs.h <<EOF
7592 #define $ac_tr_func 1
7596 echo "$ac_t""no" 1>&6
7600 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7601 echo "configure:7602: checking for getspnam in -lsec" >&5
7602 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7603 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7604 echo $ac_n "(cached) $ac_c" 1>&6
7606 ac_save_LIBS="$LIBS"
7608 cat > conftest.$ac_ext <<EOF
7609 #line 7610 "configure"
7610 #include "confdefs.h"
7611 /* Override any gcc2 internal prototype to avoid an error. */
7612 /* We use char because int might match the return type of a gcc2
7613 builtin and then its argument prototype would still apply. */
7620 if { (eval echo configure:7621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7622 eval "ac_cv_lib_$ac_lib_var=yes"
7624 echo "configure: failed program was:" >&5
7625 cat conftest.$ac_ext >&5
7627 eval "ac_cv_lib_$ac_lib_var=no"
7630 LIBS="$ac_save_LIBS"
7633 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7634 echo "$ac_t""yes" 1>&6
7635 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7636 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7637 cat >> confdefs.h <<EOF
7638 #define $ac_tr_lib 1
7644 echo "$ac_t""no" 1>&6
7647 for ac_func in getspnam
7649 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7650 echo "configure:7651: checking for $ac_func" >&5
7651 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7652 echo $ac_n "(cached) $ac_c" 1>&6
7654 cat > conftest.$ac_ext <<EOF
7655 #line 7656 "configure"
7656 #include "confdefs.h"
7657 /* System header to define __stub macros and hopefully few prototypes,
7658 which can conflict with char $ac_func(); below. */
7660 /* Override any gcc2 internal prototype to avoid an error. */
7661 /* We use char because int might match the return type of a gcc2
7662 builtin and then its argument prototype would still apply. */
7667 /* The GNU C library defines this for functions which it implements
7668 to always fail with ENOSYS. Some functions are actually named
7669 something starting with __ and the normal name is an alias. */
7670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7678 if { (eval echo configure:7679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7680 eval "ac_cv_func_$ac_func=yes"
7682 echo "configure: failed program was:" >&5
7683 cat conftest.$ac_ext >&5
7685 eval "ac_cv_func_$ac_func=no"
7690 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7691 echo "$ac_t""yes" 1>&6
7692 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7693 cat >> confdefs.h <<EOF
7694 #define $ac_tr_func 1
7698 echo "$ac_t""no" 1>&6
7707 *-lsecurity*) for ac_func in bigcrypt
7709 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7710 echo "configure:7711: checking for $ac_func" >&5
7711 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7712 echo $ac_n "(cached) $ac_c" 1>&6
7714 cat > conftest.$ac_ext <<EOF
7715 #line 7716 "configure"
7716 #include "confdefs.h"
7717 /* System header to define __stub macros and hopefully few prototypes,
7718 which can conflict with char $ac_func(); below. */
7720 /* Override any gcc2 internal prototype to avoid an error. */
7721 /* We use char because int might match the return type of a gcc2
7722 builtin and then its argument prototype would still apply. */
7727 /* The GNU C library defines this for functions which it implements
7728 to always fail with ENOSYS. Some functions are actually named
7729 something starting with __ and the normal name is an alias. */
7730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7738 if { (eval echo configure:7739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7740 eval "ac_cv_func_$ac_func=yes"
7742 echo "configure: failed program was:" >&5
7743 cat conftest.$ac_ext >&5
7745 eval "ac_cv_func_$ac_func=no"
7750 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7751 echo "$ac_t""yes" 1>&6
7752 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7753 cat >> confdefs.h <<EOF
7754 #define $ac_tr_func 1
7758 echo "$ac_t""no" 1>&6
7762 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7763 echo "configure:7764: checking for bigcrypt in -lsecurity" >&5
7764 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7765 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7766 echo $ac_n "(cached) $ac_c" 1>&6
7768 ac_save_LIBS="$LIBS"
7769 LIBS="-lsecurity $LIBS"
7770 cat > conftest.$ac_ext <<EOF
7771 #line 7772 "configure"
7772 #include "confdefs.h"
7773 /* Override any gcc2 internal prototype to avoid an error. */
7774 /* We use char because int might match the return type of a gcc2
7775 builtin and then its argument prototype would still apply. */
7782 if { (eval echo configure:7783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7784 eval "ac_cv_lib_$ac_lib_var=yes"
7786 echo "configure: failed program was:" >&5
7787 cat conftest.$ac_ext >&5
7789 eval "ac_cv_lib_$ac_lib_var=no"
7792 LIBS="$ac_save_LIBS"
7795 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7796 echo "$ac_t""yes" 1>&6
7797 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7798 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7799 cat >> confdefs.h <<EOF
7800 #define $ac_tr_lib 1
7803 LIBS="-lsecurity $LIBS"
7806 echo "$ac_t""no" 1>&6
7809 for ac_func in bigcrypt
7811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7812 echo "configure:7813: checking for $ac_func" >&5
7813 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7814 echo $ac_n "(cached) $ac_c" 1>&6
7816 cat > conftest.$ac_ext <<EOF
7817 #line 7818 "configure"
7818 #include "confdefs.h"
7819 /* System header to define __stub macros and hopefully few prototypes,
7820 which can conflict with char $ac_func(); below. */
7822 /* Override any gcc2 internal prototype to avoid an error. */
7823 /* We use char because int might match the return type of a gcc2
7824 builtin and then its argument prototype would still apply. */
7829 /* The GNU C library defines this for functions which it implements
7830 to always fail with ENOSYS. Some functions are actually named
7831 something starting with __ and the normal name is an alias. */
7832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7840 if { (eval echo configure:7841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7842 eval "ac_cv_func_$ac_func=yes"
7844 echo "configure: failed program was:" >&5
7845 cat conftest.$ac_ext >&5
7847 eval "ac_cv_func_$ac_func=no"
7852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7853 echo "$ac_t""yes" 1>&6
7854 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7855 cat >> confdefs.h <<EOF
7856 #define $ac_tr_func 1
7860 echo "$ac_t""no" 1>&6
7868 *-lsec*) for ac_func in bigcrypt
7870 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7871 echo "configure:7872: checking for $ac_func" >&5
7872 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7873 echo $ac_n "(cached) $ac_c" 1>&6
7875 cat > conftest.$ac_ext <<EOF
7876 #line 7877 "configure"
7877 #include "confdefs.h"
7878 /* System header to define __stub macros and hopefully few prototypes,
7879 which can conflict with char $ac_func(); below. */
7881 /* Override any gcc2 internal prototype to avoid an error. */
7882 /* We use char because int might match the return type of a gcc2
7883 builtin and then its argument prototype would still apply. */
7888 /* The GNU C library defines this for functions which it implements
7889 to always fail with ENOSYS. Some functions are actually named
7890 something starting with __ and the normal name is an alias. */
7891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7899 if { (eval echo configure:7900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7901 eval "ac_cv_func_$ac_func=yes"
7903 echo "configure: failed program was:" >&5
7904 cat conftest.$ac_ext >&5
7906 eval "ac_cv_func_$ac_func=no"
7911 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7912 echo "$ac_t""yes" 1>&6
7913 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7914 cat >> confdefs.h <<EOF
7915 #define $ac_tr_func 1
7919 echo "$ac_t""no" 1>&6
7923 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7924 echo "configure:7925: checking for bigcrypt in -lsec" >&5
7925 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7926 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7927 echo $ac_n "(cached) $ac_c" 1>&6
7929 ac_save_LIBS="$LIBS"
7931 cat > conftest.$ac_ext <<EOF
7932 #line 7933 "configure"
7933 #include "confdefs.h"
7934 /* Override any gcc2 internal prototype to avoid an error. */
7935 /* We use char because int might match the return type of a gcc2
7936 builtin and then its argument prototype would still apply. */
7943 if { (eval echo configure:7944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7945 eval "ac_cv_lib_$ac_lib_var=yes"
7947 echo "configure: failed program was:" >&5
7948 cat conftest.$ac_ext >&5
7950 eval "ac_cv_lib_$ac_lib_var=no"
7953 LIBS="$ac_save_LIBS"
7956 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7957 echo "$ac_t""yes" 1>&6
7958 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7959 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7960 cat >> confdefs.h <<EOF
7961 #define $ac_tr_lib 1
7967 echo "$ac_t""no" 1>&6
7970 for ac_func in bigcrypt
7972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7973 echo "configure:7974: checking for $ac_func" >&5
7974 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7975 echo $ac_n "(cached) $ac_c" 1>&6
7977 cat > conftest.$ac_ext <<EOF
7978 #line 7979 "configure"
7979 #include "confdefs.h"
7980 /* System header to define __stub macros and hopefully few prototypes,
7981 which can conflict with char $ac_func(); below. */
7983 /* Override any gcc2 internal prototype to avoid an error. */
7984 /* We use char because int might match the return type of a gcc2
7985 builtin and then its argument prototype would still apply. */
7990 /* The GNU C library defines this for functions which it implements
7991 to always fail with ENOSYS. Some functions are actually named
7992 something starting with __ and the normal name is an alias. */
7993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8001 if { (eval echo configure:8002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8003 eval "ac_cv_func_$ac_func=yes"
8005 echo "configure: failed program was:" >&5
8006 cat conftest.$ac_ext >&5
8008 eval "ac_cv_func_$ac_func=no"
8013 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8014 echo "$ac_t""yes" 1>&6
8015 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8016 cat >> confdefs.h <<EOF
8017 #define $ac_tr_func 1
8021 echo "$ac_t""no" 1>&6
8030 *-lsecurity*) for ac_func in getprpwnam
8032 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8033 echo "configure:8034: checking for $ac_func" >&5
8034 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8035 echo $ac_n "(cached) $ac_c" 1>&6
8037 cat > conftest.$ac_ext <<EOF
8038 #line 8039 "configure"
8039 #include "confdefs.h"
8040 /* System header to define __stub macros and hopefully few prototypes,
8041 which can conflict with char $ac_func(); below. */
8043 /* Override any gcc2 internal prototype to avoid an error. */
8044 /* We use char because int might match the return type of a gcc2
8045 builtin and then its argument prototype would still apply. */
8050 /* The GNU C library defines this for functions which it implements
8051 to always fail with ENOSYS. Some functions are actually named
8052 something starting with __ and the normal name is an alias. */
8053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8061 if { (eval echo configure:8062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8063 eval "ac_cv_func_$ac_func=yes"
8065 echo "configure: failed program was:" >&5
8066 cat conftest.$ac_ext >&5
8068 eval "ac_cv_func_$ac_func=no"
8073 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8074 echo "$ac_t""yes" 1>&6
8075 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8076 cat >> confdefs.h <<EOF
8077 #define $ac_tr_func 1
8081 echo "$ac_t""no" 1>&6
8085 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8086 echo "configure:8087: checking for getprpwnam in -lsecurity" >&5
8087 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8088 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8089 echo $ac_n "(cached) $ac_c" 1>&6
8091 ac_save_LIBS="$LIBS"
8092 LIBS="-lsecurity $LIBS"
8093 cat > conftest.$ac_ext <<EOF
8094 #line 8095 "configure"
8095 #include "confdefs.h"
8096 /* Override any gcc2 internal prototype to avoid an error. */
8097 /* We use char because int might match the return type of a gcc2
8098 builtin and then its argument prototype would still apply. */
8105 if { (eval echo configure:8106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8107 eval "ac_cv_lib_$ac_lib_var=yes"
8109 echo "configure: failed program was:" >&5
8110 cat conftest.$ac_ext >&5
8112 eval "ac_cv_lib_$ac_lib_var=no"
8115 LIBS="$ac_save_LIBS"
8118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8119 echo "$ac_t""yes" 1>&6
8120 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8121 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8122 cat >> confdefs.h <<EOF
8123 #define $ac_tr_lib 1
8126 LIBS="-lsecurity $LIBS"
8129 echo "$ac_t""no" 1>&6
8132 for ac_func in getprpwnam
8134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8135 echo "configure:8136: checking for $ac_func" >&5
8136 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8137 echo $ac_n "(cached) $ac_c" 1>&6
8139 cat > conftest.$ac_ext <<EOF
8140 #line 8141 "configure"
8141 #include "confdefs.h"
8142 /* System header to define __stub macros and hopefully few prototypes,
8143 which can conflict with char $ac_func(); below. */
8145 /* Override any gcc2 internal prototype to avoid an error. */
8146 /* We use char because int might match the return type of a gcc2
8147 builtin and then its argument prototype would still apply. */
8152 /* The GNU C library defines this for functions which it implements
8153 to always fail with ENOSYS. Some functions are actually named
8154 something starting with __ and the normal name is an alias. */
8155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8163 if { (eval echo configure:8164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8165 eval "ac_cv_func_$ac_func=yes"
8167 echo "configure: failed program was:" >&5
8168 cat conftest.$ac_ext >&5
8170 eval "ac_cv_func_$ac_func=no"
8175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8176 echo "$ac_t""yes" 1>&6
8177 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8178 cat >> confdefs.h <<EOF
8179 #define $ac_tr_func 1
8183 echo "$ac_t""no" 1>&6
8191 *-lsec*) for ac_func in getprpwnam
8193 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8194 echo "configure:8195: checking for $ac_func" >&5
8195 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8196 echo $ac_n "(cached) $ac_c" 1>&6
8198 cat > conftest.$ac_ext <<EOF
8199 #line 8200 "configure"
8200 #include "confdefs.h"
8201 /* System header to define __stub macros and hopefully few prototypes,
8202 which can conflict with char $ac_func(); below. */
8204 /* Override any gcc2 internal prototype to avoid an error. */
8205 /* We use char because int might match the return type of a gcc2
8206 builtin and then its argument prototype would still apply. */
8211 /* The GNU C library defines this for functions which it implements
8212 to always fail with ENOSYS. Some functions are actually named
8213 something starting with __ and the normal name is an alias. */
8214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8222 if { (eval echo configure:8223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8224 eval "ac_cv_func_$ac_func=yes"
8226 echo "configure: failed program was:" >&5
8227 cat conftest.$ac_ext >&5
8229 eval "ac_cv_func_$ac_func=no"
8234 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8235 echo "$ac_t""yes" 1>&6
8236 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8237 cat >> confdefs.h <<EOF
8238 #define $ac_tr_func 1
8242 echo "$ac_t""no" 1>&6
8246 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8247 echo "configure:8248: checking for getprpwnam in -lsec" >&5
8248 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8250 echo $ac_n "(cached) $ac_c" 1>&6
8252 ac_save_LIBS="$LIBS"
8254 cat > conftest.$ac_ext <<EOF
8255 #line 8256 "configure"
8256 #include "confdefs.h"
8257 /* Override any gcc2 internal prototype to avoid an error. */
8258 /* We use char because int might match the return type of a gcc2
8259 builtin and then its argument prototype would still apply. */
8266 if { (eval echo configure:8267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8268 eval "ac_cv_lib_$ac_lib_var=yes"
8270 echo "configure: failed program was:" >&5
8271 cat conftest.$ac_ext >&5
8273 eval "ac_cv_lib_$ac_lib_var=no"
8276 LIBS="$ac_save_LIBS"
8279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8280 echo "$ac_t""yes" 1>&6
8281 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8282 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8283 cat >> confdefs.h <<EOF
8284 #define $ac_tr_lib 1
8290 echo "$ac_t""no" 1>&6
8293 for ac_func in getprpwnam
8295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8296 echo "configure:8297: checking for $ac_func" >&5
8297 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8298 echo $ac_n "(cached) $ac_c" 1>&6
8300 cat > conftest.$ac_ext <<EOF
8301 #line 8302 "configure"
8302 #include "confdefs.h"
8303 /* System header to define __stub macros and hopefully few prototypes,
8304 which can conflict with char $ac_func(); below. */
8306 /* Override any gcc2 internal prototype to avoid an error. */
8307 /* We use char because int might match the return type of a gcc2
8308 builtin and then its argument prototype would still apply. */
8313 /* The GNU C library defines this for functions which it implements
8314 to always fail with ENOSYS. Some functions are actually named
8315 something starting with __ and the normal name is an alias. */
8316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8324 if { (eval echo configure:8325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8326 eval "ac_cv_func_$ac_func=yes"
8328 echo "configure: failed program was:" >&5
8329 cat conftest.$ac_ext >&5
8331 eval "ac_cv_func_$ac_func=no"
8336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8337 echo "$ac_t""yes" 1>&6
8338 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8339 cat >> confdefs.h <<EOF
8340 #define $ac_tr_func 1
8344 echo "$ac_t""no" 1>&6
8352 # this bit needs to be modified for each OS that is suported by
8353 # smbwrapper. You need to specify how to created a shared library and
8354 # how to compile C code to produce PIC object files
8356 # these are the defaults, good for lots of systems
8366 # and these are for particular systems
8368 *linux*) cat >> confdefs.h <<\EOF
8376 *solaris*) cat >> confdefs.h <<\EOF
8381 LDSHFLAGS="-Wl,-h,\$@.so -G"
8382 if test "${ac_cv_prog_CC}" = "gcc"; then
8390 *sunos*) cat >> confdefs.h <<\EOF
8395 LDSHFLAGS="-Wl,-h,\$@ -G"
8396 PICFLAG="-KPIC" # Is this correct for SunOS
8398 *bsd*) BLDSHARED="true"
8399 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8402 *irix*) cat >> confdefs.h <<\EOF
8407 *irix6*) cat >> confdefs.h <<\EOF
8413 ATTEMPT_WRAP32_BUILD=yes
8415 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8416 if test "${ac_cv_prog_CC}" = "gcc"; then
8422 *aix*) cat >> confdefs.h <<\EOF
8427 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8428 PICFLAG="-O2 -qmaxmem=6000"
8430 *hpux*) cat >> confdefs.h <<\EOF
8435 # Use special PIC flags for the native HP-UX compiler.
8436 if test $ac_cv_prog_cc_Ae = yes; then
8438 LDSHFLAGS="-b -z +h \$@"
8442 *qnx*) cat >> confdefs.h <<\EOF
8446 *osf*) cat >> confdefs.h <<\EOF
8451 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8454 *sco*) cat >> confdefs.h <<\EOF
8458 *unixware*) cat >> confdefs.h <<\EOF
8463 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8466 *next2*) cat >> confdefs.h <<\EOF
8470 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8471 set dummy groff; ac_word=$2
8472 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8473 echo "configure:8474: checking for $ac_word" >&5
8474 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8475 echo $ac_n "(cached) $ac_c" 1>&6
8477 if test -n "$ROFF"; then
8478 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8480 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8482 for ac_dir in $ac_dummy; do
8483 test -z "$ac_dir" && ac_dir=.
8484 if test -f $ac_dir/$ac_word; then
8485 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8492 ROFF="$ac_cv_prog_ROFF"
8493 if test -n "$ROFF"; then
8494 echo "$ac_t""$ROFF" 1>&6
8496 echo "$ac_t""no" 1>&6
8501 *-univel-*) if test "$GCC" != yes ; then
8502 cat >> confdefs.h <<\EOF
8503 #define HAVE_MEMSET 1
8509 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8510 #define RELIANTUNIX 1
8516 if test "$GCC" != yes ; then
8517 cat >> confdefs.h <<\EOF
8518 #define HAVE_MEMSET 1
8526 # this updates our target list if we can build shared libs
8527 if test $BLDSHARED = true; then
8528 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
8530 LIBSMBCLIENT_SHARED=
8535 echo $ac_n "checking for long long""... $ac_c" 1>&6
8536 echo "configure:8537: checking for long long" >&5
8537 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8538 echo $ac_n "(cached) $ac_c" 1>&6
8541 if test "$cross_compiling" = yes; then
8542 samba_cv_have_longlong=cross
8544 cat > conftest.$ac_ext <<EOF
8545 #line 8546 "configure"
8546 #include "confdefs.h"
8548 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8550 if { (eval echo configure:8551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8552 samba_cv_have_longlong=yes
8554 echo "configure: failed program was:" >&5
8555 cat conftest.$ac_ext >&5
8557 samba_cv_have_longlong=no
8564 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8565 if test x"$samba_cv_have_longlong" = x"yes"; then
8566 cat >> confdefs.h <<\EOF
8567 #define HAVE_LONGLONG 1
8573 # Check if the compiler supports the LL prefix on long long integers.
8576 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8577 echo "configure:8578: checking for LL suffix on long long integers" >&5
8578 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8579 echo $ac_n "(cached) $ac_c" 1>&6
8582 cat > conftest.$ac_ext <<EOF
8583 #line 8584 "configure"
8584 #include "confdefs.h"
8587 long long i = 0x8000000000LL
8590 if { (eval echo configure:8591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8592 samba_cv_compiler_supports_ll=yes
8594 echo "configure: failed program was:" >&5
8595 cat conftest.$ac_ext >&5
8597 samba_cv_compiler_supports_ll=no
8602 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8603 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8604 cat >> confdefs.h <<\EOF
8605 #define COMPILER_SUPPORTS_LL 1
8611 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8612 echo "configure:8613: checking for 64 bit off_t" >&5
8613 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8614 echo $ac_n "(cached) $ac_c" 1>&6
8617 if test "$cross_compiling" = yes; then
8618 samba_cv_SIZEOF_OFF_T=cross
8620 cat > conftest.$ac_ext <<EOF
8621 #line 8622 "configure"
8622 #include "confdefs.h"
8624 #include <sys/stat.h>
8625 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8627 if { (eval echo configure:8628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8629 samba_cv_SIZEOF_OFF_T=yes
8631 echo "configure: failed program was:" >&5
8632 cat conftest.$ac_ext >&5
8634 samba_cv_SIZEOF_OFF_T=no
8641 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8642 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8643 cat >> confdefs.h <<\EOF
8644 #define SIZEOF_OFF_T 8
8649 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8650 echo "configure:8651: checking for off64_t" >&5
8651 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8652 echo $ac_n "(cached) $ac_c" 1>&6
8655 if test "$cross_compiling" = yes; then
8656 samba_cv_HAVE_OFF64_T=cross
8658 cat > conftest.$ac_ext <<EOF
8659 #line 8660 "configure"
8660 #include "confdefs.h"
8662 #if defined(HAVE_UNISTD_H)
8666 #include <sys/stat.h>
8667 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8669 if { (eval echo configure:8670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8671 samba_cv_HAVE_OFF64_T=yes
8673 echo "configure: failed program was:" >&5
8674 cat conftest.$ac_ext >&5
8676 samba_cv_HAVE_OFF64_T=no
8683 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8684 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8685 cat >> confdefs.h <<\EOF
8686 #define HAVE_OFF64_T 1
8691 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8692 echo "configure:8693: checking for 64 bit ino_t" >&5
8693 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8694 echo $ac_n "(cached) $ac_c" 1>&6
8697 if test "$cross_compiling" = yes; then
8698 samba_cv_SIZEOF_INO_T=cross
8700 cat > conftest.$ac_ext <<EOF
8701 #line 8702 "configure"
8702 #include "confdefs.h"
8704 #include <sys/stat.h>
8705 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8707 if { (eval echo configure:8708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8709 samba_cv_SIZEOF_INO_T=yes
8711 echo "configure: failed program was:" >&5
8712 cat conftest.$ac_ext >&5
8714 samba_cv_SIZEOF_INO_T=no
8721 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8722 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8723 cat >> confdefs.h <<\EOF
8724 #define SIZEOF_INO_T 8
8729 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8730 echo "configure:8731: checking for ino64_t" >&5
8731 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8732 echo $ac_n "(cached) $ac_c" 1>&6
8735 if test "$cross_compiling" = yes; then
8736 samba_cv_HAVE_INO64_T=cross
8738 cat > conftest.$ac_ext <<EOF
8739 #line 8740 "configure"
8740 #include "confdefs.h"
8742 #if defined(HAVE_UNISTD_H)
8746 #include <sys/stat.h>
8747 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8749 if { (eval echo configure:8750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8751 samba_cv_HAVE_INO64_T=yes
8753 echo "configure: failed program was:" >&5
8754 cat conftest.$ac_ext >&5
8756 samba_cv_HAVE_INO64_T=no
8763 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8764 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8765 cat >> confdefs.h <<\EOF
8766 #define HAVE_INO64_T 1
8771 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8772 echo "configure:8773: checking for struct dirent64" >&5
8773 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8774 echo $ac_n "(cached) $ac_c" 1>&6
8777 cat > conftest.$ac_ext <<EOF
8778 #line 8779 "configure"
8779 #include "confdefs.h"
8781 #if defined(HAVE_UNISTD_H)
8784 #include <sys/types.h>
8790 if { (eval echo configure:8791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8792 samba_cv_HAVE_STRUCT_DIRENT64=yes
8794 echo "configure: failed program was:" >&5
8795 cat conftest.$ac_ext >&5
8797 samba_cv_HAVE_STRUCT_DIRENT64=no
8802 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8803 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
8804 cat >> confdefs.h <<\EOF
8805 #define HAVE_STRUCT_DIRENT64 1
8810 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8811 echo "configure:8812: checking for unsigned char" >&5
8812 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8813 echo $ac_n "(cached) $ac_c" 1>&6
8816 if test "$cross_compiling" = yes; then
8817 samba_cv_HAVE_UNSIGNED_CHAR=cross
8819 cat > conftest.$ac_ext <<EOF
8820 #line 8821 "configure"
8821 #include "confdefs.h"
8823 main() { char c; c=250; exit((c > 0)?0:1); }
8825 if { (eval echo configure:8826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8827 samba_cv_HAVE_UNSIGNED_CHAR=yes
8829 echo "configure: failed program was:" >&5
8830 cat conftest.$ac_ext >&5
8832 samba_cv_HAVE_UNSIGNED_CHAR=no
8839 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8840 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
8841 cat >> confdefs.h <<\EOF
8842 #define HAVE_UNSIGNED_CHAR 1
8847 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8848 echo "configure:8849: checking for sin_len in sock" >&5
8849 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8850 echo $ac_n "(cached) $ac_c" 1>&6
8853 cat > conftest.$ac_ext <<EOF
8854 #line 8855 "configure"
8855 #include "confdefs.h"
8856 #include <sys/types.h>
8857 #include <sys/socket.h>
8858 #include <netinet/in.h>
8860 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8863 if { (eval echo configure:8864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8865 samba_cv_HAVE_SOCK_SIN_LEN=yes
8867 echo "configure: failed program was:" >&5
8868 cat conftest.$ac_ext >&5
8870 samba_cv_HAVE_SOCK_SIN_LEN=no
8875 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8876 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
8877 cat >> confdefs.h <<\EOF
8878 #define HAVE_SOCK_SIN_LEN 1
8883 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8884 echo "configure:8885: checking whether seekdir returns void" >&5
8885 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8886 echo $ac_n "(cached) $ac_c" 1>&6
8889 cat > conftest.$ac_ext <<EOF
8890 #line 8891 "configure"
8891 #include "confdefs.h"
8892 #include <sys/types.h>
8894 void seekdir(DIR *d, long loc) { return; }
8899 if { (eval echo configure:8900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8901 samba_cv_SEEKDIR_RETURNS_VOID=yes
8903 echo "configure: failed program was:" >&5
8904 cat conftest.$ac_ext >&5
8906 samba_cv_SEEKDIR_RETURNS_VOID=no
8911 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8912 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
8913 cat >> confdefs.h <<\EOF
8914 #define SEEKDIR_RETURNS_VOID 1
8919 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8920 echo "configure:8921: checking for __FILE__ macro" >&5
8921 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8922 echo $ac_n "(cached) $ac_c" 1>&6
8925 cat > conftest.$ac_ext <<EOF
8926 #line 8927 "configure"
8927 #include "confdefs.h"
8930 printf("%s\n", __FILE__);
8933 if { (eval echo configure:8934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8935 samba_cv_HAVE_FILE_MACRO=yes
8937 echo "configure: failed program was:" >&5
8938 cat conftest.$ac_ext >&5
8940 samba_cv_HAVE_FILE_MACRO=no
8945 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8946 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
8947 cat >> confdefs.h <<\EOF
8948 #define HAVE_FILE_MACRO 1
8953 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8954 echo "configure:8955: checking for __FUNCTION__ macro" >&5
8955 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8956 echo $ac_n "(cached) $ac_c" 1>&6
8959 cat > conftest.$ac_ext <<EOF
8960 #line 8961 "configure"
8961 #include "confdefs.h"
8964 printf("%s\n", __FUNCTION__);
8967 if { (eval echo configure:8968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8969 samba_cv_HAVE_FUNCTION_MACRO=yes
8971 echo "configure: failed program was:" >&5
8972 cat conftest.$ac_ext >&5
8974 samba_cv_HAVE_FUNCTION_MACRO=no
8979 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8980 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
8981 cat >> confdefs.h <<\EOF
8982 #define HAVE_FUNCTION_MACRO 1
8987 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8988 echo "configure:8989: checking if gettimeofday takes tz argument" >&5
8989 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8990 echo $ac_n "(cached) $ac_c" 1>&6
8993 if test "$cross_compiling" = yes; then
8994 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
8996 cat > conftest.$ac_ext <<EOF
8997 #line 8998 "configure"
8998 #include "confdefs.h"
9000 #include <sys/time.h>
9002 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9004 if { (eval echo configure:9005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9006 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9008 echo "configure: failed program was:" >&5
9009 cat conftest.$ac_ext >&5
9011 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9018 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9019 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9020 cat >> confdefs.h <<\EOF
9021 #define HAVE_GETTIMEOFDAY_TZ 1
9026 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9027 echo "configure:9028: checking for C99 vsnprintf" >&5
9028 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9029 echo $ac_n "(cached) $ac_c" 1>&6
9032 if test "$cross_compiling" = yes; then
9033 samba_cv_HAVE_C99_VSNPRINTF=cross
9035 cat > conftest.$ac_ext <<EOF
9036 #line 9037 "configure"
9037 #include "confdefs.h"
9039 #include <sys/types.h>
9041 void foo(const char *format, ...) {
9046 va_start(ap, format);
9047 len = vsnprintf(0, 0, format, ap);
9049 if (len != 5) exit(1);
9051 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9055 main() { foo("hello"); }
9058 if { (eval echo configure:9059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9060 samba_cv_HAVE_C99_VSNPRINTF=yes
9062 echo "configure: failed program was:" >&5
9063 cat conftest.$ac_ext >&5
9065 samba_cv_HAVE_C99_VSNPRINTF=no
9072 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9073 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9074 cat >> confdefs.h <<\EOF
9075 #define HAVE_C99_VSNPRINTF 1
9080 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9081 echo "configure:9082: checking for broken readdir" >&5
9082 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9083 echo $ac_n "(cached) $ac_c" 1>&6
9086 if test "$cross_compiling" = yes; then
9087 samba_cv_HAVE_BROKEN_READDIR=cross
9089 cat > conftest.$ac_ext <<EOF
9090 #line 9091 "configure"
9091 #include "confdefs.h"
9092 #include <sys/types.h>
9094 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9095 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9096 di->d_name[0] == 0) exit(0); exit(1);}
9098 if { (eval echo configure:9099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9100 samba_cv_HAVE_BROKEN_READDIR=yes
9102 echo "configure: failed program was:" >&5
9103 cat conftest.$ac_ext >&5
9105 samba_cv_HAVE_BROKEN_READDIR=no
9112 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9113 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9114 cat >> confdefs.h <<\EOF
9115 #define HAVE_BROKEN_READDIR 1
9120 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9121 echo "configure:9122: checking for utimbuf" >&5
9122 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9123 echo $ac_n "(cached) $ac_c" 1>&6
9126 cat > conftest.$ac_ext <<EOF
9127 #line 9128 "configure"
9128 #include "confdefs.h"
9129 #include <sys/types.h>
9132 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9135 if { (eval echo configure:9136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9137 samba_cv_HAVE_UTIMBUF=yes
9139 echo "configure: failed program was:" >&5
9140 cat conftest.$ac_ext >&5
9142 samba_cv_HAVE_UTIMBUF=no
9147 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9148 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9149 cat >> confdefs.h <<\EOF
9150 #define HAVE_UTIMBUF 1
9156 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9159 echo "configure:9160: checking for $ac_func" >&5
9160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9161 echo $ac_n "(cached) $ac_c" 1>&6
9163 cat > conftest.$ac_ext <<EOF
9164 #line 9165 "configure"
9165 #include "confdefs.h"
9166 /* System header to define __stub macros and hopefully few prototypes,
9167 which can conflict with char $ac_func(); below. */
9169 /* Override any gcc2 internal prototype to avoid an error. */
9170 /* We use char because int might match the return type of a gcc2
9171 builtin and then its argument prototype would still apply. */
9176 /* The GNU C library defines this for functions which it implements
9177 to always fail with ENOSYS. Some functions are actually named
9178 something starting with __ and the normal name is an alias. */
9179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9187 if { (eval echo configure:9188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9189 eval "ac_cv_func_$ac_func=yes"
9191 echo "configure: failed program was:" >&5
9192 cat conftest.$ac_ext >&5
9194 eval "ac_cv_func_$ac_func=no"
9199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9200 echo "$ac_t""yes" 1>&6
9201 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9202 cat >> confdefs.h <<EOF
9203 #define $ac_tr_func 1
9207 echo "$ac_t""no" 1>&6
9212 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9213 echo "configure:9214: checking for ut_name in utmp" >&5
9214 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9215 echo $ac_n "(cached) $ac_c" 1>&6
9218 cat > conftest.$ac_ext <<EOF
9219 #line 9220 "configure"
9220 #include "confdefs.h"
9221 #include <sys/types.h>
9224 struct utmp ut; ut.ut_name[0] = 'a';
9227 if { (eval echo configure:9228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9229 samba_cv_HAVE_UT_UT_NAME=yes
9231 echo "configure: failed program was:" >&5
9232 cat conftest.$ac_ext >&5
9234 samba_cv_HAVE_UT_UT_NAME=no
9239 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9240 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9241 cat >> confdefs.h <<\EOF
9242 #define HAVE_UT_UT_NAME 1
9247 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9248 echo "configure:9249: checking for ut_user in utmp" >&5
9249 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9250 echo $ac_n "(cached) $ac_c" 1>&6
9253 cat > conftest.$ac_ext <<EOF
9254 #line 9255 "configure"
9255 #include "confdefs.h"
9256 #include <sys/types.h>
9259 struct utmp ut; ut.ut_user[0] = 'a';
9262 if { (eval echo configure:9263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9264 samba_cv_HAVE_UT_UT_USER=yes
9266 echo "configure: failed program was:" >&5
9267 cat conftest.$ac_ext >&5
9269 samba_cv_HAVE_UT_UT_USER=no
9274 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9275 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9276 cat >> confdefs.h <<\EOF
9277 #define HAVE_UT_UT_USER 1
9282 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9283 echo "configure:9284: checking for ut_id in utmp" >&5
9284 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9285 echo $ac_n "(cached) $ac_c" 1>&6
9288 cat > conftest.$ac_ext <<EOF
9289 #line 9290 "configure"
9290 #include "confdefs.h"
9291 #include <sys/types.h>
9294 struct utmp ut; ut.ut_id[0] = 'a';
9297 if { (eval echo configure:9298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9299 samba_cv_HAVE_UT_UT_ID=yes
9301 echo "configure: failed program was:" >&5
9302 cat conftest.$ac_ext >&5
9304 samba_cv_HAVE_UT_UT_ID=no
9309 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9310 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9311 cat >> confdefs.h <<\EOF
9312 #define HAVE_UT_UT_ID 1
9317 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9318 echo "configure:9319: checking for ut_host in utmp" >&5
9319 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9320 echo $ac_n "(cached) $ac_c" 1>&6
9323 cat > conftest.$ac_ext <<EOF
9324 #line 9325 "configure"
9325 #include "confdefs.h"
9326 #include <sys/types.h>
9329 struct utmp ut; ut.ut_host[0] = 'a';
9332 if { (eval echo configure:9333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9334 samba_cv_HAVE_UT_UT_HOST=yes
9336 echo "configure: failed program was:" >&5
9337 cat conftest.$ac_ext >&5
9339 samba_cv_HAVE_UT_UT_HOST=no
9344 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9345 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9346 cat >> confdefs.h <<\EOF
9347 #define HAVE_UT_UT_HOST 1
9352 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9353 echo "configure:9354: checking for ut_time in utmp" >&5
9354 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9355 echo $ac_n "(cached) $ac_c" 1>&6
9358 cat > conftest.$ac_ext <<EOF
9359 #line 9360 "configure"
9360 #include "confdefs.h"
9361 #include <sys/types.h>
9364 struct utmp ut; time_t t; ut.ut_time = t;
9367 if { (eval echo configure:9368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9369 samba_cv_HAVE_UT_UT_TIME=yes
9371 echo "configure: failed program was:" >&5
9372 cat conftest.$ac_ext >&5
9374 samba_cv_HAVE_UT_UT_TIME=no
9379 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9380 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9381 cat >> confdefs.h <<\EOF
9382 #define HAVE_UT_UT_TIME 1
9387 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9388 echo "configure:9389: checking for ut_tv in utmp" >&5
9389 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9390 echo $ac_n "(cached) $ac_c" 1>&6
9393 cat > conftest.$ac_ext <<EOF
9394 #line 9395 "configure"
9395 #include "confdefs.h"
9396 #include <sys/types.h>
9399 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9402 if { (eval echo configure:9403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9404 samba_cv_HAVE_UT_UT_TV=yes
9406 echo "configure: failed program was:" >&5
9407 cat conftest.$ac_ext >&5
9409 samba_cv_HAVE_UT_UT_TV=no
9414 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9415 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9416 cat >> confdefs.h <<\EOF
9417 #define HAVE_UT_UT_TV 1
9422 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9423 echo "configure:9424: checking for ut_type in utmp" >&5
9424 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9425 echo $ac_n "(cached) $ac_c" 1>&6
9428 cat > conftest.$ac_ext <<EOF
9429 #line 9430 "configure"
9430 #include "confdefs.h"
9431 #include <sys/types.h>
9434 struct utmp ut; ut.ut_type = 0;
9437 if { (eval echo configure:9438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9439 samba_cv_HAVE_UT_UT_TYPE=yes
9441 echo "configure: failed program was:" >&5
9442 cat conftest.$ac_ext >&5
9444 samba_cv_HAVE_UT_UT_TYPE=no
9449 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9450 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9451 cat >> confdefs.h <<\EOF
9452 #define HAVE_UT_UT_TYPE 1
9457 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9458 echo "configure:9459: checking for ut_pid in utmp" >&5
9459 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9460 echo $ac_n "(cached) $ac_c" 1>&6
9463 cat > conftest.$ac_ext <<EOF
9464 #line 9465 "configure"
9465 #include "confdefs.h"
9466 #include <sys/types.h>
9469 struct utmp ut; ut.ut_pid = 0;
9472 if { (eval echo configure:9473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9474 samba_cv_HAVE_UT_UT_PID=yes
9476 echo "configure: failed program was:" >&5
9477 cat conftest.$ac_ext >&5
9479 samba_cv_HAVE_UT_UT_PID=no
9484 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9485 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9486 cat >> confdefs.h <<\EOF
9487 #define HAVE_UT_UT_PID 1
9492 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9493 echo "configure:9494: checking for ut_exit in utmp" >&5
9494 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9495 echo $ac_n "(cached) $ac_c" 1>&6
9498 cat > conftest.$ac_ext <<EOF
9499 #line 9500 "configure"
9500 #include "confdefs.h"
9501 #include <sys/types.h>
9504 struct utmp ut; ut.ut_exit.e_exit = 0;
9507 if { (eval echo configure:9508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9509 samba_cv_HAVE_UT_UT_EXIT=yes
9511 echo "configure: failed program was:" >&5
9512 cat conftest.$ac_ext >&5
9514 samba_cv_HAVE_UT_UT_EXIT=no
9519 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9520 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9521 cat >> confdefs.h <<\EOF
9522 #define HAVE_UT_UT_EXIT 1
9527 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9528 echo "configure:9529: checking for ut_addr in utmp" >&5
9529 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9530 echo $ac_n "(cached) $ac_c" 1>&6
9533 cat > conftest.$ac_ext <<EOF
9534 #line 9535 "configure"
9535 #include "confdefs.h"
9536 #include <sys/types.h>
9539 struct utmp ut; ut.ut_addr = 0;
9542 if { (eval echo configure:9543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9544 samba_cv_HAVE_UT_UT_ADDR=yes
9546 echo "configure: failed program was:" >&5
9547 cat conftest.$ac_ext >&5
9549 samba_cv_HAVE_UT_UT_ADDR=no
9554 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9555 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9556 cat >> confdefs.h <<\EOF
9557 #define HAVE_UT_UT_ADDR 1
9562 if test x$ac_cv_func_pututline = xyes ; then
9563 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9564 echo "configure:9565: checking whether pututline returns pointer" >&5
9565 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9566 echo $ac_n "(cached) $ac_c" 1>&6
9569 cat > conftest.$ac_ext <<EOF
9570 #line 9571 "configure"
9571 #include "confdefs.h"
9572 #include <sys/types.h>
9575 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9578 if { (eval echo configure:9579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9580 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9582 echo "configure: failed program was:" >&5
9583 cat conftest.$ac_ext >&5
9585 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9590 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9591 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9592 cat >> confdefs.h <<\EOF
9593 #define PUTUTLINE_RETURNS_UTMP 1
9599 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9600 echo "configure:9601: checking for ut_syslen in utmpx" >&5
9601 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9602 echo $ac_n "(cached) $ac_c" 1>&6
9605 cat > conftest.$ac_ext <<EOF
9606 #line 9607 "configure"
9607 #include "confdefs.h"
9608 #include <sys/types.h>
9611 struct utmpx ux; ux.ut_syslen = 0;
9614 if { (eval echo configure:9615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9616 samba_cv_HAVE_UX_UT_SYSLEN=yes
9618 echo "configure: failed program was:" >&5
9619 cat conftest.$ac_ext >&5
9621 samba_cv_HAVE_UX_UT_SYSLEN=no
9626 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9627 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9628 cat >> confdefs.h <<\EOF
9629 #define HAVE_UX_UT_SYSLEN 1
9635 #################################################
9636 # check for libiconv support
9637 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
9638 echo "configure:9639: checking whether to use libiconv" >&5
9639 # Check whether --with-libiconv or --without-libiconv was given.
9640 if test "${with_libiconv+set}" = set; then
9641 withval="$with_libiconv"
9644 echo "$ac_t""no" 1>&6
9647 echo "$ac_t""yes" 1>&6
9648 CFLAGS="$CFLAGS -I$withval/include"
9649 LDFLAGS="$LDFLAGS -L$withval/lib"
9650 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
9651 echo "configure:9652: checking for iconv_open in -liconv" >&5
9652 ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
9653 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9654 echo $ac_n "(cached) $ac_c" 1>&6
9656 ac_save_LIBS="$LIBS"
9657 LIBS="-liconv $LIBS"
9658 cat > conftest.$ac_ext <<EOF
9659 #line 9660 "configure"
9660 #include "confdefs.h"
9661 /* Override any gcc2 internal prototype to avoid an error. */
9662 /* We use char because int might match the return type of a gcc2
9663 builtin and then its argument prototype would still apply. */
9670 if { (eval echo configure:9671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9672 eval "ac_cv_lib_$ac_lib_var=yes"
9674 echo "configure: failed program was:" >&5
9675 cat conftest.$ac_ext >&5
9677 eval "ac_cv_lib_$ac_lib_var=no"
9680 LIBS="$ac_save_LIBS"
9683 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9684 echo "$ac_t""yes" 1>&6
9685 ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9686 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9687 cat >> confdefs.h <<EOF
9688 #define $ac_tr_lib 1
9691 LIBS="-liconv $LIBS"
9694 echo "$ac_t""no" 1>&6
9697 cat >> confdefs.h <<EOF
9698 #define WITH_LIBICONV "${withval}"
9704 echo "$ac_t""no" 1>&6
9711 # check for iconv in libc
9712 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
9713 echo "configure:9714: checking for working iconv" >&5
9714 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
9715 echo $ac_n "(cached) $ac_c" 1>&6
9718 if test "$cross_compiling" = yes; then
9719 samba_cv_HAVE_NATIVE_ICONV=cross
9721 cat > conftest.$ac_ext <<EOF
9722 #line 9723 "configure"
9723 #include "confdefs.h"
9727 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
9728 if (cd == 0 || cd == (iconv_t)-1) return -1;
9733 if { (eval echo configure:9734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9735 samba_cv_HAVE_NATIVE_ICONV=yes
9737 echo "configure: failed program was:" >&5
9738 cat conftest.$ac_ext >&5
9740 samba_cv_HAVE_NATIVE_ICONV=no
9747 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
9748 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
9749 cat >> confdefs.h <<\EOF
9750 #define HAVE_NATIVE_ICONV 1
9756 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9757 echo "configure:9758: checking for Linux kernel oplocks" >&5
9758 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9759 echo $ac_n "(cached) $ac_c" 1>&6
9762 if test "$cross_compiling" = yes; then
9763 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9765 cat > conftest.$ac_ext <<EOF
9766 #line 9767 "configure"
9767 #include "confdefs.h"
9769 #include <sys/types.h>
9772 #define F_GETLEASE 1025
9775 int fd = open("/dev/null", O_RDONLY);
9776 return fcntl(fd, F_GETLEASE, 0) == -1;
9780 if { (eval echo configure:9781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9782 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
9784 echo "configure: failed program was:" >&5
9785 cat conftest.$ac_ext >&5
9787 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
9794 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9795 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
9796 cat >> confdefs.h <<\EOF
9797 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9802 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9803 echo "configure:9804: checking for kernel change notify support" >&5
9804 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9805 echo $ac_n "(cached) $ac_c" 1>&6
9808 if test "$cross_compiling" = yes; then
9809 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
9811 cat > conftest.$ac_ext <<EOF
9812 #line 9813 "configure"
9813 #include "confdefs.h"
9815 #include <sys/types.h>
9819 #define F_NOTIFY 1026
9822 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9826 if { (eval echo configure:9827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9828 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
9830 echo "configure: failed program was:" >&5
9831 cat conftest.$ac_ext >&5
9833 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
9840 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9841 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
9842 cat >> confdefs.h <<\EOF
9843 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9848 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9849 echo "configure:9850: checking for kernel share modes" >&5
9850 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9851 echo $ac_n "(cached) $ac_c" 1>&6
9854 if test "$cross_compiling" = yes; then
9855 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
9857 cat > conftest.$ac_ext <<EOF
9858 #line 9859 "configure"
9859 #include "confdefs.h"
9861 #include <sys/types.h>
9864 #include <sys/file.h>
9866 #define LOCK_MAND 32
9867 #define LOCK_READ 64
9870 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9874 if { (eval echo configure:9875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9876 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
9878 echo "configure: failed program was:" >&5
9879 cat conftest.$ac_ext >&5
9881 samba_cv_HAVE_KERNEL_SHARE_MODES=no
9888 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9889 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
9890 cat >> confdefs.h <<\EOF
9891 #define HAVE_KERNEL_SHARE_MODES 1
9899 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9900 echo "configure:9901: checking for IRIX kernel oplock type definitions" >&5
9901 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9902 echo $ac_n "(cached) $ac_c" 1>&6
9905 cat > conftest.$ac_ext <<EOF
9906 #line 9907 "configure"
9907 #include "confdefs.h"
9908 #include <sys/types.h>
9911 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9914 if { (eval echo configure:9915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9916 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
9918 echo "configure: failed program was:" >&5
9919 cat conftest.$ac_ext >&5
9921 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
9926 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9927 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
9928 cat >> confdefs.h <<\EOF
9929 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9934 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9935 echo "configure:9936: checking for irix specific capabilities" >&5
9936 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9937 echo $ac_n "(cached) $ac_c" 1>&6
9940 if test "$cross_compiling" = yes; then
9941 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
9943 cat > conftest.$ac_ext <<EOF
9944 #line 9945 "configure"
9945 #include "confdefs.h"
9946 #include <sys/types.h>
9947 #include <sys/capability.h>
9950 if ((cap = cap_get_proc()) == NULL)
9952 cap->cap_effective |= CAP_NETWORK_MGT;
9953 cap->cap_inheritable |= CAP_NETWORK_MGT;
9959 if { (eval echo configure:9960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9961 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
9963 echo "configure: failed program was:" >&5
9964 cat conftest.$ac_ext >&5
9966 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
9973 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9974 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
9975 cat >> confdefs.h <<\EOF
9976 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9982 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9983 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9986 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9987 echo "configure:9988: checking for int16 typedef included by rpc/rpc.h" >&5
9988 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9989 echo $ac_n "(cached) $ac_c" 1>&6
9992 cat > conftest.$ac_ext <<EOF
9993 #line 9994 "configure"
9994 #include "confdefs.h"
9995 #include <sys/types.h>
9996 #if defined(HAVE_RPC_RPC_H)
9997 #include <rpc/rpc.h>
10003 if { (eval echo configure:10004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10005 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10007 echo "configure: failed program was:" >&5
10008 cat conftest.$ac_ext >&5
10010 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10015 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10016 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10017 cat >> confdefs.h <<\EOF
10018 #define HAVE_INT16_FROM_RPC_RPC_H 1
10023 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10024 echo "configure:10025: checking for uint16 typedef included by rpc/rpc.h" >&5
10025 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10026 echo $ac_n "(cached) $ac_c" 1>&6
10029 cat > conftest.$ac_ext <<EOF
10030 #line 10031 "configure"
10031 #include "confdefs.h"
10032 #include <sys/types.h>
10033 #if defined(HAVE_RPC_RPC_H)
10034 #include <rpc/rpc.h>
10040 if { (eval echo configure:10041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10042 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10044 echo "configure: failed program was:" >&5
10045 cat conftest.$ac_ext >&5
10047 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10052 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10053 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10054 cat >> confdefs.h <<\EOF
10055 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10060 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10061 echo "configure:10062: checking for int32 typedef included by rpc/rpc.h" >&5
10062 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10063 echo $ac_n "(cached) $ac_c" 1>&6
10066 cat > conftest.$ac_ext <<EOF
10067 #line 10068 "configure"
10068 #include "confdefs.h"
10069 #include <sys/types.h>
10070 #if defined(HAVE_RPC_RPC_H)
10071 #include <rpc/rpc.h>
10077 if { (eval echo configure:10078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10079 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10081 echo "configure: failed program was:" >&5
10082 cat conftest.$ac_ext >&5
10084 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10089 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10090 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10091 cat >> confdefs.h <<\EOF
10092 #define HAVE_INT32_FROM_RPC_RPC_H 1
10097 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10098 echo "configure:10099: checking for uint32 typedef included by rpc/rpc.h" >&5
10099 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10100 echo $ac_n "(cached) $ac_c" 1>&6
10103 cat > conftest.$ac_ext <<EOF
10104 #line 10105 "configure"
10105 #include "confdefs.h"
10106 #include <sys/types.h>
10107 #if defined(HAVE_RPC_RPC_H)
10108 #include <rpc/rpc.h>
10114 if { (eval echo configure:10115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10116 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10118 echo "configure: failed program was:" >&5
10119 cat conftest.$ac_ext >&5
10121 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10126 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10127 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10128 cat >> confdefs.h <<\EOF
10129 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10135 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10136 echo "configure:10137: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10137 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10138 echo $ac_n "(cached) $ac_c" 1>&6
10141 cat > conftest.$ac_ext <<EOF
10142 #line 10143 "configure"
10143 #include "confdefs.h"
10144 #include <sys/types.h>
10145 #ifdef HAVE_SYS_SECURITY_H
10146 #include <sys/security.h>
10148 #endif /* HAVE_SYS_SECURITY_H */
10149 #if defined(HAVE_RPC_RPC_H)
10150 #include <rpc/rpc.h>
10156 if { (eval echo configure:10157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10158 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10160 echo "configure: failed program was:" >&5
10161 cat conftest.$ac_ext >&5
10163 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10168 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10169 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10170 cat >> confdefs.h <<\EOF
10171 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10176 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10177 echo "configure:10178: checking for test routines" >&5
10178 if test "$cross_compiling" = yes; then
10179 echo "configure: warning: cannot run when cross-compiling" 1>&2
10181 cat > conftest.$ac_ext <<EOF
10182 #line 10183 "configure"
10183 #include "confdefs.h"
10184 #include "${srcdir-.}/tests/trivial.c"
10186 if { (eval echo configure:10187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10188 echo "$ac_t""yes" 1>&6
10190 echo "configure: failed program was:" >&5
10191 cat conftest.$ac_ext >&5
10193 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10199 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10200 echo "configure:10201: checking for ftruncate extend" >&5
10201 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10202 echo $ac_n "(cached) $ac_c" 1>&6
10205 if test "$cross_compiling" = yes; then
10206 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10208 cat > conftest.$ac_ext <<EOF
10209 #line 10210 "configure"
10210 #include "confdefs.h"
10211 #include "${srcdir-.}/tests/ftruncate.c"
10213 if { (eval echo configure:10214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10215 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10217 echo "configure: failed program was:" >&5
10218 cat conftest.$ac_ext >&5
10220 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10227 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10228 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10229 cat >> confdefs.h <<\EOF
10230 #define HAVE_FTRUNCATE_EXTEND 1
10235 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10236 echo "configure:10237: checking for AF_LOCAL socket support" >&5
10237 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10238 echo $ac_n "(cached) $ac_c" 1>&6
10241 if test "$cross_compiling" = yes; then
10242 samba_cv_HAVE_WORKING_AF_LOCAL=cross
10244 cat > conftest.$ac_ext <<EOF
10245 #line 10246 "configure"
10246 #include "confdefs.h"
10247 #include "${srcdir-.}/tests/unixsock.c"
10249 if { (eval echo configure:10250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10251 samba_cv_HAVE_WORKING_AF_LOCAL=yes
10253 echo "configure: failed program was:" >&5
10254 cat conftest.$ac_ext >&5
10256 samba_cv_HAVE_WORKING_AF_LOCAL=no
10263 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
10264 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
10266 cat >> confdefs.h <<\EOF
10267 #define HAVE_WORKING_AF_LOCAL 1
10272 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10273 echo "configure:10274: checking for broken getgroups" >&5
10274 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10275 echo $ac_n "(cached) $ac_c" 1>&6
10278 if test "$cross_compiling" = yes; then
10279 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10281 cat > conftest.$ac_ext <<EOF
10282 #line 10283 "configure"
10283 #include "confdefs.h"
10284 #include "${srcdir-.}/tests/getgroups.c"
10286 if { (eval echo configure:10287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10288 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10290 echo "configure: failed program was:" >&5
10291 cat conftest.$ac_ext >&5
10293 samba_cv_HAVE_BROKEN_GETGROUPS=no
10300 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10301 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10302 cat >> confdefs.h <<\EOF
10303 #define HAVE_BROKEN_GETGROUPS 1
10308 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10309 echo "configure:10310: checking whether getpass should be replaced" >&5
10310 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10311 echo $ac_n "(cached) $ac_c" 1>&6
10314 SAVE_CPPFLAGS="$CPPFLAGS"
10315 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10316 cat > conftest.$ac_ext <<EOF
10317 #line 10318 "configure"
10318 #include "confdefs.h"
10320 #define REPLACE_GETPASS 1
10321 #define NO_CONFIG_H 1
10322 #define main dont_declare_main
10323 #include "${srcdir-.}/lib/getsmbpass.c"
10330 if { (eval echo configure:10331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10332 samba_cv_REPLACE_GETPASS=yes
10334 echo "configure: failed program was:" >&5
10335 cat conftest.$ac_ext >&5
10337 samba_cv_REPLACE_GETPASS=no
10340 CPPFLAGS="$SAVE_CPPFLAGS"
10344 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10345 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10346 cat >> confdefs.h <<\EOF
10347 #define REPLACE_GETPASS 1
10352 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10353 echo "configure:10354: checking for broken inet_ntoa" >&5
10354 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10355 echo $ac_n "(cached) $ac_c" 1>&6
10358 if test "$cross_compiling" = yes; then
10359 samba_cv_REPLACE_INET_NTOA=cross
10361 cat > conftest.$ac_ext <<EOF
10362 #line 10363 "configure"
10363 #include "confdefs.h"
10366 #include <sys/types.h>
10367 #include <netinet/in.h>
10368 #ifdef HAVE_ARPA_INET_H
10369 #include <arpa/inet.h>
10371 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10372 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10373 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10376 if { (eval echo configure:10377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10378 samba_cv_REPLACE_INET_NTOA=yes
10380 echo "configure: failed program was:" >&5
10381 cat conftest.$ac_ext >&5
10383 samba_cv_REPLACE_INET_NTOA=no
10390 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10391 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10392 cat >> confdefs.h <<\EOF
10393 #define REPLACE_INET_NTOA 1
10398 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10399 echo "configure:10400: checking for secure mkstemp" >&5
10400 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10401 echo $ac_n "(cached) $ac_c" 1>&6
10404 if test "$cross_compiling" = yes; then
10405 samba_cv_HAVE_SECURE_MKSTEMP=cross
10407 cat > conftest.$ac_ext <<EOF
10408 #line 10409 "configure"
10409 #include "confdefs.h"
10410 #include <stdlib.h>
10411 #include <sys/types.h>
10412 #include <sys/stat.h>
10413 #include <unistd.h>
10416 char tpl[20]="/tmp/test.XXXXXX";
10417 int fd = mkstemp(tpl);
10418 if (fd == -1) exit(1);
10420 if (fstat(fd, &st) != 0) exit(1);
10421 if ((st.st_mode & 0777) != 0600) exit(1);
10425 if { (eval echo configure:10426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10427 samba_cv_HAVE_SECURE_MKSTEMP=yes
10429 echo "configure: failed program was:" >&5
10430 cat conftest.$ac_ext >&5
10432 samba_cv_HAVE_SECURE_MKSTEMP=no
10439 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10440 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10441 cat >> confdefs.h <<\EOF
10442 #define HAVE_SECURE_MKSTEMP 1
10447 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10448 echo "configure:10449: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10449 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10450 echo $ac_n "(cached) $ac_c" 1>&6
10453 if test "$cross_compiling" = yes; then
10454 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10456 cat > conftest.$ac_ext <<EOF
10457 #line 10458 "configure"
10458 #include "confdefs.h"
10459 #include <unistd.h>
10460 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10462 if { (eval echo configure:10463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10464 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10466 echo "configure: failed program was:" >&5
10467 cat conftest.$ac_ext >&5
10469 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10476 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10477 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10478 cat >> confdefs.h <<\EOF
10479 #define SYSCONF_SC_NGROUPS_MAX 1
10484 echo $ac_n "checking for root""... $ac_c" 1>&6
10485 echo "configure:10486: checking for root" >&5
10486 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10487 echo $ac_n "(cached) $ac_c" 1>&6
10490 if test "$cross_compiling" = yes; then
10491 samba_cv_HAVE_ROOT=cross
10493 cat > conftest.$ac_ext <<EOF
10494 #line 10495 "configure"
10495 #include "confdefs.h"
10496 main() { exit(getuid() != 0); }
10498 if { (eval echo configure:10499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10500 samba_cv_HAVE_ROOT=yes
10502 echo "configure: failed program was:" >&5
10503 cat conftest.$ac_ext >&5
10505 samba_cv_HAVE_ROOT=no
10512 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10513 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10514 cat >> confdefs.h <<\EOF
10515 #define HAVE_ROOT 1
10519 echo "configure: warning: running as non-root will disable some tests" 1>&2
10523 # look for a method of finding the list of network interfaces
10525 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10526 echo "configure:10527: checking for iface AIX" >&5
10527 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10528 echo $ac_n "(cached) $ac_c" 1>&6
10531 if test "$cross_compiling" = yes; then
10532 samba_cv_HAVE_IFACE_AIX=cross
10534 cat > conftest.$ac_ext <<EOF
10535 #line 10536 "configure"
10536 #include "confdefs.h"
10538 #define HAVE_IFACE_AIX 1
10539 #define AUTOCONF_TEST 1
10540 #include "confdefs.h"
10541 #include "${srcdir-.}/lib/interfaces.c"
10543 if { (eval echo configure:10544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10545 samba_cv_HAVE_IFACE_AIX=yes
10547 echo "configure: failed program was:" >&5
10548 cat conftest.$ac_ext >&5
10550 samba_cv_HAVE_IFACE_AIX=no
10557 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10558 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10559 iface=yes;cat >> confdefs.h <<\EOF
10560 #define HAVE_IFACE_AIX 1
10565 if test $iface = no; then
10566 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10567 echo "configure:10568: checking for iface ifconf" >&5
10568 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10569 echo $ac_n "(cached) $ac_c" 1>&6
10572 if test "$cross_compiling" = yes; then
10573 samba_cv_HAVE_IFACE_IFCONF=cross
10575 cat > conftest.$ac_ext <<EOF
10576 #line 10577 "configure"
10577 #include "confdefs.h"
10579 #define HAVE_IFACE_IFCONF 1
10580 #define AUTOCONF_TEST 1
10581 #include "confdefs.h"
10582 #include "${srcdir-.}/lib/interfaces.c"
10584 if { (eval echo configure:10585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10586 samba_cv_HAVE_IFACE_IFCONF=yes
10588 echo "configure: failed program was:" >&5
10589 cat conftest.$ac_ext >&5
10591 samba_cv_HAVE_IFACE_IFCONF=no
10598 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10599 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
10600 iface=yes;cat >> confdefs.h <<\EOF
10601 #define HAVE_IFACE_IFCONF 1
10607 if test $iface = no; then
10608 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10609 echo "configure:10610: checking for iface ifreq" >&5
10610 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10611 echo $ac_n "(cached) $ac_c" 1>&6
10614 if test "$cross_compiling" = yes; then
10615 samba_cv_HAVE_IFACE_IFREQ=cross
10617 cat > conftest.$ac_ext <<EOF
10618 #line 10619 "configure"
10619 #include "confdefs.h"
10621 #define HAVE_IFACE_IFREQ 1
10622 #define AUTOCONF_TEST 1
10623 #include "confdefs.h"
10624 #include "${srcdir-.}/lib/interfaces.c"
10626 if { (eval echo configure:10627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10628 samba_cv_HAVE_IFACE_IFREQ=yes
10630 echo "configure: failed program was:" >&5
10631 cat conftest.$ac_ext >&5
10633 samba_cv_HAVE_IFACE_IFREQ=no
10640 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10641 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
10642 iface=yes;cat >> confdefs.h <<\EOF
10643 #define HAVE_IFACE_IFREQ 1
10650 ################################################
10651 # look for a method of setting the effective uid
10653 if test $seteuid = no; then
10654 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10655 echo "configure:10656: checking for setresuid" >&5
10656 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10657 echo $ac_n "(cached) $ac_c" 1>&6
10660 if test "$cross_compiling" = yes; then
10661 samba_cv_USE_SETRESUID=cross
10663 cat > conftest.$ac_ext <<EOF
10664 #line 10665 "configure"
10665 #include "confdefs.h"
10667 #define AUTOCONF_TEST 1
10668 #define USE_SETRESUID 1
10669 #include "confdefs.h"
10670 #include "${srcdir-.}/lib/util_sec.c"
10672 if { (eval echo configure:10673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10674 samba_cv_USE_SETRESUID=yes
10676 echo "configure: failed program was:" >&5
10677 cat conftest.$ac_ext >&5
10679 samba_cv_USE_SETRESUID=no
10686 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10687 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
10688 seteuid=yes;cat >> confdefs.h <<\EOF
10689 #define USE_SETRESUID 1
10696 if test $seteuid = no; then
10697 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10698 echo "configure:10699: checking for setreuid" >&5
10699 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10700 echo $ac_n "(cached) $ac_c" 1>&6
10703 if test "$cross_compiling" = yes; then
10704 samba_cv_USE_SETREUID=cross
10706 cat > conftest.$ac_ext <<EOF
10707 #line 10708 "configure"
10708 #include "confdefs.h"
10710 #define AUTOCONF_TEST 1
10711 #define USE_SETREUID 1
10712 #include "confdefs.h"
10713 #include "${srcdir-.}/lib/util_sec.c"
10715 if { (eval echo configure:10716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10717 samba_cv_USE_SETREUID=yes
10719 echo "configure: failed program was:" >&5
10720 cat conftest.$ac_ext >&5
10722 samba_cv_USE_SETREUID=no
10729 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10730 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
10731 seteuid=yes;cat >> confdefs.h <<\EOF
10732 #define USE_SETREUID 1
10738 if test $seteuid = no; then
10739 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10740 echo "configure:10741: checking for seteuid" >&5
10741 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10742 echo $ac_n "(cached) $ac_c" 1>&6
10745 if test "$cross_compiling" = yes; then
10746 samba_cv_USE_SETEUID=cross
10748 cat > conftest.$ac_ext <<EOF
10749 #line 10750 "configure"
10750 #include "confdefs.h"
10752 #define AUTOCONF_TEST 1
10753 #define USE_SETEUID 1
10754 #include "confdefs.h"
10755 #include "${srcdir-.}/lib/util_sec.c"
10757 if { (eval echo configure:10758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10759 samba_cv_USE_SETEUID=yes
10761 echo "configure: failed program was:" >&5
10762 cat conftest.$ac_ext >&5
10764 samba_cv_USE_SETEUID=no
10771 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10772 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
10773 seteuid=yes;cat >> confdefs.h <<\EOF
10774 #define USE_SETEUID 1
10780 if test $seteuid = no; then
10781 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10782 echo "configure:10783: checking for setuidx" >&5
10783 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10784 echo $ac_n "(cached) $ac_c" 1>&6
10787 if test "$cross_compiling" = yes; then
10788 samba_cv_USE_SETUIDX=cross
10790 cat > conftest.$ac_ext <<EOF
10791 #line 10792 "configure"
10792 #include "confdefs.h"
10794 #define AUTOCONF_TEST 1
10795 #define USE_SETUIDX 1
10796 #include "confdefs.h"
10797 #include "${srcdir-.}/lib/util_sec.c"
10799 if { (eval echo configure:10800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10801 samba_cv_USE_SETUIDX=yes
10803 echo "configure: failed program was:" >&5
10804 cat conftest.$ac_ext >&5
10806 samba_cv_USE_SETUIDX=no
10813 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10814 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
10815 seteuid=yes;cat >> confdefs.h <<\EOF
10816 #define USE_SETUIDX 1
10823 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10824 echo "configure:10825: checking for working mmap" >&5
10825 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10826 echo $ac_n "(cached) $ac_c" 1>&6
10829 if test "$cross_compiling" = yes; then
10830 samba_cv_HAVE_MMAP=cross
10832 cat > conftest.$ac_ext <<EOF
10833 #line 10834 "configure"
10834 #include "confdefs.h"
10835 #include "${srcdir-.}/tests/shared_mmap.c"
10837 if { (eval echo configure:10838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10839 samba_cv_HAVE_MMAP=yes
10841 echo "configure: failed program was:" >&5
10842 cat conftest.$ac_ext >&5
10844 samba_cv_HAVE_MMAP=no
10851 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10852 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
10853 cat >> confdefs.h <<\EOF
10854 #define HAVE_MMAP 1
10859 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10860 echo "configure:10861: checking for ftruncate needs root" >&5
10861 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10862 echo $ac_n "(cached) $ac_c" 1>&6
10865 if test "$cross_compiling" = yes; then
10866 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
10868 cat > conftest.$ac_ext <<EOF
10869 #line 10870 "configure"
10870 #include "confdefs.h"
10871 #include "${srcdir-.}/tests/ftruncroot.c"
10873 if { (eval echo configure:10874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10875 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
10877 echo "configure: failed program was:" >&5
10878 cat conftest.$ac_ext >&5
10880 samba_cv_FTRUNCATE_NEEDS_ROOT=no
10887 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10888 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
10889 cat >> confdefs.h <<\EOF
10890 #define FTRUNCATE_NEEDS_ROOT 1
10895 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10896 echo "configure:10897: checking for fcntl locking" >&5
10897 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10898 echo $ac_n "(cached) $ac_c" 1>&6
10901 if test "$cross_compiling" = yes; then
10902 samba_cv_HAVE_FCNTL_LOCK=cross
10904 cat > conftest.$ac_ext <<EOF
10905 #line 10906 "configure"
10906 #include "confdefs.h"
10907 #include "${srcdir-.}/tests/fcntl_lock.c"
10909 if { (eval echo configure:10910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10911 samba_cv_HAVE_FCNTL_LOCK=yes
10913 echo "configure: failed program was:" >&5
10914 cat conftest.$ac_ext >&5
10916 samba_cv_HAVE_FCNTL_LOCK=no
10923 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10924 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
10925 cat >> confdefs.h <<\EOF
10926 #define HAVE_FCNTL_LOCK 1
10931 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10932 echo "configure:10933: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10933 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10934 echo $ac_n "(cached) $ac_c" 1>&6
10937 if test "$cross_compiling" = yes; then
10938 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
10940 cat > conftest.$ac_ext <<EOF
10941 #line 10942 "configure"
10942 #include "confdefs.h"
10943 #include "${srcdir-.}/tests/fcntl_lock64.c"
10945 if { (eval echo configure:10946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10947 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
10949 echo "configure: failed program was:" >&5
10950 cat conftest.$ac_ext >&5
10952 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
10959 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10960 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
10961 cat >> confdefs.h <<\EOF
10962 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10969 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10970 echo "configure:10971: checking for 64 bit fcntl locking" >&5
10971 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10972 echo $ac_n "(cached) $ac_c" 1>&6
10975 if test "$cross_compiling" = yes; then
10976 samba_cv_HAVE_STRUCT_FLOCK64=cross
10978 cat > conftest.$ac_ext <<EOF
10979 #line 10980 "configure"
10980 #include "confdefs.h"
10982 #if defined(HAVE_UNISTD_H)
10983 #include <unistd.h>
10986 #include <stdlib.h>
10988 #ifdef HAVE_FCNTL_H
10992 #ifdef HAVE_SYS_FCNTL_H
10993 #include <sys/fcntl.h>
10995 main() { struct flock64 fl64;
10996 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11003 if { (eval echo configure:11004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11005 samba_cv_HAVE_STRUCT_FLOCK64=yes
11007 echo "configure: failed program was:" >&5
11008 cat conftest.$ac_ext >&5
11010 samba_cv_HAVE_STRUCT_FLOCK64=no
11017 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11019 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11020 cat >> confdefs.h <<\EOF
11021 #define HAVE_STRUCT_FLOCK64 1
11027 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11028 echo "configure:11029: checking for broken nisplus include files" >&5
11029 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11030 echo $ac_n "(cached) $ac_c" 1>&6
11033 cat > conftest.$ac_ext <<EOF
11034 #line 11035 "configure"
11035 #include "confdefs.h"
11036 #include <sys/acl.h>
11037 #if defined(HAVE_RPCSVC_NIS_H)
11038 #include <rpcsvc/nis.h>
11044 if { (eval echo configure:11045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11046 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11048 echo "configure: failed program was:" >&5
11049 cat conftest.$ac_ext >&5
11051 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11056 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11057 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11058 cat >> confdefs.h <<\EOF
11059 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11065 #################################################
11066 # check for smbwrapper support
11067 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11068 echo "configure:11069: checking whether to use smbwrapper" >&5
11069 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11070 if test "${with_smbwrapper+set}" = set; then
11071 withval="$with_smbwrapper"
11074 echo "$ac_t""yes" 1>&6
11075 cat >> confdefs.h <<\EOF
11076 #define WITH_SMBWRAPPER 1
11079 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11081 if test x$ATTEMPT_WRAP32_BUILD = x; then
11084 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11087 # Conditions under which smbwrapper should not be built.
11089 if test x$PICFLAG = x; then
11090 echo No support for PIC code - disabling smbwrapper and smbsh
11093 elif test x$ac_cv_func_syscall = xno; then
11094 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11100 echo "$ac_t""no" 1>&6
11104 echo "$ac_t""no" 1>&6
11109 #################################################
11110 # check for the AFS filesystem
11111 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11112 echo "configure:11113: checking whether to use AFS" >&5
11113 # Check whether --with-afs or --without-afs was given.
11114 if test "${with_afs+set}" = set; then
11115 withval="$with_afs"
11118 echo "$ac_t""yes" 1>&6
11119 cat >> confdefs.h <<\EOF
11125 echo "$ac_t""no" 1>&6
11129 echo "$ac_t""no" 1>&6
11135 #################################################
11136 # check for the DFS auth system
11137 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
11138 echo "configure:11139: checking whether to use DFS auth" >&5
11139 # Check whether --with-dfs or --without-dfs was given.
11140 if test "${with_dfs+set}" = set; then
11141 withval="$with_dfs"
11144 echo "$ac_t""yes" 1>&6
11145 cat >> confdefs.h <<\EOF
11151 echo "$ac_t""no" 1>&6
11155 echo "$ac_t""no" 1>&6
11160 #################################################
11161 # check for Kerberos IV auth system
11162 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11163 echo "configure:11164: checking whether to use Kerberos IV" >&5
11164 # Check whether --with-krb4 or --without-krb4 was given.
11165 if test "${with_krb4+set}" = set; then
11166 withval="$with_krb4"
11169 echo "$ac_t""yes" 1>&6
11170 cat >> confdefs.h <<\EOF
11171 #define KRB4_AUTH 1
11174 LIBS="$LIBS -lkrb -ldes"
11175 CFLAGS="$CFLAGS -I$withval/include"
11176 LDFLAGS="$LDFLAGS -L$withval/lib"
11177 cat >> confdefs.h <<EOF
11178 #define KRB4_DIR ${withval}
11183 echo "$ac_t""no" 1>&6
11187 echo "$ac_t""no" 1>&6
11194 #################################################
11195 # check for location of Kerberos 5 install
11196 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
11197 echo "configure:11198: checking for kerberos 5 install path" >&5
11198 # Check whether --with-krb5 or --without-krb5 was given.
11199 if test "${with_krb5+set}" = set; then
11200 withval="$with_krb5"
11203 echo "$ac_t""no" 1>&6
11206 echo "$ac_t""yes" 1>&6
11207 cat >> confdefs.h <<\EOF
11208 #define KRB5_AUTH 1
11211 LIBS="$LIBS -lkrb5 -lk5crypto -lcom_err"
11212 CFLAGS="$CFLAGS -I$withval/include"
11213 LDFLAGS="$LDFLAGS -L$withval/lib"
11214 cat >> confdefs.h <<\EOF
11215 #define HAVE_KRB5 1
11218 cat >> confdefs.h <<EOF
11219 #define KRB5_DIR ${withval}
11226 echo "$ac_t""no" 1>&6
11232 ########################################################
11233 # now see if we can find the krb5 libs in standard paths
11234 if test x$have_krb5 != xyes; then
11235 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
11236 echo "configure:11237: checking for krb5_mk_req_extended in -lkrb5" >&5
11237 ac_lib_var=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
11238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11239 echo $ac_n "(cached) $ac_c" 1>&6
11241 ac_save_LIBS="$LIBS"
11242 LIBS="-lkrb5 $LIBS"
11243 cat > conftest.$ac_ext <<EOF
11244 #line 11245 "configure"
11245 #include "confdefs.h"
11246 /* Override any gcc2 internal prototype to avoid an error. */
11247 /* We use char because int might match the return type of a gcc2
11248 builtin and then its argument prototype would still apply. */
11249 char krb5_mk_req_extended();
11252 krb5_mk_req_extended()
11255 if { (eval echo configure:11256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11257 eval "ac_cv_lib_$ac_lib_var=yes"
11259 echo "configure: failed program was:" >&5
11260 cat conftest.$ac_ext >&5
11262 eval "ac_cv_lib_$ac_lib_var=no"
11265 LIBS="$ac_save_LIBS"
11268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11269 echo "$ac_t""yes" 1>&6
11270 LIBS="$LIBS -lkrb5 -lk5crypto -lcom_err";
11271 cat >> confdefs.h <<\EOF
11272 #define HAVE_KRB5 1
11276 echo "$ac_t""no" 1>&6
11282 #################################################
11283 # check for automount support
11284 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11285 echo "configure:11286: checking whether to use AUTOMOUNT" >&5
11286 # Check whether --with-automount or --without-automount was given.
11287 if test "${with_automount+set}" = set; then
11288 withval="$with_automount"
11291 echo "$ac_t""yes" 1>&6
11292 cat >> confdefs.h <<\EOF
11293 #define WITH_AUTOMOUNT 1
11298 echo "$ac_t""no" 1>&6
11302 echo "$ac_t""no" 1>&6
11307 #################################################
11308 # check for smbmount support
11309 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11310 echo "configure:11311: checking whether to use SMBMOUNT" >&5
11311 # Check whether --with-smbmount or --without-smbmount was given.
11312 if test "${with_smbmount+set}" = set; then
11313 withval="$with_smbmount"
11318 echo "$ac_t""yes" 1>&6
11319 cat >> confdefs.h <<\EOF
11320 #define WITH_SMBMOUNT 1
11323 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11326 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11331 echo "$ac_t""no" 1>&6
11336 echo "$ac_t""no" 1>&6
11343 #################################################
11344 # check for a PAM password database
11345 with_pam_for_crypt=no
11346 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11347 echo "configure:11348: checking whether to use PAM password database" >&5
11348 # Check whether --with-pam or --without-pam was given.
11349 if test "${with_pam+set}" = set; then
11350 withval="$with_pam"
11353 echo "$ac_t""yes" 1>&6
11354 cat >> confdefs.h <<\EOF
11359 with_pam_for_crypt=yes
11362 echo "$ac_t""no" 1>&6
11366 echo "$ac_t""no" 1>&6
11371 # we can't build a pam module if we don't have pam.
11372 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11373 echo "configure:11374: checking for pam_get_data in -lpam" >&5
11374 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11375 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11376 echo $ac_n "(cached) $ac_c" 1>&6
11378 ac_save_LIBS="$LIBS"
11380 cat > conftest.$ac_ext <<EOF
11381 #line 11382 "configure"
11382 #include "confdefs.h"
11383 /* Override any gcc2 internal prototype to avoid an error. */
11384 /* We use char because int might match the return type of a gcc2
11385 builtin and then its argument prototype would still apply. */
11386 char pam_get_data();
11392 if { (eval echo configure:11393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11394 eval "ac_cv_lib_$ac_lib_var=yes"
11396 echo "configure: failed program was:" >&5
11397 cat conftest.$ac_ext >&5
11399 eval "ac_cv_lib_$ac_lib_var=no"
11402 LIBS="$ac_save_LIBS"
11405 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11406 echo "$ac_t""yes" 1>&6
11407 cat >> confdefs.h <<\EOF
11408 #define HAVE_LIBPAM 1
11412 echo "$ac_t""no" 1>&6
11416 #################################################
11417 # check for pam_smbpass support
11418 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11419 echo "configure:11420: checking whether to use pam_smbpass" >&5
11420 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11421 if test "${with_pam_smbpass+set}" = set; then
11422 withval="$with_pam_smbpass"
11425 echo "$ac_t""yes" 1>&6
11427 # Conditions under which pam_smbpass should not be built.
11429 if test x$PICFLAG = x; then
11430 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11432 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
11433 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11436 PAM_MOD="bin/pam_smbpass.so"
11440 echo "$ac_t""no" 1>&6
11444 echo "$ac_t""no" 1>&6
11450 ###############################################
11451 # test for where we get crypt() from, but only
11453 if test $with_pam_for_crypt = no; then
11454 for ac_func in crypt
11456 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11457 echo "configure:11458: checking for $ac_func" >&5
11458 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11459 echo $ac_n "(cached) $ac_c" 1>&6
11461 cat > conftest.$ac_ext <<EOF
11462 #line 11463 "configure"
11463 #include "confdefs.h"
11464 /* System header to define __stub macros and hopefully few prototypes,
11465 which can conflict with char $ac_func(); below. */
11466 #include <assert.h>
11467 /* Override any gcc2 internal prototype to avoid an error. */
11468 /* We use char because int might match the return type of a gcc2
11469 builtin and then its argument prototype would still apply. */
11474 /* The GNU C library defines this for functions which it implements
11475 to always fail with ENOSYS. Some functions are actually named
11476 something starting with __ and the normal name is an alias. */
11477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11485 if { (eval echo configure:11486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11487 eval "ac_cv_func_$ac_func=yes"
11489 echo "configure: failed program was:" >&5
11490 cat conftest.$ac_ext >&5
11492 eval "ac_cv_func_$ac_func=no"
11497 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11498 echo "$ac_t""yes" 1>&6
11499 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11500 cat >> confdefs.h <<EOF
11501 #define $ac_tr_func 1
11505 echo "$ac_t""no" 1>&6
11509 if test x"$ac_cv_func_crypt" = x"no"; then
11510 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11511 echo "configure:11512: checking for crypt in -lcrypt" >&5
11512 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11514 echo $ac_n "(cached) $ac_c" 1>&6
11516 ac_save_LIBS="$LIBS"
11517 LIBS="-lcrypt $LIBS"
11518 cat > conftest.$ac_ext <<EOF
11519 #line 11520 "configure"
11520 #include "confdefs.h"
11521 /* Override any gcc2 internal prototype to avoid an error. */
11522 /* We use char because int might match the return type of a gcc2
11523 builtin and then its argument prototype would still apply. */
11530 if { (eval echo configure:11531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11532 eval "ac_cv_lib_$ac_lib_var=yes"
11534 echo "configure: failed program was:" >&5
11535 cat conftest.$ac_ext >&5
11537 eval "ac_cv_lib_$ac_lib_var=no"
11540 LIBS="$ac_save_LIBS"
11543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11544 echo "$ac_t""yes" 1>&6
11545 LIBS="$LIBS -lcrypt";
11546 cat >> confdefs.h <<\EOF
11547 #define HAVE_CRYPT 1
11551 echo "$ac_t""no" 1>&6
11558 ## moved after the check for -lcrypt in order to
11559 ## ensure that the necessary libraries are included
11560 ## check checking for truncated salt. Wrapped by the
11561 ## $with_pam_for_crypt variable as above --jerry
11563 if test $with_pam_for_crypt = no; then
11564 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
11565 echo "configure:11566: checking for a crypt that needs truncated salt" >&5
11566 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
11567 echo $ac_n "(cached) $ac_c" 1>&6
11570 if test "$cross_compiling" = yes; then
11571 samba_cv_HAVE_TRUNCATED_SALT=cross
11573 cat > conftest.$ac_ext <<EOF
11574 #line 11575 "configure"
11575 #include "confdefs.h"
11576 #include "${srcdir-.}/tests/crypttest.c"
11578 if { (eval echo configure:11579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11580 samba_cv_HAVE_TRUNCATED_SALT=no
11582 echo "configure: failed program was:" >&5
11583 cat conftest.$ac_ext >&5
11585 samba_cv_HAVE_TRUNCATED_SALT=yes
11592 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
11593 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
11594 cat >> confdefs.h <<\EOF
11595 #define HAVE_TRUNCATED_SALT 1
11603 ########################################################################################
11605 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
11607 ########################################################################################
11609 ## set the with_smbpasswd_sam as the default
11610 with_smbpasswd_sam=yes
11613 #################################################
11614 # check for a TDB password database
11615 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
11616 echo "configure:11617: checking whether to use TDB SAM database" >&5
11617 # Check whether --with-tdbsam or --without-tdbsam was given.
11618 if test "${with_tdbsam+set}" = set; then
11619 withval="$with_tdbsam"
11622 echo "$ac_t""yes" 1>&6
11623 cat >> confdefs.h <<\EOF
11624 #define WITH_TDB_SAM 1
11627 with_smbpasswd_sam=no
11630 echo "$ac_t""no" 1>&6
11634 echo "$ac_t""no" 1>&6
11639 #################################################
11640 # check for a LDAP password database
11641 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
11642 echo "configure:11643: checking whether to use LDAP SAM database" >&5
11643 # Check whether --with-ldapsam or --without-ldapsam was given.
11644 if test "${with_ldapsam+set}" = set; then
11645 withval="$with_ldapsam"
11648 echo "$ac_t""yes" 1>&6
11649 cat >> confdefs.h <<\EOF
11650 #define WITH_LDAP_SAM 1
11653 LIBS="-lldap -llber $LIBS"
11654 with_smbpasswd_sam=no
11657 echo "$ac_t""no" 1>&6
11661 echo "$ac_t""no" 1>&6
11666 #################################################
11667 # check for a NISPLUS password database
11668 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
11669 echo "configure:11670: checking whether to use NISPLUS SAM database" >&5
11670 # Check whether --with-nisplussam or --without-nisplussam was given.
11671 if test "${with_nisplussam+set}" = set; then
11672 withval="$with_nisplussam"
11675 echo "$ac_t""yes" 1>&6
11676 cat >> confdefs.h <<\EOF
11677 #define WITH_NISPLUS_SAM 1
11680 with_smbpasswd_sam=no
11683 echo "$ac_t""no" 1>&6
11687 echo "$ac_t""no" 1>&6
11692 ################################################
11693 # This test should come last because the
11694 # smbpasswd SAM is only used if another format
11695 # has not been defined
11696 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
11697 echo "configure:11698: checking whether to use traditional smbpasswd file" >&5
11698 if test $with_smbpasswd_sam = yes; then
11699 echo "$ac_t""yes" 1>&6
11700 cat >> confdefs.h <<\EOF
11701 #define WITH_SMBPASSWD_SAM 1
11705 echo "$ac_t""no" 1>&6
11708 ########################################################################################
11710 ## END OF TESTS FOR SAM BACKENDS.
11712 ########################################################################################
11714 #################################################
11715 # check for a NISPLUS_HOME support
11716 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11717 echo "configure:11718: checking whether to use NISPLUS_HOME" >&5
11718 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11719 if test "${with_nisplus_home+set}" = set; then
11720 withval="$with_nisplus_home"
11723 echo "$ac_t""yes" 1>&6
11724 cat >> confdefs.h <<\EOF
11725 #define WITH_NISPLUS_HOME 1
11730 echo "$ac_t""no" 1>&6
11734 echo "$ac_t""no" 1>&6
11739 #################################################
11740 # check for the secure socket layer
11741 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11742 echo "configure:11743: checking whether to use SSL" >&5
11743 # Check whether --with-ssl or --without-ssl was given.
11744 if test "${with_ssl+set}" = set; then
11745 withval="$with_ssl"
11748 echo "$ac_t""yes" 1>&6
11749 cat >> confdefs.h <<\EOF
11753 withval="/usr/local/ssl" # default
11755 if test "${with_sslinc+set}" = set; then
11757 withval="$with_sslinc"
11760 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11761 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11764 CFLAGS="-I${withval} $CFLAGS"
11770 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11774 if test "${with_ssllib+set}" = set; then
11776 withval="$with_ssllib"
11779 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
11780 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
11783 LDFLAGS="-L${withval}/lib $LDFLAGS"
11789 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
11793 LIBS="-lssl -lcrypto $LIBS"
11795 # if test ! -d ${withval}; then
11796 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11800 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11804 echo "$ac_t""no" 1>&6
11808 echo "$ac_t""no" 1>&6
11813 #################################################
11814 # check for syslog logging
11815 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11816 echo "configure:11817: checking whether to use syslog logging" >&5
11817 # Check whether --with-syslog or --without-syslog was given.
11818 if test "${with_syslog+set}" = set; then
11819 withval="$with_syslog"
11822 echo "$ac_t""yes" 1>&6
11823 cat >> confdefs.h <<\EOF
11824 #define WITH_SYSLOG 1
11829 echo "$ac_t""no" 1>&6
11833 echo "$ac_t""no" 1>&6
11838 #################################################
11839 # check for a shared memory profiling support
11840 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11841 echo "configure:11842: checking whether to use profiling" >&5
11842 # Check whether --with-profiling-data or --without-profiling-data was given.
11843 if test "${with_profiling_data+set}" = set; then
11844 withval="$with_profiling_data"
11847 echo "$ac_t""yes" 1>&6
11848 cat >> confdefs.h <<\EOF
11849 #define WITH_PROFILE 1
11854 echo "$ac_t""no" 1>&6
11858 echo "$ac_t""no" 1>&6
11864 #################################################
11865 # check for experimental disk-quotas support
11866 QUOTAOBJS=smbd/noquotas.o
11868 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11869 echo "configure:11870: checking whether to support disk-quotas" >&5
11870 # Check whether --with-quotas or --without-quotas was given.
11871 if test "${with_quotas+set}" = set; then
11872 withval="$with_quotas"
11875 echo "$ac_t""yes" 1>&6
11878 # Check for kernel 2.4.x quota braindamage...
11879 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
11880 echo "configure:11881: checking for linux 2.4.x quota braindamage.." >&5
11881 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
11882 echo $ac_n "(cached) $ac_c" 1>&6
11885 cat > conftest.$ac_ext <<EOF
11886 #line 11887 "configure"
11887 #include "confdefs.h"
11889 #include <sys/types.h>
11890 #include <asm/types.h>
11891 #include <linux/quota.h>
11892 #include <mntent.h>
11893 #include <linux/unistd.h>
11895 struct mem_dqblk D;
11898 if { (eval echo configure:11899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11900 samba_cv_linux_2_4_quota_braindamage=yes
11902 echo "configure: failed program was:" >&5
11903 cat conftest.$ac_ext >&5
11905 samba_cv_linux_2_4_quota_braindamage=no
11910 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
11911 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
11912 cat >> confdefs.h <<\EOF
11913 #define LINUX_QUOTAS_2 1
11917 cat >> confdefs.h <<\EOF
11918 #define LINUX_QUOTAS_1 1
11926 QUOTAOBJS=smbd/quotas.o
11927 cat >> confdefs.h <<\EOF
11928 #define WITH_QUOTAS 1
11933 echo "$ac_t""no" 1>&6
11937 echo "$ac_t""no" 1>&6
11943 #################################################
11944 # check for experimental utmp accounting
11946 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11947 echo "configure:11948: checking whether to support utmp accounting" >&5
11948 # Check whether --with-utmp or --without-utmp was given.
11949 if test "${with_utmp+set}" = set; then
11950 withval="$with_utmp"
11953 echo "$ac_t""yes" 1>&6
11954 cat >> confdefs.h <<\EOF
11955 #define WITH_UTMP 1
11960 echo "$ac_t""no" 1>&6
11964 echo "$ac_t""no" 1>&6
11969 #################################################
11970 # set private directory location
11971 # Check whether --with-privatedir or --without-privatedir was given.
11972 if test "${with_privatedir+set}" = set; then
11973 withval="$with_privatedir"
11977 # Just in case anybody calls it without argument
11979 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
11980 privatedir='${prefix}/private'
11983 privatedir="$withval"
11988 privatedir='${prefix}/private'
11994 #################################################
11995 # set lock directory location
11996 # Check whether --with-lockdir or --without-lockdir was given.
11997 if test "${with_lockdir+set}" = set; then
11998 withval="$with_lockdir"
12002 # Just in case anybody calls it without argument
12004 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
12005 lockdir='$(VARDIR)/locks'
12013 lockdir='$(VARDIR)/locks'
12019 #################################################
12020 # set SWAT directory location
12021 # Check whether --with-swatdir or --without-swatdir was given.
12022 if test "${with_swatdir+set}" = set; then
12023 withval="$with_swatdir"
12027 # Just in case anybody does it
12029 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
12030 swatdir='${prefix}/swat'
12038 swatdir='${prefix}/swat'
12044 #################################################
12045 # choose native language(s) of man pages
12046 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
12047 echo "configure:12048: checking chosen man pages' language(s)" >&5
12048 # Check whether --with-manpages-langs or --without-manpages-langs was given.
12049 if test "${with_manpages_langs+set}" = set; then
12050 withval="$with_manpages_langs"
12053 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
12057 manlangs="$withval"
12061 echo "$ac_t""$manlangs" 1>&6
12062 manlangs=`echo $manlangs | sed "s/,/ /"` # replacing commas with spaces to produce a list
12066 echo "$ac_t""$manlangs" 1>&6
12072 #################################################
12073 # these tests are taken from the GNU fileutils package
12074 echo "checking how to get filesystem space usage" 1>&6
12075 echo "configure:12076: checking how to get filesystem space usage" >&5
12078 # Test for statvfs64.
12079 if test $space = no; then
12081 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12082 echo "configure:12083: checking statvfs64 function (SVR4)" >&5
12083 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12084 echo $ac_n "(cached) $ac_c" 1>&6
12086 if test "$cross_compiling" = yes; then
12087 fu_cv_sys_stat_statvfs64=cross
12089 cat > conftest.$ac_ext <<EOF
12090 #line 12091 "configure"
12091 #include "confdefs.h"
12093 #if defined(HAVE_UNISTD_H)
12094 #include <unistd.h>
12096 #include <sys/types.h>
12097 #include <sys/statvfs.h>
12100 struct statvfs64 fsd;
12101 exit (statvfs64 (".", &fsd));
12104 if { (eval echo configure:12105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12106 fu_cv_sys_stat_statvfs64=yes
12108 echo "configure: failed program was:" >&5
12109 cat conftest.$ac_ext >&5
12111 fu_cv_sys_stat_statvfs64=no
12118 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12119 if test $fu_cv_sys_stat_statvfs64 = yes; then
12121 cat >> confdefs.h <<\EOF
12122 #define STAT_STATVFS64 1
12128 # Perform only the link test since it seems there are no variants of the
12129 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12130 # because that got a false positive on SCO OSR5. Adding the declaration
12131 # of a `struct statvfs' causes this test to fail (as it should) on such
12132 # systems. That system is reported to work fine with STAT_STATFS4 which
12133 # is what it gets when this test fails.
12134 if test $space = no; then
12136 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12137 echo "configure:12138: checking statvfs function (SVR4)" >&5
12138 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12139 echo $ac_n "(cached) $ac_c" 1>&6
12141 cat > conftest.$ac_ext <<EOF
12142 #line 12143 "configure"
12143 #include "confdefs.h"
12144 #include <sys/types.h>
12145 #include <sys/statvfs.h>
12147 struct statvfs fsd; statvfs (0, &fsd);
12150 if { (eval echo configure:12151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12152 fu_cv_sys_stat_statvfs=yes
12154 echo "configure: failed program was:" >&5
12155 cat conftest.$ac_ext >&5
12157 fu_cv_sys_stat_statvfs=no
12162 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12163 if test $fu_cv_sys_stat_statvfs = yes; then
12165 cat >> confdefs.h <<\EOF
12166 #define STAT_STATVFS 1
12172 if test $space = no; then
12173 # DEC Alpha running OSF/1
12174 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12175 echo "configure:12176: checking for 3-argument statfs function (DEC OSF/1)" >&5
12176 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12177 echo $ac_n "(cached) $ac_c" 1>&6
12179 if test "$cross_compiling" = yes; then
12180 fu_cv_sys_stat_statfs3_osf1=no
12182 cat > conftest.$ac_ext <<EOF
12183 #line 12184 "configure"
12184 #include "confdefs.h"
12186 #include <sys/param.h>
12187 #include <sys/types.h>
12188 #include <sys/mount.h>
12193 exit (statfs (".", &fsd, sizeof (struct statfs)));
12196 if { (eval echo configure:12197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12198 fu_cv_sys_stat_statfs3_osf1=yes
12200 echo "configure: failed program was:" >&5
12201 cat conftest.$ac_ext >&5
12203 fu_cv_sys_stat_statfs3_osf1=no
12210 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12211 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12213 cat >> confdefs.h <<\EOF
12214 #define STAT_STATFS3_OSF1 1
12220 if test $space = no; then
12222 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12223 echo "configure:12224: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12224 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12225 echo $ac_n "(cached) $ac_c" 1>&6
12227 if test "$cross_compiling" = yes; then
12228 fu_cv_sys_stat_statfs2_bsize=no
12230 cat > conftest.$ac_ext <<EOF
12231 #line 12232 "configure"
12232 #include "confdefs.h"
12234 #ifdef HAVE_SYS_PARAM_H
12235 #include <sys/param.h>
12237 #ifdef HAVE_SYS_MOUNT_H
12238 #include <sys/mount.h>
12240 #ifdef HAVE_SYS_VFS_H
12241 #include <sys/vfs.h>
12247 exit (statfs (".", &fsd));
12250 if { (eval echo configure:12251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12252 fu_cv_sys_stat_statfs2_bsize=yes
12254 echo "configure: failed program was:" >&5
12255 cat conftest.$ac_ext >&5
12257 fu_cv_sys_stat_statfs2_bsize=no
12264 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12265 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12267 cat >> confdefs.h <<\EOF
12268 #define STAT_STATFS2_BSIZE 1
12274 if test $space = no; then
12276 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12277 echo "configure:12278: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12278 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12279 echo $ac_n "(cached) $ac_c" 1>&6
12281 if test "$cross_compiling" = yes; then
12282 fu_cv_sys_stat_statfs4=no
12284 cat > conftest.$ac_ext <<EOF
12285 #line 12286 "configure"
12286 #include "confdefs.h"
12287 #include <sys/types.h>
12288 #include <sys/statfs.h>
12292 exit (statfs (".", &fsd, sizeof fsd, 0));
12295 if { (eval echo configure:12296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12297 fu_cv_sys_stat_statfs4=yes
12299 echo "configure: failed program was:" >&5
12300 cat conftest.$ac_ext >&5
12302 fu_cv_sys_stat_statfs4=no
12309 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12310 if test $fu_cv_sys_stat_statfs4 = yes; then
12312 cat >> confdefs.h <<\EOF
12313 #define STAT_STATFS4 1
12319 if test $space = no; then
12320 # 4.4BSD and NetBSD
12321 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12322 echo "configure:12323: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12323 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12324 echo $ac_n "(cached) $ac_c" 1>&6
12326 if test "$cross_compiling" = yes; then
12327 fu_cv_sys_stat_statfs2_fsize=no
12329 cat > conftest.$ac_ext <<EOF
12330 #line 12331 "configure"
12331 #include "confdefs.h"
12332 #include <sys/types.h>
12333 #ifdef HAVE_SYS_PARAM_H
12334 #include <sys/param.h>
12336 #ifdef HAVE_SYS_MOUNT_H
12337 #include <sys/mount.h>
12343 exit (statfs (".", &fsd));
12346 if { (eval echo configure:12347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12348 fu_cv_sys_stat_statfs2_fsize=yes
12350 echo "configure: failed program was:" >&5
12351 cat conftest.$ac_ext >&5
12353 fu_cv_sys_stat_statfs2_fsize=no
12360 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12361 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12363 cat >> confdefs.h <<\EOF
12364 #define STAT_STATFS2_FSIZE 1
12370 if test $space = no; then
12372 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12373 echo "configure:12374: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12374 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12375 echo $ac_n "(cached) $ac_c" 1>&6
12377 if test "$cross_compiling" = yes; then
12378 fu_cv_sys_stat_fs_data=no
12380 cat > conftest.$ac_ext <<EOF
12381 #line 12382 "configure"
12382 #include "confdefs.h"
12383 #include <sys/types.h>
12384 #ifdef HAVE_SYS_PARAM_H
12385 #include <sys/param.h>
12387 #ifdef HAVE_SYS_MOUNT_H
12388 #include <sys/mount.h>
12390 #ifdef HAVE_SYS_FS_TYPES_H
12391 #include <sys/fs_types.h>
12395 struct fs_data fsd;
12396 /* Ultrix's statfs returns 1 for success,
12397 0 for not mounted, -1 for failure. */
12398 exit (statfs (".", &fsd) != 1);
12401 if { (eval echo configure:12402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12403 fu_cv_sys_stat_fs_data=yes
12405 echo "configure: failed program was:" >&5
12406 cat conftest.$ac_ext >&5
12408 fu_cv_sys_stat_fs_data=no
12415 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12416 if test $fu_cv_sys_stat_fs_data = yes; then
12418 cat >> confdefs.h <<\EOF
12419 #define STAT_STATFS2_FS_DATA 1
12426 # As a gating factor for large file support, in order to
12427 # use <4GB files we must have the following minimal support
12429 # long long, and a 64 bit off_t or off64_t.
12430 # If we don't have all of these then disable large
12433 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12434 echo "configure:12435: checking if large file support can be enabled" >&5
12435 cat > conftest.$ac_ext <<EOF
12436 #line 12437 "configure"
12437 #include "confdefs.h"
12439 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12440 #include <sys/types.h>
12449 if { (eval echo configure:12450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12451 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
12453 echo "configure: failed program was:" >&5
12454 cat conftest.$ac_ext >&5
12456 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
12459 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
12460 cat >> confdefs.h <<\EOF
12461 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12465 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
12467 # Check whether --with-spinlocks or --without-spinlocks was given.
12468 if test "${with_spinlocks+set}" = set; then
12469 withval="$with_spinlocks"
12473 if test "x$with_spinlocks" = "xyes"; then
12474 cat >> confdefs.h <<\EOF
12475 #define USE_SPINLOCKS 1
12479 case "$host_cpu" in
12481 cat >> confdefs.h <<\EOF
12482 #define SPARC_SPINLOCKS 1
12487 i386|i486|i586|i686)
12488 cat >> confdefs.h <<\EOF
12489 #define INTEL_SPINLOCKS 1
12495 cat >> confdefs.h <<\EOF
12496 #define MIPS_SPINLOCKS 1
12502 cat >> confdefs.h <<\EOF
12503 #define POWERPC_SPINLOCKS 1
12510 #################################################
12511 # check for ACL support
12513 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12514 echo "configure:12515: checking whether to support ACLs" >&5
12515 # Check whether --with-acl-support or --without-acl-support was given.
12516 if test "${with_acl_support+set}" = set; then
12517 withval="$with_acl_support"
12523 echo "$ac_t""Using UnixWare ACLs" 1>&6
12524 cat >> confdefs.h <<\EOF
12525 #define HAVE_UNIXWARE_ACLS 1
12530 echo "$ac_t""Using solaris ACLs" 1>&6
12531 cat >> confdefs.h <<\EOF
12532 #define HAVE_SOLARIS_ACLS 1
12537 echo "$ac_t""Using IRIX ACLs" 1>&6
12538 cat >> confdefs.h <<\EOF
12539 #define HAVE_IRIX_ACLS 1
12544 echo "$ac_t""Using AIX ACLs" 1>&6
12545 cat >> confdefs.h <<\EOF
12546 #define HAVE_AIX_ACLS 1
12551 echo "$ac_t""Using Tru64 ACLs" 1>&6
12552 cat >> confdefs.h <<\EOF
12553 #define HAVE_TRU64_ACLS 1
12556 LIBS="$LIBS -lpacl"
12559 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12560 echo "configure:12561: checking for acl_get_file in -lacl" >&5
12561 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12562 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12563 echo $ac_n "(cached) $ac_c" 1>&6
12565 ac_save_LIBS="$LIBS"
12567 cat > conftest.$ac_ext <<EOF
12568 #line 12569 "configure"
12569 #include "confdefs.h"
12570 /* Override any gcc2 internal prototype to avoid an error. */
12571 /* We use char because int might match the return type of a gcc2
12572 builtin and then its argument prototype would still apply. */
12573 char acl_get_file();
12579 if { (eval echo configure:12580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12581 eval "ac_cv_lib_$ac_lib_var=yes"
12583 echo "configure: failed program was:" >&5
12584 cat conftest.$ac_ext >&5
12586 eval "ac_cv_lib_$ac_lib_var=no"
12589 LIBS="$ac_save_LIBS"
12592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12593 echo "$ac_t""yes" 1>&6
12594 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12595 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12596 cat >> confdefs.h <<EOF
12597 #define $ac_tr_lib 1
12603 echo "$ac_t""no" 1>&6
12606 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12607 echo "configure:12608: checking for ACL support" >&5
12608 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12609 echo $ac_n "(cached) $ac_c" 1>&6
12612 cat > conftest.$ac_ext <<EOF
12613 #line 12614 "configure"
12614 #include "confdefs.h"
12615 #include <sys/types.h>
12616 #include <sys/acl.h>
12618 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12621 if { (eval echo configure:12622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12623 samba_cv_HAVE_POSIX_ACLS=yes
12625 echo "configure: failed program was:" >&5
12626 cat conftest.$ac_ext >&5
12628 samba_cv_HAVE_POSIX_ACLS=no
12633 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12634 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
12635 echo "$ac_t""Using posix ACLs" 1>&6
12636 cat >> confdefs.h <<\EOF
12637 #define HAVE_POSIX_ACLS 1
12640 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12641 echo "configure:12642: checking for acl_get_perm_np" >&5
12642 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12643 echo $ac_n "(cached) $ac_c" 1>&6
12646 cat > conftest.$ac_ext <<EOF
12647 #line 12648 "configure"
12648 #include "confdefs.h"
12649 #include <sys/types.h>
12650 #include <sys/acl.h>
12652 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12655 if { (eval echo configure:12656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12657 samba_cv_HAVE_ACL_GET_PERM_NP=yes
12659 echo "configure: failed program was:" >&5
12660 cat conftest.$ac_ext >&5
12662 samba_cv_HAVE_ACL_GET_PERM_NP=no
12667 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12668 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
12669 cat >> confdefs.h <<\EOF
12670 #define HAVE_ACL_GET_PERM_NP 1
12679 echo "$ac_t""no" 1>&6
12680 cat >> confdefs.h <<\EOF
12681 #define HAVE_NO_ACLS 1
12687 cat >> confdefs.h <<\EOF
12688 #define HAVE_NO_ACLS 1
12691 echo "$ac_t""no" 1>&6
12696 #################################################
12697 # Check whether winbind is supported on this platform. If so we need to
12698 # build and install client programs (WINBIND_TARGETS), sbin programs
12699 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
12701 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
12702 echo "configure:12703: checking whether to build winbind" >&5
12704 # Initially, the value of $host_os decides whether winbind is supported
12712 winbind_no_reason=", unsupported on $host_os"
12716 # Check the setting of --with-winbindd
12718 # Check whether --with-winbind or --without-winbind was given.
12719 if test "${with_winbind+set}" = set; then
12720 withval="$with_winbind"
12734 # We need unix domain sockets for winbind
12736 if test x"$HAVE_WINBIND" = x"yes"; then
12737 if test x"$samba_cv_unixsocket" = x"no"; then
12738 winbind_no_reason=", no unix domain socket support on $host_os"
12743 # Display test results
12745 if test x"$HAVE_WINBIND" = x"yes"; then
12747 echo "$ac_t""yes" 1>&6
12749 WINBIND_TARGETS="\$(WINBIND_PROGS)"
12750 WINBIND_STARGETS="\$(WINBIND_SPROGS)"
12751 WINBIND_LTARGETS="\$(WINBIND_LPROGS)"
12752 case "$with_pam" in
12754 WINBIND_PAM_PROGS="\$(WINBIND_PAM_PROGS)"
12758 echo "$ac_t""no$winbind_no_reason" 1>&6
12761 WINBIND_STARGETS=""
12762 WINBIND_LTARGETS=""
12763 WINBIND_PAM_PROGS=""
12766 # Substitution time!
12773 #################################################
12774 # final configure stuff
12776 echo "checking configure summary"
12777 if test "$cross_compiling" = yes; then
12780 cat > conftest.$ac_ext <<EOF
12781 #line 12782 "configure"
12782 #include "confdefs.h"
12783 #include "${srcdir-.}/tests/summary.c"
12785 if { (eval echo configure:12786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12787 echo "configure OK";
12789 echo "configure: failed program was:" >&5
12790 cat conftest.$ac_ext >&5
12792 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12802 cat > confcache <<\EOF
12803 # This file is a shell script that caches the results of configure
12804 # tests run on this system so they can be shared between configure
12805 # scripts and configure runs. It is not useful on other systems.
12806 # If it contains results you don't want to keep, you may remove or edit it.
12808 # By default, configure uses ./config.cache as the cache file,
12809 # creating it if it does not exist already. You can give configure
12810 # the --cache-file=FILE option to use a different cache file; that is
12811 # what configure does when it calls configure scripts in
12812 # subdirectories, so they share the cache.
12813 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12814 # config.status only pays attention to the cache file if you give it the
12815 # --recheck option to rerun configure.
12818 # The following way of writing the cache mishandles newlines in values,
12819 # but we know of no workaround that is simple, portable, and efficient.
12820 # So, don't put newlines in cache variables' values.
12821 # Ultrix sh set writes to stderr and can't be redirected directly,
12822 # and sets the high bit in the cache file unless we assign to the vars.
12824 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12826 # `set' does not quote correctly, so add quotes (double-quote substitution
12827 # turns \\\\ into \\, and sed turns \\ into \).
12829 -e "s/'/'\\\\''/g" \
12830 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12833 # `set' quotes correctly as required by POSIX, so do not add quotes.
12834 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12837 if cmp -s $cache_file confcache; then
12840 if test -w $cache_file; then
12841 echo "updating cache $cache_file"
12842 cat confcache > $cache_file
12844 echo "not updating unwritable cache $cache_file"
12849 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12851 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12852 # Let make expand exec_prefix.
12853 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12855 # Any assignment to VPATH causes Sun make to only execute
12856 # the first set of double-colon rules, so remove it if not needed.
12857 # If there is a colon in the path, we need to keep it.
12858 if test "x$srcdir" = x.; then
12859 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12862 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12864 DEFS=-DHAVE_CONFIG_H
12866 # Without the "./", some shells look in PATH for config.status.
12867 : ${CONFIG_STATUS=./config.status}
12869 echo creating $CONFIG_STATUS
12870 rm -f $CONFIG_STATUS
12871 cat > $CONFIG_STATUS <<EOF
12873 # Generated automatically by configure.
12874 # Run this file to recreate the current configuration.
12875 # This directory was configured as follows,
12876 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12878 # $0 $ac_configure_args
12880 # Compiler output produced by configure, useful for debugging
12881 # configure, is in ./config.log if it exists.
12883 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12886 case "\$ac_option" in
12887 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12888 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12889 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12890 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12891 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12893 -help | --help | --hel | --he | --h)
12894 echo "\$ac_cs_usage"; exit 0 ;;
12895 *) echo "\$ac_cs_usage"; exit 1 ;;
12899 ac_given_srcdir=$srcdir
12900 ac_given_INSTALL="$INSTALL"
12902 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12904 cat >> $CONFIG_STATUS <<EOF
12906 # Protect against being on the right side of a sed subst in config.status.
12907 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12908 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12912 s%@CFLAGS@%$CFLAGS%g
12913 s%@CPPFLAGS@%$CPPFLAGS%g
12914 s%@CXXFLAGS@%$CXXFLAGS%g
12915 s%@FFLAGS@%$FFLAGS%g
12917 s%@LDFLAGS@%$LDFLAGS%g
12919 s%@exec_prefix@%$exec_prefix%g
12920 s%@prefix@%$prefix%g
12921 s%@program_transform_name@%$program_transform_name%g
12922 s%@bindir@%$bindir%g
12923 s%@sbindir@%$sbindir%g
12924 s%@libexecdir@%$libexecdir%g
12925 s%@datadir@%$datadir%g
12926 s%@sysconfdir@%$sysconfdir%g
12927 s%@sharedstatedir@%$sharedstatedir%g
12928 s%@localstatedir@%$localstatedir%g
12929 s%@libdir@%$libdir%g
12930 s%@includedir@%$includedir%g
12931 s%@oldincludedir@%$oldincludedir%g
12932 s%@infodir@%$infodir%g
12933 s%@mandir@%$mandir%g
12934 s%@RUNPROG@%$RUNPROG%g
12935 s%@MPROGS@%$MPROGS%g
12936 s%@LDSHFLAGS@%$LDSHFLAGS%g
12938 s%@HOST_OS@%$HOST_OS%g
12939 s%@PAM_MOD@%$PAM_MOD%g
12941 s%@WRAP32@%$WRAP32%g
12942 s%@PICFLAG@%$PICFLAG%g
12943 s%@PICSUFFIX@%$PICSUFFIX%g
12944 s%@POBAD_CC@%$POBAD_CC%g
12945 s%@SHLIBEXT@%$SHLIBEXT%g
12946 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
12948 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12949 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12950 s%@INSTALL_DATA@%$INSTALL_DATA%g
12952 s%@BROKEN_CC@%$BROKEN_CC%g
12954 s%@host_alias@%$host_alias%g
12955 s%@host_cpu@%$host_cpu%g
12956 s%@host_vendor@%$host_vendor%g
12957 s%@host_os@%$host_os%g
12958 s%@target@%$target%g
12959 s%@target_alias@%$target_alias%g
12960 s%@target_cpu@%$target_cpu%g
12961 s%@target_vendor@%$target_vendor%g
12962 s%@target_os@%$target_os%g
12964 s%@build_alias@%$build_alias%g
12965 s%@build_cpu@%$build_cpu%g
12966 s%@build_vendor@%$build_vendor%g
12967 s%@build_os@%$build_os%g
12969 s%@LIBOBJS@%$LIBOBJS%g
12970 s%@TERMLIBS@%$TERMLIBS%g
12971 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
12973 s%@QUOTAOBJS@%$QUOTAOBJS%g
12974 s%@privatedir@%$privatedir%g
12975 s%@lockdir@%$lockdir%g
12976 s%@swatdir@%$swatdir%g
12977 s%@manlangs@%$manlangs%g
12978 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
12979 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
12980 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
12981 s%@WINBIND_PAM_PROGS@%$WINBIND_PAM_PROGS%g
12982 s%@builddir@%$builddir%g
12987 cat >> $CONFIG_STATUS <<\EOF
12989 # Split the substitutions into bite-sized pieces for seds with
12990 # small command number limits, like on Digital OSF/1 and HP-UX.
12991 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12992 ac_file=1 # Number of current file.
12993 ac_beg=1 # First line for current file.
12994 ac_end=$ac_max_sed_cmds # Line after last line for current file.
12997 while $ac_more_lines; do
12998 if test $ac_beg -gt 1; then
12999 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13001 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13003 if test ! -s conftest.s$ac_file; then
13004 ac_more_lines=false
13005 rm -f conftest.s$ac_file
13007 if test -z "$ac_sed_cmds"; then
13008 ac_sed_cmds="sed -f conftest.s$ac_file"
13010 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13012 ac_file=`expr $ac_file + 1`
13014 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13017 if test -z "$ac_sed_cmds"; then
13022 cat >> $CONFIG_STATUS <<EOF
13024 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
13026 cat >> $CONFIG_STATUS <<\EOF
13027 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13028 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13030 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13031 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13032 *) ac_file_in="${ac_file}.in" ;;
13035 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13037 # Remove last slash and all that follows it. Not all systems have dirname.
13038 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13039 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13040 # The file is in a subdirectory.
13041 test ! -d "$ac_dir" && mkdir "$ac_dir"
13042 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13043 # A "../" for each directory in $ac_dir_suffix.
13044 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13046 ac_dir_suffix= ac_dots=
13049 case "$ac_given_srcdir" in
13051 if test -z "$ac_dots"; then top_srcdir=.
13052 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13053 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13054 *) # Relative path.
13055 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13056 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13059 case "$ac_given_INSTALL" in
13060 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13061 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13064 echo creating "$ac_file"
13066 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13068 *Makefile*) ac_comsub="1i\\
13069 # $configure_input" ;;
13073 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13075 s%@configure_input@%$configure_input%g
13076 s%@srcdir@%$srcdir%g
13077 s%@top_srcdir@%$top_srcdir%g
13078 s%@INSTALL@%$INSTALL%g
13079 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13083 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13084 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13086 # ac_d sets the value in "#define NAME VALUE" lines.
13087 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13088 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13091 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13092 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13093 ac_uB='\([ ]\)%\1#\2define\3'
13096 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13097 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13098 ac_eB='$%\1#\2define\3'
13102 if test "${CONFIG_HEADERS+set}" != set; then
13104 cat >> $CONFIG_STATUS <<EOF
13105 CONFIG_HEADERS="include/config.h"
13107 cat >> $CONFIG_STATUS <<\EOF
13109 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13110 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13112 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13113 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13114 *) ac_file_in="${ac_file}.in" ;;
13117 echo creating $ac_file
13119 rm -f conftest.frag conftest.in conftest.out
13120 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13121 cat $ac_file_inputs > conftest.in
13125 # Transform confdefs.h into a sed script conftest.vals that substitutes
13126 # the proper values into config.h.in to produce config.h. And first:
13127 # Protect against being on the right side of a sed subst in config.status.
13128 # Protect against being in an unquoted here document in config.status.
13129 rm -f conftest.vals
13130 cat > conftest.hdr <<\EOF
13133 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13137 sed -n -f conftest.hdr confdefs.h > conftest.vals
13140 # This sed command replaces #undef with comments. This is necessary, for
13141 # example, in the case of _POSIX_SOURCE, which is predefined and required
13142 # on some systems where configure will not decide to define it.
13143 cat >> conftest.vals <<\EOF
13144 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13147 # Break up conftest.vals because some shells have a limit on
13148 # the size of here documents, and old seds have small limits too.
13150 rm -f conftest.tail
13153 ac_lines=`grep -c . conftest.vals`
13154 # grep -c gives empty output for an empty file on some AIX systems.
13155 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13156 # Write a limited-size here document to conftest.frag.
13157 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13158 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13160 sed -f conftest.frag conftest.in > conftest.out
13162 mv conftest.out conftest.in
13163 ' >> $CONFIG_STATUS
13164 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13165 rm -f conftest.vals
13166 mv conftest.tail conftest.vals
13168 rm -f conftest.vals
13170 cat >> $CONFIG_STATUS <<\EOF
13171 rm -f conftest.frag conftest.h
13172 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13173 cat conftest.in >> conftest.h
13175 if cmp -s $ac_file conftest.h 2>/dev/null; then
13176 echo "$ac_file is unchanged"
13179 # Remove last slash and all that follows it. Not all systems have dirname.
13180 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13181 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13182 # The file is in a subdirectory.
13183 test ! -d "$ac_dir" && mkdir "$ac_dir"
13186 mv conftest.h $ac_file
13191 cat >> $CONFIG_STATUS <<EOF
13194 cat >> $CONFIG_STATUS <<\EOF
13198 chmod +x $CONFIG_STATUS
13199 rm -fr confdefs* $ac_clean_files
13200 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1