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 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
20 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
22 --with-smbwrapper Include SMB wrapper support (default=no) "
24 --with-afs Include AFS support (default=no) "
26 --with-dce-dfs Include DCE/DFS support (default=no)"
28 --with-krb4=base-dir Include Kerberos IV support (default=no)"
30 --with-krb5=base-dir Include Kerberos 5 support (default=no)"
32 --with-automount Include AUTOMOUNT support (default=no)"
34 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
36 --with-pam Include PAM password database support (default=no)"
38 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
40 --with-tdbsam Include experimental TDB password database (default=no)"
42 --with-ldapsam Include Experimental LDAP-Sam support (default=no)"
44 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
46 --with-ssl Include SSL support (default=no)
47 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
49 --with-syslog Include experimental SYSLOG support (default=no)"
51 --with-profiling-data Include gathering source code profile information (default=no)"
53 --with-quotas Include experimental disk-quota support (default=no)"
55 --with-utmp Include experimental utmp accounting (default=no)"
57 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
59 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
61 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
63 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
65 --with-acl-support Include ACL support (default=no)"
67 --with-winbind Build winbind (default, if supported by OS)"
69 # Initialize some variables set by options.
70 # The variables have the same names as the options, with
71 # dashes changed to underlines.
73 cache_file=./config.cache
82 program_transform_name=s,x,x,
90 bindir='${exec_prefix}/bin'
91 sbindir='${exec_prefix}/sbin'
92 libexecdir='${exec_prefix}/libexec'
93 datadir='${prefix}/share'
94 sysconfdir='${prefix}/etc'
95 sharedstatedir='${prefix}/com'
96 localstatedir='${prefix}/var'
97 libdir='${exec_prefix}/lib'
98 includedir='${prefix}/include'
99 oldincludedir='/usr/include'
100 infodir='${prefix}/info'
101 mandir='${prefix}/man'
103 # Initialize some other variables.
106 SHELL=${CONFIG_SHELL-/bin/sh}
107 # Maximum number of lines to put in a shell here document.
114 # If the previous option needs an argument, assign it.
115 if test -n "$ac_prev"; then
116 eval "$ac_prev=\$ac_option"
122 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126 # Accept the important Cygnus configure options, so we can diagnose typos.
130 -bindir | --bindir | --bindi | --bind | --bin | --bi)
132 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
133 bindir="$ac_optarg" ;;
135 -build | --build | --buil | --bui | --bu)
137 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
138 build="$ac_optarg" ;;
140 -cache-file | --cache-file | --cache-fil | --cache-fi \
141 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
142 ac_prev=cache_file ;;
143 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
144 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
145 cache_file="$ac_optarg" ;;
147 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
149 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
151 datadir="$ac_optarg" ;;
153 -disable-* | --disable-*)
154 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}=no" ;;
162 -enable-* | --enable-*)
163 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
173 eval "enable_${ac_feature}='$ac_optarg'" ;;
175 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
176 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
177 | --exec | --exe | --ex)
178 ac_prev=exec_prefix ;;
179 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
180 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
181 | --exec=* | --exe=* | --ex=*)
182 exec_prefix="$ac_optarg" ;;
184 -gas | --gas | --ga | --g)
185 # Obsolete; use --with-gas.
188 -help | --help | --hel | --he)
189 # Omit some internal or obsolete options to make the list less imposing.
190 # This message is too long to be a string in the A/UX 3.1 sh.
192 Usage: configure [options] [host]
193 Options: [defaults in brackets after descriptions]
195 --cache-file=FILE cache test results in FILE
196 --help print this message
197 --no-create do not create output files
198 --quiet, --silent do not print \`checking...' messages
199 --version print the version of autoconf that created configure
200 Directory and file names:
201 --prefix=PREFIX install architecture-independent files in PREFIX
203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
205 --bindir=DIR user executables in DIR [EPREFIX/bin]
206 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
207 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
208 --datadir=DIR read-only architecture-independent data in DIR
210 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
211 --sharedstatedir=DIR modifiable architecture-independent data in DIR
213 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
214 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
215 --includedir=DIR C header files in DIR [PREFIX/include]
216 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
217 --infodir=DIR info documentation in DIR [PREFIX/info]
218 --mandir=DIR man documentation in DIR [PREFIX/man]
219 --srcdir=DIR find the sources in DIR [configure dir or ..]
220 --program-prefix=PREFIX prepend PREFIX to installed program names
221 --program-suffix=SUFFIX append SUFFIX to installed program names
222 --program-transform-name=PROGRAM
223 run sed PROGRAM on installed program names
227 --build=BUILD configure for building on BUILD [BUILD=HOST]
228 --host=HOST configure for HOST [guessed]
229 --target=TARGET configure for TARGET [TARGET=HOST]
230 Features and packages:
231 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
232 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
233 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
234 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
235 --x-includes=DIR X include files are in DIR
236 --x-libraries=DIR X library files are in DIR
238 if test -n "$ac_help"; then
239 echo "--enable and --with options recognized:$ac_help"
243 -host | --host | --hos | --ho)
245 -host=* | --host=* | --hos=* | --ho=*)
248 -includedir | --includedir | --includedi | --included | --include \
249 | --includ | --inclu | --incl | --inc)
250 ac_prev=includedir ;;
251 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
252 | --includ=* | --inclu=* | --incl=* | --inc=*)
253 includedir="$ac_optarg" ;;
255 -infodir | --infodir | --infodi | --infod | --info | --inf)
257 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
258 infodir="$ac_optarg" ;;
260 -libdir | --libdir | --libdi | --libd)
262 -libdir=* | --libdir=* | --libdi=* | --libd=*)
263 libdir="$ac_optarg" ;;
265 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
266 | --libexe | --libex | --libe)
267 ac_prev=libexecdir ;;
268 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
269 | --libexe=* | --libex=* | --libe=*)
270 libexecdir="$ac_optarg" ;;
272 -localstatedir | --localstatedir | --localstatedi | --localstated \
273 | --localstate | --localstat | --localsta | --localst \
274 | --locals | --local | --loca | --loc | --lo)
275 ac_prev=localstatedir ;;
276 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
277 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
278 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
279 localstatedir="$ac_optarg" ;;
281 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
283 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
284 mandir="$ac_optarg" ;;
287 # Obsolete; use --without-fp.
290 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
294 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
295 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
298 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
299 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
300 | --oldin | --oldi | --old | --ol | --o)
301 ac_prev=oldincludedir ;;
302 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
303 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
304 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
305 oldincludedir="$ac_optarg" ;;
307 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
309 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
310 prefix="$ac_optarg" ;;
312 -program-prefix | --program-prefix | --program-prefi | --program-pref \
313 | --program-pre | --program-pr | --program-p)
314 ac_prev=program_prefix ;;
315 -program-prefix=* | --program-prefix=* | --program-prefi=* \
316 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
317 program_prefix="$ac_optarg" ;;
319 -program-suffix | --program-suffix | --program-suffi | --program-suff \
320 | --program-suf | --program-su | --program-s)
321 ac_prev=program_suffix ;;
322 -program-suffix=* | --program-suffix=* | --program-suffi=* \
323 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
324 program_suffix="$ac_optarg" ;;
326 -program-transform-name | --program-transform-name \
327 | --program-transform-nam | --program-transform-na \
328 | --program-transform-n | --program-transform- \
329 | --program-transform | --program-transfor \
330 | --program-transfo | --program-transf \
331 | --program-trans | --program-tran \
332 | --progr-tra | --program-tr | --program-t)
333 ac_prev=program_transform_name ;;
334 -program-transform-name=* | --program-transform-name=* \
335 | --program-transform-nam=* | --program-transform-na=* \
336 | --program-transform-n=* | --program-transform-=* \
337 | --program-transform=* | --program-transfor=* \
338 | --program-transfo=* | --program-transf=* \
339 | --program-trans=* | --program-tran=* \
340 | --progr-tra=* | --program-tr=* | --program-t=*)
341 program_transform_name="$ac_optarg" ;;
343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
344 | -silent | --silent | --silen | --sile | --sil)
347 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
349 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
351 sbindir="$ac_optarg" ;;
353 -sharedstatedir | --sharedstatedir | --sharedstatedi \
354 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
355 | --sharedst | --shareds | --shared | --share | --shar \
357 ac_prev=sharedstatedir ;;
358 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
359 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
360 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
362 sharedstatedir="$ac_optarg" ;;
364 -site | --site | --sit)
366 -site=* | --site=* | --sit=*)
369 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
371 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
372 srcdir="$ac_optarg" ;;
374 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
375 | --syscon | --sysco | --sysc | --sys | --sy)
376 ac_prev=sysconfdir ;;
377 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
378 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
379 sysconfdir="$ac_optarg" ;;
381 -target | --target | --targe | --targ | --tar | --ta | --t)
383 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
384 target="$ac_optarg" ;;
386 -v | -verbose | --verbose | --verbos | --verbo | --verb)
389 -version | --version | --versio | --versi | --vers)
390 echo "configure generated by autoconf version 2.13"
394 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package=`echo $ac_package| sed 's/-/_/g'`
404 eval "with_${ac_package}='$ac_optarg'" ;;
406 -without-* | --without-*)
407 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}=no" ;;
416 # Obsolete; use --with-x.
419 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
420 | --x-incl | --x-inc | --x-in | --x-i)
421 ac_prev=x_includes ;;
422 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
423 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
424 x_includes="$ac_optarg" ;;
426 -x-libraries | --x-libraries | --x-librarie | --x-librari \
427 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
428 ac_prev=x_libraries ;;
429 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
430 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
431 x_libraries="$ac_optarg" ;;
433 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
438 echo "configure: warning: $ac_option: invalid host type" 1>&2
440 if test "x$nonopt" != xNONE; then
441 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
449 if test -n "$ac_prev"; then
450 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
453 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
455 # File descriptor usage:
458 # 2 errors and warnings
459 # 3 some systems may open it to /dev/tty
460 # 4 used on the Kubota Titan
461 # 6 checking for... messages and results
462 # 5 compiler messages saved in config.log
463 if test "$silent" = yes; then
471 This file contains any messages produced by compilers while
472 running configure, to aid debugging if configure makes a mistake.
475 # Strip out --no-create and --no-recursion so they do not pile up.
476 # Also quote any args containing shell metacharacters.
481 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482 | --no-cr | --no-c) ;;
483 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
484 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
485 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
486 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
487 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
492 # Only set these to C if already set. These must not be set unconditionally
493 # because not all systems understand e.g. LANG=C (notably SCO).
494 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
495 # Non-C LC_CTYPE values break the ctype check.
496 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
497 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
498 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
499 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
501 # confdefs.h avoids OS command line length limits that DEFS can exceed.
502 rm -rf conftest* confdefs.h
503 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
506 # A filename unique to this package, relative to the directory that
507 # configure is in, which we can look for to find out if srcdir is correct.
508 ac_unique_file=include/includes.h
510 # Find the source files, if location was not specified.
511 if test -z "$srcdir"; then
512 ac_srcdir_defaulted=yes
513 # Try the directory containing this script, then its parent.
515 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
516 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
518 if test ! -r $srcdir/$ac_unique_file; then
522 ac_srcdir_defaulted=no
524 if test ! -r $srcdir/$ac_unique_file; then
525 if test "$ac_srcdir_defaulted" = yes; then
526 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
528 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
531 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
533 # Prefer explicitly selected file to automatically selected ones.
534 if test -z "$CONFIG_SITE"; then
535 if test "x$prefix" != xNONE; then
536 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
538 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
541 for ac_site_file in $CONFIG_SITE; do
542 if test -r "$ac_site_file"; then
543 echo "loading site script $ac_site_file"
548 if test -r "$cache_file"; then
549 echo "loading cache $cache_file"
552 echo "creating cache $cache_file"
557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
558 ac_cpp='$CPP $CPPFLAGS'
559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
561 cross_compiling=$ac_cv_prog_cc_cross
565 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
566 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
567 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
574 ac_n= ac_c='\c' ac_t=
579 # we want to be compatibe with older versions of Samba
597 # compile with optimisation and without debugging by default
598 CFLAGS="-O ${CFLAGS}"
600 # Check whether --enable-debug or --disable-debug was given.
601 if test "${enable_debug+set}" = set; then
602 enableval="$enable_debug"
603 if eval "test x$enable_debug = xyes"; then
604 CFLAGS="${CFLAGS} -g"
610 # Extract the first word of "gcc", so it can be a program name with args.
611 set dummy gcc; ac_word=$2
612 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
613 echo "configure:614: checking for $ac_word" >&5
614 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
615 echo $ac_n "(cached) $ac_c" 1>&6
617 if test -n "$CC"; then
618 ac_cv_prog_CC="$CC" # Let the user override the test.
620 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
622 for ac_dir in $ac_dummy; do
623 test -z "$ac_dir" && ac_dir=.
624 if test -f $ac_dir/$ac_word; then
633 if test -n "$CC"; then
634 echo "$ac_t""$CC" 1>&6
636 echo "$ac_t""no" 1>&6
639 if test -z "$CC"; then
640 # Extract the first word of "cc", so it can be a program name with args.
641 set dummy cc; ac_word=$2
642 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
643 echo "configure:644: checking for $ac_word" >&5
644 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
645 echo $ac_n "(cached) $ac_c" 1>&6
647 if test -n "$CC"; then
648 ac_cv_prog_CC="$CC" # Let the user override the test.
650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
653 for ac_dir in $ac_dummy; do
654 test -z "$ac_dir" && ac_dir=.
655 if test -f $ac_dir/$ac_word; then
656 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
665 if test $ac_prog_rejected = yes; then
666 # We found a bogon in the path, so make sure we never use it.
667 set dummy $ac_cv_prog_CC
669 if test $# -gt 0; then
670 # We chose a different compiler from the bogus one.
671 # However, it has the same basename, so the bogon will be chosen
672 # first if we set CC to just the basename; use the full file name.
674 set dummy "$ac_dir/$ac_word" "$@"
682 if test -n "$CC"; then
683 echo "$ac_t""$CC" 1>&6
685 echo "$ac_t""no" 1>&6
688 if test -z "$CC"; then
691 # Extract the first word of "cl", so it can be a program name with args.
692 set dummy cl; ac_word=$2
693 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
694 echo "configure:695: checking for $ac_word" >&5
695 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
696 echo $ac_n "(cached) $ac_c" 1>&6
698 if test -n "$CC"; then
699 ac_cv_prog_CC="$CC" # Let the user override the test.
701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
703 for ac_dir in $ac_dummy; do
704 test -z "$ac_dir" && ac_dir=.
705 if test -f $ac_dir/$ac_word; then
714 if test -n "$CC"; then
715 echo "$ac_t""$CC" 1>&6
717 echo "$ac_t""no" 1>&6
722 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
725 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
726 echo "configure:727: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
729 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
730 ac_cpp='$CPP $CPPFLAGS'
731 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
732 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
733 cross_compiling=$ac_cv_prog_cc_cross
735 cat > conftest.$ac_ext << EOF
737 #line 738 "configure"
738 #include "confdefs.h"
742 if { (eval echo configure:743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
743 ac_cv_prog_cc_works=yes
744 # If we can't run a trivial program, we are probably using a cross compiler.
745 if (./conftest; exit) 2>/dev/null; then
746 ac_cv_prog_cc_cross=no
748 ac_cv_prog_cc_cross=yes
751 echo "configure: failed program was:" >&5
752 cat conftest.$ac_ext >&5
753 ac_cv_prog_cc_works=no
757 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
758 ac_cpp='$CPP $CPPFLAGS'
759 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
760 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
761 cross_compiling=$ac_cv_prog_cc_cross
763 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
764 if test $ac_cv_prog_cc_works = no; then
765 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
767 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
768 echo "configure:769: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
769 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
770 cross_compiling=$ac_cv_prog_cc_cross
772 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
773 echo "configure:774: checking whether we are using GNU C" >&5
774 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
775 echo $ac_n "(cached) $ac_c" 1>&6
777 cat > conftest.c <<EOF
782 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
789 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
791 if test $ac_cv_prog_gcc = yes; then
797 ac_test_CFLAGS="${CFLAGS+set}"
798 ac_save_CFLAGS="$CFLAGS"
800 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
801 echo "configure:802: checking whether ${CC-cc} accepts -g" >&5
802 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
803 echo $ac_n "(cached) $ac_c" 1>&6
805 echo 'void f(){}' > conftest.c
806 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
815 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
816 if test "$ac_test_CFLAGS" = set; then
817 CFLAGS="$ac_save_CFLAGS"
818 elif test $ac_cv_prog_cc_g = yes; then
819 if test "$GCC" = yes; then
825 if test "$GCC" = yes; then
833 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
834 if test -f $ac_dir/install-sh; then
836 ac_install_sh="$ac_aux_dir/install-sh -c"
838 elif test -f $ac_dir/install.sh; then
840 ac_install_sh="$ac_aux_dir/install.sh -c"
844 if test -z "$ac_aux_dir"; then
845 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
847 ac_config_guess=$ac_aux_dir/config.guess
848 ac_config_sub=$ac_aux_dir/config.sub
849 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
851 # Find a good install program. We prefer a C program (faster),
852 # so one script is as good as another. But avoid the broken or
853 # incompatible versions:
854 # SysV /etc/install, /usr/sbin/install
855 # SunOS /usr/etc/install
858 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
859 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
860 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
861 # ./install, which can be erroneously created by make from ./install.sh.
862 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
863 echo "configure:864: checking for a BSD compatible install" >&5
864 if test -z "$INSTALL"; then
865 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
866 echo $ac_n "(cached) $ac_c" 1>&6
868 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
869 for ac_dir in $PATH; do
870 # Account for people who put trailing slashes in PATH elements.
872 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
874 # OSF1 and SCO ODT 3.0 have their own names for install.
875 # Don't use installbsd from OSF since it installs stuff as root
877 for ac_prog in ginstall scoinst install; do
878 if test -f $ac_dir/$ac_prog; then
879 if test $ac_prog = install &&
880 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
881 # AIX install. It has an incompatible calling convention.
884 ac_cv_path_install="$ac_dir/$ac_prog -c"
895 if test "${ac_cv_path_install+set}" = set; then
896 INSTALL="$ac_cv_path_install"
898 # As a last resort, use the slow shell script. We don't cache a
899 # path for INSTALL within a source directory, because that will
900 # break other packages using the cache if that directory is
901 # removed, or if the path is relative.
902 INSTALL="$ac_install_sh"
905 echo "$ac_t""$INSTALL" 1>&6
907 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
908 # It thinks the first close brace ends the variable substitution.
909 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
911 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
913 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
915 for ac_prog in mawk gawk nawk awk
917 # Extract the first word of "$ac_prog", so it can be a program name with args.
918 set dummy $ac_prog; ac_word=$2
919 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
920 echo "configure:921: checking for $ac_word" >&5
921 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
922 echo $ac_n "(cached) $ac_c" 1>&6
924 if test -n "$AWK"; then
925 ac_cv_prog_AWK="$AWK" # Let the user override the test.
927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
929 for ac_dir in $ac_dummy; do
930 test -z "$ac_dir" && ac_dir=.
931 if test -f $ac_dir/$ac_word; then
932 ac_cv_prog_AWK="$ac_prog"
939 AWK="$ac_cv_prog_AWK"
940 if test -n "$AWK"; then
941 echo "$ac_t""$AWK" 1>&6
943 echo "$ac_t""no" 1>&6
946 test -n "$AWK" && break
950 if test "x$CC" != xcc; then
951 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
952 echo "configure:953: checking whether $CC and cc understand -c and -o together" >&5
954 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
955 echo "configure:956: checking whether cc understands -c and -o together" >&5
957 set dummy $CC; ac_cc="`echo $2 |
958 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
959 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
960 echo $ac_n "(cached) $ac_c" 1>&6
962 echo 'foo(){}' > conftest.c
963 # Make sure it works both with $CC and with simple cc.
964 # We do the test twice because some compilers refuse to overwrite an
965 # existing .o file with -o, though they will create one.
966 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
967 if { (eval echo configure:968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
968 test -f conftest.o && { (eval echo configure:969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
970 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
971 if test "x$CC" != xcc; then
972 # Test first that cc exists at all.
973 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
974 ac_try='cc -c conftest.c -o conftest.o 1>&5'
975 if { (eval echo configure:976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
976 test -f conftest.o && { (eval echo configure:977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
981 # cc exists but doesn't like -o.
982 eval ac_cv_prog_cc_${ac_cc}_c_o=no
987 eval ac_cv_prog_cc_${ac_cc}_c_o=no
992 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
993 echo "$ac_t""yes" 1>&6
995 echo "$ac_t""no" 1>&6
996 cat >> confdefs.h <<\EOF
997 #define NO_MINUS_C_MINUS_O 1
1002 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1009 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1010 echo "configure:1011: checking that the C compiler understands volatile" >&5
1011 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1012 echo $ac_n "(cached) $ac_c" 1>&6
1015 cat > conftest.$ac_ext <<EOF
1016 #line 1017 "configure"
1017 #include "confdefs.h"
1018 #include <sys/types.h>
1023 if { (eval echo configure:1024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1025 samba_cv_volatile=yes
1027 echo "configure: failed program was:" >&5
1028 cat conftest.$ac_ext >&5
1030 samba_cv_volatile=no
1035 echo "$ac_t""$samba_cv_volatile" 1>&6
1036 if test x"$samba_cv_volatile" = x"yes"; then
1037 cat >> confdefs.h <<\EOF
1038 #define HAVE_VOLATILE 1
1045 # Do some error checking and defaulting for the host and target type.
1047 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1050 # 1. You are not allowed to specify --host, --target, and nonopt at the
1052 # 2. Host defaults to nonopt.
1053 # 3. If nonopt is not specified, then host defaults to the current host,
1054 # as determined by config.guess.
1055 # 4. Target and build default to nonopt.
1056 # 5. If nonopt is not specified, then target and build default to host.
1058 # The aliases save the names the user supplied, while $host etc.
1059 # will get canonicalized.
1060 case $host---$target---$nonopt in
1061 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1062 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1066 # Make sure we can run config.sub.
1067 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1068 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1071 echo $ac_n "checking host system type""... $ac_c" 1>&6
1072 echo "configure:1073: checking host system type" >&5
1075 case "$host_alias" in
1079 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1080 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1082 *) host_alias=$nonopt ;;
1086 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1087 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1088 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1089 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1090 echo "$ac_t""$host" 1>&6
1092 echo $ac_n "checking target system type""... $ac_c" 1>&6
1093 echo "configure:1094: checking target system type" >&5
1095 target_alias=$target
1096 case "$target_alias" in
1099 NONE) target_alias=$host_alias ;;
1100 *) target_alias=$nonopt ;;
1104 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1105 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1106 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1107 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1108 echo "$ac_t""$target" 1>&6
1110 echo $ac_n "checking build system type""... $ac_c" 1>&6
1111 echo "configure:1112: checking build system type" >&5
1114 case "$build_alias" in
1117 NONE) build_alias=$host_alias ;;
1118 *) build_alias=$nonopt ;;
1122 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1123 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1124 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1125 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1126 echo "$ac_t""$build" 1>&6
1128 test "$host_alias" != "$target_alias" &&
1129 test "$program_prefix$program_suffix$program_transform_name" = \
1131 program_prefix=${target_alias}-
1135 *irix6*) cat >> confdefs.h <<\EOF
1136 #include <standards.h>
1144 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1145 echo "configure:1146: checking config.cache system type" >&5
1146 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1147 test x"$ac_cv_host_system_type" != x"$host"; } ||
1148 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1149 test x"$ac_cv_build_system_type" != x"$build"; } ||
1150 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1151 test x"$ac_cv_target_system_type" != x"$target"; }; then
1152 echo "$ac_t""different" 1>&6
1153 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1155 echo "$ac_t""same" 1>&6
1157 ac_cv_host_system_type="$host"
1158 ac_cv_build_system_type="$build"
1159 ac_cv_target_system_type="$target"
1163 # Config CPPFLAG settings for strange OS's that must be set
1164 # before other tests.
1167 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1169 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1170 echo "configure:1171: checking whether ${CC-cc} accepts -Ae" >&5
1171 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1174 echo 'void f(){}' > conftest.c
1175 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1176 ac_cv_prog_cc_Ae=yes
1184 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1185 # mmap on HPUX is completely broken...
1186 cat >> confdefs.h <<\EOF
1187 #define MMAP_BLACKLIST 1
1190 if test $ac_cv_prog_cc_Ae = yes; then
1191 CPPFLAGS="$CPPFLAGS -Ae"
1194 # Defines needed for HPUX support.
1195 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1196 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1200 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1201 cat >> confdefs.h <<\EOF
1202 #define USE_BOTH_CRYPT_CALLS 1
1207 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1208 cat >> confdefs.h <<\EOF
1209 #define USE_BOTH_CRYPT_CALLS 1
1216 # AIX4.x doesn't even admit to having large
1217 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1220 echo "$ac_t""enabling large file support" 1>&6
1221 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1224 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1225 # to the existance of large files..
1226 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1227 # recommendations on large file support, however it makes the
1228 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1229 # recommendation makes the compile fail on gcc2.7. JRA.
1234 echo "$ac_t""enabling large file support" 1>&6
1235 if test "$ac_cv_prog_gcc" = yes; then
1236 ${CC-cc} -v >conftest.c 2>&1
1237 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1239 case "$ac_cv_gcc_compiler_version_number" in
1240 *"gcc version 2.6"*|*"gcc version 2.7"*)
1241 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1244 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1248 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1254 # Tests needed for SINIX large file support.
1257 if test $host = mips-sni-sysv4 ; then
1258 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1259 echo "configure:1260: checking for LFS support" >&5
1260 old_CPPFLAGS="$CPPFLAGS"
1261 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1262 if test "$cross_compiling" = yes; then
1263 SINIX_LFS_SUPPORT=cross
1265 cat > conftest.$ac_ext <<EOF
1266 #line 1267 "configure"
1267 #include "confdefs.h"
1271 #if _LFS64_LARGEFILE == 1
1278 if { (eval echo configure:1279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1280 SINIX_LFS_SUPPORT=yes
1282 echo "configure: failed program was:" >&5
1283 cat conftest.$ac_ext >&5
1285 SINIX_LFS_SUPPORT=no
1290 CPPFLAGS="$old_CPPFLAGS"
1291 if test x$SINIX_LFS_SUPPORT = xyes ; then
1292 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1293 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1294 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1295 LIBS="`getconf LFS64_LIBS` $LIBS"
1297 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1301 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1304 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1305 echo "configure:1306: checking for LFS support" >&5
1306 old_CPPFLAGS="$CPPFLAGS"
1307 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1308 if test "$cross_compiling" = yes; then
1309 LINUX_LFS_SUPPORT=cross
1311 cat > conftest.$ac_ext <<EOF
1312 #line 1313 "configure"
1313 #include "confdefs.h"
1316 #include <sys/utsname.h>
1318 #if _LFS64_LARGEFILE == 1
1323 /* Ensure this is glibc 2.2 or higher */
1324 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1325 int libc_major = __GLIBC__;
1326 int libc_minor = __GLIBC_MINOR__;
1334 /* Ensure this is kernel 2.4 or higher */
1337 release = uts.release;
1338 major = atoi(strsep(&release, "."));
1339 minor = atoi(strsep(&release, "."));
1341 if (major > 2 || (major == 2 && minor > 3))
1350 if { (eval echo configure:1351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1352 LINUX_LFS_SUPPORT=yes
1354 echo "configure: failed program was:" >&5
1355 cat conftest.$ac_ext >&5
1357 LINUX_LFS_SUPPORT=no
1362 CPPFLAGS="$old_CPPFLAGS"
1363 if test x$LINUX_LFS_SUPPORT = xyes ; then
1364 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1366 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1370 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1371 echo "configure:1372: checking for LFS support" >&5
1372 old_CPPFLAGS="$CPPFLAGS"
1373 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1374 if test "$cross_compiling" = yes; then
1375 GLIBC_LFS_SUPPORT=cross
1377 cat > conftest.$ac_ext <<EOF
1378 #line 1379 "configure"
1379 #include "confdefs.h"
1383 #if _LFS64_LARGEFILE == 1
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 GLIBC_LFS_SUPPORT=yes
1394 echo "configure: failed program was:" >&5
1395 cat conftest.$ac_ext >&5
1397 GLIBC_LFS_SUPPORT=no
1402 CPPFLAGS="$old_CPPFLAGS"
1403 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1404 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1406 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1411 echo $ac_n "checking for inline""... $ac_c" 1>&6
1412 echo "configure:1413: checking for inline" >&5
1413 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1414 echo $ac_n "(cached) $ac_c" 1>&6
1417 for ac_kw in inline __inline__ __inline; do
1418 cat > conftest.$ac_ext <<EOF
1419 #line 1420 "configure"
1420 #include "confdefs.h"
1426 if { (eval echo configure:1427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1428 ac_cv_c_inline=$ac_kw; break
1430 echo "configure: failed program was:" >&5
1431 cat conftest.$ac_ext >&5
1438 echo "$ac_t""$ac_cv_c_inline" 1>&6
1439 case "$ac_cv_c_inline" in
1441 no) cat >> confdefs.h <<\EOF
1445 *) cat >> confdefs.h <<EOF
1446 #define inline $ac_cv_c_inline
1451 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1452 echo "configure:1453: checking how to run the C preprocessor" >&5
1453 # On Suns, sometimes $CPP names a directory.
1454 if test -n "$CPP" && test -d "$CPP"; then
1457 if test -z "$CPP"; then
1458 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1459 echo $ac_n "(cached) $ac_c" 1>&6
1461 # This must be in double quotes, not single quotes, because CPP may get
1462 # substituted into the Makefile and "${CC-cc}" will confuse make.
1464 # On the NeXT, cc -E runs the code through the compiler's parser,
1465 # not just through cpp.
1466 cat > conftest.$ac_ext <<EOF
1467 #line 1468 "configure"
1468 #include "confdefs.h"
1472 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1473 { (eval echo configure:1474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1474 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1475 if test -z "$ac_err"; then
1479 echo "configure: failed program was:" >&5
1480 cat conftest.$ac_ext >&5
1482 CPP="${CC-cc} -E -traditional-cpp"
1483 cat > conftest.$ac_ext <<EOF
1484 #line 1485 "configure"
1485 #include "confdefs.h"
1489 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1490 { (eval echo configure:1491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1491 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1492 if test -z "$ac_err"; then
1496 echo "configure: failed program was:" >&5
1497 cat conftest.$ac_ext >&5
1499 CPP="${CC-cc} -nologo -E"
1500 cat > conftest.$ac_ext <<EOF
1501 #line 1502 "configure"
1502 #include "confdefs.h"
1506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1507 { (eval echo configure:1508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1509 if test -z "$ac_err"; then
1513 echo "configure: failed program was:" >&5
1514 cat conftest.$ac_ext >&5
1523 ac_cv_prog_CPP="$CPP"
1525 CPP="$ac_cv_prog_CPP"
1527 ac_cv_prog_CPP="$CPP"
1529 echo "$ac_t""$CPP" 1>&6
1531 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1532 echo "configure:1533: checking for ANSI C header files" >&5
1533 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1534 echo $ac_n "(cached) $ac_c" 1>&6
1536 cat > conftest.$ac_ext <<EOF
1537 #line 1538 "configure"
1538 #include "confdefs.h"
1544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1545 { (eval echo configure:1546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1546 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1547 if test -z "$ac_err"; then
1549 ac_cv_header_stdc=yes
1552 echo "configure: failed program was:" >&5
1553 cat conftest.$ac_ext >&5
1555 ac_cv_header_stdc=no
1559 if test $ac_cv_header_stdc = yes; then
1560 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1561 cat > conftest.$ac_ext <<EOF
1562 #line 1563 "configure"
1563 #include "confdefs.h"
1566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1567 egrep "memchr" >/dev/null 2>&1; then
1571 ac_cv_header_stdc=no
1577 if test $ac_cv_header_stdc = yes; then
1578 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1579 cat > conftest.$ac_ext <<EOF
1580 #line 1581 "configure"
1581 #include "confdefs.h"
1584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1585 egrep "free" >/dev/null 2>&1; then
1589 ac_cv_header_stdc=no
1595 if test $ac_cv_header_stdc = yes; then
1596 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1597 if test "$cross_compiling" = yes; then
1600 cat > conftest.$ac_ext <<EOF
1601 #line 1602 "configure"
1602 #include "confdefs.h"
1604 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1605 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1606 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1607 int main () { int i; for (i = 0; i < 256; i++)
1608 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1612 if { (eval echo configure:1613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1616 echo "configure: failed program was:" >&5
1617 cat conftest.$ac_ext >&5
1619 ac_cv_header_stdc=no
1627 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1628 if test $ac_cv_header_stdc = yes; then
1629 cat >> confdefs.h <<\EOF
1630 #define STDC_HEADERS 1
1636 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1638 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1639 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1640 echo "configure:1641: checking for $ac_hdr that defines DIR" >&5
1641 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1642 echo $ac_n "(cached) $ac_c" 1>&6
1644 cat > conftest.$ac_ext <<EOF
1645 #line 1646 "configure"
1646 #include "confdefs.h"
1647 #include <sys/types.h>
1653 if { (eval echo configure:1654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1655 eval "ac_cv_header_dirent_$ac_safe=yes"
1657 echo "configure: failed program was:" >&5
1658 cat conftest.$ac_ext >&5
1660 eval "ac_cv_header_dirent_$ac_safe=no"
1664 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1665 echo "$ac_t""yes" 1>&6
1666 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1667 cat >> confdefs.h <<EOF
1668 #define $ac_tr_hdr 1
1670 ac_header_dirent=$ac_hdr; break
1672 echo "$ac_t""no" 1>&6
1675 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1676 if test $ac_header_dirent = dirent.h; then
1677 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1678 echo "configure:1679: checking for opendir in -ldir" >&5
1679 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1680 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1681 echo $ac_n "(cached) $ac_c" 1>&6
1683 ac_save_LIBS="$LIBS"
1685 cat > conftest.$ac_ext <<EOF
1686 #line 1687 "configure"
1687 #include "confdefs.h"
1688 /* Override any gcc2 internal prototype to avoid an error. */
1689 /* We use char because int might match the return type of a gcc2
1690 builtin and then its argument prototype would still apply. */
1697 if { (eval echo configure:1698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1699 eval "ac_cv_lib_$ac_lib_var=yes"
1701 echo "configure: failed program was:" >&5
1702 cat conftest.$ac_ext >&5
1704 eval "ac_cv_lib_$ac_lib_var=no"
1707 LIBS="$ac_save_LIBS"
1710 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1711 echo "$ac_t""yes" 1>&6
1714 echo "$ac_t""no" 1>&6
1718 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1719 echo "configure:1720: checking for opendir in -lx" >&5
1720 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1721 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1722 echo $ac_n "(cached) $ac_c" 1>&6
1724 ac_save_LIBS="$LIBS"
1726 cat > conftest.$ac_ext <<EOF
1727 #line 1728 "configure"
1728 #include "confdefs.h"
1729 /* Override any gcc2 internal prototype to avoid an error. */
1730 /* We use char because int might match the return type of a gcc2
1731 builtin and then its argument prototype would still apply. */
1738 if { (eval echo configure:1739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1740 eval "ac_cv_lib_$ac_lib_var=yes"
1742 echo "configure: failed program was:" >&5
1743 cat conftest.$ac_ext >&5
1745 eval "ac_cv_lib_$ac_lib_var=no"
1748 LIBS="$ac_save_LIBS"
1751 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1752 echo "$ac_t""yes" 1>&6
1755 echo "$ac_t""no" 1>&6
1760 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1761 echo "configure:1762: checking whether time.h and sys/time.h may both be included" >&5
1762 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1763 echo $ac_n "(cached) $ac_c" 1>&6
1765 cat > conftest.$ac_ext <<EOF
1766 #line 1767 "configure"
1767 #include "confdefs.h"
1768 #include <sys/types.h>
1769 #include <sys/time.h>
1775 if { (eval echo configure:1776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1777 ac_cv_header_time=yes
1779 echo "configure: failed program was:" >&5
1780 cat conftest.$ac_ext >&5
1782 ac_cv_header_time=no
1787 echo "$ac_t""$ac_cv_header_time" 1>&6
1788 if test $ac_cv_header_time = yes; then
1789 cat >> confdefs.h <<\EOF
1790 #define TIME_WITH_SYS_TIME 1
1795 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1796 echo "configure:1797: checking for sys/wait.h that is POSIX.1 compatible" >&5
1797 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1798 echo $ac_n "(cached) $ac_c" 1>&6
1800 cat > conftest.$ac_ext <<EOF
1801 #line 1802 "configure"
1802 #include "confdefs.h"
1803 #include <sys/types.h>
1804 #include <sys/wait.h>
1806 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1809 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1814 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1817 if { (eval echo configure:1818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1819 ac_cv_header_sys_wait_h=yes
1821 echo "configure: failed program was:" >&5
1822 cat conftest.$ac_ext >&5
1824 ac_cv_header_sys_wait_h=no
1829 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1830 if test $ac_cv_header_sys_wait_h = yes; then
1831 cat >> confdefs.h <<\EOF
1832 #define HAVE_SYS_WAIT_H 1
1837 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1839 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1840 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1841 echo "configure:1842: checking for $ac_hdr" >&5
1842 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1843 echo $ac_n "(cached) $ac_c" 1>&6
1845 cat > conftest.$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1851 { (eval echo configure:1852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1853 if test -z "$ac_err"; then
1855 eval "ac_cv_header_$ac_safe=yes"
1858 echo "configure: failed program was:" >&5
1859 cat conftest.$ac_ext >&5
1861 eval "ac_cv_header_$ac_safe=no"
1865 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1866 echo "$ac_t""yes" 1>&6
1867 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1868 cat >> confdefs.h <<EOF
1869 #define $ac_tr_hdr 1
1873 echo "$ac_t""no" 1>&6
1877 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.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 compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.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 sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.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/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.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/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.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/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.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 security/pam_modules.h security/_pam_macros.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
2159 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2160 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2164 cat > conftest.$ac_ext <<EOF
2165 #line 2166 "configure"
2166 #include "confdefs.h"
2172 if { (eval echo configure:2173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2174 ac_cv_header_shadow_h=yes
2176 echo "configure: failed program was:" >&5
2177 cat conftest.$ac_ext >&5
2179 ac_cv_header_shadow_h=no
2182 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2183 cat >> confdefs.h <<\EOF
2184 #define HAVE_SHADOW_H 1
2190 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2192 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2193 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2194 echo "configure:2195: checking for $ac_hdr" >&5
2195 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2196 echo $ac_n "(cached) $ac_c" 1>&6
2198 cat > conftest.$ac_ext <<EOF
2199 #line 2200 "configure"
2200 #include "confdefs.h"
2203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2204 { (eval echo configure:2205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2206 if test -z "$ac_err"; then
2208 eval "ac_cv_header_$ac_safe=yes"
2211 echo "configure: failed program was:" >&5
2212 cat conftest.$ac_ext >&5
2214 eval "ac_cv_header_$ac_safe=no"
2218 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2219 echo "$ac_t""yes" 1>&6
2220 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2221 cat >> confdefs.h <<EOF
2222 #define $ac_tr_hdr 1
2226 echo "$ac_t""no" 1>&6
2230 for ac_hdr in nss.h nss_common.h sys/security.h security/pam_appl.h security/pam_modules.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 stropts.h poll.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 sys/capability.h syscall.h sys/syscall.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/acl.h sys/cdefs.h glob.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
2391 # For experimental utmp support (lastlog on some BSD-like systems)
2392 for ac_hdr in utmp.h utmpx.h lastlog.h
2394 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2395 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2396 echo "configure:2397: checking for $ac_hdr" >&5
2397 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2398 echo $ac_n "(cached) $ac_c" 1>&6
2400 cat > conftest.$ac_ext <<EOF
2401 #line 2402 "configure"
2402 #include "confdefs.h"
2405 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2406 { (eval echo configure:2407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2407 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2408 if test -z "$ac_err"; then
2410 eval "ac_cv_header_$ac_safe=yes"
2413 echo "configure: failed program was:" >&5
2414 cat conftest.$ac_ext >&5
2416 eval "ac_cv_header_$ac_safe=no"
2420 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2421 echo "$ac_t""yes" 1>&6
2422 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2423 cat >> confdefs.h <<EOF
2424 #define $ac_tr_hdr 1
2428 echo "$ac_t""no" 1>&6
2433 # For quotas on Veritas VxFS filesystems
2434 for ac_hdr in sys/fs/vx_quota.h
2436 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2437 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2438 echo "configure:2439: checking for $ac_hdr" >&5
2439 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2442 cat > conftest.$ac_ext <<EOF
2443 #line 2444 "configure"
2444 #include "confdefs.h"
2447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2448 { (eval echo configure:2449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2450 if test -z "$ac_err"; then
2452 eval "ac_cv_header_$ac_safe=yes"
2455 echo "configure: failed program was:" >&5
2456 cat conftest.$ac_ext >&5
2458 eval "ac_cv_header_$ac_safe=no"
2462 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2463 echo "$ac_t""yes" 1>&6
2464 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2465 cat >> confdefs.h <<EOF
2466 #define $ac_tr_hdr 1
2470 echo "$ac_t""no" 1>&6
2475 echo $ac_n "checking size of int""... $ac_c" 1>&6
2476 echo "configure:2477: checking size of int" >&5
2477 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2478 echo $ac_n "(cached) $ac_c" 1>&6
2480 if test "$cross_compiling" = yes; then
2481 ac_cv_sizeof_int=cross
2483 cat > conftest.$ac_ext <<EOF
2484 #line 2485 "configure"
2485 #include "confdefs.h"
2489 FILE *f=fopen("conftestval", "w");
2491 fprintf(f, "%d\n", sizeof(int));
2495 if { (eval echo configure:2496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2497 ac_cv_sizeof_int=`cat conftestval`
2499 echo "configure: failed program was:" >&5
2500 cat conftest.$ac_ext >&5
2508 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2509 cat >> confdefs.h <<EOF
2510 #define SIZEOF_INT $ac_cv_sizeof_int
2514 echo $ac_n "checking size of long""... $ac_c" 1>&6
2515 echo "configure:2516: checking size of long" >&5
2516 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2517 echo $ac_n "(cached) $ac_c" 1>&6
2519 if test "$cross_compiling" = yes; then
2520 ac_cv_sizeof_long=cross
2522 cat > conftest.$ac_ext <<EOF
2523 #line 2524 "configure"
2524 #include "confdefs.h"
2528 FILE *f=fopen("conftestval", "w");
2530 fprintf(f, "%d\n", sizeof(long));
2534 if { (eval echo configure:2535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2536 ac_cv_sizeof_long=`cat conftestval`
2538 echo "configure: failed program was:" >&5
2539 cat conftest.$ac_ext >&5
2547 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2548 cat >> confdefs.h <<EOF
2549 #define SIZEOF_LONG $ac_cv_sizeof_long
2553 echo $ac_n "checking size of short""... $ac_c" 1>&6
2554 echo "configure:2555: checking size of short" >&5
2555 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2556 echo $ac_n "(cached) $ac_c" 1>&6
2558 if test "$cross_compiling" = yes; then
2559 ac_cv_sizeof_short=cross
2561 cat > conftest.$ac_ext <<EOF
2562 #line 2563 "configure"
2563 #include "confdefs.h"
2567 FILE *f=fopen("conftestval", "w");
2569 fprintf(f, "%d\n", sizeof(short));
2573 if { (eval echo configure:2574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2575 ac_cv_sizeof_short=`cat conftestval`
2577 echo "configure: failed program was:" >&5
2578 cat conftest.$ac_ext >&5
2580 ac_cv_sizeof_short=0
2586 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2587 cat >> confdefs.h <<EOF
2588 #define SIZEOF_SHORT $ac_cv_sizeof_short
2593 echo $ac_n "checking for working const""... $ac_c" 1>&6
2594 echo "configure:2595: checking for working const" >&5
2595 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2596 echo $ac_n "(cached) $ac_c" 1>&6
2598 cat > conftest.$ac_ext <<EOF
2599 #line 2600 "configure"
2600 #include "confdefs.h"
2604 /* Ultrix mips cc rejects this. */
2605 typedef int charset[2]; const charset x;
2606 /* SunOS 4.1.1 cc rejects this. */
2607 char const *const *ccp;
2609 /* NEC SVR4.0.2 mips cc rejects this. */
2610 struct point {int x, y;};
2611 static struct point const zero = {0,0};
2612 /* AIX XL C 1.02.0.0 rejects this.
2613 It does not let you subtract one const X* pointer from another in an arm
2614 of an if-expression whose if-part is not a constant expression */
2615 const char *g = "string";
2616 ccp = &g + (g ? g-g : 0);
2617 /* HPUX 7.0 cc rejects these. */
2620 ccp = (char const *const *) p;
2621 { /* SCO 3.2v4 cc rejects this. */
2623 char const *s = 0 ? (char *) 0 : (char const *) 0;
2627 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2629 const int *foo = &x[0];
2632 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2633 typedef const int *iptr;
2637 { /* AIX XL C 1.02.0.0 rejects this saying
2638 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2639 struct s { int j; const int *ap[3]; };
2640 struct s *b; b->j = 5;
2642 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2648 if { (eval echo configure:2649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2652 echo "configure: failed program was:" >&5
2653 cat conftest.$ac_ext >&5
2660 echo "$ac_t""$ac_cv_c_const" 1>&6
2661 if test $ac_cv_c_const = no; then
2662 cat >> confdefs.h <<\EOF
2668 echo $ac_n "checking for inline""... $ac_c" 1>&6
2669 echo "configure:2670: checking for inline" >&5
2670 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2674 for ac_kw in inline __inline__ __inline; do
2675 cat > conftest.$ac_ext <<EOF
2676 #line 2677 "configure"
2677 #include "confdefs.h"
2683 if { (eval echo configure:2684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2685 ac_cv_c_inline=$ac_kw; break
2687 echo "configure: failed program was:" >&5
2688 cat conftest.$ac_ext >&5
2695 echo "$ac_t""$ac_cv_c_inline" 1>&6
2696 case "$ac_cv_c_inline" in
2698 no) cat >> confdefs.h <<\EOF
2702 *) cat >> confdefs.h <<EOF
2703 #define inline $ac_cv_c_inline
2708 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2709 echo "configure:2710: checking whether byte ordering is bigendian" >&5
2710 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2713 ac_cv_c_bigendian=unknown
2714 # See if sys/param.h defines the BYTE_ORDER macro.
2715 cat > conftest.$ac_ext <<EOF
2716 #line 2717 "configure"
2717 #include "confdefs.h"
2718 #include <sys/types.h>
2719 #include <sys/param.h>
2722 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2727 if { (eval echo configure:2728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2729 # It does; now see whether it defined to BIG_ENDIAN or not.
2730 cat > conftest.$ac_ext <<EOF
2731 #line 2732 "configure"
2732 #include "confdefs.h"
2733 #include <sys/types.h>
2734 #include <sys/param.h>
2737 #if BYTE_ORDER != BIG_ENDIAN
2742 if { (eval echo configure:2743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2744 ac_cv_c_bigendian=yes
2746 echo "configure: failed program was:" >&5
2747 cat conftest.$ac_ext >&5
2749 ac_cv_c_bigendian=no
2753 echo "configure: failed program was:" >&5
2754 cat conftest.$ac_ext >&5
2757 if test $ac_cv_c_bigendian = unknown; then
2758 if test "$cross_compiling" = yes; then
2759 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2761 cat > conftest.$ac_ext <<EOF
2762 #line 2763 "configure"
2763 #include "confdefs.h"
2765 /* Are we little or big endian? From Harbison&Steele. */
2769 char c[sizeof (long)];
2772 exit (u.c[sizeof (long) - 1] == 1);
2775 if { (eval echo configure:2776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2777 ac_cv_c_bigendian=no
2779 echo "configure: failed program was:" >&5
2780 cat conftest.$ac_ext >&5
2782 ac_cv_c_bigendian=yes
2790 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2791 if test $ac_cv_c_bigendian = yes; then
2792 cat >> confdefs.h <<\EOF
2793 #define WORDS_BIGENDIAN 1
2798 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2799 echo "configure:2800: checking whether char is unsigned" >&5
2800 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2801 echo $ac_n "(cached) $ac_c" 1>&6
2803 if test "$GCC" = yes; then
2804 # GCC predefines this symbol on systems where it applies.
2805 cat > conftest.$ac_ext <<EOF
2806 #line 2807 "configure"
2807 #include "confdefs.h"
2808 #ifdef __CHAR_UNSIGNED__
2813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2814 egrep "yes" >/dev/null 2>&1; then
2816 ac_cv_c_char_unsigned=yes
2819 ac_cv_c_char_unsigned=no
2824 if test "$cross_compiling" = yes; then
2825 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2827 cat > conftest.$ac_ext <<EOF
2828 #line 2829 "configure"
2829 #include "confdefs.h"
2830 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2831 #if !defined(__STDC__) || __STDC__ != 1
2835 volatile char c = 255; exit(c < 0);
2838 if { (eval echo configure:2839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2840 ac_cv_c_char_unsigned=yes
2842 echo "configure: failed program was:" >&5
2843 cat conftest.$ac_ext >&5
2845 ac_cv_c_char_unsigned=no
2853 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2854 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2855 cat >> confdefs.h <<\EOF
2856 #define __CHAR_UNSIGNED__ 1
2862 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2863 echo "configure:2864: checking return type of signal handlers" >&5
2864 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2865 echo $ac_n "(cached) $ac_c" 1>&6
2867 cat > conftest.$ac_ext <<EOF
2868 #line 2869 "configure"
2869 #include "confdefs.h"
2870 #include <sys/types.h>
2876 extern "C" void (*signal (int, void (*)(int)))(int);
2878 void (*signal ()) ();
2885 if { (eval echo configure:2886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2887 ac_cv_type_signal=void
2889 echo "configure: failed program was:" >&5
2890 cat conftest.$ac_ext >&5
2892 ac_cv_type_signal=int
2897 echo "$ac_t""$ac_cv_type_signal" 1>&6
2898 cat >> confdefs.h <<EOF
2899 #define RETSIGTYPE $ac_cv_type_signal
2903 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2904 echo "configure:2905: checking for uid_t in sys/types.h" >&5
2905 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2906 echo $ac_n "(cached) $ac_c" 1>&6
2908 cat > conftest.$ac_ext <<EOF
2909 #line 2910 "configure"
2910 #include "confdefs.h"
2911 #include <sys/types.h>
2913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2914 egrep "uid_t" >/dev/null 2>&1; then
2916 ac_cv_type_uid_t=yes
2925 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2926 if test $ac_cv_type_uid_t = no; then
2927 cat >> confdefs.h <<\EOF
2931 cat >> confdefs.h <<\EOF
2937 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2938 echo "configure:2939: checking for mode_t" >&5
2939 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2940 echo $ac_n "(cached) $ac_c" 1>&6
2942 cat > conftest.$ac_ext <<EOF
2943 #line 2944 "configure"
2944 #include "confdefs.h"
2945 #include <sys/types.h>
2951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2952 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2954 ac_cv_type_mode_t=yes
2957 ac_cv_type_mode_t=no
2962 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2963 if test $ac_cv_type_mode_t = no; then
2964 cat >> confdefs.h <<\EOF
2970 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2971 echo "configure:2972: checking for off_t" >&5
2972 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2973 echo $ac_n "(cached) $ac_c" 1>&6
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2978 #include <sys/types.h>
2984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2985 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2987 ac_cv_type_off_t=yes
2995 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2996 if test $ac_cv_type_off_t = no; then
2997 cat >> confdefs.h <<\EOF
3003 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3004 echo "configure:3005: checking for size_t" >&5
3005 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3006 echo $ac_n "(cached) $ac_c" 1>&6
3008 cat > conftest.$ac_ext <<EOF
3009 #line 3010 "configure"
3010 #include "confdefs.h"
3011 #include <sys/types.h>
3017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3018 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3020 ac_cv_type_size_t=yes
3023 ac_cv_type_size_t=no
3028 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3029 if test $ac_cv_type_size_t = no; then
3030 cat >> confdefs.h <<\EOF
3031 #define size_t unsigned
3036 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3037 echo "configure:3038: checking for pid_t" >&5
3038 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3039 echo $ac_n "(cached) $ac_c" 1>&6
3041 cat > conftest.$ac_ext <<EOF
3042 #line 3043 "configure"
3043 #include "confdefs.h"
3044 #include <sys/types.h>
3050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3051 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3053 ac_cv_type_pid_t=yes
3061 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3062 if test $ac_cv_type_pid_t = no; then
3063 cat >> confdefs.h <<\EOF
3069 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3070 echo "configure:3071: checking for st_rdev in struct stat" >&5
3071 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3072 echo $ac_n "(cached) $ac_c" 1>&6
3074 cat > conftest.$ac_ext <<EOF
3075 #line 3076 "configure"
3076 #include "confdefs.h"
3077 #include <sys/types.h>
3078 #include <sys/stat.h>
3080 struct stat s; s.st_rdev;
3083 if { (eval echo configure:3084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3085 ac_cv_struct_st_rdev=yes
3087 echo "configure: failed program was:" >&5
3088 cat conftest.$ac_ext >&5
3090 ac_cv_struct_st_rdev=no
3095 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3096 if test $ac_cv_struct_st_rdev = yes; then
3097 cat >> confdefs.h <<\EOF
3098 #define HAVE_ST_RDEV 1
3103 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3104 echo "configure:3105: checking for d_off in dirent" >&5
3105 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3106 echo $ac_n "(cached) $ac_c" 1>&6
3108 cat > conftest.$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3113 #include <sys/types.h>
3116 struct dirent d; d.d_off;
3119 if { (eval echo configure:3120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3121 ac_cv_dirent_d_off=yes
3123 echo "configure: failed program was:" >&5
3124 cat conftest.$ac_ext >&5
3126 ac_cv_dirent_d_off=no
3131 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3132 if test $ac_cv_dirent_d_off = yes; then
3133 cat >> confdefs.h <<\EOF
3134 #define HAVE_DIRENT_D_OFF 1
3139 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3140 echo "configure:3141: checking for ino_t" >&5
3141 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3142 echo $ac_n "(cached) $ac_c" 1>&6
3144 cat > conftest.$ac_ext <<EOF
3145 #line 3146 "configure"
3146 #include "confdefs.h"
3147 #include <sys/types.h>
3153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3154 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3156 ac_cv_type_ino_t=yes
3164 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3165 if test $ac_cv_type_ino_t = no; then
3166 cat >> confdefs.h <<\EOF
3167 #define ino_t unsigned
3172 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3173 echo "configure:3174: checking for loff_t" >&5
3174 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3175 echo $ac_n "(cached) $ac_c" 1>&6
3177 cat > conftest.$ac_ext <<EOF
3178 #line 3179 "configure"
3179 #include "confdefs.h"
3180 #include <sys/types.h>
3186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3187 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3189 ac_cv_type_loff_t=yes
3192 ac_cv_type_loff_t=no
3197 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3198 if test $ac_cv_type_loff_t = no; then
3199 cat >> confdefs.h <<\EOF
3200 #define loff_t off_t
3205 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3206 echo "configure:3207: checking for offset_t" >&5
3207 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3208 echo $ac_n "(cached) $ac_c" 1>&6
3210 cat > conftest.$ac_ext <<EOF
3211 #line 3212 "configure"
3212 #include "confdefs.h"
3213 #include <sys/types.h>
3219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3220 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3222 ac_cv_type_offset_t=yes
3225 ac_cv_type_offset_t=no
3230 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3231 if test $ac_cv_type_offset_t = no; then
3232 cat >> confdefs.h <<\EOF
3233 #define offset_t loff_t
3238 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3239 echo "configure:3240: checking for ssize_t" >&5
3240 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3241 echo $ac_n "(cached) $ac_c" 1>&6
3243 cat > conftest.$ac_ext <<EOF
3244 #line 3245 "configure"
3245 #include "confdefs.h"
3246 #include <sys/types.h>
3252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3253 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3255 ac_cv_type_ssize_t=yes
3258 ac_cv_type_ssize_t=no
3263 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3264 if test $ac_cv_type_ssize_t = no; then
3265 cat >> confdefs.h <<\EOF
3271 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3272 echo "configure:3273: checking for wchar_t" >&5
3273 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3274 echo $ac_n "(cached) $ac_c" 1>&6
3276 cat > conftest.$ac_ext <<EOF
3277 #line 3278 "configure"
3278 #include "confdefs.h"
3279 #include <sys/types.h>
3285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3286 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3288 ac_cv_type_wchar_t=yes
3291 ac_cv_type_wchar_t=no
3296 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3297 if test $ac_cv_type_wchar_t = no; then
3298 cat >> confdefs.h <<\EOF
3299 #define wchar_t unsigned short
3305 ############################################
3306 # for cups support we need libcups, and a handful of header files
3308 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3309 echo "configure:3310: checking for httpConnect in -lcups" >&5
3310 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3311 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3312 echo $ac_n "(cached) $ac_c" 1>&6
3314 ac_save_LIBS="$LIBS"
3316 cat > conftest.$ac_ext <<EOF
3317 #line 3318 "configure"
3318 #include "confdefs.h"
3319 /* Override any gcc2 internal prototype to avoid an error. */
3320 /* We use char because int might match the return type of a gcc2
3321 builtin and then its argument prototype would still apply. */
3328 if { (eval echo configure:3329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3330 eval "ac_cv_lib_$ac_lib_var=yes"
3332 echo "configure: failed program was:" >&5
3333 cat conftest.$ac_ext >&5
3335 eval "ac_cv_lib_$ac_lib_var=no"
3338 LIBS="$ac_save_LIBS"
3341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3342 echo "$ac_t""yes" 1>&6
3343 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3344 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3345 cat >> confdefs.h <<EOF
3346 #define $ac_tr_lib 1
3352 echo "$ac_t""no" 1>&6
3356 # I wonder if there is a nicer way of doing this?
3358 if test x"$ac_cv_lib_cups_httpConnect" = x"yes"; then
3359 for ac_hdr in cups/cups.h cups/language.h
3361 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3362 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3363 echo "configure:3364: checking for $ac_hdr" >&5
3364 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3365 echo $ac_n "(cached) $ac_c" 1>&6
3367 cat > conftest.$ac_ext <<EOF
3368 #line 3369 "configure"
3369 #include "confdefs.h"
3372 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3373 { (eval echo configure:3374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3374 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3375 if test -z "$ac_err"; then
3377 eval "ac_cv_header_$ac_safe=yes"
3380 echo "configure: failed program was:" >&5
3381 cat conftest.$ac_ext >&5
3383 eval "ac_cv_header_$ac_safe=no"
3387 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3388 echo "$ac_t""yes" 1>&6
3389 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3390 cat >> confdefs.h <<EOF
3391 #define $ac_tr_hdr 1
3395 echo "$ac_t""no" 1>&6
3399 if x"$ac_cv_header_cups_cups_h" = x"yes"; then
3400 if x"$ac_cv_header_cups_language_h" = x"yes"; then
3401 cat >> confdefs.h <<\EOF
3409 ############################################
3410 # we need libdl for PAM and the new VFS code
3411 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3412 echo "configure:3413: checking for dlopen in -ldl" >&5
3413 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3414 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3415 echo $ac_n "(cached) $ac_c" 1>&6
3417 ac_save_LIBS="$LIBS"
3419 cat > conftest.$ac_ext <<EOF
3420 #line 3421 "configure"
3421 #include "confdefs.h"
3422 /* Override any gcc2 internal prototype to avoid an error. */
3423 /* We use char because int might match the return type of a gcc2
3424 builtin and then its argument prototype would still apply. */
3431 if { (eval echo configure:3432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3433 eval "ac_cv_lib_$ac_lib_var=yes"
3435 echo "configure: failed program was:" >&5
3436 cat conftest.$ac_ext >&5
3438 eval "ac_cv_lib_$ac_lib_var=no"
3441 LIBS="$ac_save_LIBS"
3444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3445 echo "$ac_t""yes" 1>&6
3447 cat >> confdefs.h <<\EOF
3448 #define HAVE_LIBDL 1
3452 echo "$ac_t""no" 1>&6
3457 ############################################
3458 # check if the compiler can do immediate structures
3459 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3460 echo "configure:3461: checking for immediate structures" >&5
3461 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3462 echo $ac_n "(cached) $ac_c" 1>&6
3465 cat > conftest.$ac_ext <<EOF
3466 #line 3467 "configure"
3467 #include "confdefs.h"
3472 #define X_FOOBAR(x) ((FOOBAR) { x })
3473 typedef struct {unsigned x;} FOOBAR;
3474 FOOBAR f = X_FOOBAR(1);
3478 if { (eval echo configure:3479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3480 samba_cv_immediate_structures=yes
3482 echo "configure: failed program was:" >&5
3483 cat conftest.$ac_ext >&5
3485 samba_cv_immediate_structures=no
3490 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3491 if test x"$samba_cv_immediate_structures" = x"yes"; then
3492 cat >> confdefs.h <<\EOF
3493 #define HAVE_IMMEDIATE_STRUCTURES 1
3498 ############################################
3499 # check for unix domain sockets
3500 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3501 echo "configure:3502: checking for unix domain sockets" >&5
3502 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3503 echo $ac_n "(cached) $ac_c" 1>&6
3506 cat > conftest.$ac_ext <<EOF
3507 #line 3508 "configure"
3508 #include "confdefs.h"
3510 #include <sys/types.h>
3513 #include <sys/socket.h>
3517 struct sockaddr_un sunaddr;
3518 sunaddr.sun_family = AF_UNIX;
3522 if { (eval echo configure:3523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3524 samba_cv_unixsocket=yes
3526 echo "configure: failed program was:" >&5
3527 cat conftest.$ac_ext >&5
3529 samba_cv_unixsocket=no
3534 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3535 if test x"$samba_cv_unixsocket" = x"yes"; then
3536 cat >> confdefs.h <<\EOF
3537 #define HAVE_UNIXSOCKET 1
3543 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3544 echo "configure:3545: checking for socklen_t type" >&5
3545 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3546 echo $ac_n "(cached) $ac_c" 1>&6
3549 cat > conftest.$ac_ext <<EOF
3550 #line 3551 "configure"
3551 #include "confdefs.h"
3553 #include <sys/types.h>
3558 #include <sys/socket.h>
3563 if { (eval echo configure:3564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3565 samba_cv_socklen_t=yes
3567 echo "configure: failed program was:" >&5
3568 cat conftest.$ac_ext >&5
3570 samba_cv_socklen_t=no
3575 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3576 if test x"$samba_cv_socklen_t" = x"yes"; then
3577 cat >> confdefs.h <<\EOF
3578 #define HAVE_SOCKLEN_T_TYPE 1
3583 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3584 echo "configure:3585: checking for sig_atomic_t type" >&5
3585 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3586 echo $ac_n "(cached) $ac_c" 1>&6
3589 cat > conftest.$ac_ext <<EOF
3590 #line 3591 "configure"
3591 #include "confdefs.h"
3593 #include <sys/types.h>
3603 if { (eval echo configure:3604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3605 samba_cv_sig_atomic_t=yes
3607 echo "configure: failed program was:" >&5
3608 cat conftest.$ac_ext >&5
3610 samba_cv_sig_atomic_t=no
3615 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3616 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3617 cat >> confdefs.h <<\EOF
3618 #define HAVE_SIG_ATOMIC_T_TYPE 1
3623 # stupid headers have the functions but no declaration. grrrr.
3625 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3626 echo "configure:3627: checking for errno declaration" >&5
3627 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+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"
3639 if { (eval echo configure:3640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3641 ac_cv_have_errno_decl=yes
3643 echo "configure: failed program was:" >&5
3644 cat conftest.$ac_ext >&5
3646 ac_cv_have_errno_decl=no
3651 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3652 if test x"$ac_cv_have_errno_decl" = x"yes"; then
3653 cat >> confdefs.h <<\EOF
3654 #define HAVE_ERRNO_DECL 1
3660 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3661 echo "configure:3662: checking for setresuid declaration" >&5
3662 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3663 echo $ac_n "(cached) $ac_c" 1>&6
3666 cat > conftest.$ac_ext <<EOF
3667 #line 3668 "configure"
3668 #include "confdefs.h"
3671 int i = (int)setresuid
3674 if { (eval echo configure:3675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3676 ac_cv_have_setresuid_decl=yes
3678 echo "configure: failed program was:" >&5
3679 cat conftest.$ac_ext >&5
3681 ac_cv_have_setresuid_decl=no
3686 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3687 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
3688 cat >> confdefs.h <<\EOF
3689 #define HAVE_SETRESUID_DECL 1
3695 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3696 echo "configure:3697: checking for setresgid declaration" >&5
3697 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3698 echo $ac_n "(cached) $ac_c" 1>&6
3701 cat > conftest.$ac_ext <<EOF
3702 #line 3703 "configure"
3703 #include "confdefs.h"
3706 int i = (int)setresgid
3709 if { (eval echo configure:3710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3711 ac_cv_have_setresgid_decl=yes
3713 echo "configure: failed program was:" >&5
3714 cat conftest.$ac_ext >&5
3716 ac_cv_have_setresgid_decl=no
3721 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3722 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
3723 cat >> confdefs.h <<\EOF
3724 #define HAVE_SETRESGID_DECL 1
3730 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3731 echo "configure:3732: checking for asprintf declaration" >&5
3732 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3733 echo $ac_n "(cached) $ac_c" 1>&6
3736 cat > conftest.$ac_ext <<EOF
3737 #line 3738 "configure"
3738 #include "confdefs.h"
3741 int i = (int)asprintf
3744 if { (eval echo configure:3745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3746 ac_cv_have_asprintf_decl=yes
3748 echo "configure: failed program was:" >&5
3749 cat conftest.$ac_ext >&5
3751 ac_cv_have_asprintf_decl=no
3756 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3757 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
3758 cat >> confdefs.h <<\EOF
3759 #define HAVE_ASPRINTF_DECL 1
3765 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3766 echo "configure:3767: checking for vasprintf declaration" >&5
3767 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3768 echo $ac_n "(cached) $ac_c" 1>&6
3771 cat > conftest.$ac_ext <<EOF
3772 #line 3773 "configure"
3773 #include "confdefs.h"
3776 int i = (int)vasprintf
3779 if { (eval echo configure:3780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3781 ac_cv_have_vasprintf_decl=yes
3783 echo "configure: failed program was:" >&5
3784 cat conftest.$ac_ext >&5
3786 ac_cv_have_vasprintf_decl=no
3791 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
3792 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
3793 cat >> confdefs.h <<\EOF
3794 #define HAVE_VASPRINTF_DECL 1
3800 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
3801 echo "configure:3802: checking for vsnprintf declaration" >&5
3802 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
3803 echo $ac_n "(cached) $ac_c" 1>&6
3806 cat > conftest.$ac_ext <<EOF
3807 #line 3808 "configure"
3808 #include "confdefs.h"
3811 int i = (int)vsnprintf
3814 if { (eval echo configure:3815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3816 ac_cv_have_vsnprintf_decl=yes
3818 echo "configure: failed program was:" >&5
3819 cat conftest.$ac_ext >&5
3821 ac_cv_have_vsnprintf_decl=no
3826 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
3827 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
3828 cat >> confdefs.h <<\EOF
3829 #define HAVE_VSNPRINTF_DECL 1
3835 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
3836 echo "configure:3837: checking for snprintf declaration" >&5
3837 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
3838 echo $ac_n "(cached) $ac_c" 1>&6
3841 cat > conftest.$ac_ext <<EOF
3842 #line 3843 "configure"
3843 #include "confdefs.h"
3846 int i = (int)snprintf
3849 if { (eval echo configure:3850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3851 ac_cv_have_snprintf_decl=yes
3853 echo "configure: failed program was:" >&5
3854 cat conftest.$ac_ext >&5
3856 ac_cv_have_snprintf_decl=no
3861 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
3862 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
3863 cat >> confdefs.h <<\EOF
3864 #define HAVE_SNPRINTF_DECL 1
3870 # and glibc has setresuid under linux but the function does
3871 # nothing until kernel 2.1.44! very dumb.
3872 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3873 echo "configure:3874: checking for real setresuid" >&5
3874 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3875 echo $ac_n "(cached) $ac_c" 1>&6
3878 if test "$cross_compiling" = yes; then
3879 samba_cv_have_setresuid=cross
3881 cat > conftest.$ac_ext <<EOF
3882 #line 3883 "configure"
3883 #include "confdefs.h"
3885 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3887 if { (eval echo configure:3888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3889 samba_cv_have_setresuid=yes
3891 echo "configure: failed program was:" >&5
3892 cat conftest.$ac_ext >&5
3894 samba_cv_have_setresuid=no
3901 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3902 if test x"$samba_cv_have_setresuid" = x"yes"; then
3903 cat >> confdefs.h <<\EOF
3904 #define HAVE_SETRESUID 1
3909 # Do the same check for setresguid...
3911 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
3912 echo "configure:3913: checking for real setresgid" >&5
3913 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
3914 echo $ac_n "(cached) $ac_c" 1>&6
3917 if test "$cross_compiling" = yes; then
3918 samba_cv_have_setresgid=cross
3920 cat > conftest.$ac_ext <<EOF
3921 #line 3922 "configure"
3922 #include "confdefs.h"
3925 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
3927 if { (eval echo configure:3928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3929 samba_cv_have_setresgid=yes
3931 echo "configure: failed program was:" >&5
3932 cat conftest.$ac_ext >&5
3934 samba_cv_have_setresgid=no
3941 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
3942 if test x"$samba_cv_have_setresgid" = x"yes"; then
3943 cat >> confdefs.h <<\EOF
3944 #define HAVE_SETRESGID 1
3949 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3950 echo "configure:3951: checking for 8-bit clean memcmp" >&5
3951 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3952 echo $ac_n "(cached) $ac_c" 1>&6
3954 if test "$cross_compiling" = yes; then
3955 ac_cv_func_memcmp_clean=no
3957 cat > conftest.$ac_ext <<EOF
3958 #line 3959 "configure"
3959 #include "confdefs.h"
3963 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3964 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3968 if { (eval echo configure:3969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3970 ac_cv_func_memcmp_clean=yes
3972 echo "configure: failed program was:" >&5
3973 cat conftest.$ac_ext >&5
3975 ac_cv_func_memcmp_clean=no
3982 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3983 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
3986 ###############################################
3987 # test for where we get crypt() from
3988 for ac_func in crypt
3990 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3991 echo "configure:3992: checking for $ac_func" >&5
3992 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3993 echo $ac_n "(cached) $ac_c" 1>&6
3995 cat > conftest.$ac_ext <<EOF
3996 #line 3997 "configure"
3997 #include "confdefs.h"
3998 /* System header to define __stub macros and hopefully few prototypes,
3999 which can conflict with char $ac_func(); below. */
4001 /* Override any gcc2 internal prototype to avoid an error. */
4002 /* We use char because int might match the return type of a gcc2
4003 builtin and then its argument prototype would still apply. */
4008 /* The GNU C library defines this for functions which it implements
4009 to always fail with ENOSYS. Some functions are actually named
4010 something starting with __ and the normal name is an alias. */
4011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4019 if { (eval echo configure:4020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4021 eval "ac_cv_func_$ac_func=yes"
4023 echo "configure: failed program was:" >&5
4024 cat conftest.$ac_ext >&5
4026 eval "ac_cv_func_$ac_func=no"
4031 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4032 echo "$ac_t""yes" 1>&6
4033 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4034 cat >> confdefs.h <<EOF
4035 #define $ac_tr_func 1
4039 echo "$ac_t""no" 1>&6
4043 if test x"$ac_cv_func_crypt" = x"no"; then
4044 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4045 echo "configure:4046: checking for crypt in -lcrypt" >&5
4046 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4047 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4048 echo $ac_n "(cached) $ac_c" 1>&6
4050 ac_save_LIBS="$LIBS"
4051 LIBS="-lcrypt $LIBS"
4052 cat > conftest.$ac_ext <<EOF
4053 #line 4054 "configure"
4054 #include "confdefs.h"
4055 /* Override any gcc2 internal prototype to avoid an error. */
4056 /* We use char because int might match the return type of a gcc2
4057 builtin and then its argument prototype would still apply. */
4064 if { (eval echo configure:4065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4066 eval "ac_cv_lib_$ac_lib_var=yes"
4068 echo "configure: failed program was:" >&5
4069 cat conftest.$ac_ext >&5
4071 eval "ac_cv_lib_$ac_lib_var=no"
4074 LIBS="$ac_save_LIBS"
4077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4078 echo "$ac_t""yes" 1>&6
4079 LIBS="$LIBS -lcrypt";
4080 cat >> confdefs.h <<\EOF
4081 #define HAVE_CRYPT 1
4085 echo "$ac_t""no" 1>&6
4091 ###############################################
4092 # Readline included by default unless explicitly asked not to
4093 test "${with_readline+set}" != "set" && with_readline=yes
4095 # test for where we get readline() from
4096 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4097 echo "configure:4098: checking whether to use readline" >&5
4098 # Check whether --with-readline or --without-readline was given.
4099 if test "${with_readline+set}" = set; then
4100 withval="$with_readline"
4101 case "$with_readline" in
4103 echo "$ac_t""yes" 1>&6
4105 for ac_hdr in readline.h history.h readline/readline.h
4107 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4108 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4109 echo "configure:4110: checking for $ac_hdr" >&5
4110 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4111 echo $ac_n "(cached) $ac_c" 1>&6
4113 cat > conftest.$ac_ext <<EOF
4114 #line 4115 "configure"
4115 #include "confdefs.h"
4118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4119 { (eval echo configure:4120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4120 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4121 if test -z "$ac_err"; then
4123 eval "ac_cv_header_$ac_safe=yes"
4126 echo "configure: failed program was:" >&5
4127 cat conftest.$ac_ext >&5
4129 eval "ac_cv_header_$ac_safe=no"
4133 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4134 echo "$ac_t""yes" 1>&6
4135 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4136 cat >> confdefs.h <<EOF
4137 #define $ac_tr_hdr 1
4141 echo "$ac_t""no" 1>&6
4145 for ac_hdr in readline/history.h
4147 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4148 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4149 echo "configure:4150: checking for $ac_hdr" >&5
4150 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4151 echo $ac_n "(cached) $ac_c" 1>&6
4153 cat > conftest.$ac_ext <<EOF
4154 #line 4155 "configure"
4155 #include "confdefs.h"
4158 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4159 { (eval echo configure:4160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4160 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4161 if test -z "$ac_err"; then
4163 eval "ac_cv_header_$ac_safe=yes"
4166 echo "configure: failed program was:" >&5
4167 cat conftest.$ac_ext >&5
4169 eval "ac_cv_header_$ac_safe=no"
4173 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4174 echo "$ac_t""yes" 1>&6
4175 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4176 cat >> confdefs.h <<EOF
4177 #define $ac_tr_hdr 1
4181 echo "$ac_t""no" 1>&6
4186 for ac_hdr in readline.h readline/readline.h
4188 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4189 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4190 echo "configure:4191: checking for $ac_hdr" >&5
4191 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4192 echo $ac_n "(cached) $ac_c" 1>&6
4194 cat > conftest.$ac_ext <<EOF
4195 #line 4196 "configure"
4196 #include "confdefs.h"
4199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4200 { (eval echo configure:4201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4202 if test -z "$ac_err"; then
4204 eval "ac_cv_header_$ac_safe=yes"
4207 echo "configure: failed program was:" >&5
4208 cat conftest.$ac_ext >&5
4210 eval "ac_cv_header_$ac_safe=no"
4214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4215 echo "$ac_t""yes" 1>&6
4216 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4217 cat >> confdefs.h <<EOF
4218 #define $ac_tr_hdr 1
4221 for termlib in ncurses curses termcap terminfo termlib; do
4222 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4223 echo "configure:4224: checking for tgetent in -l${termlib}" >&5
4224 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4225 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4226 echo $ac_n "(cached) $ac_c" 1>&6
4228 ac_save_LIBS="$LIBS"
4229 LIBS="-l${termlib} $LIBS"
4230 cat > conftest.$ac_ext <<EOF
4231 #line 4232 "configure"
4232 #include "confdefs.h"
4233 /* Override any gcc2 internal prototype to avoid an error. */
4234 /* We use char because int might match the return type of a gcc2
4235 builtin and then its argument prototype would still apply. */
4242 if { (eval echo configure:4243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4244 eval "ac_cv_lib_$ac_lib_var=yes"
4246 echo "configure: failed program was:" >&5
4247 cat conftest.$ac_ext >&5
4249 eval "ac_cv_lib_$ac_lib_var=no"
4252 LIBS="$ac_save_LIBS"
4255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4256 echo "$ac_t""yes" 1>&6
4257 TERMLIBS="-l${termlib}"; break
4259 echo "$ac_t""no" 1>&6
4263 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4264 echo "configure:4265: checking for rl_callback_handler_install in -lreadline" >&5
4265 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4266 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4267 echo $ac_n "(cached) $ac_c" 1>&6
4269 ac_save_LIBS="$LIBS"
4270 LIBS="-lreadline $TERMLIBS $LIBS"
4271 cat > conftest.$ac_ext <<EOF
4272 #line 4273 "configure"
4273 #include "confdefs.h"
4274 /* Override any gcc2 internal prototype to avoid an error. */
4275 /* We use char because int might match the return type of a gcc2
4276 builtin and then its argument prototype would still apply. */
4277 char rl_callback_handler_install();
4280 rl_callback_handler_install()
4283 if { (eval echo configure:4284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4285 eval "ac_cv_lib_$ac_lib_var=yes"
4287 echo "configure: failed program was:" >&5
4288 cat conftest.$ac_ext >&5
4290 eval "ac_cv_lib_$ac_lib_var=no"
4293 LIBS="$ac_save_LIBS"
4296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4297 echo "$ac_t""yes" 1>&6
4298 TERMLIBS="-lreadline $TERMLIBS"
4299 cat >> confdefs.h <<\EOF
4300 #define HAVE_LIBREADLINE 1
4305 echo "$ac_t""no" 1>&6
4310 echo "$ac_t""no" 1>&6
4316 echo "$ac_t""no" 1>&6
4319 echo "$ac_t""yes" 1>&6
4321 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4322 # alternate readline path
4324 _cppflags=${CPPFLAGS}
4326 # Add additional search path
4327 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4328 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4330 for ac_hdr in readline.h history.h readline/readline.h
4332 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4333 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4334 echo "configure:4335: checking for $ac_hdr" >&5
4335 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4336 echo $ac_n "(cached) $ac_c" 1>&6
4338 cat > conftest.$ac_ext <<EOF
4339 #line 4340 "configure"
4340 #include "confdefs.h"
4343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4344 { (eval echo configure:4345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4346 if test -z "$ac_err"; then
4348 eval "ac_cv_header_$ac_safe=yes"
4351 echo "configure: failed program was:" >&5
4352 cat conftest.$ac_ext >&5
4354 eval "ac_cv_header_$ac_safe=no"
4358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4359 echo "$ac_t""yes" 1>&6
4360 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4361 cat >> confdefs.h <<EOF
4362 #define $ac_tr_hdr 1
4366 echo "$ac_t""no" 1>&6
4370 for ac_hdr in readline/history.h
4372 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4373 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4374 echo "configure:4375: checking for $ac_hdr" >&5
4375 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4376 echo $ac_n "(cached) $ac_c" 1>&6
4378 cat > conftest.$ac_ext <<EOF
4379 #line 4380 "configure"
4380 #include "confdefs.h"
4383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4384 { (eval echo configure:4385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4385 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4386 if test -z "$ac_err"; then
4388 eval "ac_cv_header_$ac_safe=yes"
4391 echo "configure: failed program was:" >&5
4392 cat conftest.$ac_ext >&5
4394 eval "ac_cv_header_$ac_safe=no"
4398 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4399 echo "$ac_t""yes" 1>&6
4400 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4401 cat >> confdefs.h <<EOF
4402 #define $ac_tr_hdr 1
4406 echo "$ac_t""no" 1>&6
4411 for ac_hdr in readline.h readline/readline.h
4413 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4414 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4415 echo "configure:4416: checking for $ac_hdr" >&5
4416 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4417 echo $ac_n "(cached) $ac_c" 1>&6
4419 cat > conftest.$ac_ext <<EOF
4420 #line 4421 "configure"
4421 #include "confdefs.h"
4424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4425 { (eval echo configure:4426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4427 if test -z "$ac_err"; then
4429 eval "ac_cv_header_$ac_safe=yes"
4432 echo "configure: failed program was:" >&5
4433 cat conftest.$ac_ext >&5
4435 eval "ac_cv_header_$ac_safe=no"
4439 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4440 echo "$ac_t""yes" 1>&6
4441 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4442 cat >> confdefs.h <<EOF
4443 #define $ac_tr_hdr 1
4446 for termlib in ncurses curses termcap terminfo termlib; do
4447 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4448 echo "configure:4449: checking for tgetent in -l${termlib}" >&5
4449 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4450 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
4453 ac_save_LIBS="$LIBS"
4454 LIBS="-l${termlib} $LIBS"
4455 cat > conftest.$ac_ext <<EOF
4456 #line 4457 "configure"
4457 #include "confdefs.h"
4458 /* Override any gcc2 internal prototype to avoid an error. */
4459 /* We use char because int might match the return type of a gcc2
4460 builtin and then its argument prototype would still apply. */
4467 if { (eval echo configure:4468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4469 eval "ac_cv_lib_$ac_lib_var=yes"
4471 echo "configure: failed program was:" >&5
4472 cat conftest.$ac_ext >&5
4474 eval "ac_cv_lib_$ac_lib_var=no"
4477 LIBS="$ac_save_LIBS"
4480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4481 echo "$ac_t""yes" 1>&6
4482 TERMLIBS="-l${termlib}"; break
4484 echo "$ac_t""no" 1>&6
4488 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4489 echo "configure:4490: checking for rl_callback_handler_install in -lreadline" >&5
4490 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4491 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4492 echo $ac_n "(cached) $ac_c" 1>&6
4494 ac_save_LIBS="$LIBS"
4495 LIBS="-lreadline $TERMLIBS $LIBS"
4496 cat > conftest.$ac_ext <<EOF
4497 #line 4498 "configure"
4498 #include "confdefs.h"
4499 /* Override any gcc2 internal prototype to avoid an error. */
4500 /* We use char because int might match the return type of a gcc2
4501 builtin and then its argument prototype would still apply. */
4502 char rl_callback_handler_install();
4505 rl_callback_handler_install()
4508 if { (eval echo configure:4509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4510 eval "ac_cv_lib_$ac_lib_var=yes"
4512 echo "configure: failed program was:" >&5
4513 cat conftest.$ac_ext >&5
4515 eval "ac_cv_lib_$ac_lib_var=no"
4518 LIBS="$ac_save_LIBS"
4521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4522 echo "$ac_t""yes" 1>&6
4523 TERMLDFLAGS="-L$with_readline/lib"
4524 TERMCPPFLAGS="-I$with_readline/include"
4525 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4526 TERMLIBS="-lreadline $TERMLIBS"
4527 cat >> confdefs.h <<\EOF
4528 #define HAVE_LIBREADLINE 1
4533 echo "$ac_t""no" 1>&6
4534 TERMLIBS= CPPFLAGS=$_cppflags
4538 echo "$ac_t""no" 1>&6
4547 echo "$ac_t""no" 1>&6
4554 # The following test taken from the cvs sources
4555 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4556 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4557 # libsocket.so which has a bad implementation of gethostbyname (it
4558 # only looks in /etc/hosts), so we only look for -lsocket if we need
4560 for ac_func in connect
4562 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4563 echo "configure:4564: checking for $ac_func" >&5
4564 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4565 echo $ac_n "(cached) $ac_c" 1>&6
4567 cat > conftest.$ac_ext <<EOF
4568 #line 4569 "configure"
4569 #include "confdefs.h"
4570 /* System header to define __stub macros and hopefully few prototypes,
4571 which can conflict with char $ac_func(); below. */
4573 /* Override any gcc2 internal prototype to avoid an error. */
4574 /* We use char because int might match the return type of a gcc2
4575 builtin and then its argument prototype would still apply. */
4580 /* The GNU C library defines this for functions which it implements
4581 to always fail with ENOSYS. Some functions are actually named
4582 something starting with __ and the normal name is an alias. */
4583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4591 if { (eval echo configure:4592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4593 eval "ac_cv_func_$ac_func=yes"
4595 echo "configure: failed program was:" >&5
4596 cat conftest.$ac_ext >&5
4598 eval "ac_cv_func_$ac_func=no"
4603 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4604 echo "$ac_t""yes" 1>&6
4605 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4606 cat >> confdefs.h <<EOF
4607 #define $ac_tr_func 1
4611 echo "$ac_t""no" 1>&6
4615 if test x"$ac_cv_func_connect" = x"no"; then
4618 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4619 echo "configure:4620: checking for printf in -lnsl_s" >&5
4620 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4621 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4622 echo $ac_n "(cached) $ac_c" 1>&6
4624 ac_save_LIBS="$LIBS"
4625 LIBS="-lnsl_s $LIBS"
4626 cat > conftest.$ac_ext <<EOF
4627 #line 4628 "configure"
4628 #include "confdefs.h"
4629 /* Override any gcc2 internal prototype to avoid an error. */
4630 /* We use char because int might match the return type of a gcc2
4631 builtin and then its argument prototype would still apply. */
4638 if { (eval echo configure:4639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4640 eval "ac_cv_lib_$ac_lib_var=yes"
4642 echo "configure: failed program was:" >&5
4643 cat conftest.$ac_ext >&5
4645 eval "ac_cv_lib_$ac_lib_var=no"
4648 LIBS="$ac_save_LIBS"
4651 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4652 echo "$ac_t""yes" 1>&6
4653 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4654 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4655 cat >> confdefs.h <<EOF
4656 #define $ac_tr_lib 1
4659 LIBS="-lnsl_s $LIBS"
4662 echo "$ac_t""no" 1>&6
4668 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4669 echo "configure:4670: checking for printf in -lnsl" >&5
4670 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4671 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4672 echo $ac_n "(cached) $ac_c" 1>&6
4674 ac_save_LIBS="$LIBS"
4676 cat > conftest.$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4679 /* Override any gcc2 internal prototype to avoid an error. */
4680 /* We use char because int might match the return type of a gcc2
4681 builtin and then its argument prototype would still apply. */
4688 if { (eval echo configure:4689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4690 eval "ac_cv_lib_$ac_lib_var=yes"
4692 echo "configure: failed program was:" >&5
4693 cat conftest.$ac_ext >&5
4695 eval "ac_cv_lib_$ac_lib_var=no"
4698 LIBS="$ac_save_LIBS"
4701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4702 echo "$ac_t""yes" 1>&6
4703 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4704 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4705 cat >> confdefs.h <<EOF
4706 #define $ac_tr_lib 1
4712 echo "$ac_t""no" 1>&6
4718 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4719 echo "configure:4720: checking for connect in -lsocket" >&5
4720 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4721 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4722 echo $ac_n "(cached) $ac_c" 1>&6
4724 ac_save_LIBS="$LIBS"
4725 LIBS="-lsocket $LIBS"
4726 cat > conftest.$ac_ext <<EOF
4727 #line 4728 "configure"
4728 #include "confdefs.h"
4729 /* Override any gcc2 internal prototype to avoid an error. */
4730 /* We use char because int might match the return type of a gcc2
4731 builtin and then its argument prototype would still apply. */
4738 if { (eval echo configure:4739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4740 eval "ac_cv_lib_$ac_lib_var=yes"
4742 echo "configure: failed program was:" >&5
4743 cat conftest.$ac_ext >&5
4745 eval "ac_cv_lib_$ac_lib_var=no"
4748 LIBS="$ac_save_LIBS"
4751 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4752 echo "$ac_t""yes" 1>&6
4753 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4754 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4755 cat >> confdefs.h <<EOF
4756 #define $ac_tr_lib 1
4759 LIBS="-lsocket $LIBS"
4762 echo "$ac_t""no" 1>&6
4768 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4769 echo "configure:4770: checking for connect in -linet" >&5
4770 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4772 echo $ac_n "(cached) $ac_c" 1>&6
4774 ac_save_LIBS="$LIBS"
4776 cat > conftest.$ac_ext <<EOF
4777 #line 4778 "configure"
4778 #include "confdefs.h"
4779 /* Override any gcc2 internal prototype to avoid an error. */
4780 /* We use char because int might match the return type of a gcc2
4781 builtin and then its argument prototype would still apply. */
4788 if { (eval echo configure:4789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4790 eval "ac_cv_lib_$ac_lib_var=yes"
4792 echo "configure: failed program was:" >&5
4793 cat conftest.$ac_ext >&5
4795 eval "ac_cv_lib_$ac_lib_var=no"
4798 LIBS="$ac_save_LIBS"
4801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4802 echo "$ac_t""yes" 1>&6
4803 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4804 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4805 cat >> confdefs.h <<EOF
4806 #define $ac_tr_lib 1
4812 echo "$ac_t""no" 1>&6
4816 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4817 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4818 # ac_cv_func_connect=yes
4819 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4820 cat >> confdefs.h <<\EOF
4821 #define HAVE_CONNECT 1
4827 ###############################################
4828 # test for where we get get_yp_default_domain() from
4829 for ac_func in yp_get_default_domain
4831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4832 echo "configure:4833: checking for $ac_func" >&5
4833 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4834 echo $ac_n "(cached) $ac_c" 1>&6
4836 cat > conftest.$ac_ext <<EOF
4837 #line 4838 "configure"
4838 #include "confdefs.h"
4839 /* System header to define __stub macros and hopefully few prototypes,
4840 which can conflict with char $ac_func(); below. */
4842 /* Override any gcc2 internal prototype to avoid an error. */
4843 /* We use char because int might match the return type of a gcc2
4844 builtin and then its argument prototype would still apply. */
4849 /* The GNU C library defines this for functions which it implements
4850 to always fail with ENOSYS. Some functions are actually named
4851 something starting with __ and the normal name is an alias. */
4852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4860 if { (eval echo configure:4861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4862 eval "ac_cv_func_$ac_func=yes"
4864 echo "configure: failed program was:" >&5
4865 cat conftest.$ac_ext >&5
4867 eval "ac_cv_func_$ac_func=no"
4872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4873 echo "$ac_t""yes" 1>&6
4874 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4875 cat >> confdefs.h <<EOF
4876 #define $ac_tr_func 1
4880 echo "$ac_t""no" 1>&6
4884 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
4885 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4886 echo "configure:4887: checking for yp_get_default_domain in -lnsl" >&5
4887 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
4888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4889 echo $ac_n "(cached) $ac_c" 1>&6
4891 ac_save_LIBS="$LIBS"
4893 cat > conftest.$ac_ext <<EOF
4894 #line 4895 "configure"
4895 #include "confdefs.h"
4896 /* Override any gcc2 internal prototype to avoid an error. */
4897 /* We use char because int might match the return type of a gcc2
4898 builtin and then its argument prototype would still apply. */
4899 char yp_get_default_domain();
4902 yp_get_default_domain()
4905 if { (eval echo configure:4906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4907 eval "ac_cv_lib_$ac_lib_var=yes"
4909 echo "configure: failed program was:" >&5
4910 cat conftest.$ac_ext >&5
4912 eval "ac_cv_lib_$ac_lib_var=no"
4915 LIBS="$ac_save_LIBS"
4918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4919 echo "$ac_t""yes" 1>&6
4921 cat >> confdefs.h <<\EOF
4922 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
4926 echo "$ac_t""no" 1>&6
4931 # Check if we have execl, if not we need to compile smbrun.
4932 for ac_func in execl
4934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4935 echo "configure:4936: checking for $ac_func" >&5
4936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4937 echo $ac_n "(cached) $ac_c" 1>&6
4939 cat > conftest.$ac_ext <<EOF
4940 #line 4941 "configure"
4941 #include "confdefs.h"
4942 /* System header to define __stub macros and hopefully few prototypes,
4943 which can conflict with char $ac_func(); below. */
4945 /* Override any gcc2 internal prototype to avoid an error. */
4946 /* We use char because int might match the return type of a gcc2
4947 builtin and then its argument prototype would still apply. */
4952 /* The GNU C library defines this for functions which it implements
4953 to always fail with ENOSYS. Some functions are actually named
4954 something starting with __ and the normal name is an alias. */
4955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4963 if { (eval echo configure:4964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4965 eval "ac_cv_func_$ac_func=yes"
4967 echo "configure: failed program was:" >&5
4968 cat conftest.$ac_ext >&5
4970 eval "ac_cv_func_$ac_func=no"
4975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4976 echo "$ac_t""yes" 1>&6
4977 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4978 cat >> confdefs.h <<EOF
4979 #define $ac_tr_func 1
4983 echo "$ac_t""no" 1>&6
4987 if test x"$ac_cv_func_execl" = x"no"; then
4988 RUNPROG="bin/smbrun"
4993 for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot
4995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4996 echo "configure:4997: checking for $ac_func" >&5
4997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4998 echo $ac_n "(cached) $ac_c" 1>&6
5000 cat > conftest.$ac_ext <<EOF
5001 #line 5002 "configure"
5002 #include "confdefs.h"
5003 /* System header to define __stub macros and hopefully few prototypes,
5004 which can conflict with char $ac_func(); below. */
5006 /* Override any gcc2 internal prototype to avoid an error. */
5007 /* We use char because int might match the return type of a gcc2
5008 builtin and then its argument prototype would still apply. */
5013 /* The GNU C library defines this for functions which it implements
5014 to always fail with ENOSYS. Some functions are actually named
5015 something starting with __ and the normal name is an alias. */
5016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5024 if { (eval echo configure:5025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5026 eval "ac_cv_func_$ac_func=yes"
5028 echo "configure: failed program was:" >&5
5029 cat conftest.$ac_ext >&5
5031 eval "ac_cv_func_$ac_func=no"
5036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5037 echo "$ac_t""yes" 1>&6
5038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5039 cat >> confdefs.h <<EOF
5040 #define $ac_tr_func 1
5044 echo "$ac_t""no" 1>&6
5048 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
5050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5051 echo "configure:5052: checking for $ac_func" >&5
5052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5053 echo $ac_n "(cached) $ac_c" 1>&6
5055 cat > conftest.$ac_ext <<EOF
5056 #line 5057 "configure"
5057 #include "confdefs.h"
5058 /* System header to define __stub macros and hopefully few prototypes,
5059 which can conflict with char $ac_func(); below. */
5061 /* Override any gcc2 internal prototype to avoid an error. */
5062 /* We use char because int might match the return type of a gcc2
5063 builtin and then its argument prototype would still apply. */
5068 /* The GNU C library defines this for functions which it implements
5069 to always fail with ENOSYS. Some functions are actually named
5070 something starting with __ and the normal name is an alias. */
5071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5079 if { (eval echo configure:5080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5081 eval "ac_cv_func_$ac_func=yes"
5083 echo "configure: failed program was:" >&5
5084 cat conftest.$ac_ext >&5
5086 eval "ac_cv_func_$ac_func=no"
5091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5092 echo "$ac_t""yes" 1>&6
5093 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5094 cat >> confdefs.h <<EOF
5095 #define $ac_tr_func 1
5099 echo "$ac_t""no" 1>&6
5103 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5106 echo "configure:5107: checking for $ac_func" >&5
5107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5108 echo $ac_n "(cached) $ac_c" 1>&6
5110 cat > conftest.$ac_ext <<EOF
5111 #line 5112 "configure"
5112 #include "confdefs.h"
5113 /* System header to define __stub macros and hopefully few prototypes,
5114 which can conflict with char $ac_func(); below. */
5116 /* Override any gcc2 internal prototype to avoid an error. */
5117 /* We use char because int might match the return type of a gcc2
5118 builtin and then its argument prototype would still apply. */
5123 /* The GNU C library defines this for functions which it implements
5124 to always fail with ENOSYS. Some functions are actually named
5125 something starting with __ and the normal name is an alias. */
5126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5134 if { (eval echo configure:5135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5136 eval "ac_cv_func_$ac_func=yes"
5138 echo "configure: failed program was:" >&5
5139 cat conftest.$ac_ext >&5
5141 eval "ac_cv_func_$ac_func=no"
5146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5147 echo "$ac_t""yes" 1>&6
5148 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5149 cat >> confdefs.h <<EOF
5150 #define $ac_tr_func 1
5154 echo "$ac_t""no" 1>&6
5158 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
5160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5161 echo "configure:5162: checking for $ac_func" >&5
5162 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5163 echo $ac_n "(cached) $ac_c" 1>&6
5165 cat > conftest.$ac_ext <<EOF
5166 #line 5167 "configure"
5167 #include "confdefs.h"
5168 /* System header to define __stub macros and hopefully few prototypes,
5169 which can conflict with char $ac_func(); below. */
5171 /* Override any gcc2 internal prototype to avoid an error. */
5172 /* We use char because int might match the return type of a gcc2
5173 builtin and then its argument prototype would still apply. */
5178 /* The GNU C library defines this for functions which it implements
5179 to always fail with ENOSYS. Some functions are actually named
5180 something starting with __ and the normal name is an alias. */
5181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5189 if { (eval echo configure:5190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5191 eval "ac_cv_func_$ac_func=yes"
5193 echo "configure: failed program was:" >&5
5194 cat conftest.$ac_ext >&5
5196 eval "ac_cv_func_$ac_func=no"
5201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5202 echo "$ac_t""yes" 1>&6
5203 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5204 cat >> confdefs.h <<EOF
5205 #define $ac_tr_func 1
5209 echo "$ac_t""no" 1>&6
5213 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
5215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5216 echo "configure:5217: checking for $ac_func" >&5
5217 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5218 echo $ac_n "(cached) $ac_c" 1>&6
5220 cat > conftest.$ac_ext <<EOF
5221 #line 5222 "configure"
5222 #include "confdefs.h"
5223 /* System header to define __stub macros and hopefully few prototypes,
5224 which can conflict with char $ac_func(); below. */
5226 /* Override any gcc2 internal prototype to avoid an error. */
5227 /* We use char because int might match the return type of a gcc2
5228 builtin and then its argument prototype would still apply. */
5233 /* The GNU C library defines this for functions which it implements
5234 to always fail with ENOSYS. Some functions are actually named
5235 something starting with __ and the normal name is an alias. */
5236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5244 if { (eval echo configure:5245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5246 eval "ac_cv_func_$ac_func=yes"
5248 echo "configure: failed program was:" >&5
5249 cat conftest.$ac_ext >&5
5251 eval "ac_cv_func_$ac_func=no"
5256 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5257 echo "$ac_t""yes" 1>&6
5258 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5259 cat >> confdefs.h <<EOF
5260 #define $ac_tr_func 1
5264 echo "$ac_t""no" 1>&6
5268 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5271 echo "configure:5272: checking for $ac_func" >&5
5272 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5273 echo $ac_n "(cached) $ac_c" 1>&6
5275 cat > conftest.$ac_ext <<EOF
5276 #line 5277 "configure"
5277 #include "confdefs.h"
5278 /* System header to define __stub macros and hopefully few prototypes,
5279 which can conflict with char $ac_func(); below. */
5281 /* Override any gcc2 internal prototype to avoid an error. */
5282 /* We use char because int might match the return type of a gcc2
5283 builtin and then its argument prototype would still apply. */
5288 /* The GNU C library defines this for functions which it implements
5289 to always fail with ENOSYS. Some functions are actually named
5290 something starting with __ and the normal name is an alias. */
5291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5299 if { (eval echo configure:5300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5301 eval "ac_cv_func_$ac_func=yes"
5303 echo "configure: failed program was:" >&5
5304 cat conftest.$ac_ext >&5
5306 eval "ac_cv_func_$ac_func=no"
5311 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5312 echo "$ac_t""yes" 1>&6
5313 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5314 cat >> confdefs.h <<EOF
5315 #define $ac_tr_func 1
5319 echo "$ac_t""no" 1>&6
5323 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5326 echo "configure:5327: checking for $ac_func" >&5
5327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5328 echo $ac_n "(cached) $ac_c" 1>&6
5330 cat > conftest.$ac_ext <<EOF
5331 #line 5332 "configure"
5332 #include "confdefs.h"
5333 /* System header to define __stub macros and hopefully few prototypes,
5334 which can conflict with char $ac_func(); below. */
5336 /* Override any gcc2 internal prototype to avoid an error. */
5337 /* We use char because int might match the return type of a gcc2
5338 builtin and then its argument prototype would still apply. */
5343 /* The GNU C library defines this for functions which it implements
5344 to always fail with ENOSYS. Some functions are actually named
5345 something starting with __ and the normal name is an alias. */
5346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5354 if { (eval echo configure:5355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5356 eval "ac_cv_func_$ac_func=yes"
5358 echo "configure: failed program was:" >&5
5359 cat conftest.$ac_ext >&5
5361 eval "ac_cv_func_$ac_func=no"
5366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5367 echo "$ac_t""yes" 1>&6
5368 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5369 cat >> confdefs.h <<EOF
5370 #define $ac_tr_func 1
5374 echo "$ac_t""no" 1>&6
5378 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5381 echo "configure:5382: checking for $ac_func" >&5
5382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5383 echo $ac_n "(cached) $ac_c" 1>&6
5385 cat > conftest.$ac_ext <<EOF
5386 #line 5387 "configure"
5387 #include "confdefs.h"
5388 /* System header to define __stub macros and hopefully few prototypes,
5389 which can conflict with char $ac_func(); below. */
5391 /* Override any gcc2 internal prototype to avoid an error. */
5392 /* We use char because int might match the return type of a gcc2
5393 builtin and then its argument prototype would still apply. */
5398 /* The GNU C library defines this for functions which it implements
5399 to always fail with ENOSYS. Some functions are actually named
5400 something starting with __ and the normal name is an alias. */
5401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5409 if { (eval echo configure:5410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5411 eval "ac_cv_func_$ac_func=yes"
5413 echo "configure: failed program was:" >&5
5414 cat conftest.$ac_ext >&5
5416 eval "ac_cv_func_$ac_func=no"
5421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5422 echo "$ac_t""yes" 1>&6
5423 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5424 cat >> confdefs.h <<EOF
5425 #define $ac_tr_func 1
5429 echo "$ac_t""no" 1>&6
5433 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5435 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5436 echo "configure:5437: checking for $ac_func" >&5
5437 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5438 echo $ac_n "(cached) $ac_c" 1>&6
5440 cat > conftest.$ac_ext <<EOF
5441 #line 5442 "configure"
5442 #include "confdefs.h"
5443 /* System header to define __stub macros and hopefully few prototypes,
5444 which can conflict with char $ac_func(); below. */
5446 /* Override any gcc2 internal prototype to avoid an error. */
5447 /* We use char because int might match the return type of a gcc2
5448 builtin and then its argument prototype would still apply. */
5453 /* The GNU C library defines this for functions which it implements
5454 to always fail with ENOSYS. Some functions are actually named
5455 something starting with __ and the normal name is an alias. */
5456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5464 if { (eval echo configure:5465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5466 eval "ac_cv_func_$ac_func=yes"
5468 echo "configure: failed program was:" >&5
5469 cat conftest.$ac_ext >&5
5471 eval "ac_cv_func_$ac_func=no"
5476 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5477 echo "$ac_t""yes" 1>&6
5478 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5479 cat >> confdefs.h <<EOF
5480 #define $ac_tr_func 1
5484 echo "$ac_t""no" 1>&6
5488 # setbuffer is needed for smbtorture
5489 for ac_func in setbuffer
5491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5492 echo "configure:5493: checking for $ac_func" >&5
5493 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5494 echo $ac_n "(cached) $ac_c" 1>&6
5496 cat > conftest.$ac_ext <<EOF
5497 #line 5498 "configure"
5498 #include "confdefs.h"
5499 /* System header to define __stub macros and hopefully few prototypes,
5500 which can conflict with char $ac_func(); below. */
5502 /* Override any gcc2 internal prototype to avoid an error. */
5503 /* We use char because int might match the return type of a gcc2
5504 builtin and then its argument prototype would still apply. */
5509 /* The GNU C library defines this for functions which it implements
5510 to always fail with ENOSYS. Some functions are actually named
5511 something starting with __ and the normal name is an alias. */
5512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5520 if { (eval echo configure:5521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5522 eval "ac_cv_func_$ac_func=yes"
5524 echo "configure: failed program was:" >&5
5525 cat conftest.$ac_ext >&5
5527 eval "ac_cv_func_$ac_func=no"
5532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5533 echo "$ac_t""yes" 1>&6
5534 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5535 cat >> confdefs.h <<EOF
5536 #define $ac_tr_func 1
5540 echo "$ac_t""no" 1>&6
5545 # syscall() is needed for smbwrapper.
5546 for ac_func in syscall
5548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5549 echo "configure:5550: checking for $ac_func" >&5
5550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5551 echo $ac_n "(cached) $ac_c" 1>&6
5553 cat > conftest.$ac_ext <<EOF
5554 #line 5555 "configure"
5555 #include "confdefs.h"
5556 /* System header to define __stub macros and hopefully few prototypes,
5557 which can conflict with char $ac_func(); below. */
5559 /* Override any gcc2 internal prototype to avoid an error. */
5560 /* We use char because int might match the return type of a gcc2
5561 builtin and then its argument prototype would still apply. */
5566 /* The GNU C library defines this for functions which it implements
5567 to always fail with ENOSYS. Some functions are actually named
5568 something starting with __ and the normal name is an alias. */
5569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5577 if { (eval echo configure:5578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5579 eval "ac_cv_func_$ac_func=yes"
5581 echo "configure: failed program was:" >&5
5582 cat conftest.$ac_ext >&5
5584 eval "ac_cv_func_$ac_func=no"
5589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5590 echo "$ac_t""yes" 1>&6
5591 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5592 cat >> confdefs.h <<EOF
5593 #define $ac_tr_func 1
5597 echo "$ac_t""no" 1>&6
5602 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5605 echo "configure:5606: checking for $ac_func" >&5
5606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5607 echo $ac_n "(cached) $ac_c" 1>&6
5609 cat > conftest.$ac_ext <<EOF
5610 #line 5611 "configure"
5611 #include "confdefs.h"
5612 /* System header to define __stub macros and hopefully few prototypes,
5613 which can conflict with char $ac_func(); below. */
5615 /* Override any gcc2 internal prototype to avoid an error. */
5616 /* We use char because int might match the return type of a gcc2
5617 builtin and then its argument prototype would still apply. */
5622 /* The GNU C library defines this for functions which it implements
5623 to always fail with ENOSYS. Some functions are actually named
5624 something starting with __ and the normal name is an alias. */
5625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5633 if { (eval echo configure:5634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5635 eval "ac_cv_func_$ac_func=yes"
5637 echo "configure: failed program was:" >&5
5638 cat conftest.$ac_ext >&5
5640 eval "ac_cv_func_$ac_func=no"
5645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5646 echo "$ac_t""yes" 1>&6
5647 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5648 cat >> confdefs.h <<EOF
5649 #define $ac_tr_func 1
5653 echo "$ac_t""no" 1>&6
5657 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5659 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5660 echo "configure:5661: checking for $ac_func" >&5
5661 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5662 echo $ac_n "(cached) $ac_c" 1>&6
5664 cat > conftest.$ac_ext <<EOF
5665 #line 5666 "configure"
5666 #include "confdefs.h"
5667 /* System header to define __stub macros and hopefully few prototypes,
5668 which can conflict with char $ac_func(); below. */
5670 /* Override any gcc2 internal prototype to avoid an error. */
5671 /* We use char because int might match the return type of a gcc2
5672 builtin and then its argument prototype would still apply. */
5677 /* The GNU C library defines this for functions which it implements
5678 to always fail with ENOSYS. Some functions are actually named
5679 something starting with __ and the normal name is an alias. */
5680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5688 if { (eval echo configure:5689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5690 eval "ac_cv_func_$ac_func=yes"
5692 echo "configure: failed program was:" >&5
5693 cat conftest.$ac_ext >&5
5695 eval "ac_cv_func_$ac_func=no"
5700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5701 echo "$ac_t""yes" 1>&6
5702 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5703 cat >> confdefs.h <<EOF
5704 #define $ac_tr_func 1
5708 echo "$ac_t""no" 1>&6
5712 for ac_func in __getcwd _getcwd
5714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5715 echo "configure:5716: checking for $ac_func" >&5
5716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5717 echo $ac_n "(cached) $ac_c" 1>&6
5719 cat > conftest.$ac_ext <<EOF
5720 #line 5721 "configure"
5721 #include "confdefs.h"
5722 /* System header to define __stub macros and hopefully few prototypes,
5723 which can conflict with char $ac_func(); below. */
5725 /* Override any gcc2 internal prototype to avoid an error. */
5726 /* We use char because int might match the return type of a gcc2
5727 builtin and then its argument prototype would still apply. */
5732 /* The GNU C library defines this for functions which it implements
5733 to always fail with ENOSYS. Some functions are actually named
5734 something starting with __ and the normal name is an alias. */
5735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5743 if { (eval echo configure:5744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5745 eval "ac_cv_func_$ac_func=yes"
5747 echo "configure: failed program was:" >&5
5748 cat conftest.$ac_ext >&5
5750 eval "ac_cv_func_$ac_func=no"
5755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5756 echo "$ac_t""yes" 1>&6
5757 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5758 cat >> confdefs.h <<EOF
5759 #define $ac_tr_func 1
5763 echo "$ac_t""no" 1>&6
5767 for ac_func in __xstat __fxstat __lxstat
5769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5770 echo "configure:5771: checking for $ac_func" >&5
5771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5772 echo $ac_n "(cached) $ac_c" 1>&6
5774 cat > conftest.$ac_ext <<EOF
5775 #line 5776 "configure"
5776 #include "confdefs.h"
5777 /* System header to define __stub macros and hopefully few prototypes,
5778 which can conflict with char $ac_func(); below. */
5780 /* Override any gcc2 internal prototype to avoid an error. */
5781 /* We use char because int might match the return type of a gcc2
5782 builtin and then its argument prototype would still apply. */
5787 /* The GNU C library defines this for functions which it implements
5788 to always fail with ENOSYS. Some functions are actually named
5789 something starting with __ and the normal name is an alias. */
5790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5798 if { (eval echo configure:5799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5800 eval "ac_cv_func_$ac_func=yes"
5802 echo "configure: failed program was:" >&5
5803 cat conftest.$ac_ext >&5
5805 eval "ac_cv_func_$ac_func=no"
5810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5811 echo "$ac_t""yes" 1>&6
5812 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5813 cat >> confdefs.h <<EOF
5814 #define $ac_tr_func 1
5818 echo "$ac_t""no" 1>&6
5822 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
5824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5825 echo "configure:5826: checking for $ac_func" >&5
5826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5827 echo $ac_n "(cached) $ac_c" 1>&6
5829 cat > conftest.$ac_ext <<EOF
5830 #line 5831 "configure"
5831 #include "confdefs.h"
5832 /* System header to define __stub macros and hopefully few prototypes,
5833 which can conflict with char $ac_func(); below. */
5835 /* Override any gcc2 internal prototype to avoid an error. */
5836 /* We use char because int might match the return type of a gcc2
5837 builtin and then its argument prototype would still apply. */
5842 /* The GNU C library defines this for functions which it implements
5843 to always fail with ENOSYS. Some functions are actually named
5844 something starting with __ and the normal name is an alias. */
5845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5853 if { (eval echo configure:5854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5855 eval "ac_cv_func_$ac_func=yes"
5857 echo "configure: failed program was:" >&5
5858 cat conftest.$ac_ext >&5
5860 eval "ac_cv_func_$ac_func=no"
5865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5866 echo "$ac_t""yes" 1>&6
5867 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5868 cat >> confdefs.h <<EOF
5869 #define $ac_tr_func 1
5873 echo "$ac_t""no" 1>&6
5877 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
5879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5880 echo "configure:5881: checking for $ac_func" >&5
5881 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5882 echo $ac_n "(cached) $ac_c" 1>&6
5884 cat > conftest.$ac_ext <<EOF
5885 #line 5886 "configure"
5886 #include "confdefs.h"
5887 /* System header to define __stub macros and hopefully few prototypes,
5888 which can conflict with char $ac_func(); below. */
5890 /* Override any gcc2 internal prototype to avoid an error. */
5891 /* We use char because int might match the return type of a gcc2
5892 builtin and then its argument prototype would still apply. */
5897 /* The GNU C library defines this for functions which it implements
5898 to always fail with ENOSYS. Some functions are actually named
5899 something starting with __ and the normal name is an alias. */
5900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5908 if { (eval echo configure:5909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5910 eval "ac_cv_func_$ac_func=yes"
5912 echo "configure: failed program was:" >&5
5913 cat conftest.$ac_ext >&5
5915 eval "ac_cv_func_$ac_func=no"
5920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5921 echo "$ac_t""yes" 1>&6
5922 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5923 cat >> confdefs.h <<EOF
5924 #define $ac_tr_func 1
5928 echo "$ac_t""no" 1>&6
5932 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
5934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5935 echo "configure:5936: checking for $ac_func" >&5
5936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5937 echo $ac_n "(cached) $ac_c" 1>&6
5939 cat > conftest.$ac_ext <<EOF
5940 #line 5941 "configure"
5941 #include "confdefs.h"
5942 /* System header to define __stub macros and hopefully few prototypes,
5943 which can conflict with char $ac_func(); below. */
5945 /* Override any gcc2 internal prototype to avoid an error. */
5946 /* We use char because int might match the return type of a gcc2
5947 builtin and then its argument prototype would still apply. */
5952 /* The GNU C library defines this for functions which it implements
5953 to always fail with ENOSYS. Some functions are actually named
5954 something starting with __ and the normal name is an alias. */
5955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5963 if { (eval echo configure:5964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5965 eval "ac_cv_func_$ac_func=yes"
5967 echo "configure: failed program was:" >&5
5968 cat conftest.$ac_ext >&5
5970 eval "ac_cv_func_$ac_func=no"
5975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5976 echo "$ac_t""yes" 1>&6
5977 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5978 cat >> confdefs.h <<EOF
5979 #define $ac_tr_func 1
5983 echo "$ac_t""no" 1>&6
5987 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
5989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5990 echo "configure:5991: checking for $ac_func" >&5
5991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5992 echo $ac_n "(cached) $ac_c" 1>&6
5994 cat > conftest.$ac_ext <<EOF
5995 #line 5996 "configure"
5996 #include "confdefs.h"
5997 /* System header to define __stub macros and hopefully few prototypes,
5998 which can conflict with char $ac_func(); below. */
6000 /* Override any gcc2 internal prototype to avoid an error. */
6001 /* We use char because int might match the return type of a gcc2
6002 builtin and then its argument prototype would still apply. */
6007 /* The GNU C library defines this for functions which it implements
6008 to always fail with ENOSYS. Some functions are actually named
6009 something starting with __ and the normal name is an alias. */
6010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6018 if { (eval echo configure:6019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6020 eval "ac_cv_func_$ac_func=yes"
6022 echo "configure: failed program was:" >&5
6023 cat conftest.$ac_ext >&5
6025 eval "ac_cv_func_$ac_func=no"
6030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6031 echo "$ac_t""yes" 1>&6
6032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6033 cat >> confdefs.h <<EOF
6034 #define $ac_tr_func 1
6038 echo "$ac_t""no" 1>&6
6042 for ac_func in _write __write _fork __fork
6044 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6045 echo "configure:6046: checking for $ac_func" >&5
6046 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6047 echo $ac_n "(cached) $ac_c" 1>&6
6049 cat > conftest.$ac_ext <<EOF
6050 #line 6051 "configure"
6051 #include "confdefs.h"
6052 /* System header to define __stub macros and hopefully few prototypes,
6053 which can conflict with char $ac_func(); below. */
6055 /* Override any gcc2 internal prototype to avoid an error. */
6056 /* We use char because int might match the return type of a gcc2
6057 builtin and then its argument prototype would still apply. */
6062 /* The GNU C library defines this for functions which it implements
6063 to always fail with ENOSYS. Some functions are actually named
6064 something starting with __ and the normal name is an alias. */
6065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6073 if { (eval echo configure:6074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6075 eval "ac_cv_func_$ac_func=yes"
6077 echo "configure: failed program was:" >&5
6078 cat conftest.$ac_ext >&5
6080 eval "ac_cv_func_$ac_func=no"
6085 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6086 echo "$ac_t""yes" 1>&6
6087 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6088 cat >> confdefs.h <<EOF
6089 #define $ac_tr_func 1
6093 echo "$ac_t""no" 1>&6
6097 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6099 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6100 echo "configure:6101: checking for $ac_func" >&5
6101 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6102 echo $ac_n "(cached) $ac_c" 1>&6
6104 cat > conftest.$ac_ext <<EOF
6105 #line 6106 "configure"
6106 #include "confdefs.h"
6107 /* System header to define __stub macros and hopefully few prototypes,
6108 which can conflict with char $ac_func(); below. */
6110 /* Override any gcc2 internal prototype to avoid an error. */
6111 /* We use char because int might match the return type of a gcc2
6112 builtin and then its argument prototype would still apply. */
6117 /* The GNU C library defines this for functions which it implements
6118 to always fail with ENOSYS. Some functions are actually named
6119 something starting with __ and the normal name is an alias. */
6120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6128 if { (eval echo configure:6129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6130 eval "ac_cv_func_$ac_func=yes"
6132 echo "configure: failed program was:" >&5
6133 cat conftest.$ac_ext >&5
6135 eval "ac_cv_func_$ac_func=no"
6140 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6141 echo "$ac_t""yes" 1>&6
6142 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6143 cat >> confdefs.h <<EOF
6144 #define $ac_tr_func 1
6148 echo "$ac_t""no" 1>&6
6152 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6154 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6155 echo "configure:6156: checking for $ac_func" >&5
6156 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6157 echo $ac_n "(cached) $ac_c" 1>&6
6159 cat > conftest.$ac_ext <<EOF
6160 #line 6161 "configure"
6161 #include "confdefs.h"
6162 /* System header to define __stub macros and hopefully few prototypes,
6163 which can conflict with char $ac_func(); below. */
6165 /* Override any gcc2 internal prototype to avoid an error. */
6166 /* We use char because int might match the return type of a gcc2
6167 builtin and then its argument prototype would still apply. */
6172 /* The GNU C library defines this for functions which it implements
6173 to always fail with ENOSYS. Some functions are actually named
6174 something starting with __ and the normal name is an alias. */
6175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6183 if { (eval echo configure:6184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6185 eval "ac_cv_func_$ac_func=yes"
6187 echo "configure: failed program was:" >&5
6188 cat conftest.$ac_ext >&5
6190 eval "ac_cv_func_$ac_func=no"
6195 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6196 echo "$ac_t""yes" 1>&6
6197 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6198 cat >> confdefs.h <<EOF
6199 #define $ac_tr_func 1
6203 echo "$ac_t""no" 1>&6
6207 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6209 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6210 echo "configure:6211: checking for $ac_func" >&5
6211 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6212 echo $ac_n "(cached) $ac_c" 1>&6
6214 cat > conftest.$ac_ext <<EOF
6215 #line 6216 "configure"
6216 #include "confdefs.h"
6217 /* System header to define __stub macros and hopefully few prototypes,
6218 which can conflict with char $ac_func(); below. */
6220 /* Override any gcc2 internal prototype to avoid an error. */
6221 /* We use char because int might match the return type of a gcc2
6222 builtin and then its argument prototype would still apply. */
6227 /* The GNU C library defines this for functions which it implements
6228 to always fail with ENOSYS. Some functions are actually named
6229 something starting with __ and the normal name is an alias. */
6230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6238 if { (eval echo configure:6239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6240 eval "ac_cv_func_$ac_func=yes"
6242 echo "configure: failed program was:" >&5
6243 cat conftest.$ac_ext >&5
6245 eval "ac_cv_func_$ac_func=no"
6250 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6251 echo "$ac_t""yes" 1>&6
6252 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6253 cat >> confdefs.h <<EOF
6254 #define $ac_tr_func 1
6258 echo "$ac_t""no" 1>&6
6262 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6264 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6265 echo "configure:6266: checking for $ac_func" >&5
6266 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6267 echo $ac_n "(cached) $ac_c" 1>&6
6269 cat > conftest.$ac_ext <<EOF
6270 #line 6271 "configure"
6271 #include "confdefs.h"
6272 /* System header to define __stub macros and hopefully few prototypes,
6273 which can conflict with char $ac_func(); below. */
6275 /* Override any gcc2 internal prototype to avoid an error. */
6276 /* We use char because int might match the return type of a gcc2
6277 builtin and then its argument prototype would still apply. */
6282 /* The GNU C library defines this for functions which it implements
6283 to always fail with ENOSYS. Some functions are actually named
6284 something starting with __ and the normal name is an alias. */
6285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6293 if { (eval echo configure:6294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6295 eval "ac_cv_func_$ac_func=yes"
6297 echo "configure: failed program was:" >&5
6298 cat conftest.$ac_ext >&5
6300 eval "ac_cv_func_$ac_func=no"
6305 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6306 echo "$ac_t""yes" 1>&6
6307 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6308 cat >> confdefs.h <<EOF
6309 #define $ac_tr_func 1
6313 echo "$ac_t""no" 1>&6
6317 for ac_func in open64 _open64 __open64 creat64
6319 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6320 echo "configure:6321: checking for $ac_func" >&5
6321 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6322 echo $ac_n "(cached) $ac_c" 1>&6
6324 cat > conftest.$ac_ext <<EOF
6325 #line 6326 "configure"
6326 #include "confdefs.h"
6327 /* System header to define __stub macros and hopefully few prototypes,
6328 which can conflict with char $ac_func(); below. */
6330 /* Override any gcc2 internal prototype to avoid an error. */
6331 /* We use char because int might match the return type of a gcc2
6332 builtin and then its argument prototype would still apply. */
6337 /* The GNU C library defines this for functions which it implements
6338 to always fail with ENOSYS. Some functions are actually named
6339 something starting with __ and the normal name is an alias. */
6340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6348 if { (eval echo configure:6349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6350 eval "ac_cv_func_$ac_func=yes"
6352 echo "configure: failed program was:" >&5
6353 cat conftest.$ac_ext >&5
6355 eval "ac_cv_func_$ac_func=no"
6360 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6361 echo "$ac_t""yes" 1>&6
6362 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6363 cat >> confdefs.h <<EOF
6364 #define $ac_tr_func 1
6368 echo "$ac_t""no" 1>&6
6374 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6377 if test x$ac_cv_func_stat64 = xno ; then
6378 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6379 echo "configure:6380: checking for stat64 in <sys/stat.h>" >&5
6380 cat > conftest.$ac_ext <<EOF
6381 #line 6382 "configure"
6382 #include "confdefs.h"
6384 #if defined(HAVE_UNISTD_H)
6387 #include <sys/stat.h>
6390 struct stat64 st64; exit(stat64(".",&st64));
6393 if { (eval echo configure:6394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6395 ac_cv_func_stat64=yes
6397 echo "configure: failed program was:" >&5
6398 cat conftest.$ac_ext >&5
6401 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6402 if test x$ac_cv_func_stat64 = xyes ; then
6403 cat >> confdefs.h <<\EOF
6404 #define HAVE_STAT64 1
6410 if test x$ac_cv_func_lstat64 = xno ; then
6411 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6412 echo "configure:6413: checking for lstat64 in <sys/stat.h>" >&5
6413 cat > conftest.$ac_ext <<EOF
6414 #line 6415 "configure"
6415 #include "confdefs.h"
6417 #if defined(HAVE_UNISTD_H)
6420 #include <sys/stat.h>
6423 struct stat64 st64; exit(lstat64(".",&st64));
6426 if { (eval echo configure:6427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6428 ac_cv_func_lstat64=yes
6430 echo "configure: failed program was:" >&5
6431 cat conftest.$ac_ext >&5
6434 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6435 if test x$ac_cv_func_lstat64 = xyes ; then
6436 cat >> confdefs.h <<\EOF
6437 #define HAVE_LSTAT64 1
6443 if test x$ac_cv_func_fstat64 = xno ; then
6444 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6445 echo "configure:6446: checking for fstat64 in <sys/stat.h>" >&5
6446 cat > conftest.$ac_ext <<EOF
6447 #line 6448 "configure"
6448 #include "confdefs.h"
6450 #if defined(HAVE_UNISTD_H)
6453 #include <sys/stat.h>
6456 struct stat64 st64; exit(fstat64(0,&st64));
6459 if { (eval echo configure:6460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6461 ac_cv_func_fstat64=yes
6463 echo "configure: failed program was:" >&5
6464 cat conftest.$ac_ext >&5
6467 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6468 if test x$ac_cv_func_fstat64 = xyes ; then
6469 cat >> confdefs.h <<\EOF
6470 #define HAVE_FSTAT64 1
6477 # If no strcasecmp, check for it in some known places
6478 # It is in -lresolv on ReliantUNIX and UnixWare
6479 # -lresolve *must* follow -lnsl for name resolution to work properly
6482 if test x$ac_cv_func_strcasecmp = xno ; then
6483 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6484 echo "configure:6485: checking for strcasecmp in -lresolv" >&5
6485 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6486 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6487 echo $ac_n "(cached) $ac_c" 1>&6
6489 ac_save_LIBS="$LIBS"
6490 LIBS="-lresolv $LIBS"
6491 cat > conftest.$ac_ext <<EOF
6492 #line 6493 "configure"
6493 #include "confdefs.h"
6494 /* Override any gcc2 internal prototype to avoid an error. */
6495 /* We use char because int might match the return type of a gcc2
6496 builtin and then its argument prototype would still apply. */
6503 if { (eval echo configure:6504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6505 eval "ac_cv_lib_$ac_lib_var=yes"
6507 echo "configure: failed program was:" >&5
6508 cat conftest.$ac_ext >&5
6510 eval "ac_cv_lib_$ac_lib_var=no"
6513 LIBS="$ac_save_LIBS"
6516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6517 echo "$ac_t""yes" 1>&6
6518 LIBS="$LIBS -lresolv"
6519 cat >> confdefs.h <<\EOF
6520 #define HAVE_STRCASECMP 1
6524 echo "$ac_t""no" 1>&6
6530 # Check for the functions putprpwnam, set_auth_parameters,
6531 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6532 # Needed for OSF1 and HPUX.
6536 *-lsecurity*) for ac_func in putprpwnam
6538 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6539 echo "configure:6540: checking for $ac_func" >&5
6540 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6541 echo $ac_n "(cached) $ac_c" 1>&6
6543 cat > conftest.$ac_ext <<EOF
6544 #line 6545 "configure"
6545 #include "confdefs.h"
6546 /* System header to define __stub macros and hopefully few prototypes,
6547 which can conflict with char $ac_func(); below. */
6549 /* Override any gcc2 internal prototype to avoid an error. */
6550 /* We use char because int might match the return type of a gcc2
6551 builtin and then its argument prototype would still apply. */
6556 /* The GNU C library defines this for functions which it implements
6557 to always fail with ENOSYS. Some functions are actually named
6558 something starting with __ and the normal name is an alias. */
6559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6567 if { (eval echo configure:6568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6569 eval "ac_cv_func_$ac_func=yes"
6571 echo "configure: failed program was:" >&5
6572 cat conftest.$ac_ext >&5
6574 eval "ac_cv_func_$ac_func=no"
6579 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6580 echo "$ac_t""yes" 1>&6
6581 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6582 cat >> confdefs.h <<EOF
6583 #define $ac_tr_func 1
6587 echo "$ac_t""no" 1>&6
6591 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6592 echo "configure:6593: checking for putprpwnam in -lsecurity" >&5
6593 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6594 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6595 echo $ac_n "(cached) $ac_c" 1>&6
6597 ac_save_LIBS="$LIBS"
6598 LIBS="-lsecurity $LIBS"
6599 cat > conftest.$ac_ext <<EOF
6600 #line 6601 "configure"
6601 #include "confdefs.h"
6602 /* Override any gcc2 internal prototype to avoid an error. */
6603 /* We use char because int might match the return type of a gcc2
6604 builtin and then its argument prototype would still apply. */
6611 if { (eval echo configure:6612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6613 eval "ac_cv_lib_$ac_lib_var=yes"
6615 echo "configure: failed program was:" >&5
6616 cat conftest.$ac_ext >&5
6618 eval "ac_cv_lib_$ac_lib_var=no"
6621 LIBS="$ac_save_LIBS"
6624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6625 echo "$ac_t""yes" 1>&6
6626 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6627 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6628 cat >> confdefs.h <<EOF
6629 #define $ac_tr_lib 1
6632 LIBS="-lsecurity $LIBS"
6635 echo "$ac_t""no" 1>&6
6638 for ac_func in putprpwnam
6640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6641 echo "configure:6642: checking for $ac_func" >&5
6642 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6643 echo $ac_n "(cached) $ac_c" 1>&6
6645 cat > conftest.$ac_ext <<EOF
6646 #line 6647 "configure"
6647 #include "confdefs.h"
6648 /* System header to define __stub macros and hopefully few prototypes,
6649 which can conflict with char $ac_func(); below. */
6651 /* Override any gcc2 internal prototype to avoid an error. */
6652 /* We use char because int might match the return type of a gcc2
6653 builtin and then its argument prototype would still apply. */
6658 /* The GNU C library defines this for functions which it implements
6659 to always fail with ENOSYS. Some functions are actually named
6660 something starting with __ and the normal name is an alias. */
6661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6669 if { (eval echo configure:6670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6671 eval "ac_cv_func_$ac_func=yes"
6673 echo "configure: failed program was:" >&5
6674 cat conftest.$ac_ext >&5
6676 eval "ac_cv_func_$ac_func=no"
6681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6682 echo "$ac_t""yes" 1>&6
6683 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6684 cat >> confdefs.h <<EOF
6685 #define $ac_tr_func 1
6689 echo "$ac_t""no" 1>&6
6697 *-lsec*) for ac_func in putprpwnam
6699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6700 echo "configure:6701: checking for $ac_func" >&5
6701 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6702 echo $ac_n "(cached) $ac_c" 1>&6
6704 cat > conftest.$ac_ext <<EOF
6705 #line 6706 "configure"
6706 #include "confdefs.h"
6707 /* System header to define __stub macros and hopefully few prototypes,
6708 which can conflict with char $ac_func(); below. */
6710 /* Override any gcc2 internal prototype to avoid an error. */
6711 /* We use char because int might match the return type of a gcc2
6712 builtin and then its argument prototype would still apply. */
6717 /* The GNU C library defines this for functions which it implements
6718 to always fail with ENOSYS. Some functions are actually named
6719 something starting with __ and the normal name is an alias. */
6720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6728 if { (eval echo configure:6729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6730 eval "ac_cv_func_$ac_func=yes"
6732 echo "configure: failed program was:" >&5
6733 cat conftest.$ac_ext >&5
6735 eval "ac_cv_func_$ac_func=no"
6740 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6741 echo "$ac_t""yes" 1>&6
6742 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6743 cat >> confdefs.h <<EOF
6744 #define $ac_tr_func 1
6748 echo "$ac_t""no" 1>&6
6752 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6753 echo "configure:6754: checking for putprpwnam in -lsec" >&5
6754 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6755 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6756 echo $ac_n "(cached) $ac_c" 1>&6
6758 ac_save_LIBS="$LIBS"
6760 cat > conftest.$ac_ext <<EOF
6761 #line 6762 "configure"
6762 #include "confdefs.h"
6763 /* Override any gcc2 internal prototype to avoid an error. */
6764 /* We use char because int might match the return type of a gcc2
6765 builtin and then its argument prototype would still apply. */
6772 if { (eval echo configure:6773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6774 eval "ac_cv_lib_$ac_lib_var=yes"
6776 echo "configure: failed program was:" >&5
6777 cat conftest.$ac_ext >&5
6779 eval "ac_cv_lib_$ac_lib_var=no"
6782 LIBS="$ac_save_LIBS"
6785 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6786 echo "$ac_t""yes" 1>&6
6787 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6788 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6789 cat >> confdefs.h <<EOF
6790 #define $ac_tr_lib 1
6796 echo "$ac_t""no" 1>&6
6799 for ac_func in putprpwnam
6801 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6802 echo "configure:6803: checking for $ac_func" >&5
6803 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6804 echo $ac_n "(cached) $ac_c" 1>&6
6806 cat > conftest.$ac_ext <<EOF
6807 #line 6808 "configure"
6808 #include "confdefs.h"
6809 /* System header to define __stub macros and hopefully few prototypes,
6810 which can conflict with char $ac_func(); below. */
6812 /* Override any gcc2 internal prototype to avoid an error. */
6813 /* We use char because int might match the return type of a gcc2
6814 builtin and then its argument prototype would still apply. */
6819 /* The GNU C library defines this for functions which it implements
6820 to always fail with ENOSYS. Some functions are actually named
6821 something starting with __ and the normal name is an alias. */
6822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6830 if { (eval echo configure:6831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6832 eval "ac_cv_func_$ac_func=yes"
6834 echo "configure: failed program was:" >&5
6835 cat conftest.$ac_ext >&5
6837 eval "ac_cv_func_$ac_func=no"
6842 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6843 echo "$ac_t""yes" 1>&6
6844 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6845 cat >> confdefs.h <<EOF
6846 #define $ac_tr_func 1
6850 echo "$ac_t""no" 1>&6
6859 *-lsecurity*) for ac_func in set_auth_parameters
6861 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6862 echo "configure:6863: checking for $ac_func" >&5
6863 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6864 echo $ac_n "(cached) $ac_c" 1>&6
6866 cat > conftest.$ac_ext <<EOF
6867 #line 6868 "configure"
6868 #include "confdefs.h"
6869 /* System header to define __stub macros and hopefully few prototypes,
6870 which can conflict with char $ac_func(); below. */
6872 /* Override any gcc2 internal prototype to avoid an error. */
6873 /* We use char because int might match the return type of a gcc2
6874 builtin and then its argument prototype would still apply. */
6879 /* The GNU C library defines this for functions which it implements
6880 to always fail with ENOSYS. Some functions are actually named
6881 something starting with __ and the normal name is an alias. */
6882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6890 if { (eval echo configure:6891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6892 eval "ac_cv_func_$ac_func=yes"
6894 echo "configure: failed program was:" >&5
6895 cat conftest.$ac_ext >&5
6897 eval "ac_cv_func_$ac_func=no"
6902 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6903 echo "$ac_t""yes" 1>&6
6904 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6905 cat >> confdefs.h <<EOF
6906 #define $ac_tr_func 1
6910 echo "$ac_t""no" 1>&6
6914 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6915 echo "configure:6916: checking for set_auth_parameters in -lsecurity" >&5
6916 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6917 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6918 echo $ac_n "(cached) $ac_c" 1>&6
6920 ac_save_LIBS="$LIBS"
6921 LIBS="-lsecurity $LIBS"
6922 cat > conftest.$ac_ext <<EOF
6923 #line 6924 "configure"
6924 #include "confdefs.h"
6925 /* Override any gcc2 internal prototype to avoid an error. */
6926 /* We use char because int might match the return type of a gcc2
6927 builtin and then its argument prototype would still apply. */
6928 char set_auth_parameters();
6931 set_auth_parameters()
6934 if { (eval echo configure:6935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6936 eval "ac_cv_lib_$ac_lib_var=yes"
6938 echo "configure: failed program was:" >&5
6939 cat conftest.$ac_ext >&5
6941 eval "ac_cv_lib_$ac_lib_var=no"
6944 LIBS="$ac_save_LIBS"
6947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6948 echo "$ac_t""yes" 1>&6
6949 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6950 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6951 cat >> confdefs.h <<EOF
6952 #define $ac_tr_lib 1
6955 LIBS="-lsecurity $LIBS"
6958 echo "$ac_t""no" 1>&6
6961 for ac_func in set_auth_parameters
6963 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6964 echo "configure:6965: checking for $ac_func" >&5
6965 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6966 echo $ac_n "(cached) $ac_c" 1>&6
6968 cat > conftest.$ac_ext <<EOF
6969 #line 6970 "configure"
6970 #include "confdefs.h"
6971 /* System header to define __stub macros and hopefully few prototypes,
6972 which can conflict with char $ac_func(); below. */
6974 /* Override any gcc2 internal prototype to avoid an error. */
6975 /* We use char because int might match the return type of a gcc2
6976 builtin and then its argument prototype would still apply. */
6981 /* The GNU C library defines this for functions which it implements
6982 to always fail with ENOSYS. Some functions are actually named
6983 something starting with __ and the normal name is an alias. */
6984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6992 if { (eval echo configure:6993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6994 eval "ac_cv_func_$ac_func=yes"
6996 echo "configure: failed program was:" >&5
6997 cat conftest.$ac_ext >&5
6999 eval "ac_cv_func_$ac_func=no"
7004 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7005 echo "$ac_t""yes" 1>&6
7006 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7007 cat >> confdefs.h <<EOF
7008 #define $ac_tr_func 1
7012 echo "$ac_t""no" 1>&6
7020 *-lsec*) for ac_func in set_auth_parameters
7022 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7023 echo "configure:7024: checking for $ac_func" >&5
7024 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7025 echo $ac_n "(cached) $ac_c" 1>&6
7027 cat > conftest.$ac_ext <<EOF
7028 #line 7029 "configure"
7029 #include "confdefs.h"
7030 /* System header to define __stub macros and hopefully few prototypes,
7031 which can conflict with char $ac_func(); below. */
7033 /* Override any gcc2 internal prototype to avoid an error. */
7034 /* We use char because int might match the return type of a gcc2
7035 builtin and then its argument prototype would still apply. */
7040 /* The GNU C library defines this for functions which it implements
7041 to always fail with ENOSYS. Some functions are actually named
7042 something starting with __ and the normal name is an alias. */
7043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7051 if { (eval echo configure:7052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7053 eval "ac_cv_func_$ac_func=yes"
7055 echo "configure: failed program was:" >&5
7056 cat conftest.$ac_ext >&5
7058 eval "ac_cv_func_$ac_func=no"
7063 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7064 echo "$ac_t""yes" 1>&6
7065 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7066 cat >> confdefs.h <<EOF
7067 #define $ac_tr_func 1
7071 echo "$ac_t""no" 1>&6
7075 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7076 echo "configure:7077: checking for set_auth_parameters in -lsec" >&5
7077 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7078 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7079 echo $ac_n "(cached) $ac_c" 1>&6
7081 ac_save_LIBS="$LIBS"
7083 cat > conftest.$ac_ext <<EOF
7084 #line 7085 "configure"
7085 #include "confdefs.h"
7086 /* Override any gcc2 internal prototype to avoid an error. */
7087 /* We use char because int might match the return type of a gcc2
7088 builtin and then its argument prototype would still apply. */
7089 char set_auth_parameters();
7092 set_auth_parameters()
7095 if { (eval echo configure:7096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7097 eval "ac_cv_lib_$ac_lib_var=yes"
7099 echo "configure: failed program was:" >&5
7100 cat conftest.$ac_ext >&5
7102 eval "ac_cv_lib_$ac_lib_var=no"
7105 LIBS="$ac_save_LIBS"
7108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7109 echo "$ac_t""yes" 1>&6
7110 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7111 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7112 cat >> confdefs.h <<EOF
7113 #define $ac_tr_lib 1
7119 echo "$ac_t""no" 1>&6
7122 for ac_func in set_auth_parameters
7124 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7125 echo "configure:7126: checking for $ac_func" >&5
7126 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7127 echo $ac_n "(cached) $ac_c" 1>&6
7129 cat > conftest.$ac_ext <<EOF
7130 #line 7131 "configure"
7131 #include "confdefs.h"
7132 /* System header to define __stub macros and hopefully few prototypes,
7133 which can conflict with char $ac_func(); below. */
7135 /* Override any gcc2 internal prototype to avoid an error. */
7136 /* We use char because int might match the return type of a gcc2
7137 builtin and then its argument prototype would still apply. */
7142 /* The GNU C library defines this for functions which it implements
7143 to always fail with ENOSYS. Some functions are actually named
7144 something starting with __ and the normal name is an alias. */
7145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7153 if { (eval echo configure:7154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7155 eval "ac_cv_func_$ac_func=yes"
7157 echo "configure: failed program was:" >&5
7158 cat conftest.$ac_ext >&5
7160 eval "ac_cv_func_$ac_func=no"
7165 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7166 echo "$ac_t""yes" 1>&6
7167 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7168 cat >> confdefs.h <<EOF
7169 #define $ac_tr_func 1
7173 echo "$ac_t""no" 1>&6
7181 # UnixWare 7.x has its getspnam in -lgen
7183 *-lgen*) for ac_func in getspnam
7185 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7186 echo "configure:7187: checking for $ac_func" >&5
7187 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7188 echo $ac_n "(cached) $ac_c" 1>&6
7190 cat > conftest.$ac_ext <<EOF
7191 #line 7192 "configure"
7192 #include "confdefs.h"
7193 /* System header to define __stub macros and hopefully few prototypes,
7194 which can conflict with char $ac_func(); below. */
7196 /* Override any gcc2 internal prototype to avoid an error. */
7197 /* We use char because int might match the return type of a gcc2
7198 builtin and then its argument prototype would still apply. */
7203 /* The GNU C library defines this for functions which it implements
7204 to always fail with ENOSYS. Some functions are actually named
7205 something starting with __ and the normal name is an alias. */
7206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7214 if { (eval echo configure:7215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7216 eval "ac_cv_func_$ac_func=yes"
7218 echo "configure: failed program was:" >&5
7219 cat conftest.$ac_ext >&5
7221 eval "ac_cv_func_$ac_func=no"
7226 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7227 echo "$ac_t""yes" 1>&6
7228 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7229 cat >> confdefs.h <<EOF
7230 #define $ac_tr_func 1
7234 echo "$ac_t""no" 1>&6
7238 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7239 echo "configure:7240: checking for getspnam in -lgen" >&5
7240 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7241 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7242 echo $ac_n "(cached) $ac_c" 1>&6
7244 ac_save_LIBS="$LIBS"
7246 cat > conftest.$ac_ext <<EOF
7247 #line 7248 "configure"
7248 #include "confdefs.h"
7249 /* Override any gcc2 internal prototype to avoid an error. */
7250 /* We use char because int might match the return type of a gcc2
7251 builtin and then its argument prototype would still apply. */
7258 if { (eval echo configure:7259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7260 eval "ac_cv_lib_$ac_lib_var=yes"
7262 echo "configure: failed program was:" >&5
7263 cat conftest.$ac_ext >&5
7265 eval "ac_cv_lib_$ac_lib_var=no"
7268 LIBS="$ac_save_LIBS"
7271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7272 echo "$ac_t""yes" 1>&6
7273 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7274 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7275 cat >> confdefs.h <<EOF
7276 #define $ac_tr_lib 1
7282 echo "$ac_t""no" 1>&6
7285 for ac_func in getspnam
7287 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7288 echo "configure:7289: checking for $ac_func" >&5
7289 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7290 echo $ac_n "(cached) $ac_c" 1>&6
7292 cat > conftest.$ac_ext <<EOF
7293 #line 7294 "configure"
7294 #include "confdefs.h"
7295 /* System header to define __stub macros and hopefully few prototypes,
7296 which can conflict with char $ac_func(); below. */
7298 /* Override any gcc2 internal prototype to avoid an error. */
7299 /* We use char because int might match the return type of a gcc2
7300 builtin and then its argument prototype would still apply. */
7305 /* The GNU C library defines this for functions which it implements
7306 to always fail with ENOSYS. Some functions are actually named
7307 something starting with __ and the normal name is an alias. */
7308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7316 if { (eval echo configure:7317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7318 eval "ac_cv_func_$ac_func=yes"
7320 echo "configure: failed program was:" >&5
7321 cat conftest.$ac_ext >&5
7323 eval "ac_cv_func_$ac_func=no"
7328 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7329 echo "$ac_t""yes" 1>&6
7330 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7331 cat >> confdefs.h <<EOF
7332 #define $ac_tr_func 1
7336 echo "$ac_t""no" 1>&6
7345 *-lsecurity*) for ac_func in getspnam
7347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7348 echo "configure:7349: checking for $ac_func" >&5
7349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7350 echo $ac_n "(cached) $ac_c" 1>&6
7352 cat > conftest.$ac_ext <<EOF
7353 #line 7354 "configure"
7354 #include "confdefs.h"
7355 /* System header to define __stub macros and hopefully few prototypes,
7356 which can conflict with char $ac_func(); below. */
7358 /* Override any gcc2 internal prototype to avoid an error. */
7359 /* We use char because int might match the return type of a gcc2
7360 builtin and then its argument prototype would still apply. */
7365 /* The GNU C library defines this for functions which it implements
7366 to always fail with ENOSYS. Some functions are actually named
7367 something starting with __ and the normal name is an alias. */
7368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7376 if { (eval echo configure:7377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7378 eval "ac_cv_func_$ac_func=yes"
7380 echo "configure: failed program was:" >&5
7381 cat conftest.$ac_ext >&5
7383 eval "ac_cv_func_$ac_func=no"
7388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7389 echo "$ac_t""yes" 1>&6
7390 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7391 cat >> confdefs.h <<EOF
7392 #define $ac_tr_func 1
7396 echo "$ac_t""no" 1>&6
7400 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7401 echo "configure:7402: checking for getspnam in -lsecurity" >&5
7402 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7404 echo $ac_n "(cached) $ac_c" 1>&6
7406 ac_save_LIBS="$LIBS"
7407 LIBS="-lsecurity $LIBS"
7408 cat > conftest.$ac_ext <<EOF
7409 #line 7410 "configure"
7410 #include "confdefs.h"
7411 /* Override any gcc2 internal prototype to avoid an error. */
7412 /* We use char because int might match the return type of a gcc2
7413 builtin and then its argument prototype would still apply. */
7420 if { (eval echo configure:7421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7422 eval "ac_cv_lib_$ac_lib_var=yes"
7424 echo "configure: failed program was:" >&5
7425 cat conftest.$ac_ext >&5
7427 eval "ac_cv_lib_$ac_lib_var=no"
7430 LIBS="$ac_save_LIBS"
7433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7434 echo "$ac_t""yes" 1>&6
7435 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7436 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7437 cat >> confdefs.h <<EOF
7438 #define $ac_tr_lib 1
7441 LIBS="-lsecurity $LIBS"
7444 echo "$ac_t""no" 1>&6
7447 for ac_func in getspnam
7449 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7450 echo "configure:7451: checking for $ac_func" >&5
7451 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7452 echo $ac_n "(cached) $ac_c" 1>&6
7454 cat > conftest.$ac_ext <<EOF
7455 #line 7456 "configure"
7456 #include "confdefs.h"
7457 /* System header to define __stub macros and hopefully few prototypes,
7458 which can conflict with char $ac_func(); below. */
7460 /* Override any gcc2 internal prototype to avoid an error. */
7461 /* We use char because int might match the return type of a gcc2
7462 builtin and then its argument prototype would still apply. */
7467 /* The GNU C library defines this for functions which it implements
7468 to always fail with ENOSYS. Some functions are actually named
7469 something starting with __ and the normal name is an alias. */
7470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7478 if { (eval echo configure:7479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7480 eval "ac_cv_func_$ac_func=yes"
7482 echo "configure: failed program was:" >&5
7483 cat conftest.$ac_ext >&5
7485 eval "ac_cv_func_$ac_func=no"
7490 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7491 echo "$ac_t""yes" 1>&6
7492 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7493 cat >> confdefs.h <<EOF
7494 #define $ac_tr_func 1
7498 echo "$ac_t""no" 1>&6
7506 *-lsec*) for ac_func in getspnam
7508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7509 echo "configure:7510: checking for $ac_func" >&5
7510 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7511 echo $ac_n "(cached) $ac_c" 1>&6
7513 cat > conftest.$ac_ext <<EOF
7514 #line 7515 "configure"
7515 #include "confdefs.h"
7516 /* System header to define __stub macros and hopefully few prototypes,
7517 which can conflict with char $ac_func(); below. */
7519 /* Override any gcc2 internal prototype to avoid an error. */
7520 /* We use char because int might match the return type of a gcc2
7521 builtin and then its argument prototype would still apply. */
7526 /* The GNU C library defines this for functions which it implements
7527 to always fail with ENOSYS. Some functions are actually named
7528 something starting with __ and the normal name is an alias. */
7529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7537 if { (eval echo configure:7538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7539 eval "ac_cv_func_$ac_func=yes"
7541 echo "configure: failed program was:" >&5
7542 cat conftest.$ac_ext >&5
7544 eval "ac_cv_func_$ac_func=no"
7549 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7550 echo "$ac_t""yes" 1>&6
7551 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7552 cat >> confdefs.h <<EOF
7553 #define $ac_tr_func 1
7557 echo "$ac_t""no" 1>&6
7561 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7562 echo "configure:7563: checking for getspnam in -lsec" >&5
7563 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7564 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7565 echo $ac_n "(cached) $ac_c" 1>&6
7567 ac_save_LIBS="$LIBS"
7569 cat > conftest.$ac_ext <<EOF
7570 #line 7571 "configure"
7571 #include "confdefs.h"
7572 /* Override any gcc2 internal prototype to avoid an error. */
7573 /* We use char because int might match the return type of a gcc2
7574 builtin and then its argument prototype would still apply. */
7581 if { (eval echo configure:7582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7583 eval "ac_cv_lib_$ac_lib_var=yes"
7585 echo "configure: failed program was:" >&5
7586 cat conftest.$ac_ext >&5
7588 eval "ac_cv_lib_$ac_lib_var=no"
7591 LIBS="$ac_save_LIBS"
7594 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7595 echo "$ac_t""yes" 1>&6
7596 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7597 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7598 cat >> confdefs.h <<EOF
7599 #define $ac_tr_lib 1
7605 echo "$ac_t""no" 1>&6
7608 for ac_func in getspnam
7610 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7611 echo "configure:7612: checking for $ac_func" >&5
7612 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7613 echo $ac_n "(cached) $ac_c" 1>&6
7615 cat > conftest.$ac_ext <<EOF
7616 #line 7617 "configure"
7617 #include "confdefs.h"
7618 /* System header to define __stub macros and hopefully few prototypes,
7619 which can conflict with char $ac_func(); below. */
7621 /* Override any gcc2 internal prototype to avoid an error. */
7622 /* We use char because int might match the return type of a gcc2
7623 builtin and then its argument prototype would still apply. */
7628 /* The GNU C library defines this for functions which it implements
7629 to always fail with ENOSYS. Some functions are actually named
7630 something starting with __ and the normal name is an alias. */
7631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7639 if { (eval echo configure:7640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7641 eval "ac_cv_func_$ac_func=yes"
7643 echo "configure: failed program was:" >&5
7644 cat conftest.$ac_ext >&5
7646 eval "ac_cv_func_$ac_func=no"
7651 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7652 echo "$ac_t""yes" 1>&6
7653 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7654 cat >> confdefs.h <<EOF
7655 #define $ac_tr_func 1
7659 echo "$ac_t""no" 1>&6
7668 *-lsecurity*) for ac_func in bigcrypt
7670 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7671 echo "configure:7672: checking for $ac_func" >&5
7672 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7673 echo $ac_n "(cached) $ac_c" 1>&6
7675 cat > conftest.$ac_ext <<EOF
7676 #line 7677 "configure"
7677 #include "confdefs.h"
7678 /* System header to define __stub macros and hopefully few prototypes,
7679 which can conflict with char $ac_func(); below. */
7681 /* Override any gcc2 internal prototype to avoid an error. */
7682 /* We use char because int might match the return type of a gcc2
7683 builtin and then its argument prototype would still apply. */
7688 /* The GNU C library defines this for functions which it implements
7689 to always fail with ENOSYS. Some functions are actually named
7690 something starting with __ and the normal name is an alias. */
7691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7699 if { (eval echo configure:7700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7701 eval "ac_cv_func_$ac_func=yes"
7703 echo "configure: failed program was:" >&5
7704 cat conftest.$ac_ext >&5
7706 eval "ac_cv_func_$ac_func=no"
7711 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7712 echo "$ac_t""yes" 1>&6
7713 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7714 cat >> confdefs.h <<EOF
7715 #define $ac_tr_func 1
7719 echo "$ac_t""no" 1>&6
7723 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7724 echo "configure:7725: checking for bigcrypt in -lsecurity" >&5
7725 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7726 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7727 echo $ac_n "(cached) $ac_c" 1>&6
7729 ac_save_LIBS="$LIBS"
7730 LIBS="-lsecurity $LIBS"
7731 cat > conftest.$ac_ext <<EOF
7732 #line 7733 "configure"
7733 #include "confdefs.h"
7734 /* Override any gcc2 internal prototype to avoid an error. */
7735 /* We use char because int might match the return type of a gcc2
7736 builtin and then its argument prototype would still apply. */
7743 if { (eval echo configure:7744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7745 eval "ac_cv_lib_$ac_lib_var=yes"
7747 echo "configure: failed program was:" >&5
7748 cat conftest.$ac_ext >&5
7750 eval "ac_cv_lib_$ac_lib_var=no"
7753 LIBS="$ac_save_LIBS"
7756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7757 echo "$ac_t""yes" 1>&6
7758 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7759 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7760 cat >> confdefs.h <<EOF
7761 #define $ac_tr_lib 1
7764 LIBS="-lsecurity $LIBS"
7767 echo "$ac_t""no" 1>&6
7770 for ac_func in bigcrypt
7772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7773 echo "configure:7774: checking for $ac_func" >&5
7774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7775 echo $ac_n "(cached) $ac_c" 1>&6
7777 cat > conftest.$ac_ext <<EOF
7778 #line 7779 "configure"
7779 #include "confdefs.h"
7780 /* System header to define __stub macros and hopefully few prototypes,
7781 which can conflict with char $ac_func(); below. */
7783 /* Override any gcc2 internal prototype to avoid an error. */
7784 /* We use char because int might match the return type of a gcc2
7785 builtin and then its argument prototype would still apply. */
7790 /* The GNU C library defines this for functions which it implements
7791 to always fail with ENOSYS. Some functions are actually named
7792 something starting with __ and the normal name is an alias. */
7793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7801 if { (eval echo configure:7802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7803 eval "ac_cv_func_$ac_func=yes"
7805 echo "configure: failed program was:" >&5
7806 cat conftest.$ac_ext >&5
7808 eval "ac_cv_func_$ac_func=no"
7813 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7814 echo "$ac_t""yes" 1>&6
7815 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7816 cat >> confdefs.h <<EOF
7817 #define $ac_tr_func 1
7821 echo "$ac_t""no" 1>&6
7829 *-lsec*) for ac_func in bigcrypt
7831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7832 echo "configure:7833: checking for $ac_func" >&5
7833 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7834 echo $ac_n "(cached) $ac_c" 1>&6
7836 cat > conftest.$ac_ext <<EOF
7837 #line 7838 "configure"
7838 #include "confdefs.h"
7839 /* System header to define __stub macros and hopefully few prototypes,
7840 which can conflict with char $ac_func(); below. */
7842 /* Override any gcc2 internal prototype to avoid an error. */
7843 /* We use char because int might match the return type of a gcc2
7844 builtin and then its argument prototype would still apply. */
7849 /* The GNU C library defines this for functions which it implements
7850 to always fail with ENOSYS. Some functions are actually named
7851 something starting with __ and the normal name is an alias. */
7852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7860 if { (eval echo configure:7861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7862 eval "ac_cv_func_$ac_func=yes"
7864 echo "configure: failed program was:" >&5
7865 cat conftest.$ac_ext >&5
7867 eval "ac_cv_func_$ac_func=no"
7872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7873 echo "$ac_t""yes" 1>&6
7874 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7875 cat >> confdefs.h <<EOF
7876 #define $ac_tr_func 1
7880 echo "$ac_t""no" 1>&6
7884 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7885 echo "configure:7886: checking for bigcrypt in -lsec" >&5
7886 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7887 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7888 echo $ac_n "(cached) $ac_c" 1>&6
7890 ac_save_LIBS="$LIBS"
7892 cat > conftest.$ac_ext <<EOF
7893 #line 7894 "configure"
7894 #include "confdefs.h"
7895 /* Override any gcc2 internal prototype to avoid an error. */
7896 /* We use char because int might match the return type of a gcc2
7897 builtin and then its argument prototype would still apply. */
7904 if { (eval echo configure:7905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7906 eval "ac_cv_lib_$ac_lib_var=yes"
7908 echo "configure: failed program was:" >&5
7909 cat conftest.$ac_ext >&5
7911 eval "ac_cv_lib_$ac_lib_var=no"
7914 LIBS="$ac_save_LIBS"
7917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7918 echo "$ac_t""yes" 1>&6
7919 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7920 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7921 cat >> confdefs.h <<EOF
7922 #define $ac_tr_lib 1
7928 echo "$ac_t""no" 1>&6
7931 for ac_func in bigcrypt
7933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7934 echo "configure:7935: checking for $ac_func" >&5
7935 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7936 echo $ac_n "(cached) $ac_c" 1>&6
7938 cat > conftest.$ac_ext <<EOF
7939 #line 7940 "configure"
7940 #include "confdefs.h"
7941 /* System header to define __stub macros and hopefully few prototypes,
7942 which can conflict with char $ac_func(); below. */
7944 /* Override any gcc2 internal prototype to avoid an error. */
7945 /* We use char because int might match the return type of a gcc2
7946 builtin and then its argument prototype would still apply. */
7951 /* The GNU C library defines this for functions which it implements
7952 to always fail with ENOSYS. Some functions are actually named
7953 something starting with __ and the normal name is an alias. */
7954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7962 if { (eval echo configure:7963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7964 eval "ac_cv_func_$ac_func=yes"
7966 echo "configure: failed program was:" >&5
7967 cat conftest.$ac_ext >&5
7969 eval "ac_cv_func_$ac_func=no"
7974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7975 echo "$ac_t""yes" 1>&6
7976 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7977 cat >> confdefs.h <<EOF
7978 #define $ac_tr_func 1
7982 echo "$ac_t""no" 1>&6
7991 *-lsecurity*) for ac_func in getprpwnam
7993 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7994 echo "configure:7995: checking for $ac_func" >&5
7995 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7996 echo $ac_n "(cached) $ac_c" 1>&6
7998 cat > conftest.$ac_ext <<EOF
7999 #line 8000 "configure"
8000 #include "confdefs.h"
8001 /* System header to define __stub macros and hopefully few prototypes,
8002 which can conflict with char $ac_func(); below. */
8004 /* Override any gcc2 internal prototype to avoid an error. */
8005 /* We use char because int might match the return type of a gcc2
8006 builtin and then its argument prototype would still apply. */
8011 /* The GNU C library defines this for functions which it implements
8012 to always fail with ENOSYS. Some functions are actually named
8013 something starting with __ and the normal name is an alias. */
8014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8022 if { (eval echo configure:8023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8024 eval "ac_cv_func_$ac_func=yes"
8026 echo "configure: failed program was:" >&5
8027 cat conftest.$ac_ext >&5
8029 eval "ac_cv_func_$ac_func=no"
8034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8035 echo "$ac_t""yes" 1>&6
8036 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8037 cat >> confdefs.h <<EOF
8038 #define $ac_tr_func 1
8042 echo "$ac_t""no" 1>&6
8046 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8047 echo "configure:8048: checking for getprpwnam in -lsecurity" >&5
8048 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8049 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8050 echo $ac_n "(cached) $ac_c" 1>&6
8052 ac_save_LIBS="$LIBS"
8053 LIBS="-lsecurity $LIBS"
8054 cat > conftest.$ac_ext <<EOF
8055 #line 8056 "configure"
8056 #include "confdefs.h"
8057 /* Override any gcc2 internal prototype to avoid an error. */
8058 /* We use char because int might match the return type of a gcc2
8059 builtin and then its argument prototype would still apply. */
8066 if { (eval echo configure:8067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8068 eval "ac_cv_lib_$ac_lib_var=yes"
8070 echo "configure: failed program was:" >&5
8071 cat conftest.$ac_ext >&5
8073 eval "ac_cv_lib_$ac_lib_var=no"
8076 LIBS="$ac_save_LIBS"
8079 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8080 echo "$ac_t""yes" 1>&6
8081 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8082 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8083 cat >> confdefs.h <<EOF
8084 #define $ac_tr_lib 1
8087 LIBS="-lsecurity $LIBS"
8090 echo "$ac_t""no" 1>&6
8093 for ac_func in getprpwnam
8095 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8096 echo "configure:8097: checking for $ac_func" >&5
8097 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8098 echo $ac_n "(cached) $ac_c" 1>&6
8100 cat > conftest.$ac_ext <<EOF
8101 #line 8102 "configure"
8102 #include "confdefs.h"
8103 /* System header to define __stub macros and hopefully few prototypes,
8104 which can conflict with char $ac_func(); below. */
8106 /* Override any gcc2 internal prototype to avoid an error. */
8107 /* We use char because int might match the return type of a gcc2
8108 builtin and then its argument prototype would still apply. */
8113 /* The GNU C library defines this for functions which it implements
8114 to always fail with ENOSYS. Some functions are actually named
8115 something starting with __ and the normal name is an alias. */
8116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8124 if { (eval echo configure:8125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8126 eval "ac_cv_func_$ac_func=yes"
8128 echo "configure: failed program was:" >&5
8129 cat conftest.$ac_ext >&5
8131 eval "ac_cv_func_$ac_func=no"
8136 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8137 echo "$ac_t""yes" 1>&6
8138 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8139 cat >> confdefs.h <<EOF
8140 #define $ac_tr_func 1
8144 echo "$ac_t""no" 1>&6
8152 *-lsec*) for ac_func in getprpwnam
8154 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8155 echo "configure:8156: checking for $ac_func" >&5
8156 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8157 echo $ac_n "(cached) $ac_c" 1>&6
8159 cat > conftest.$ac_ext <<EOF
8160 #line 8161 "configure"
8161 #include "confdefs.h"
8162 /* System header to define __stub macros and hopefully few prototypes,
8163 which can conflict with char $ac_func(); below. */
8165 /* Override any gcc2 internal prototype to avoid an error. */
8166 /* We use char because int might match the return type of a gcc2
8167 builtin and then its argument prototype would still apply. */
8172 /* The GNU C library defines this for functions which it implements
8173 to always fail with ENOSYS. Some functions are actually named
8174 something starting with __ and the normal name is an alias. */
8175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8183 if { (eval echo configure:8184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8185 eval "ac_cv_func_$ac_func=yes"
8187 echo "configure: failed program was:" >&5
8188 cat conftest.$ac_ext >&5
8190 eval "ac_cv_func_$ac_func=no"
8195 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8196 echo "$ac_t""yes" 1>&6
8197 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8198 cat >> confdefs.h <<EOF
8199 #define $ac_tr_func 1
8203 echo "$ac_t""no" 1>&6
8207 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8208 echo "configure:8209: checking for getprpwnam in -lsec" >&5
8209 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8210 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8211 echo $ac_n "(cached) $ac_c" 1>&6
8213 ac_save_LIBS="$LIBS"
8215 cat > conftest.$ac_ext <<EOF
8216 #line 8217 "configure"
8217 #include "confdefs.h"
8218 /* Override any gcc2 internal prototype to avoid an error. */
8219 /* We use char because int might match the return type of a gcc2
8220 builtin and then its argument prototype would still apply. */
8227 if { (eval echo configure:8228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8229 eval "ac_cv_lib_$ac_lib_var=yes"
8231 echo "configure: failed program was:" >&5
8232 cat conftest.$ac_ext >&5
8234 eval "ac_cv_lib_$ac_lib_var=no"
8237 LIBS="$ac_save_LIBS"
8240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8241 echo "$ac_t""yes" 1>&6
8242 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8243 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8244 cat >> confdefs.h <<EOF
8245 #define $ac_tr_lib 1
8251 echo "$ac_t""no" 1>&6
8254 for ac_func in getprpwnam
8256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8257 echo "configure:8258: checking for $ac_func" >&5
8258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8259 echo $ac_n "(cached) $ac_c" 1>&6
8261 cat > conftest.$ac_ext <<EOF
8262 #line 8263 "configure"
8263 #include "confdefs.h"
8264 /* System header to define __stub macros and hopefully few prototypes,
8265 which can conflict with char $ac_func(); below. */
8267 /* Override any gcc2 internal prototype to avoid an error. */
8268 /* We use char because int might match the return type of a gcc2
8269 builtin and then its argument prototype would still apply. */
8274 /* The GNU C library defines this for functions which it implements
8275 to always fail with ENOSYS. Some functions are actually named
8276 something starting with __ and the normal name is an alias. */
8277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8285 if { (eval echo configure:8286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8287 eval "ac_cv_func_$ac_func=yes"
8289 echo "configure: failed program was:" >&5
8290 cat conftest.$ac_ext >&5
8292 eval "ac_cv_func_$ac_func=no"
8297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8298 echo "$ac_t""yes" 1>&6
8299 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8300 cat >> confdefs.h <<EOF
8301 #define $ac_tr_func 1
8305 echo "$ac_t""no" 1>&6
8313 # this bit needs to be modified for each OS that is suported by
8314 # smbwrapper. You need to specify how to created a shared library and
8315 # how to compile C code to produce PIC object files
8317 # these are the defaults, good for lots of systems
8327 # and these are for particular systems
8329 *linux*) cat >> confdefs.h <<\EOF
8337 *solaris*) cat >> confdefs.h <<\EOF
8342 LDSHFLAGS="-Wl,-h,\$@.so -G"
8343 if test "${ac_cv_prog_CC}" = "gcc"; then
8351 *sunos*) cat >> confdefs.h <<\EOF
8356 LDSHFLAGS="-Wl,-h,\$@ -G"
8357 PICFLAG="-KPIC" # Is this correct for SunOS
8359 *bsd*) BLDSHARED="true"
8360 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8363 *irix*) cat >> confdefs.h <<\EOF
8368 *irix6*) cat >> confdefs.h <<\EOF
8374 ATTEMPT_WRAP32_BUILD=yes
8376 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8377 if test "${ac_cv_prog_CC}" = "gcc"; then
8383 *aix*) cat >> confdefs.h <<\EOF
8388 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8389 PICFLAG="-O2 -qmaxmem=6000"
8391 *hpux*) cat >> confdefs.h <<\EOF
8396 # Use special PIC flags for the native HP-UX compiler.
8397 if test $ac_cv_prog_cc_Ae = yes; then
8399 LDSHFLAGS="-b -z +h \$@"
8403 *qnx*) cat >> confdefs.h <<\EOF
8407 *osf*) cat >> confdefs.h <<\EOF
8412 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8415 *sco*) cat >> confdefs.h <<\EOF
8419 *unixware*) cat >> confdefs.h <<\EOF
8424 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8427 *next2*) cat >> confdefs.h <<\EOF
8431 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8432 set dummy groff; ac_word=$2
8433 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8434 echo "configure:8435: checking for $ac_word" >&5
8435 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8436 echo $ac_n "(cached) $ac_c" 1>&6
8438 if test -n "$ROFF"; then
8439 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8441 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8443 for ac_dir in $ac_dummy; do
8444 test -z "$ac_dir" && ac_dir=.
8445 if test -f $ac_dir/$ac_word; then
8446 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8453 ROFF="$ac_cv_prog_ROFF"
8454 if test -n "$ROFF"; then
8455 echo "$ac_t""$ROFF" 1>&6
8457 echo "$ac_t""no" 1>&6
8462 *-univel-*) if test "$GCC" != yes ; then
8463 cat >> confdefs.h <<\EOF
8464 #define HAVE_MEMSET 1
8470 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8471 #define RELIANTUNIX 1
8477 if test "$GCC" != yes ; then
8478 cat >> confdefs.h <<\EOF
8479 #define HAVE_MEMSET 1
8489 echo $ac_n "checking for long long""... $ac_c" 1>&6
8490 echo "configure:8491: checking for long long" >&5
8491 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8492 echo $ac_n "(cached) $ac_c" 1>&6
8495 if test "$cross_compiling" = yes; then
8496 samba_cv_have_longlong=cross
8498 cat > conftest.$ac_ext <<EOF
8499 #line 8500 "configure"
8500 #include "confdefs.h"
8502 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8504 if { (eval echo configure:8505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8506 samba_cv_have_longlong=yes
8508 echo "configure: failed program was:" >&5
8509 cat conftest.$ac_ext >&5
8511 samba_cv_have_longlong=no
8518 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8519 if test x"$samba_cv_have_longlong" = x"yes"; then
8520 cat >> confdefs.h <<\EOF
8521 #define HAVE_LONGLONG 1
8527 # Check if the compiler supports the LL prefix on long long integers.
8530 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8531 echo "configure:8532: checking for LL suffix on long long integers" >&5
8532 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8533 echo $ac_n "(cached) $ac_c" 1>&6
8536 cat > conftest.$ac_ext <<EOF
8537 #line 8538 "configure"
8538 #include "confdefs.h"
8541 long long i = 0x8000000000LL
8544 if { (eval echo configure:8545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8546 samba_cv_compiler_supports_ll=yes
8548 echo "configure: failed program was:" >&5
8549 cat conftest.$ac_ext >&5
8551 samba_cv_compiler_supports_ll=no
8556 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8557 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8558 cat >> confdefs.h <<\EOF
8559 #define COMPILER_SUPPORTS_LL 1
8565 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8566 echo "configure:8567: checking for 64 bit off_t" >&5
8567 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8568 echo $ac_n "(cached) $ac_c" 1>&6
8571 if test "$cross_compiling" = yes; then
8572 samba_cv_SIZEOF_OFF_T=cross
8574 cat > conftest.$ac_ext <<EOF
8575 #line 8576 "configure"
8576 #include "confdefs.h"
8578 #include <sys/stat.h>
8579 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8581 if { (eval echo configure:8582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8583 samba_cv_SIZEOF_OFF_T=yes
8585 echo "configure: failed program was:" >&5
8586 cat conftest.$ac_ext >&5
8588 samba_cv_SIZEOF_OFF_T=no
8595 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8596 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8597 cat >> confdefs.h <<\EOF
8598 #define SIZEOF_OFF_T 8
8603 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8604 echo "configure:8605: checking for off64_t" >&5
8605 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8606 echo $ac_n "(cached) $ac_c" 1>&6
8609 if test "$cross_compiling" = yes; then
8610 samba_cv_HAVE_OFF64_T=cross
8612 cat > conftest.$ac_ext <<EOF
8613 #line 8614 "configure"
8614 #include "confdefs.h"
8616 #if defined(HAVE_UNISTD_H)
8620 #include <sys/stat.h>
8621 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8623 if { (eval echo configure:8624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8625 samba_cv_HAVE_OFF64_T=yes
8627 echo "configure: failed program was:" >&5
8628 cat conftest.$ac_ext >&5
8630 samba_cv_HAVE_OFF64_T=no
8637 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8638 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8639 cat >> confdefs.h <<\EOF
8640 #define HAVE_OFF64_T 1
8645 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8646 echo "configure:8647: checking for 64 bit ino_t" >&5
8647 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8648 echo $ac_n "(cached) $ac_c" 1>&6
8651 if test "$cross_compiling" = yes; then
8652 samba_cv_SIZEOF_INO_T=cross
8654 cat > conftest.$ac_ext <<EOF
8655 #line 8656 "configure"
8656 #include "confdefs.h"
8658 #include <sys/stat.h>
8659 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8661 if { (eval echo configure:8662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8663 samba_cv_SIZEOF_INO_T=yes
8665 echo "configure: failed program was:" >&5
8666 cat conftest.$ac_ext >&5
8668 samba_cv_SIZEOF_INO_T=no
8675 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8676 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8677 cat >> confdefs.h <<\EOF
8678 #define SIZEOF_INO_T 8
8683 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8684 echo "configure:8685: checking for ino64_t" >&5
8685 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8686 echo $ac_n "(cached) $ac_c" 1>&6
8689 if test "$cross_compiling" = yes; then
8690 samba_cv_HAVE_INO64_T=cross
8692 cat > conftest.$ac_ext <<EOF
8693 #line 8694 "configure"
8694 #include "confdefs.h"
8696 #if defined(HAVE_UNISTD_H)
8700 #include <sys/stat.h>
8701 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8703 if { (eval echo configure:8704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8705 samba_cv_HAVE_INO64_T=yes
8707 echo "configure: failed program was:" >&5
8708 cat conftest.$ac_ext >&5
8710 samba_cv_HAVE_INO64_T=no
8717 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8718 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8719 cat >> confdefs.h <<\EOF
8720 #define HAVE_INO64_T 1
8725 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8726 echo "configure:8727: checking for struct dirent64" >&5
8727 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8728 echo $ac_n "(cached) $ac_c" 1>&6
8731 cat > conftest.$ac_ext <<EOF
8732 #line 8733 "configure"
8733 #include "confdefs.h"
8735 #if defined(HAVE_UNISTD_H)
8738 #include <sys/types.h>
8744 if { (eval echo configure:8745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8746 samba_cv_HAVE_STRUCT_DIRENT64=yes
8748 echo "configure: failed program was:" >&5
8749 cat conftest.$ac_ext >&5
8751 samba_cv_HAVE_STRUCT_DIRENT64=no
8756 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8757 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
8758 cat >> confdefs.h <<\EOF
8759 #define HAVE_STRUCT_DIRENT64 1
8764 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8765 echo "configure:8766: checking for unsigned char" >&5
8766 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8767 echo $ac_n "(cached) $ac_c" 1>&6
8770 if test "$cross_compiling" = yes; then
8771 samba_cv_HAVE_UNSIGNED_CHAR=cross
8773 cat > conftest.$ac_ext <<EOF
8774 #line 8775 "configure"
8775 #include "confdefs.h"
8777 main() { char c; c=250; exit((c > 0)?0:1); }
8779 if { (eval echo configure:8780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8781 samba_cv_HAVE_UNSIGNED_CHAR=yes
8783 echo "configure: failed program was:" >&5
8784 cat conftest.$ac_ext >&5
8786 samba_cv_HAVE_UNSIGNED_CHAR=no
8793 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8794 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
8795 cat >> confdefs.h <<\EOF
8796 #define HAVE_UNSIGNED_CHAR 1
8801 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8802 echo "configure:8803: checking for sin_len in sock" >&5
8803 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8804 echo $ac_n "(cached) $ac_c" 1>&6
8807 cat > conftest.$ac_ext <<EOF
8808 #line 8809 "configure"
8809 #include "confdefs.h"
8810 #include <sys/types.h>
8811 #include <sys/socket.h>
8812 #include <netinet/in.h>
8814 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8817 if { (eval echo configure:8818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8819 samba_cv_HAVE_SOCK_SIN_LEN=yes
8821 echo "configure: failed program was:" >&5
8822 cat conftest.$ac_ext >&5
8824 samba_cv_HAVE_SOCK_SIN_LEN=no
8829 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8830 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
8831 cat >> confdefs.h <<\EOF
8832 #define HAVE_SOCK_SIN_LEN 1
8837 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8838 echo "configure:8839: checking whether seekdir returns void" >&5
8839 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8840 echo $ac_n "(cached) $ac_c" 1>&6
8843 cat > conftest.$ac_ext <<EOF
8844 #line 8845 "configure"
8845 #include "confdefs.h"
8846 #include <sys/types.h>
8848 void seekdir(DIR *d, long loc) { return; }
8853 if { (eval echo configure:8854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8855 samba_cv_SEEKDIR_RETURNS_VOID=yes
8857 echo "configure: failed program was:" >&5
8858 cat conftest.$ac_ext >&5
8860 samba_cv_SEEKDIR_RETURNS_VOID=no
8865 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8866 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
8867 cat >> confdefs.h <<\EOF
8868 #define SEEKDIR_RETURNS_VOID 1
8873 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8874 echo "configure:8875: checking for __FILE__ macro" >&5
8875 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8876 echo $ac_n "(cached) $ac_c" 1>&6
8879 cat > conftest.$ac_ext <<EOF
8880 #line 8881 "configure"
8881 #include "confdefs.h"
8884 printf("%s\n", __FILE__);
8887 if { (eval echo configure:8888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8889 samba_cv_HAVE_FILE_MACRO=yes
8891 echo "configure: failed program was:" >&5
8892 cat conftest.$ac_ext >&5
8894 samba_cv_HAVE_FILE_MACRO=no
8899 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8900 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
8901 cat >> confdefs.h <<\EOF
8902 #define HAVE_FILE_MACRO 1
8907 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8908 echo "configure:8909: checking for __FUNCTION__ macro" >&5
8909 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8910 echo $ac_n "(cached) $ac_c" 1>&6
8913 cat > conftest.$ac_ext <<EOF
8914 #line 8915 "configure"
8915 #include "confdefs.h"
8918 printf("%s\n", __FUNCTION__);
8921 if { (eval echo configure:8922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8923 samba_cv_HAVE_FUNCTION_MACRO=yes
8925 echo "configure: failed program was:" >&5
8926 cat conftest.$ac_ext >&5
8928 samba_cv_HAVE_FUNCTION_MACRO=no
8933 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8934 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
8935 cat >> confdefs.h <<\EOF
8936 #define HAVE_FUNCTION_MACRO 1
8941 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8942 echo "configure:8943: checking if gettimeofday takes tz argument" >&5
8943 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8944 echo $ac_n "(cached) $ac_c" 1>&6
8947 if test "$cross_compiling" = yes; then
8948 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
8950 cat > conftest.$ac_ext <<EOF
8951 #line 8952 "configure"
8952 #include "confdefs.h"
8954 #include <sys/time.h>
8956 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8958 if { (eval echo configure:8959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8960 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
8962 echo "configure: failed program was:" >&5
8963 cat conftest.$ac_ext >&5
8965 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
8972 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8973 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
8974 cat >> confdefs.h <<\EOF
8975 #define HAVE_GETTIMEOFDAY_TZ 1
8980 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
8981 echo "configure:8982: checking for C99 vsnprintf" >&5
8982 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
8983 echo $ac_n "(cached) $ac_c" 1>&6
8986 if test "$cross_compiling" = yes; then
8987 samba_cv_HAVE_C99_VSNPRINTF=cross
8989 cat > conftest.$ac_ext <<EOF
8990 #line 8991 "configure"
8991 #include "confdefs.h"
8993 #include <sys/types.h>
8995 void foo(const char *format, ...) {
9000 va_start(ap, format);
9001 len = vsnprintf(0, 0, format, ap);
9003 if (len != 5) exit(1);
9005 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9009 main() { foo("hello"); }
9012 if { (eval echo configure:9013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9014 samba_cv_HAVE_C99_VSNPRINTF=yes
9016 echo "configure: failed program was:" >&5
9017 cat conftest.$ac_ext >&5
9019 samba_cv_HAVE_C99_VSNPRINTF=no
9026 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9027 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9028 cat >> confdefs.h <<\EOF
9029 #define HAVE_C99_VSNPRINTF 1
9034 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9035 echo "configure:9036: checking for broken readdir" >&5
9036 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9037 echo $ac_n "(cached) $ac_c" 1>&6
9040 if test "$cross_compiling" = yes; then
9041 samba_cv_HAVE_BROKEN_READDIR=cross
9043 cat > conftest.$ac_ext <<EOF
9044 #line 9045 "configure"
9045 #include "confdefs.h"
9046 #include <sys/types.h>
9048 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9049 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9050 di->d_name[0] == 0) exit(0); exit(1);}
9052 if { (eval echo configure:9053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9054 samba_cv_HAVE_BROKEN_READDIR=yes
9056 echo "configure: failed program was:" >&5
9057 cat conftest.$ac_ext >&5
9059 samba_cv_HAVE_BROKEN_READDIR=no
9066 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9067 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9068 cat >> confdefs.h <<\EOF
9069 #define HAVE_BROKEN_READDIR 1
9074 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9075 echo "configure:9076: checking for utimbuf" >&5
9076 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9077 echo $ac_n "(cached) $ac_c" 1>&6
9080 cat > conftest.$ac_ext <<EOF
9081 #line 9082 "configure"
9082 #include "confdefs.h"
9083 #include <sys/types.h>
9086 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9089 if { (eval echo configure:9090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9091 samba_cv_HAVE_UTIMBUF=yes
9093 echo "configure: failed program was:" >&5
9094 cat conftest.$ac_ext >&5
9096 samba_cv_HAVE_UTIMBUF=no
9101 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9102 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9103 cat >> confdefs.h <<\EOF
9104 #define HAVE_UTIMBUF 1
9110 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9113 echo "configure:9114: checking for $ac_func" >&5
9114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9115 echo $ac_n "(cached) $ac_c" 1>&6
9117 cat > conftest.$ac_ext <<EOF
9118 #line 9119 "configure"
9119 #include "confdefs.h"
9120 /* System header to define __stub macros and hopefully few prototypes,
9121 which can conflict with char $ac_func(); below. */
9123 /* Override any gcc2 internal prototype to avoid an error. */
9124 /* We use char because int might match the return type of a gcc2
9125 builtin and then its argument prototype would still apply. */
9130 /* The GNU C library defines this for functions which it implements
9131 to always fail with ENOSYS. Some functions are actually named
9132 something starting with __ and the normal name is an alias. */
9133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9141 if { (eval echo configure:9142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9143 eval "ac_cv_func_$ac_func=yes"
9145 echo "configure: failed program was:" >&5
9146 cat conftest.$ac_ext >&5
9148 eval "ac_cv_func_$ac_func=no"
9153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9154 echo "$ac_t""yes" 1>&6
9155 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9156 cat >> confdefs.h <<EOF
9157 #define $ac_tr_func 1
9161 echo "$ac_t""no" 1>&6
9166 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9167 echo "configure:9168: checking for ut_name in utmp" >&5
9168 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9169 echo $ac_n "(cached) $ac_c" 1>&6
9172 cat > conftest.$ac_ext <<EOF
9173 #line 9174 "configure"
9174 #include "confdefs.h"
9175 #include <sys/types.h>
9178 struct utmp ut; ut.ut_name[0] = 'a';
9181 if { (eval echo configure:9182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9183 samba_cv_HAVE_UT_UT_NAME=yes
9185 echo "configure: failed program was:" >&5
9186 cat conftest.$ac_ext >&5
9188 samba_cv_HAVE_UT_UT_NAME=no
9193 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9194 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9195 cat >> confdefs.h <<\EOF
9196 #define HAVE_UT_UT_NAME 1
9201 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9202 echo "configure:9203: checking for ut_user in utmp" >&5
9203 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9204 echo $ac_n "(cached) $ac_c" 1>&6
9207 cat > conftest.$ac_ext <<EOF
9208 #line 9209 "configure"
9209 #include "confdefs.h"
9210 #include <sys/types.h>
9213 struct utmp ut; ut.ut_user[0] = 'a';
9216 if { (eval echo configure:9217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9218 samba_cv_HAVE_UT_UT_USER=yes
9220 echo "configure: failed program was:" >&5
9221 cat conftest.$ac_ext >&5
9223 samba_cv_HAVE_UT_UT_USER=no
9228 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9229 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9230 cat >> confdefs.h <<\EOF
9231 #define HAVE_UT_UT_USER 1
9236 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9237 echo "configure:9238: checking for ut_id in utmp" >&5
9238 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9239 echo $ac_n "(cached) $ac_c" 1>&6
9242 cat > conftest.$ac_ext <<EOF
9243 #line 9244 "configure"
9244 #include "confdefs.h"
9245 #include <sys/types.h>
9248 struct utmp ut; ut.ut_id[0] = 'a';
9251 if { (eval echo configure:9252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9253 samba_cv_HAVE_UT_UT_ID=yes
9255 echo "configure: failed program was:" >&5
9256 cat conftest.$ac_ext >&5
9258 samba_cv_HAVE_UT_UT_ID=no
9263 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9264 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9265 cat >> confdefs.h <<\EOF
9266 #define HAVE_UT_UT_ID 1
9271 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9272 echo "configure:9273: checking for ut_host in utmp" >&5
9273 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9274 echo $ac_n "(cached) $ac_c" 1>&6
9277 cat > conftest.$ac_ext <<EOF
9278 #line 9279 "configure"
9279 #include "confdefs.h"
9280 #include <sys/types.h>
9283 struct utmp ut; ut.ut_host[0] = 'a';
9286 if { (eval echo configure:9287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9288 samba_cv_HAVE_UT_UT_HOST=yes
9290 echo "configure: failed program was:" >&5
9291 cat conftest.$ac_ext >&5
9293 samba_cv_HAVE_UT_UT_HOST=no
9298 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9299 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9300 cat >> confdefs.h <<\EOF
9301 #define HAVE_UT_UT_HOST 1
9306 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9307 echo "configure:9308: checking for ut_time in utmp" >&5
9308 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9309 echo $ac_n "(cached) $ac_c" 1>&6
9312 cat > conftest.$ac_ext <<EOF
9313 #line 9314 "configure"
9314 #include "confdefs.h"
9315 #include <sys/types.h>
9318 struct utmp ut; time_t t; ut.ut_time = t;
9321 if { (eval echo configure:9322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9323 samba_cv_HAVE_UT_UT_TIME=yes
9325 echo "configure: failed program was:" >&5
9326 cat conftest.$ac_ext >&5
9328 samba_cv_HAVE_UT_UT_TIME=no
9333 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9334 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9335 cat >> confdefs.h <<\EOF
9336 #define HAVE_UT_UT_TIME 1
9341 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9342 echo "configure:9343: checking for ut_tv in utmp" >&5
9343 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9344 echo $ac_n "(cached) $ac_c" 1>&6
9347 cat > conftest.$ac_ext <<EOF
9348 #line 9349 "configure"
9349 #include "confdefs.h"
9350 #include <sys/types.h>
9353 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9356 if { (eval echo configure:9357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9358 samba_cv_HAVE_UT_UT_TV=yes
9360 echo "configure: failed program was:" >&5
9361 cat conftest.$ac_ext >&5
9363 samba_cv_HAVE_UT_UT_TV=no
9368 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9369 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9370 cat >> confdefs.h <<\EOF
9371 #define HAVE_UT_UT_TV 1
9376 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9377 echo "configure:9378: checking for ut_type in utmp" >&5
9378 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9379 echo $ac_n "(cached) $ac_c" 1>&6
9382 cat > conftest.$ac_ext <<EOF
9383 #line 9384 "configure"
9384 #include "confdefs.h"
9385 #include <sys/types.h>
9388 struct utmp ut; ut.ut_type = 0;
9391 if { (eval echo configure:9392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9393 samba_cv_HAVE_UT_UT_TYPE=yes
9395 echo "configure: failed program was:" >&5
9396 cat conftest.$ac_ext >&5
9398 samba_cv_HAVE_UT_UT_TYPE=no
9403 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9404 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9405 cat >> confdefs.h <<\EOF
9406 #define HAVE_UT_UT_TYPE 1
9411 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9412 echo "configure:9413: checking for ut_pid in utmp" >&5
9413 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9414 echo $ac_n "(cached) $ac_c" 1>&6
9417 cat > conftest.$ac_ext <<EOF
9418 #line 9419 "configure"
9419 #include "confdefs.h"
9420 #include <sys/types.h>
9423 struct utmp ut; ut.ut_pid = 0;
9426 if { (eval echo configure:9427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9428 samba_cv_HAVE_UT_UT_PID=yes
9430 echo "configure: failed program was:" >&5
9431 cat conftest.$ac_ext >&5
9433 samba_cv_HAVE_UT_UT_PID=no
9438 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9439 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9440 cat >> confdefs.h <<\EOF
9441 #define HAVE_UT_UT_PID 1
9446 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9447 echo "configure:9448: checking for ut_exit in utmp" >&5
9448 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9449 echo $ac_n "(cached) $ac_c" 1>&6
9452 cat > conftest.$ac_ext <<EOF
9453 #line 9454 "configure"
9454 #include "confdefs.h"
9455 #include <sys/types.h>
9458 struct utmp ut; ut.ut_exit.e_exit = 0;
9461 if { (eval echo configure:9462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9463 samba_cv_HAVE_UT_UT_EXIT=yes
9465 echo "configure: failed program was:" >&5
9466 cat conftest.$ac_ext >&5
9468 samba_cv_HAVE_UT_UT_EXIT=no
9473 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9474 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9475 cat >> confdefs.h <<\EOF
9476 #define HAVE_UT_UT_EXIT 1
9481 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9482 echo "configure:9483: checking for ut_addr in utmp" >&5
9483 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9484 echo $ac_n "(cached) $ac_c" 1>&6
9487 cat > conftest.$ac_ext <<EOF
9488 #line 9489 "configure"
9489 #include "confdefs.h"
9490 #include <sys/types.h>
9493 struct utmp ut; ut.ut_addr = 0;
9496 if { (eval echo configure:9497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9498 samba_cv_HAVE_UT_UT_ADDR=yes
9500 echo "configure: failed program was:" >&5
9501 cat conftest.$ac_ext >&5
9503 samba_cv_HAVE_UT_UT_ADDR=no
9508 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9509 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9510 cat >> confdefs.h <<\EOF
9511 #define HAVE_UT_UT_ADDR 1
9516 if test x$ac_cv_func_pututline = xyes ; then
9517 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9518 echo "configure:9519: checking whether pututline returns pointer" >&5
9519 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9520 echo $ac_n "(cached) $ac_c" 1>&6
9523 cat > conftest.$ac_ext <<EOF
9524 #line 9525 "configure"
9525 #include "confdefs.h"
9526 #include <sys/types.h>
9529 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9532 if { (eval echo configure:9533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9534 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9536 echo "configure: failed program was:" >&5
9537 cat conftest.$ac_ext >&5
9539 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9544 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9545 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9546 cat >> confdefs.h <<\EOF
9547 #define PUTUTLINE_RETURNS_UTMP 1
9553 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9554 echo "configure:9555: checking for ut_syslen in utmpx" >&5
9555 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9556 echo $ac_n "(cached) $ac_c" 1>&6
9559 cat > conftest.$ac_ext <<EOF
9560 #line 9561 "configure"
9561 #include "confdefs.h"
9562 #include <sys/types.h>
9565 struct utmpx ux; ux.ut_syslen = 0;
9568 if { (eval echo configure:9569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9570 samba_cv_HAVE_UX_UT_SYSLEN=yes
9572 echo "configure: failed program was:" >&5
9573 cat conftest.$ac_ext >&5
9575 samba_cv_HAVE_UX_UT_SYSLEN=no
9580 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9581 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9582 cat >> confdefs.h <<\EOF
9583 #define HAVE_UX_UT_SYSLEN 1
9589 #################################################
9590 # check for libiconv support
9591 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
9592 echo "configure:9593: checking whether to use libiconv" >&5
9593 # Check whether --with-libiconv or --without-libiconv was given.
9594 if test "${with_libiconv+set}" = set; then
9595 withval="$with_libiconv"
9598 echo "$ac_t""no" 1>&6
9601 echo "$ac_t""yes" 1>&6
9602 CFLAGS="$CFLAGS -I$withval/include"
9603 LDFLAGS="$LDFLAGS -L$withval/lib"
9604 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
9605 echo "configure:9606: checking for iconv_open in -liconv" >&5
9606 ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
9607 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9608 echo $ac_n "(cached) $ac_c" 1>&6
9610 ac_save_LIBS="$LIBS"
9611 LIBS="-liconv $LIBS"
9612 cat > conftest.$ac_ext <<EOF
9613 #line 9614 "configure"
9614 #include "confdefs.h"
9615 /* Override any gcc2 internal prototype to avoid an error. */
9616 /* We use char because int might match the return type of a gcc2
9617 builtin and then its argument prototype would still apply. */
9624 if { (eval echo configure:9625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9626 eval "ac_cv_lib_$ac_lib_var=yes"
9628 echo "configure: failed program was:" >&5
9629 cat conftest.$ac_ext >&5
9631 eval "ac_cv_lib_$ac_lib_var=no"
9634 LIBS="$ac_save_LIBS"
9637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9638 echo "$ac_t""yes" 1>&6
9639 ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9640 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9641 cat >> confdefs.h <<EOF
9642 #define $ac_tr_lib 1
9645 LIBS="-liconv $LIBS"
9648 echo "$ac_t""no" 1>&6
9654 echo "$ac_t""no" 1>&6
9661 # check for iconv in libc
9662 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
9663 echo "configure:9664: checking for working iconv" >&5
9664 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
9665 echo $ac_n "(cached) $ac_c" 1>&6
9668 if test "$cross_compiling" = yes; then
9669 samba_cv_HAVE_NATIVE_ICONV=cross
9671 cat > conftest.$ac_ext <<EOF
9672 #line 9673 "configure"
9673 #include "confdefs.h"
9677 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
9678 if (cd == 0 || cd == (iconv_t)-1) return -1;
9683 if { (eval echo configure:9684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9685 samba_cv_HAVE_NATIVE_ICONV=yes
9687 echo "configure: failed program was:" >&5
9688 cat conftest.$ac_ext >&5
9690 samba_cv_HAVE_NATIVE_ICONV=no
9697 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
9698 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
9699 cat >> confdefs.h <<\EOF
9700 #define HAVE_NATIVE_ICONV 1
9706 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9707 echo "configure:9708: checking for Linux kernel oplocks" >&5
9708 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9709 echo $ac_n "(cached) $ac_c" 1>&6
9712 if test "$cross_compiling" = yes; then
9713 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9715 cat > conftest.$ac_ext <<EOF
9716 #line 9717 "configure"
9717 #include "confdefs.h"
9719 #include <sys/types.h>
9722 #define F_GETLEASE 1025
9725 int fd = open("/dev/null", O_RDONLY);
9726 return fcntl(fd, F_GETLEASE, 0) == -1;
9730 if { (eval echo configure:9731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9732 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
9734 echo "configure: failed program was:" >&5
9735 cat conftest.$ac_ext >&5
9737 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
9744 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9745 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
9746 cat >> confdefs.h <<\EOF
9747 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9752 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9753 echo "configure:9754: checking for kernel change notify support" >&5
9754 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9755 echo $ac_n "(cached) $ac_c" 1>&6
9758 if test "$cross_compiling" = yes; then
9759 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
9761 cat > conftest.$ac_ext <<EOF
9762 #line 9763 "configure"
9763 #include "confdefs.h"
9765 #include <sys/types.h>
9769 #define F_NOTIFY 1026
9772 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9776 if { (eval echo configure:9777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9778 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
9780 echo "configure: failed program was:" >&5
9781 cat conftest.$ac_ext >&5
9783 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
9790 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9791 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
9792 cat >> confdefs.h <<\EOF
9793 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9798 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9799 echo "configure:9800: checking for kernel share modes" >&5
9800 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9801 echo $ac_n "(cached) $ac_c" 1>&6
9804 if test "$cross_compiling" = yes; then
9805 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
9807 cat > conftest.$ac_ext <<EOF
9808 #line 9809 "configure"
9809 #include "confdefs.h"
9811 #include <sys/types.h>
9814 #include <sys/file.h>
9816 #define LOCK_MAND 32
9817 #define LOCK_READ 64
9820 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9824 if { (eval echo configure:9825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9826 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
9828 echo "configure: failed program was:" >&5
9829 cat conftest.$ac_ext >&5
9831 samba_cv_HAVE_KERNEL_SHARE_MODES=no
9838 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9839 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
9840 cat >> confdefs.h <<\EOF
9841 #define HAVE_KERNEL_SHARE_MODES 1
9849 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9850 echo "configure:9851: checking for IRIX kernel oplock type definitions" >&5
9851 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9852 echo $ac_n "(cached) $ac_c" 1>&6
9855 cat > conftest.$ac_ext <<EOF
9856 #line 9857 "configure"
9857 #include "confdefs.h"
9858 #include <sys/types.h>
9861 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9864 if { (eval echo configure:9865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9866 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
9868 echo "configure: failed program was:" >&5
9869 cat conftest.$ac_ext >&5
9871 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
9876 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9877 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
9878 cat >> confdefs.h <<\EOF
9879 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9884 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9885 echo "configure:9886: checking for irix specific capabilities" >&5
9886 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9887 echo $ac_n "(cached) $ac_c" 1>&6
9890 if test "$cross_compiling" = yes; then
9891 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
9893 cat > conftest.$ac_ext <<EOF
9894 #line 9895 "configure"
9895 #include "confdefs.h"
9896 #include <sys/types.h>
9897 #include <sys/capability.h>
9900 if ((cap = cap_get_proc()) == NULL)
9902 cap->cap_effective |= CAP_NETWORK_MGT;
9903 cap->cap_inheritable |= CAP_NETWORK_MGT;
9909 if { (eval echo configure:9910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9911 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
9913 echo "configure: failed program was:" >&5
9914 cat conftest.$ac_ext >&5
9916 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
9923 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9924 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
9925 cat >> confdefs.h <<\EOF
9926 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9932 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9933 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9936 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9937 echo "configure:9938: checking for int16 typedef included by rpc/rpc.h" >&5
9938 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9939 echo $ac_n "(cached) $ac_c" 1>&6
9942 cat > conftest.$ac_ext <<EOF
9943 #line 9944 "configure"
9944 #include "confdefs.h"
9945 #include <sys/types.h>
9946 #if defined(HAVE_RPC_RPC_H)
9947 #include <rpc/rpc.h>
9953 if { (eval echo configure:9954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9955 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
9957 echo "configure: failed program was:" >&5
9958 cat conftest.$ac_ext >&5
9960 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
9965 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9966 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
9967 cat >> confdefs.h <<\EOF
9968 #define HAVE_INT16_FROM_RPC_RPC_H 1
9973 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9974 echo "configure:9975: checking for uint16 typedef included by rpc/rpc.h" >&5
9975 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9976 echo $ac_n "(cached) $ac_c" 1>&6
9979 cat > conftest.$ac_ext <<EOF
9980 #line 9981 "configure"
9981 #include "confdefs.h"
9982 #include <sys/types.h>
9983 #if defined(HAVE_RPC_RPC_H)
9984 #include <rpc/rpc.h>
9990 if { (eval echo configure:9991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9992 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
9994 echo "configure: failed program was:" >&5
9995 cat conftest.$ac_ext >&5
9997 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10002 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10003 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10004 cat >> confdefs.h <<\EOF
10005 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10010 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10011 echo "configure:10012: checking for int32 typedef included by rpc/rpc.h" >&5
10012 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10013 echo $ac_n "(cached) $ac_c" 1>&6
10016 cat > conftest.$ac_ext <<EOF
10017 #line 10018 "configure"
10018 #include "confdefs.h"
10019 #include <sys/types.h>
10020 #if defined(HAVE_RPC_RPC_H)
10021 #include <rpc/rpc.h>
10027 if { (eval echo configure:10028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10029 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10031 echo "configure: failed program was:" >&5
10032 cat conftest.$ac_ext >&5
10034 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10039 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10040 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10041 cat >> confdefs.h <<\EOF
10042 #define HAVE_INT32_FROM_RPC_RPC_H 1
10047 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10048 echo "configure:10049: checking for uint32 typedef included by rpc/rpc.h" >&5
10049 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10050 echo $ac_n "(cached) $ac_c" 1>&6
10053 cat > conftest.$ac_ext <<EOF
10054 #line 10055 "configure"
10055 #include "confdefs.h"
10056 #include <sys/types.h>
10057 #if defined(HAVE_RPC_RPC_H)
10058 #include <rpc/rpc.h>
10064 if { (eval echo configure:10065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10066 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10068 echo "configure: failed program was:" >&5
10069 cat conftest.$ac_ext >&5
10071 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10076 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10077 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10078 cat >> confdefs.h <<\EOF
10079 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10085 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10086 echo "configure:10087: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10087 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10088 echo $ac_n "(cached) $ac_c" 1>&6
10091 cat > conftest.$ac_ext <<EOF
10092 #line 10093 "configure"
10093 #include "confdefs.h"
10094 #include <sys/types.h>
10095 #ifdef HAVE_SYS_SECURITY_H
10096 #include <sys/security.h>
10098 #endif /* HAVE_SYS_SECURITY_H */
10099 #if defined(HAVE_RPC_RPC_H)
10100 #include <rpc/rpc.h>
10106 if { (eval echo configure:10107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10108 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10110 echo "configure: failed program was:" >&5
10111 cat conftest.$ac_ext >&5
10113 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10118 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10119 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10120 cat >> confdefs.h <<\EOF
10121 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10126 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10127 echo "configure:10128: checking for test routines" >&5
10128 if test "$cross_compiling" = yes; then
10129 echo "configure: warning: cannot run when cross-compiling" 1>&2
10131 cat > conftest.$ac_ext <<EOF
10132 #line 10133 "configure"
10133 #include "confdefs.h"
10134 #include "${srcdir-.}/tests/trivial.c"
10136 if { (eval echo configure:10137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10138 echo "$ac_t""yes" 1>&6
10140 echo "configure: failed program was:" >&5
10141 cat conftest.$ac_ext >&5
10143 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10149 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10150 echo "configure:10151: checking for ftruncate extend" >&5
10151 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10152 echo $ac_n "(cached) $ac_c" 1>&6
10155 if test "$cross_compiling" = yes; then
10156 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10158 cat > conftest.$ac_ext <<EOF
10159 #line 10160 "configure"
10160 #include "confdefs.h"
10161 #include "${srcdir-.}/tests/ftruncate.c"
10163 if { (eval echo configure:10164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10165 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10167 echo "configure: failed program was:" >&5
10168 cat conftest.$ac_ext >&5
10170 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10177 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10178 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10179 cat >> confdefs.h <<\EOF
10180 #define HAVE_FTRUNCATE_EXTEND 1
10185 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10186 echo "configure:10187: checking for AF_LOCAL socket support" >&5
10187 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10188 echo $ac_n "(cached) $ac_c" 1>&6
10191 if test "$cross_compiling" = yes; then
10192 samba_cv_HAVE_WORKING_AF_LOCAL=cross
10194 cat > conftest.$ac_ext <<EOF
10195 #line 10196 "configure"
10196 #include "confdefs.h"
10197 #include "${srcdir-.}/tests/unixsock.c"
10199 if { (eval echo configure:10200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10201 samba_cv_HAVE_WORKING_AF_LOCAL=yes
10203 echo "configure: failed program was:" >&5
10204 cat conftest.$ac_ext >&5
10206 samba_cv_HAVE_WORKING_AF_LOCAL=no
10213 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
10214 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
10216 cat >> confdefs.h <<\EOF
10217 #define HAVE_WORKING_AF_LOCAL 1
10222 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10223 echo "configure:10224: checking for broken getgroups" >&5
10224 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10225 echo $ac_n "(cached) $ac_c" 1>&6
10228 if test "$cross_compiling" = yes; then
10229 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10231 cat > conftest.$ac_ext <<EOF
10232 #line 10233 "configure"
10233 #include "confdefs.h"
10234 #include "${srcdir-.}/tests/getgroups.c"
10236 if { (eval echo configure:10237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10238 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10240 echo "configure: failed program was:" >&5
10241 cat conftest.$ac_ext >&5
10243 samba_cv_HAVE_BROKEN_GETGROUPS=no
10250 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10251 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10252 cat >> confdefs.h <<\EOF
10253 #define HAVE_BROKEN_GETGROUPS 1
10258 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10259 echo "configure:10260: checking whether getpass should be replaced" >&5
10260 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10261 echo $ac_n "(cached) $ac_c" 1>&6
10264 SAVE_CPPFLAGS="$CPPFLAGS"
10265 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10266 cat > conftest.$ac_ext <<EOF
10267 #line 10268 "configure"
10268 #include "confdefs.h"
10270 #define REPLACE_GETPASS 1
10271 #define NO_CONFIG_H 1
10272 #define main dont_declare_main
10273 #include "${srcdir-.}/lib/getsmbpass.c"
10280 if { (eval echo configure:10281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10282 samba_cv_REPLACE_GETPASS=yes
10284 echo "configure: failed program was:" >&5
10285 cat conftest.$ac_ext >&5
10287 samba_cv_REPLACE_GETPASS=no
10290 CPPFLAGS="$SAVE_CPPFLAGS"
10294 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10295 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10296 cat >> confdefs.h <<\EOF
10297 #define REPLACE_GETPASS 1
10302 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10303 echo "configure:10304: checking for broken inet_ntoa" >&5
10304 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10305 echo $ac_n "(cached) $ac_c" 1>&6
10308 if test "$cross_compiling" = yes; then
10309 samba_cv_REPLACE_INET_NTOA=cross
10311 cat > conftest.$ac_ext <<EOF
10312 #line 10313 "configure"
10313 #include "confdefs.h"
10316 #include <sys/types.h>
10317 #include <netinet/in.h>
10318 #ifdef HAVE_ARPA_INET_H
10319 #include <arpa/inet.h>
10321 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10322 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10323 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10326 if { (eval echo configure:10327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10328 samba_cv_REPLACE_INET_NTOA=yes
10330 echo "configure: failed program was:" >&5
10331 cat conftest.$ac_ext >&5
10333 samba_cv_REPLACE_INET_NTOA=no
10340 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10341 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10342 cat >> confdefs.h <<\EOF
10343 #define REPLACE_INET_NTOA 1
10348 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10349 echo "configure:10350: checking for secure mkstemp" >&5
10350 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10351 echo $ac_n "(cached) $ac_c" 1>&6
10354 if test "$cross_compiling" = yes; then
10355 samba_cv_HAVE_SECURE_MKSTEMP=cross
10357 cat > conftest.$ac_ext <<EOF
10358 #line 10359 "configure"
10359 #include "confdefs.h"
10360 #include <stdlib.h>
10361 #include <sys/types.h>
10362 #include <sys/stat.h>
10363 #include <unistd.h>
10366 char tpl[20]="/tmp/test.XXXXXX";
10367 int fd = mkstemp(tpl);
10368 if (fd == -1) exit(1);
10370 if (fstat(fd, &st) != 0) exit(1);
10371 if ((st.st_mode & 0777) != 0600) exit(1);
10375 if { (eval echo configure:10376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10377 samba_cv_HAVE_SECURE_MKSTEMP=yes
10379 echo "configure: failed program was:" >&5
10380 cat conftest.$ac_ext >&5
10382 samba_cv_HAVE_SECURE_MKSTEMP=no
10389 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10390 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10391 cat >> confdefs.h <<\EOF
10392 #define HAVE_SECURE_MKSTEMP 1
10397 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10398 echo "configure:10399: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10399 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10400 echo $ac_n "(cached) $ac_c" 1>&6
10403 if test "$cross_compiling" = yes; then
10404 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10406 cat > conftest.$ac_ext <<EOF
10407 #line 10408 "configure"
10408 #include "confdefs.h"
10409 #include <unistd.h>
10410 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10412 if { (eval echo configure:10413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10414 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10416 echo "configure: failed program was:" >&5
10417 cat conftest.$ac_ext >&5
10419 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10426 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10427 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10428 cat >> confdefs.h <<\EOF
10429 #define SYSCONF_SC_NGROUPS_MAX 1
10434 echo $ac_n "checking for root""... $ac_c" 1>&6
10435 echo "configure:10436: checking for root" >&5
10436 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10437 echo $ac_n "(cached) $ac_c" 1>&6
10440 if test "$cross_compiling" = yes; then
10441 samba_cv_HAVE_ROOT=cross
10443 cat > conftest.$ac_ext <<EOF
10444 #line 10445 "configure"
10445 #include "confdefs.h"
10446 main() { exit(getuid() != 0); }
10448 if { (eval echo configure:10449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10450 samba_cv_HAVE_ROOT=yes
10452 echo "configure: failed program was:" >&5
10453 cat conftest.$ac_ext >&5
10455 samba_cv_HAVE_ROOT=no
10462 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10463 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10464 cat >> confdefs.h <<\EOF
10465 #define HAVE_ROOT 1
10469 echo "configure: warning: running as non-root will disable some tests" 1>&2
10473 # look for a method of finding the list of network interfaces
10475 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10476 echo "configure:10477: checking for iface AIX" >&5
10477 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10478 echo $ac_n "(cached) $ac_c" 1>&6
10481 if test "$cross_compiling" = yes; then
10482 samba_cv_HAVE_IFACE_AIX=cross
10484 cat > conftest.$ac_ext <<EOF
10485 #line 10486 "configure"
10486 #include "confdefs.h"
10488 #define HAVE_IFACE_AIX 1
10489 #define AUTOCONF_TEST 1
10490 #include "confdefs.h"
10491 #include "${srcdir-.}/lib/interfaces.c"
10493 if { (eval echo configure:10494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10495 samba_cv_HAVE_IFACE_AIX=yes
10497 echo "configure: failed program was:" >&5
10498 cat conftest.$ac_ext >&5
10500 samba_cv_HAVE_IFACE_AIX=no
10507 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10508 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10509 iface=yes;cat >> confdefs.h <<\EOF
10510 #define HAVE_IFACE_AIX 1
10515 if test $iface = no; then
10516 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10517 echo "configure:10518: checking for iface ifconf" >&5
10518 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10519 echo $ac_n "(cached) $ac_c" 1>&6
10522 if test "$cross_compiling" = yes; then
10523 samba_cv_HAVE_IFACE_IFCONF=cross
10525 cat > conftest.$ac_ext <<EOF
10526 #line 10527 "configure"
10527 #include "confdefs.h"
10529 #define HAVE_IFACE_IFCONF 1
10530 #define AUTOCONF_TEST 1
10531 #include "confdefs.h"
10532 #include "${srcdir-.}/lib/interfaces.c"
10534 if { (eval echo configure:10535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10536 samba_cv_HAVE_IFACE_IFCONF=yes
10538 echo "configure: failed program was:" >&5
10539 cat conftest.$ac_ext >&5
10541 samba_cv_HAVE_IFACE_IFCONF=no
10548 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10549 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
10550 iface=yes;cat >> confdefs.h <<\EOF
10551 #define HAVE_IFACE_IFCONF 1
10557 if test $iface = no; then
10558 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10559 echo "configure:10560: checking for iface ifreq" >&5
10560 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10561 echo $ac_n "(cached) $ac_c" 1>&6
10564 if test "$cross_compiling" = yes; then
10565 samba_cv_HAVE_IFACE_IFREQ=cross
10567 cat > conftest.$ac_ext <<EOF
10568 #line 10569 "configure"
10569 #include "confdefs.h"
10571 #define HAVE_IFACE_IFREQ 1
10572 #define AUTOCONF_TEST 1
10573 #include "confdefs.h"
10574 #include "${srcdir-.}/lib/interfaces.c"
10576 if { (eval echo configure:10577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10578 samba_cv_HAVE_IFACE_IFREQ=yes
10580 echo "configure: failed program was:" >&5
10581 cat conftest.$ac_ext >&5
10583 samba_cv_HAVE_IFACE_IFREQ=no
10590 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10591 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
10592 iface=yes;cat >> confdefs.h <<\EOF
10593 #define HAVE_IFACE_IFREQ 1
10600 ################################################
10601 # look for a method of setting the effective uid
10603 if test $seteuid = no; then
10604 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10605 echo "configure:10606: checking for setresuid" >&5
10606 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10607 echo $ac_n "(cached) $ac_c" 1>&6
10610 if test "$cross_compiling" = yes; then
10611 samba_cv_USE_SETRESUID=cross
10613 cat > conftest.$ac_ext <<EOF
10614 #line 10615 "configure"
10615 #include "confdefs.h"
10617 #define AUTOCONF_TEST 1
10618 #define USE_SETRESUID 1
10619 #include "confdefs.h"
10620 #include "${srcdir-.}/lib/util_sec.c"
10622 if { (eval echo configure:10623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10624 samba_cv_USE_SETRESUID=yes
10626 echo "configure: failed program was:" >&5
10627 cat conftest.$ac_ext >&5
10629 samba_cv_USE_SETRESUID=no
10636 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10637 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
10638 seteuid=yes;cat >> confdefs.h <<\EOF
10639 #define USE_SETRESUID 1
10646 if test $seteuid = no; then
10647 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10648 echo "configure:10649: checking for setreuid" >&5
10649 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10650 echo $ac_n "(cached) $ac_c" 1>&6
10653 if test "$cross_compiling" = yes; then
10654 samba_cv_USE_SETREUID=cross
10656 cat > conftest.$ac_ext <<EOF
10657 #line 10658 "configure"
10658 #include "confdefs.h"
10660 #define AUTOCONF_TEST 1
10661 #define USE_SETREUID 1
10662 #include "confdefs.h"
10663 #include "${srcdir-.}/lib/util_sec.c"
10665 if { (eval echo configure:10666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10667 samba_cv_USE_SETREUID=yes
10669 echo "configure: failed program was:" >&5
10670 cat conftest.$ac_ext >&5
10672 samba_cv_USE_SETREUID=no
10679 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10680 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
10681 seteuid=yes;cat >> confdefs.h <<\EOF
10682 #define USE_SETREUID 1
10688 if test $seteuid = no; then
10689 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10690 echo "configure:10691: checking for seteuid" >&5
10691 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10692 echo $ac_n "(cached) $ac_c" 1>&6
10695 if test "$cross_compiling" = yes; then
10696 samba_cv_USE_SETEUID=cross
10698 cat > conftest.$ac_ext <<EOF
10699 #line 10700 "configure"
10700 #include "confdefs.h"
10702 #define AUTOCONF_TEST 1
10703 #define USE_SETEUID 1
10704 #include "confdefs.h"
10705 #include "${srcdir-.}/lib/util_sec.c"
10707 if { (eval echo configure:10708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10709 samba_cv_USE_SETEUID=yes
10711 echo "configure: failed program was:" >&5
10712 cat conftest.$ac_ext >&5
10714 samba_cv_USE_SETEUID=no
10721 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10722 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
10723 seteuid=yes;cat >> confdefs.h <<\EOF
10724 #define USE_SETEUID 1
10730 if test $seteuid = no; then
10731 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10732 echo "configure:10733: checking for setuidx" >&5
10733 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10734 echo $ac_n "(cached) $ac_c" 1>&6
10737 if test "$cross_compiling" = yes; then
10738 samba_cv_USE_SETUIDX=cross
10740 cat > conftest.$ac_ext <<EOF
10741 #line 10742 "configure"
10742 #include "confdefs.h"
10744 #define AUTOCONF_TEST 1
10745 #define USE_SETUIDX 1
10746 #include "confdefs.h"
10747 #include "${srcdir-.}/lib/util_sec.c"
10749 if { (eval echo configure:10750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10751 samba_cv_USE_SETUIDX=yes
10753 echo "configure: failed program was:" >&5
10754 cat conftest.$ac_ext >&5
10756 samba_cv_USE_SETUIDX=no
10763 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10764 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
10765 seteuid=yes;cat >> confdefs.h <<\EOF
10766 #define USE_SETUIDX 1
10773 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10774 echo "configure:10775: checking for working mmap" >&5
10775 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10776 echo $ac_n "(cached) $ac_c" 1>&6
10779 if test "$cross_compiling" = yes; then
10780 samba_cv_HAVE_MMAP=cross
10782 cat > conftest.$ac_ext <<EOF
10783 #line 10784 "configure"
10784 #include "confdefs.h"
10785 #include "${srcdir-.}/tests/shared_mmap.c"
10787 if { (eval echo configure:10788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10789 samba_cv_HAVE_MMAP=yes
10791 echo "configure: failed program was:" >&5
10792 cat conftest.$ac_ext >&5
10794 samba_cv_HAVE_MMAP=no
10801 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10802 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
10803 cat >> confdefs.h <<\EOF
10804 #define HAVE_MMAP 1
10809 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10810 echo "configure:10811: checking for ftruncate needs root" >&5
10811 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10812 echo $ac_n "(cached) $ac_c" 1>&6
10815 if test "$cross_compiling" = yes; then
10816 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
10818 cat > conftest.$ac_ext <<EOF
10819 #line 10820 "configure"
10820 #include "confdefs.h"
10821 #include "${srcdir-.}/tests/ftruncroot.c"
10823 if { (eval echo configure:10824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10825 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
10827 echo "configure: failed program was:" >&5
10828 cat conftest.$ac_ext >&5
10830 samba_cv_FTRUNCATE_NEEDS_ROOT=no
10837 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10838 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
10839 cat >> confdefs.h <<\EOF
10840 #define FTRUNCATE_NEEDS_ROOT 1
10845 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10846 echo "configure:10847: checking for fcntl locking" >&5
10847 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10848 echo $ac_n "(cached) $ac_c" 1>&6
10851 if test "$cross_compiling" = yes; then
10852 samba_cv_HAVE_FCNTL_LOCK=cross
10854 cat > conftest.$ac_ext <<EOF
10855 #line 10856 "configure"
10856 #include "confdefs.h"
10857 #include "${srcdir-.}/tests/fcntl_lock.c"
10859 if { (eval echo configure:10860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10861 samba_cv_HAVE_FCNTL_LOCK=yes
10863 echo "configure: failed program was:" >&5
10864 cat conftest.$ac_ext >&5
10866 samba_cv_HAVE_FCNTL_LOCK=no
10873 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10874 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
10875 cat >> confdefs.h <<\EOF
10876 #define HAVE_FCNTL_LOCK 1
10881 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10882 echo "configure:10883: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10883 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10884 echo $ac_n "(cached) $ac_c" 1>&6
10887 if test "$cross_compiling" = yes; then
10888 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
10890 cat > conftest.$ac_ext <<EOF
10891 #line 10892 "configure"
10892 #include "confdefs.h"
10893 #include "${srcdir-.}/tests/fcntl_lock64.c"
10895 if { (eval echo configure:10896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10897 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
10899 echo "configure: failed program was:" >&5
10900 cat conftest.$ac_ext >&5
10902 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
10909 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10910 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
10911 cat >> confdefs.h <<\EOF
10912 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10919 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10920 echo "configure:10921: checking for 64 bit fcntl locking" >&5
10921 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10922 echo $ac_n "(cached) $ac_c" 1>&6
10925 if test "$cross_compiling" = yes; then
10926 samba_cv_HAVE_STRUCT_FLOCK64=cross
10928 cat > conftest.$ac_ext <<EOF
10929 #line 10930 "configure"
10930 #include "confdefs.h"
10932 #if defined(HAVE_UNISTD_H)
10933 #include <unistd.h>
10936 #include <stdlib.h>
10938 #ifdef HAVE_FCNTL_H
10942 #ifdef HAVE_SYS_FCNTL_H
10943 #include <sys/fcntl.h>
10945 main() { struct flock64 fl64;
10946 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10953 if { (eval echo configure:10954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10955 samba_cv_HAVE_STRUCT_FLOCK64=yes
10957 echo "configure: failed program was:" >&5
10958 cat conftest.$ac_ext >&5
10960 samba_cv_HAVE_STRUCT_FLOCK64=no
10967 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10969 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
10970 cat >> confdefs.h <<\EOF
10971 #define HAVE_STRUCT_FLOCK64 1
10977 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10978 echo "configure:10979: checking for broken nisplus include files" >&5
10979 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10980 echo $ac_n "(cached) $ac_c" 1>&6
10983 cat > conftest.$ac_ext <<EOF
10984 #line 10985 "configure"
10985 #include "confdefs.h"
10986 #include <sys/acl.h>
10987 #if defined(HAVE_RPCSVC_NIS_H)
10988 #include <rpcsvc/nis.h>
10994 if { (eval echo configure:10995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10996 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
10998 echo "configure: failed program was:" >&5
10999 cat conftest.$ac_ext >&5
11001 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11006 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11007 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11008 cat >> confdefs.h <<\EOF
11009 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11015 #################################################
11016 # check for smbwrapper support
11017 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11018 echo "configure:11019: checking whether to use smbwrapper" >&5
11019 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11020 if test "${with_smbwrapper+set}" = set; then
11021 withval="$with_smbwrapper"
11024 echo "$ac_t""yes" 1>&6
11025 cat >> confdefs.h <<\EOF
11026 #define WITH_SMBWRAPPER 1
11029 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11031 if test x$ATTEMPT_WRAP32_BUILD = x; then
11034 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11037 # Conditions under which smbwrapper should not be built.
11039 if test x$PICFLAG = x; then
11040 echo No support for PIC code - disabling smbwrapper and smbsh
11043 elif test x$ac_cv_func_syscall = xno; then
11044 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11050 echo "$ac_t""no" 1>&6
11054 echo "$ac_t""no" 1>&6
11059 #################################################
11060 # check for the AFS filesystem
11061 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11062 echo "configure:11063: checking whether to use AFS" >&5
11063 # Check whether --with-afs or --without-afs was given.
11064 if test "${with_afs+set}" = set; then
11065 withval="$with_afs"
11068 echo "$ac_t""yes" 1>&6
11069 cat >> confdefs.h <<\EOF
11075 echo "$ac_t""no" 1>&6
11079 echo "$ac_t""no" 1>&6
11085 #################################################
11086 # check for the DFS auth system
11087 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
11088 echo "configure:11089: checking whether to use DFS auth" >&5
11089 # Check whether --with-dfs or --without-dfs was given.
11090 if test "${with_dfs+set}" = set; then
11091 withval="$with_dfs"
11094 echo "$ac_t""yes" 1>&6
11095 cat >> confdefs.h <<\EOF
11101 echo "$ac_t""no" 1>&6
11105 echo "$ac_t""no" 1>&6
11110 #################################################
11111 # check for Kerberos IV auth system
11112 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11113 echo "configure:11114: checking whether to use Kerberos IV" >&5
11114 # Check whether --with-krb4 or --without-krb4 was given.
11115 if test "${with_krb4+set}" = set; then
11116 withval="$with_krb4"
11119 echo "$ac_t""yes" 1>&6
11120 cat >> confdefs.h <<\EOF
11121 #define KRB4_AUTH 1
11124 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11125 echo "configure:11126: checking for dn_expand in -lresolv" >&5
11126 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11127 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11128 echo $ac_n "(cached) $ac_c" 1>&6
11130 ac_save_LIBS="$LIBS"
11131 LIBS="-lresolv $LIBS"
11132 cat > conftest.$ac_ext <<EOF
11133 #line 11134 "configure"
11134 #include "confdefs.h"
11135 /* Override any gcc2 internal prototype to avoid an error. */
11136 /* We use char because int might match the return type of a gcc2
11137 builtin and then its argument prototype would still apply. */
11144 if { (eval echo configure:11145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11146 eval "ac_cv_lib_$ac_lib_var=yes"
11148 echo "configure: failed program was:" >&5
11149 cat conftest.$ac_ext >&5
11151 eval "ac_cv_lib_$ac_lib_var=no"
11154 LIBS="$ac_save_LIBS"
11157 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11158 echo "$ac_t""yes" 1>&6
11159 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11160 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11161 cat >> confdefs.h <<EOF
11162 #define $ac_tr_lib 1
11165 LIBS="-lresolv $LIBS"
11168 echo "$ac_t""no" 1>&6
11171 LIBS="$LIBS -lkrb -ldes"
11172 CFLAGS="$CFLAGS -I$withval/include"
11173 LDFLAGS="$LDFLAGS -L$withval/lib"
11176 echo "$ac_t""no" 1>&6
11180 echo "$ac_t""no" 1>&6
11185 #################################################
11186 # check for Kerberos 5 auth system
11187 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11188 echo "configure:11189: checking whether to use Kerberos 5" >&5
11189 # Check whether --with-krb5 or --without-krb5 was given.
11190 if test "${with_krb5+set}" = set; then
11191 withval="$with_krb5"
11194 echo "$ac_t""yes" 1>&6
11195 cat >> confdefs.h <<\EOF
11196 #define KRB5_AUTH 1
11199 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11200 CFLAGS="$CFLAGS -I$withval/include"
11201 LDFLAGS="$LDFLAGS -L$withval/lib"
11204 echo "$ac_t""no" 1>&6
11208 echo "$ac_t""no" 1>&6
11213 #################################################
11214 # check for automount support
11215 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11216 echo "configure:11217: checking whether to use AUTOMOUNT" >&5
11217 # Check whether --with-automount or --without-automount was given.
11218 if test "${with_automount+set}" = set; then
11219 withval="$with_automount"
11222 echo "$ac_t""yes" 1>&6
11223 cat >> confdefs.h <<\EOF
11224 #define WITH_AUTOMOUNT 1
11229 echo "$ac_t""no" 1>&6
11233 echo "$ac_t""no" 1>&6
11238 #################################################
11239 # check for smbmount support
11240 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11241 echo "configure:11242: checking whether to use SMBMOUNT" >&5
11242 # Check whether --with-smbmount or --without-smbmount was given.
11243 if test "${with_smbmount+set}" = set; then
11244 withval="$with_smbmount"
11247 echo "$ac_t""yes" 1>&6
11248 cat >> confdefs.h <<\EOF
11249 #define WITH_SMBMOUNT 1
11252 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11255 echo "$ac_t""no" 1>&6
11260 echo "$ac_t""no" 1>&6
11267 #################################################
11268 # check for a PAM password database
11269 with_pam_for_crypt=no
11270 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11271 echo "configure:11272: checking whether to use PAM password database" >&5
11272 # Check whether --with-pam or --without-pam was given.
11273 if test "${with_pam+set}" = set; then
11274 withval="$with_pam"
11277 echo "$ac_t""yes" 1>&6
11278 cat >> confdefs.h <<\EOF
11283 with_pam_for_crypt=yes
11286 echo "$ac_t""no" 1>&6
11290 echo "$ac_t""no" 1>&6
11295 # we can't build a pam module if we don't have pam.
11296 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11297 echo "configure:11298: checking for pam_get_data in -lpam" >&5
11298 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11300 echo $ac_n "(cached) $ac_c" 1>&6
11302 ac_save_LIBS="$LIBS"
11304 cat > conftest.$ac_ext <<EOF
11305 #line 11306 "configure"
11306 #include "confdefs.h"
11307 /* Override any gcc2 internal prototype to avoid an error. */
11308 /* We use char because int might match the return type of a gcc2
11309 builtin and then its argument prototype would still apply. */
11310 char pam_get_data();
11316 if { (eval echo configure:11317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11318 eval "ac_cv_lib_$ac_lib_var=yes"
11320 echo "configure: failed program was:" >&5
11321 cat conftest.$ac_ext >&5
11323 eval "ac_cv_lib_$ac_lib_var=no"
11326 LIBS="$ac_save_LIBS"
11329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11330 echo "$ac_t""yes" 1>&6
11331 cat >> confdefs.h <<\EOF
11332 #define HAVE_LIBPAM 1
11336 echo "$ac_t""no" 1>&6
11340 #################################################
11341 # check for pam_smbpass support
11342 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11343 echo "configure:11344: checking whether to use pam_smbpass" >&5
11344 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11345 if test "${with_pam_smbpass+set}" = set; then
11346 withval="$with_pam_smbpass"
11349 echo "$ac_t""yes" 1>&6
11351 # Conditions under which pam_smbpass should not be built.
11353 if test x$PICFLAG = x; then
11354 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11356 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
11357 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11360 PAM_MOD="bin/pam_smbpass.so"
11364 echo "$ac_t""no" 1>&6
11368 echo "$ac_t""no" 1>&6
11374 ###############################################
11375 # test for where we get crypt() from, but only
11377 if test $with_pam_for_crypt = no; then
11378 for ac_func in crypt
11380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11381 echo "configure:11382: checking for $ac_func" >&5
11382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11383 echo $ac_n "(cached) $ac_c" 1>&6
11385 cat > conftest.$ac_ext <<EOF
11386 #line 11387 "configure"
11387 #include "confdefs.h"
11388 /* System header to define __stub macros and hopefully few prototypes,
11389 which can conflict with char $ac_func(); below. */
11390 #include <assert.h>
11391 /* Override any gcc2 internal prototype to avoid an error. */
11392 /* We use char because int might match the return type of a gcc2
11393 builtin and then its argument prototype would still apply. */
11398 /* The GNU C library defines this for functions which it implements
11399 to always fail with ENOSYS. Some functions are actually named
11400 something starting with __ and the normal name is an alias. */
11401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11409 if { (eval echo configure:11410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11411 eval "ac_cv_func_$ac_func=yes"
11413 echo "configure: failed program was:" >&5
11414 cat conftest.$ac_ext >&5
11416 eval "ac_cv_func_$ac_func=no"
11421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11422 echo "$ac_t""yes" 1>&6
11423 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11424 cat >> confdefs.h <<EOF
11425 #define $ac_tr_func 1
11429 echo "$ac_t""no" 1>&6
11433 if test x"$ac_cv_func_crypt" = x"no"; then
11434 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11435 echo "configure:11436: checking for crypt in -lcrypt" >&5
11436 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11437 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11438 echo $ac_n "(cached) $ac_c" 1>&6
11440 ac_save_LIBS="$LIBS"
11441 LIBS="-lcrypt $LIBS"
11442 cat > conftest.$ac_ext <<EOF
11443 #line 11444 "configure"
11444 #include "confdefs.h"
11445 /* Override any gcc2 internal prototype to avoid an error. */
11446 /* We use char because int might match the return type of a gcc2
11447 builtin and then its argument prototype would still apply. */
11454 if { (eval echo configure:11455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11456 eval "ac_cv_lib_$ac_lib_var=yes"
11458 echo "configure: failed program was:" >&5
11459 cat conftest.$ac_ext >&5
11461 eval "ac_cv_lib_$ac_lib_var=no"
11464 LIBS="$ac_save_LIBS"
11467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11468 echo "$ac_t""yes" 1>&6
11469 LIBS="$LIBS -lcrypt";
11470 cat >> confdefs.h <<\EOF
11471 #define HAVE_CRYPT 1
11475 echo "$ac_t""no" 1>&6
11482 ## moved after the check for -lcrypt in order to
11483 ## ensure that the necessary libraries are included
11484 ## check checking for truncated salt. Wrapped by the
11485 ## $with_pam_for_crypt variable as above --jerry
11487 if test $with_pam_for_crypt = no; then
11488 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
11489 echo "configure:11490: checking for a crypt that needs truncated salt" >&5
11490 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
11491 echo $ac_n "(cached) $ac_c" 1>&6
11494 if test "$cross_compiling" = yes; then
11495 samba_cv_HAVE_TRUNCATED_SALT=cross
11497 cat > conftest.$ac_ext <<EOF
11498 #line 11499 "configure"
11499 #include "confdefs.h"
11500 #include "${srcdir-.}/tests/crypttest.c"
11502 if { (eval echo configure:11503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11504 samba_cv_HAVE_TRUNCATED_SALT=no
11506 echo "configure: failed program was:" >&5
11507 cat conftest.$ac_ext >&5
11509 samba_cv_HAVE_TRUNCATED_SALT=yes
11516 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
11517 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
11518 cat >> confdefs.h <<\EOF
11519 #define HAVE_TRUNCATED_SALT 1
11526 #################################################
11527 # check for a TDB password database
11528 echo $ac_n "checking whether to use TDB password database""... $ac_c" 1>&6
11529 echo "configure:11530: checking whether to use TDB password database" >&5
11530 # Check whether --with-tdbsam or --without-tdbsam was given.
11531 if test "${with_tdbsam+set}" = set; then
11532 withval="$with_tdbsam"
11535 echo "$ac_t""yes" 1>&6
11536 cat >> confdefs.h <<\EOF
11537 #define WITH_TDBSAM 1
11542 echo "$ac_t""no" 1>&6
11546 echo "$ac_t""no" 1>&6
11551 #################################################
11552 # check for a LDAP password database
11553 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
11554 echo "configure:11555: checking whether to use LDAP password database" >&5
11555 # Check whether --with-ldap or --without-ldap was given.
11556 if test "${with_ldap+set}" = set; then
11557 withval="$with_ldap"
11560 echo "$ac_t""yes" 1>&6
11561 cat >> confdefs.h <<\EOF
11562 #define WITH_LDAP 1
11565 { echo "configure: error: LDAP password database not supported in this version." 1>&2; exit 1; }
11568 echo "$ac_t""no" 1>&6
11572 echo "$ac_t""no" 1>&6
11577 #################################################
11578 # commented out by --jerry
11579 # check for a NISPLUS password database
11580 #AC_MSG_CHECKING(whether to use NISPLUS password database)
11581 #AC_ARG_WITH(nisplus,
11582 #[ --with-nisplus Include NISPLUS password database support
11583 #[ case "$withval" in
11585 # AC_MSG_RESULT(yes)
11586 # AC_DEFINE(WITH_NISPLUS)
11589 # AC_MSG_RESULT(no)
11592 # AC_MSG_RESULT(no)
11595 #################################################
11596 # check for a NISPLUS_HOME support
11597 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11598 echo "configure:11599: checking whether to use NISPLUS_HOME" >&5
11599 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11600 if test "${with_nisplus_home+set}" = set; then
11601 withval="$with_nisplus_home"
11604 echo "$ac_t""yes" 1>&6
11605 cat >> confdefs.h <<\EOF
11606 #define WITH_NISPLUS_HOME 1
11611 echo "$ac_t""no" 1>&6
11615 echo "$ac_t""no" 1>&6
11620 #################################################
11621 # check for the secure socket layer
11622 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11623 echo "configure:11624: checking whether to use SSL" >&5
11624 # Check whether --with-ssl or --without-ssl was given.
11625 if test "${with_ssl+set}" = set; then
11626 withval="$with_ssl"
11629 echo "$ac_t""yes" 1>&6
11630 cat >> confdefs.h <<\EOF
11634 withval="/usr/local/ssl" # default
11636 if test "${with_sslinc+set}" = set; then
11638 withval="$with_sslinc"
11641 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11642 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11643 LIBS="-lssl -lcrypto $LIBS"
11644 LDFLAGS="=L/usr/local/ssl/lib $LDFLAGS"
11647 CFLAGS="-I${withval} $CFLAGS"
11648 LIBS="-lssl -lcrypto $LIBS"
11649 LDFLAGS="-L${withval}/lib $LDFLAGS"
11655 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11656 LIBS="-lssl -lcrypto $LIBS"
11657 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
11661 if test ! -d ${withval}; then
11662 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11666 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11670 echo "$ac_t""no" 1>&6
11674 echo "$ac_t""no" 1>&6
11679 #################################################
11680 # check for syslog logging
11681 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11682 echo "configure:11683: checking whether to use syslog logging" >&5
11683 # Check whether --with-syslog or --without-syslog was given.
11684 if test "${with_syslog+set}" = set; then
11685 withval="$with_syslog"
11688 echo "$ac_t""yes" 1>&6
11689 cat >> confdefs.h <<\EOF
11690 #define WITH_SYSLOG 1
11695 echo "$ac_t""no" 1>&6
11699 echo "$ac_t""no" 1>&6
11704 #################################################
11705 # check for a shared memory profiling support
11706 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11707 echo "configure:11708: checking whether to use profiling" >&5
11708 # Check whether --with-profiling-data or --without-profiling-data was given.
11709 if test "${with_profiling_data+set}" = set; then
11710 withval="$with_profiling_data"
11713 echo "$ac_t""yes" 1>&6
11714 cat >> confdefs.h <<\EOF
11715 #define WITH_PROFILE 1
11720 echo "$ac_t""no" 1>&6
11724 echo "$ac_t""no" 1>&6
11730 #################################################
11731 # check for experimental disk-quotas support
11732 QUOTAOBJS=smbd/noquotas.o
11734 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11735 echo "configure:11736: checking whether to support disk-quotas" >&5
11736 # Check whether --with-quotas or --without-quotas was given.
11737 if test "${with_quotas+set}" = set; then
11738 withval="$with_quotas"
11741 echo "$ac_t""yes" 1>&6
11742 QUOTAOBJS=smbd/quotas.o
11745 echo "$ac_t""no" 1>&6
11749 echo "$ac_t""no" 1>&6
11755 #################################################
11756 # check for experimental utmp accounting
11758 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11759 echo "configure:11760: checking whether to support utmp accounting" >&5
11760 # Check whether --with-utmp or --without-utmp was given.
11761 if test "${with_utmp+set}" = set; then
11762 withval="$with_utmp"
11765 echo "$ac_t""yes" 1>&6
11766 cat >> confdefs.h <<\EOF
11767 #define WITH_UTMP 1
11772 echo "$ac_t""no" 1>&6
11776 echo "$ac_t""no" 1>&6
11781 #################################################
11782 # set private directory location
11783 # Check whether --with-privatedir or --without-privatedir was given.
11784 if test "${with_privatedir+set}" = set; then
11785 withval="$with_privatedir"
11789 # Just in case anybody calls it without argument
11791 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
11792 privatedir='${prefix}/private'
11795 privatedir="$withval"
11800 privatedir='${prefix}/private'
11806 #################################################
11807 # set lock directory location
11808 # Check whether --with-lockdir or --without-lockdir was given.
11809 if test "${with_lockdir+set}" = set; then
11810 withval="$with_lockdir"
11814 # Just in case anybody calls it without argument
11816 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
11817 lockdir='$(VARDIR)/locks'
11825 lockdir='$(VARDIR)/locks'
11831 #################################################
11832 # set SWAT directory location
11833 # Check whether --with-swatdir or --without-swatdir was given.
11834 if test "${with_swatdir+set}" = set; then
11835 withval="$with_swatdir"
11839 # Just in case anybody does it
11841 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
11842 swatdir='${prefix}/swat'
11850 swatdir='${prefix}/swat'
11856 #################################################
11857 # these tests are taken from the GNU fileutils package
11858 echo "checking how to get filesystem space usage" 1>&6
11859 echo "configure:11860: checking how to get filesystem space usage" >&5
11862 # Test for statvfs64.
11863 if test $space = no; then
11865 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11866 echo "configure:11867: checking statvfs64 function (SVR4)" >&5
11867 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11868 echo $ac_n "(cached) $ac_c" 1>&6
11870 if test "$cross_compiling" = yes; then
11871 fu_cv_sys_stat_statvfs64=cross
11873 cat > conftest.$ac_ext <<EOF
11874 #line 11875 "configure"
11875 #include "confdefs.h"
11877 #if defined(HAVE_UNISTD_H)
11878 #include <unistd.h>
11880 #include <sys/types.h>
11881 #include <sys/statvfs.h>
11884 struct statvfs64 fsd;
11885 exit (statvfs64 (".", &fsd));
11888 if { (eval echo configure:11889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11890 fu_cv_sys_stat_statvfs64=yes
11892 echo "configure: failed program was:" >&5
11893 cat conftest.$ac_ext >&5
11895 fu_cv_sys_stat_statvfs64=no
11902 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11903 if test $fu_cv_sys_stat_statvfs64 = yes; then
11905 cat >> confdefs.h <<\EOF
11906 #define STAT_STATVFS64 1
11912 # Perform only the link test since it seems there are no variants of the
11913 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11914 # because that got a false positive on SCO OSR5. Adding the declaration
11915 # of a `struct statvfs' causes this test to fail (as it should) on such
11916 # systems. That system is reported to work fine with STAT_STATFS4 which
11917 # is what it gets when this test fails.
11918 if test $space = no; then
11920 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11921 echo "configure:11922: checking statvfs function (SVR4)" >&5
11922 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11923 echo $ac_n "(cached) $ac_c" 1>&6
11925 cat > conftest.$ac_ext <<EOF
11926 #line 11927 "configure"
11927 #include "confdefs.h"
11928 #include <sys/types.h>
11929 #include <sys/statvfs.h>
11931 struct statvfs fsd; statvfs (0, &fsd);
11934 if { (eval echo configure:11935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11936 fu_cv_sys_stat_statvfs=yes
11938 echo "configure: failed program was:" >&5
11939 cat conftest.$ac_ext >&5
11941 fu_cv_sys_stat_statvfs=no
11946 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11947 if test $fu_cv_sys_stat_statvfs = yes; then
11949 cat >> confdefs.h <<\EOF
11950 #define STAT_STATVFS 1
11956 if test $space = no; then
11957 # DEC Alpha running OSF/1
11958 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11959 echo "configure:11960: checking for 3-argument statfs function (DEC OSF/1)" >&5
11960 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11961 echo $ac_n "(cached) $ac_c" 1>&6
11963 if test "$cross_compiling" = yes; then
11964 fu_cv_sys_stat_statfs3_osf1=no
11966 cat > conftest.$ac_ext <<EOF
11967 #line 11968 "configure"
11968 #include "confdefs.h"
11970 #include <sys/param.h>
11971 #include <sys/types.h>
11972 #include <sys/mount.h>
11977 exit (statfs (".", &fsd, sizeof (struct statfs)));
11980 if { (eval echo configure:11981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11982 fu_cv_sys_stat_statfs3_osf1=yes
11984 echo "configure: failed program was:" >&5
11985 cat conftest.$ac_ext >&5
11987 fu_cv_sys_stat_statfs3_osf1=no
11994 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11995 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11997 cat >> confdefs.h <<\EOF
11998 #define STAT_STATFS3_OSF1 1
12004 if test $space = no; then
12006 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12007 echo "configure:12008: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12008 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12009 echo $ac_n "(cached) $ac_c" 1>&6
12011 if test "$cross_compiling" = yes; then
12012 fu_cv_sys_stat_statfs2_bsize=no
12014 cat > conftest.$ac_ext <<EOF
12015 #line 12016 "configure"
12016 #include "confdefs.h"
12018 #ifdef HAVE_SYS_PARAM_H
12019 #include <sys/param.h>
12021 #ifdef HAVE_SYS_MOUNT_H
12022 #include <sys/mount.h>
12024 #ifdef HAVE_SYS_VFS_H
12025 #include <sys/vfs.h>
12031 exit (statfs (".", &fsd));
12034 if { (eval echo configure:12035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12036 fu_cv_sys_stat_statfs2_bsize=yes
12038 echo "configure: failed program was:" >&5
12039 cat conftest.$ac_ext >&5
12041 fu_cv_sys_stat_statfs2_bsize=no
12048 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12049 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12051 cat >> confdefs.h <<\EOF
12052 #define STAT_STATFS2_BSIZE 1
12058 if test $space = no; then
12060 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12061 echo "configure:12062: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12062 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12063 echo $ac_n "(cached) $ac_c" 1>&6
12065 if test "$cross_compiling" = yes; then
12066 fu_cv_sys_stat_statfs4=no
12068 cat > conftest.$ac_ext <<EOF
12069 #line 12070 "configure"
12070 #include "confdefs.h"
12071 #include <sys/types.h>
12072 #include <sys/statfs.h>
12076 exit (statfs (".", &fsd, sizeof fsd, 0));
12079 if { (eval echo configure:12080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12081 fu_cv_sys_stat_statfs4=yes
12083 echo "configure: failed program was:" >&5
12084 cat conftest.$ac_ext >&5
12086 fu_cv_sys_stat_statfs4=no
12093 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12094 if test $fu_cv_sys_stat_statfs4 = yes; then
12096 cat >> confdefs.h <<\EOF
12097 #define STAT_STATFS4 1
12103 if test $space = no; then
12104 # 4.4BSD and NetBSD
12105 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12106 echo "configure:12107: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12107 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12108 echo $ac_n "(cached) $ac_c" 1>&6
12110 if test "$cross_compiling" = yes; then
12111 fu_cv_sys_stat_statfs2_fsize=no
12113 cat > conftest.$ac_ext <<EOF
12114 #line 12115 "configure"
12115 #include "confdefs.h"
12116 #include <sys/types.h>
12117 #ifdef HAVE_SYS_PARAM_H
12118 #include <sys/param.h>
12120 #ifdef HAVE_SYS_MOUNT_H
12121 #include <sys/mount.h>
12127 exit (statfs (".", &fsd));
12130 if { (eval echo configure:12131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12132 fu_cv_sys_stat_statfs2_fsize=yes
12134 echo "configure: failed program was:" >&5
12135 cat conftest.$ac_ext >&5
12137 fu_cv_sys_stat_statfs2_fsize=no
12144 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12145 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12147 cat >> confdefs.h <<\EOF
12148 #define STAT_STATFS2_FSIZE 1
12154 if test $space = no; then
12156 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12157 echo "configure:12158: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12158 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12159 echo $ac_n "(cached) $ac_c" 1>&6
12161 if test "$cross_compiling" = yes; then
12162 fu_cv_sys_stat_fs_data=no
12164 cat > conftest.$ac_ext <<EOF
12165 #line 12166 "configure"
12166 #include "confdefs.h"
12167 #include <sys/types.h>
12168 #ifdef HAVE_SYS_PARAM_H
12169 #include <sys/param.h>
12171 #ifdef HAVE_SYS_MOUNT_H
12172 #include <sys/mount.h>
12174 #ifdef HAVE_SYS_FS_TYPES_H
12175 #include <sys/fs_types.h>
12179 struct fs_data fsd;
12180 /* Ultrix's statfs returns 1 for success,
12181 0 for not mounted, -1 for failure. */
12182 exit (statfs (".", &fsd) != 1);
12185 if { (eval echo configure:12186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12187 fu_cv_sys_stat_fs_data=yes
12189 echo "configure: failed program was:" >&5
12190 cat conftest.$ac_ext >&5
12192 fu_cv_sys_stat_fs_data=no
12199 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12200 if test $fu_cv_sys_stat_fs_data = yes; then
12202 cat >> confdefs.h <<\EOF
12203 #define STAT_STATFS2_FS_DATA 1
12210 # As a gating factor for large file support, in order to
12211 # use <4GB files we must have the following minimal support
12213 # long long, and a 64 bit off_t or off64_t.
12214 # If we don't have all of these then disable large
12217 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12218 echo "configure:12219: checking if large file support can be enabled" >&5
12219 cat > conftest.$ac_ext <<EOF
12220 #line 12221 "configure"
12221 #include "confdefs.h"
12223 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12224 #include <sys/types.h>
12233 if { (eval echo configure:12234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12235 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
12237 echo "configure: failed program was:" >&5
12238 cat conftest.$ac_ext >&5
12240 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
12243 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
12244 cat >> confdefs.h <<\EOF
12245 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12249 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
12251 # Check whether --with-spinlocks or --without-spinlocks was given.
12252 if test "${with_spinlocks+set}" = set; then
12253 withval="$with_spinlocks"
12257 if test "x$with_spinlocks" = "xyes"; then
12258 cat >> confdefs.h <<\EOF
12259 #define USE_SPINLOCKS 1
12263 case "$host_cpu" in
12265 cat >> confdefs.h <<\EOF
12266 #define SPARC_SPINLOCKS 1
12271 i386|i486|i586|i686)
12272 cat >> confdefs.h <<\EOF
12273 #define INTEL_SPINLOCKS 1
12279 cat >> confdefs.h <<\EOF
12280 #define MIPS_SPINLOCKS 1
12286 cat >> confdefs.h <<\EOF
12287 #define POWERPC_SPINLOCKS 1
12294 #################################################
12295 # check for ACL support
12297 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12298 echo "configure:12299: checking whether to support ACLs" >&5
12299 # Check whether --with-acl-support or --without-acl-support was given.
12300 if test "${with_acl_support+set}" = set; then
12301 withval="$with_acl_support"
12307 echo "$ac_t""Using UnixWare ACLs" 1>&6
12308 cat >> confdefs.h <<\EOF
12309 #define HAVE_UNIXWARE_ACLS 1
12314 echo "$ac_t""Using solaris ACLs" 1>&6
12315 cat >> confdefs.h <<\EOF
12316 #define HAVE_SOLARIS_ACLS 1
12321 echo "$ac_t""Using IRIX ACLs" 1>&6
12322 cat >> confdefs.h <<\EOF
12323 #define HAVE_IRIX_ACLS 1
12328 echo "$ac_t""Using AIX ACLs" 1>&6
12329 cat >> confdefs.h <<\EOF
12330 #define HAVE_AIX_ACLS 1
12335 echo "$ac_t""Using Tru64 ACLs" 1>&6
12336 cat >> confdefs.h <<\EOF
12337 #define HAVE_TRU64_ACLS 1
12340 LIBS="$LIBS -lpacl"
12343 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12344 echo "configure:12345: checking for acl_get_file in -lacl" >&5
12345 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12346 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12347 echo $ac_n "(cached) $ac_c" 1>&6
12349 ac_save_LIBS="$LIBS"
12351 cat > conftest.$ac_ext <<EOF
12352 #line 12353 "configure"
12353 #include "confdefs.h"
12354 /* Override any gcc2 internal prototype to avoid an error. */
12355 /* We use char because int might match the return type of a gcc2
12356 builtin and then its argument prototype would still apply. */
12357 char acl_get_file();
12363 if { (eval echo configure:12364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12365 eval "ac_cv_lib_$ac_lib_var=yes"
12367 echo "configure: failed program was:" >&5
12368 cat conftest.$ac_ext >&5
12370 eval "ac_cv_lib_$ac_lib_var=no"
12373 LIBS="$ac_save_LIBS"
12376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12377 echo "$ac_t""yes" 1>&6
12378 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12379 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12380 cat >> confdefs.h <<EOF
12381 #define $ac_tr_lib 1
12387 echo "$ac_t""no" 1>&6
12390 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12391 echo "configure:12392: checking for ACL support" >&5
12392 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12393 echo $ac_n "(cached) $ac_c" 1>&6
12396 cat > conftest.$ac_ext <<EOF
12397 #line 12398 "configure"
12398 #include "confdefs.h"
12399 #include <sys/types.h>
12400 #include <sys/acl.h>
12402 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12405 if { (eval echo configure:12406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12407 samba_cv_HAVE_POSIX_ACLS=yes
12409 echo "configure: failed program was:" >&5
12410 cat conftest.$ac_ext >&5
12412 samba_cv_HAVE_POSIX_ACLS=no
12417 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12418 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
12419 echo "$ac_t""Using posix ACLs" 1>&6
12420 cat >> confdefs.h <<\EOF
12421 #define HAVE_POSIX_ACLS 1
12424 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12425 echo "configure:12426: checking for acl_get_perm_np" >&5
12426 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12427 echo $ac_n "(cached) $ac_c" 1>&6
12430 cat > conftest.$ac_ext <<EOF
12431 #line 12432 "configure"
12432 #include "confdefs.h"
12433 #include <sys/types.h>
12434 #include <sys/acl.h>
12436 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12439 if { (eval echo configure:12440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12441 samba_cv_HAVE_ACL_GET_PERM_NP=yes
12443 echo "configure: failed program was:" >&5
12444 cat conftest.$ac_ext >&5
12446 samba_cv_HAVE_ACL_GET_PERM_NP=no
12451 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12452 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
12453 cat >> confdefs.h <<\EOF
12454 #define HAVE_ACL_GET_PERM_NP 1
12463 echo "$ac_t""no" 1>&6
12464 cat >> confdefs.h <<\EOF
12465 #define HAVE_NO_ACLS 1
12471 cat >> confdefs.h <<\EOF
12472 #define HAVE_NO_ACLS 1
12475 echo "$ac_t""no" 1>&6
12480 #################################################
12481 # Check whether winbind is supported on this platform. If so we need to
12482 # build and install client programs (WINBIND_TARGETS), sbin programs
12483 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
12485 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
12486 echo "configure:12487: checking whether to build winbind" >&5
12488 # Initially, the value of $host_os decides whether winbind is supported
12496 winbind_no_reason=", unsupported on $host_os"
12500 # Check the setting of --with-winbindd
12502 # Check whether --with-winbind or --without-winbind was given.
12503 if test "${with_winbind+set}" = set; then
12504 withval="$with_winbind"
12518 # We need unix domain sockets for winbind
12520 if test x"$HAVE_WINBIND" = x"yes"; then
12521 if test x"$samba_cv_unixsocket" = x"no"; then
12522 winbind_no_reason=", no unix domain socket support on $host_os"
12527 # Display test results
12529 if test x"$HAVE_WINBIND" = x"yes"; then
12531 echo "$ac_t""yes" 1>&6
12533 WINBIND_TARGETS="\$(WINBIND_PROGS)"
12534 WINBIND_STARGETS="\$(WINBIND_SPROGS)"
12535 WINBIND_LTARGETS="\$(WINBIND_LPROGS)"
12537 case "$with_pam" in
12539 WINBIND_PAM_PROGS="\$(WINBIND_PAM_PROGS)"
12543 echo "$ac_t""no$winbind_no_reason" 1>&6
12546 WINBIND_STARGETS=""
12547 WINBIND_LTARGETS=""
12548 WINBIND_PAM_PROGS=""
12551 # Substitution time!
12558 #################################################
12559 # final configure stuff
12561 echo "checking configure summary"
12562 if test "$cross_compiling" = yes; then
12565 cat > conftest.$ac_ext <<EOF
12566 #line 12567 "configure"
12567 #include "confdefs.h"
12568 #include "${srcdir-.}/tests/summary.c"
12570 if { (eval echo configure:12571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12572 echo "configure OK";
12574 echo "configure: failed program was:" >&5
12575 cat conftest.$ac_ext >&5
12577 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12587 cat > confcache <<\EOF
12588 # This file is a shell script that caches the results of configure
12589 # tests run on this system so they can be shared between configure
12590 # scripts and configure runs. It is not useful on other systems.
12591 # If it contains results you don't want to keep, you may remove or edit it.
12593 # By default, configure uses ./config.cache as the cache file,
12594 # creating it if it does not exist already. You can give configure
12595 # the --cache-file=FILE option to use a different cache file; that is
12596 # what configure does when it calls configure scripts in
12597 # subdirectories, so they share the cache.
12598 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12599 # config.status only pays attention to the cache file if you give it the
12600 # --recheck option to rerun configure.
12603 # The following way of writing the cache mishandles newlines in values,
12604 # but we know of no workaround that is simple, portable, and efficient.
12605 # So, don't put newlines in cache variables' values.
12606 # Ultrix sh set writes to stderr and can't be redirected directly,
12607 # and sets the high bit in the cache file unless we assign to the vars.
12609 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12611 # `set' does not quote correctly, so add quotes (double-quote substitution
12612 # turns \\\\ into \\, and sed turns \\ into \).
12614 -e "s/'/'\\\\''/g" \
12615 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12618 # `set' quotes correctly as required by POSIX, so do not add quotes.
12619 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12622 if cmp -s $cache_file confcache; then
12625 if test -w $cache_file; then
12626 echo "updating cache $cache_file"
12627 cat confcache > $cache_file
12629 echo "not updating unwritable cache $cache_file"
12634 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12636 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12637 # Let make expand exec_prefix.
12638 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12640 # Any assignment to VPATH causes Sun make to only execute
12641 # the first set of double-colon rules, so remove it if not needed.
12642 # If there is a colon in the path, we need to keep it.
12643 if test "x$srcdir" = x.; then
12644 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12647 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12649 DEFS=-DHAVE_CONFIG_H
12651 # Without the "./", some shells look in PATH for config.status.
12652 : ${CONFIG_STATUS=./config.status}
12654 echo creating $CONFIG_STATUS
12655 rm -f $CONFIG_STATUS
12656 cat > $CONFIG_STATUS <<EOF
12658 # Generated automatically by configure.
12659 # Run this file to recreate the current configuration.
12660 # This directory was configured as follows,
12661 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12663 # $0 $ac_configure_args
12665 # Compiler output produced by configure, useful for debugging
12666 # configure, is in ./config.log if it exists.
12668 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12671 case "\$ac_option" in
12672 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12673 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12674 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12675 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12676 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12678 -help | --help | --hel | --he | --h)
12679 echo "\$ac_cs_usage"; exit 0 ;;
12680 *) echo "\$ac_cs_usage"; exit 1 ;;
12684 ac_given_srcdir=$srcdir
12685 ac_given_INSTALL="$INSTALL"
12687 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12689 cat >> $CONFIG_STATUS <<EOF
12691 # Protect against being on the right side of a sed subst in config.status.
12692 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12693 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12697 s%@CFLAGS@%$CFLAGS%g
12698 s%@CPPFLAGS@%$CPPFLAGS%g
12699 s%@CXXFLAGS@%$CXXFLAGS%g
12700 s%@FFLAGS@%$FFLAGS%g
12702 s%@LDFLAGS@%$LDFLAGS%g
12704 s%@exec_prefix@%$exec_prefix%g
12705 s%@prefix@%$prefix%g
12706 s%@program_transform_name@%$program_transform_name%g
12707 s%@bindir@%$bindir%g
12708 s%@sbindir@%$sbindir%g
12709 s%@libexecdir@%$libexecdir%g
12710 s%@datadir@%$datadir%g
12711 s%@sysconfdir@%$sysconfdir%g
12712 s%@sharedstatedir@%$sharedstatedir%g
12713 s%@localstatedir@%$localstatedir%g
12714 s%@libdir@%$libdir%g
12715 s%@includedir@%$includedir%g
12716 s%@oldincludedir@%$oldincludedir%g
12717 s%@infodir@%$infodir%g
12718 s%@mandir@%$mandir%g
12719 s%@RUNPROG@%$RUNPROG%g
12720 s%@MPROGS@%$MPROGS%g
12721 s%@LDSHFLAGS@%$LDSHFLAGS%g
12723 s%@HOST_OS@%$HOST_OS%g
12724 s%@PAM_MOD@%$PAM_MOD%g
12726 s%@WRAP32@%$WRAP32%g
12727 s%@PICFLAG@%$PICFLAG%g
12728 s%@PICSUFFIX@%$PICSUFFIX%g
12729 s%@POBAD_CC@%$POBAD_CC%g
12730 s%@SHLIBEXT@%$SHLIBEXT%g
12731 s%@BLDSHARED@%$BLDSHARED%g
12733 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12734 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12735 s%@INSTALL_DATA@%$INSTALL_DATA%g
12737 s%@BROKEN_CC@%$BROKEN_CC%g
12739 s%@host_alias@%$host_alias%g
12740 s%@host_cpu@%$host_cpu%g
12741 s%@host_vendor@%$host_vendor%g
12742 s%@host_os@%$host_os%g
12743 s%@target@%$target%g
12744 s%@target_alias@%$target_alias%g
12745 s%@target_cpu@%$target_cpu%g
12746 s%@target_vendor@%$target_vendor%g
12747 s%@target_os@%$target_os%g
12749 s%@build_alias@%$build_alias%g
12750 s%@build_cpu@%$build_cpu%g
12751 s%@build_vendor@%$build_vendor%g
12752 s%@build_os@%$build_os%g
12754 s%@LIBOBJS@%$LIBOBJS%g
12755 s%@TERMLIBS@%$TERMLIBS%g
12756 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
12758 s%@QUOTAOBJS@%$QUOTAOBJS%g
12759 s%@privatedir@%$privatedir%g
12760 s%@lockdir@%$lockdir%g
12761 s%@swatdir@%$swatdir%g
12762 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
12763 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
12764 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
12765 s%@WINBIND_PAM_PROGS@%$WINBIND_PAM_PROGS%g
12766 s%@builddir@%$builddir%g
12771 cat >> $CONFIG_STATUS <<\EOF
12773 # Split the substitutions into bite-sized pieces for seds with
12774 # small command number limits, like on Digital OSF/1 and HP-UX.
12775 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12776 ac_file=1 # Number of current file.
12777 ac_beg=1 # First line for current file.
12778 ac_end=$ac_max_sed_cmds # Line after last line for current file.
12781 while $ac_more_lines; do
12782 if test $ac_beg -gt 1; then
12783 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12785 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12787 if test ! -s conftest.s$ac_file; then
12788 ac_more_lines=false
12789 rm -f conftest.s$ac_file
12791 if test -z "$ac_sed_cmds"; then
12792 ac_sed_cmds="sed -f conftest.s$ac_file"
12794 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12796 ac_file=`expr $ac_file + 1`
12798 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12801 if test -z "$ac_sed_cmds"; then
12806 cat >> $CONFIG_STATUS <<EOF
12808 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
12810 cat >> $CONFIG_STATUS <<\EOF
12811 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12812 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12814 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12815 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12816 *) ac_file_in="${ac_file}.in" ;;
12819 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12821 # Remove last slash and all that follows it. Not all systems have dirname.
12822 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12823 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12824 # The file is in a subdirectory.
12825 test ! -d "$ac_dir" && mkdir "$ac_dir"
12826 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12827 # A "../" for each directory in $ac_dir_suffix.
12828 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12830 ac_dir_suffix= ac_dots=
12833 case "$ac_given_srcdir" in
12835 if test -z "$ac_dots"; then top_srcdir=.
12836 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12837 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12838 *) # Relative path.
12839 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12840 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12843 case "$ac_given_INSTALL" in
12844 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12845 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12848 echo creating "$ac_file"
12850 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12852 *Makefile*) ac_comsub="1i\\
12853 # $configure_input" ;;
12857 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12859 s%@configure_input@%$configure_input%g
12860 s%@srcdir@%$srcdir%g
12861 s%@top_srcdir@%$top_srcdir%g
12862 s%@INSTALL@%$INSTALL%g
12863 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12867 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12868 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12870 # ac_d sets the value in "#define NAME VALUE" lines.
12871 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12872 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12875 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12876 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12877 ac_uB='\([ ]\)%\1#\2define\3'
12880 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12881 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12882 ac_eB='$%\1#\2define\3'
12886 if test "${CONFIG_HEADERS+set}" != set; then
12888 cat >> $CONFIG_STATUS <<EOF
12889 CONFIG_HEADERS="include/config.h"
12891 cat >> $CONFIG_STATUS <<\EOF
12893 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12894 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12896 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12897 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12898 *) ac_file_in="${ac_file}.in" ;;
12901 echo creating $ac_file
12903 rm -f conftest.frag conftest.in conftest.out
12904 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12905 cat $ac_file_inputs > conftest.in
12909 # Transform confdefs.h into a sed script conftest.vals that substitutes
12910 # the proper values into config.h.in to produce config.h. And first:
12911 # Protect against being on the right side of a sed subst in config.status.
12912 # Protect against being in an unquoted here document in config.status.
12913 rm -f conftest.vals
12914 cat > conftest.hdr <<\EOF
12917 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12921 sed -n -f conftest.hdr confdefs.h > conftest.vals
12924 # This sed command replaces #undef with comments. This is necessary, for
12925 # example, in the case of _POSIX_SOURCE, which is predefined and required
12926 # on some systems where configure will not decide to define it.
12927 cat >> conftest.vals <<\EOF
12928 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12931 # Break up conftest.vals because some shells have a limit on
12932 # the size of here documents, and old seds have small limits too.
12934 rm -f conftest.tail
12937 ac_lines=`grep -c . conftest.vals`
12938 # grep -c gives empty output for an empty file on some AIX systems.
12939 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12940 # Write a limited-size here document to conftest.frag.
12941 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12942 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12944 sed -f conftest.frag conftest.in > conftest.out
12946 mv conftest.out conftest.in
12947 ' >> $CONFIG_STATUS
12948 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12949 rm -f conftest.vals
12950 mv conftest.tail conftest.vals
12952 rm -f conftest.vals
12954 cat >> $CONFIG_STATUS <<\EOF
12955 rm -f conftest.frag conftest.h
12956 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12957 cat conftest.in >> conftest.h
12959 if cmp -s $ac_file conftest.h 2>/dev/null; then
12960 echo "$ac_file is unchanged"
12963 # Remove last slash and all that follows it. Not all systems have dirname.
12964 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12965 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12966 # The file is in a subdirectory.
12967 test ! -d "$ac_dir" && mkdir "$ac_dir"
12970 mv conftest.h $ac_file
12975 cat >> $CONFIG_STATUS <<EOF
12978 cat >> $CONFIG_STATUS <<\EOF
12982 chmod +x $CONFIG_STATUS
12983 rm -fr confdefs* $ac_clean_files
12984 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1