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 --with-fhs Use FHS-compliant paths (default=no)"
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
22 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
24 --with-configdir=DIR Where to put configuration files (\$libdir)"
26 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
28 --enable-debug Turn on compiler debugging information (default=no)"
30 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto)"
32 --with-smbwrapper Include SMB wrapper support (default=no)"
34 --with-afs Include AFS support (default=no)"
36 --with-dce-dfs Include DCE/DFS support (default=no)"
38 --with-krb4=base-dir Include Kerberos IV support (default=no)"
40 --with-krb5=base-dir Include Kerberos 5 support (default=no)"
42 --with-automount Include AUTOMOUNT support (default=no)"
44 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
46 --with-pam Include PAM password database support (default=no)"
48 --with-pam_smbpass Include the smbpass PAM module (default=no)"
50 --with-tdbsam Include TDB password database (default=no)"
52 --with-ldapsam Include Experimental LDAP-Sam support (default=no)"
54 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
56 --with-ssl Include SSL support (default=no)
57 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)"
59 --with-syslog Include experimental SYSLOG support (default=no)"
61 --with-profiling-data Include gathering source code profile information (default=no)"
63 --with-quotas Include experimental disk-quota support (default=no)"
65 --with-utmp Include experimental utmp accounting (default=no)"
67 --with-msdfs Include MS Dfs support (default=no)"
69 --with-vfs Include Samba vfs support (default=no)"
71 --with-spinlocks Use spin locks instead of fcntl locks (default=no)"
73 --with-acl-support Include ACL support (default=no)"
75 --with-winbind Build winbind (default, if supported by OS)"
77 # Initialize some variables set by options.
78 # The variables have the same names as the options, with
79 # dashes changed to underlines.
81 cache_file
=.
/config.cache
90 program_transform_name
=s
,x
,x
,
98 bindir
='${exec_prefix}/bin'
99 sbindir
='${exec_prefix}/sbin'
100 libexecdir
='${exec_prefix}/libexec'
101 datadir
='${prefix}/share'
102 sysconfdir
='${prefix}/etc'
103 sharedstatedir
='${prefix}/com'
104 localstatedir
='${prefix}/var'
105 libdir
='${exec_prefix}/lib'
106 includedir
='${prefix}/include'
107 oldincludedir
='/usr/include'
108 infodir
='${prefix}/info'
109 mandir
='${prefix}/man'
111 # Initialize some other variables.
114 SHELL
=${CONFIG_SHELL-/bin/sh}
115 # Maximum number of lines to put in a shell here document.
122 # If the previous option needs an argument, assign it.
123 if test -n "$ac_prev"; then
124 eval "$ac_prev=\$ac_option"
130 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
134 # Accept the important Cygnus configure options, so we can diagnose typos.
138 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
140 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
141 bindir
="$ac_optarg" ;;
143 -build |
--build |
--buil |
--bui |
--bu)
145 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
146 build
="$ac_optarg" ;;
148 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
149 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
150 ac_prev
=cache_file
;;
151 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
152 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
153 cache_file
="$ac_optarg" ;;
155 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
157 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
159 datadir
="$ac_optarg" ;;
161 -disable-* |
--disable-*)
162 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
163 # Reject names that are not valid shell variable names.
164 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
165 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
167 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
168 eval "enable_${ac_feature}=no" ;;
170 -enable-* |
--enable-*)
171 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
172 # Reject names that are not valid shell variable names.
173 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
174 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
176 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
181 eval "enable_${ac_feature}='$ac_optarg'" ;;
183 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
184 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
185 |
--exec |
--exe |
--ex)
186 ac_prev
=exec_prefix
;;
187 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
188 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
189 |
--exec=* |
--exe=* |
--ex=*)
190 exec_prefix
="$ac_optarg" ;;
192 -gas |
--gas |
--ga |
--g)
193 # Obsolete; use --with-gas.
196 -help |
--help |
--hel |
--he)
197 # Omit some internal or obsolete options to make the list less imposing.
198 # This message is too long to be a string in the A/UX 3.1 sh.
200 Usage: configure [options] [host]
201 Options: [defaults in brackets after descriptions]
203 --cache-file=FILE cache test results in FILE
204 --help print this message
205 --no-create do not create output files
206 --quiet, --silent do not print \`checking...' messages
207 --version print the version of autoconf that created configure
208 Directory and file names:
209 --prefix=PREFIX install architecture-independent files in PREFIX
211 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
213 --bindir=DIR user executables in DIR [EPREFIX/bin]
214 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
215 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
216 --datadir=DIR read-only architecture-independent data in DIR
218 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
219 --sharedstatedir=DIR modifiable architecture-independent data in DIR
221 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
222 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
223 --includedir=DIR C header files in DIR [PREFIX/include]
224 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
225 --infodir=DIR info documentation in DIR [PREFIX/info]
226 --mandir=DIR man documentation in DIR [PREFIX/man]
227 --srcdir=DIR find the sources in DIR [configure dir or ..]
228 --program-prefix=PREFIX prepend PREFIX to installed program names
229 --program-suffix=SUFFIX append SUFFIX to installed program names
230 --program-transform-name=PROGRAM
231 run sed PROGRAM on installed program names
235 --build=BUILD configure for building on BUILD [BUILD=HOST]
236 --host=HOST configure for HOST [guessed]
237 --target=TARGET configure for TARGET [TARGET=HOST]
238 Features and packages:
239 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
240 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
241 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
242 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
243 --x-includes=DIR X include files are in DIR
244 --x-libraries=DIR X library files are in DIR
246 if test -n "$ac_help"; then
247 echo "--enable and --with options recognized:$ac_help"
251 -host |
--host |
--hos |
--ho)
253 -host=* |
--host=* |
--hos=* |
--ho=*)
256 -includedir |
--includedir |
--includedi |
--included |
--include \
257 |
--includ |
--inclu |
--incl |
--inc)
258 ac_prev
=includedir
;;
259 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
260 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
261 includedir
="$ac_optarg" ;;
263 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
265 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
266 infodir
="$ac_optarg" ;;
268 -libdir |
--libdir |
--libdi |
--libd)
270 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
271 libdir
="$ac_optarg" ;;
273 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
274 |
--libexe |
--libex |
--libe)
275 ac_prev
=libexecdir
;;
276 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
277 |
--libexe=* |
--libex=* |
--libe=*)
278 libexecdir
="$ac_optarg" ;;
280 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
281 |
--localstate |
--localstat |
--localsta |
--localst \
282 |
--locals |
--local |
--loca |
--loc |
--lo)
283 ac_prev
=localstatedir
;;
284 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
285 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
286 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
287 localstatedir
="$ac_optarg" ;;
289 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
291 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
292 mandir
="$ac_optarg" ;;
295 # Obsolete; use --without-fp.
298 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
302 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
303 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
306 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
307 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
308 |
--oldin |
--oldi |
--old |
--ol |
--o)
309 ac_prev
=oldincludedir
;;
310 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
311 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
312 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
313 oldincludedir
="$ac_optarg" ;;
315 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
317 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
318 prefix
="$ac_optarg" ;;
320 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
321 |
--program-pre |
--program-pr |
--program-p)
322 ac_prev
=program_prefix
;;
323 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
324 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
325 program_prefix
="$ac_optarg" ;;
327 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
328 |
--program-suf |
--program-su |
--program-s)
329 ac_prev
=program_suffix
;;
330 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
331 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
332 program_suffix
="$ac_optarg" ;;
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 ac_prev
=program_transform_name
;;
342 -program-transform-name=* |
--program-transform-name=* \
343 |
--program-transform-nam=* |
--program-transform-na=* \
344 |
--program-transform-n=* |
--program-transform-=* \
345 |
--program-transform=* |
--program-transfor=* \
346 |
--program-transfo=* |
--program-transf=* \
347 |
--program-trans=* |
--program-tran=* \
348 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
349 program_transform_name
="$ac_optarg" ;;
351 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
352 |
-silent |
--silent |
--silen |
--sile |
--sil)
355 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
357 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
359 sbindir
="$ac_optarg" ;;
361 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
362 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
363 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
365 ac_prev
=sharedstatedir
;;
366 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
367 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
368 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
370 sharedstatedir
="$ac_optarg" ;;
372 -site |
--site |
--sit)
374 -site=* |
--site=* |
--sit=*)
377 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
379 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
380 srcdir
="$ac_optarg" ;;
382 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
383 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
384 ac_prev
=sysconfdir
;;
385 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
386 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
387 sysconfdir
="$ac_optarg" ;;
389 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
391 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
392 target
="$ac_optarg" ;;
394 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
397 -version |
--version |
--versio |
--versi |
--vers)
398 echo "configure generated by autoconf version 2.13"
402 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
403 # Reject names that are not valid shell variable names.
404 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
405 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407 ac_package
=`echo $ac_package| sed 's/-/_/g'`
412 eval "with_${ac_package}='$ac_optarg'" ;;
414 -without-* |
--without-*)
415 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
416 # Reject names that are not valid shell variable names.
417 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
418 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
420 ac_package
=`echo $ac_package| sed 's/-/_/g'`
421 eval "with_${ac_package}=no" ;;
424 # Obsolete; use --with-x.
427 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
428 |
--x-incl |
--x-inc |
--x-in |
--x-i)
429 ac_prev
=x_includes
;;
430 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
431 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
432 x_includes
="$ac_optarg" ;;
434 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
435 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
436 ac_prev
=x_libraries
;;
437 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
438 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
439 x_libraries
="$ac_optarg" ;;
441 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
445 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
446 echo "configure: warning: $ac_option: invalid host type" 1>&2
448 if test "x$nonopt" != xNONE
; then
449 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
457 if test -n "$ac_prev"; then
458 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
461 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
463 # File descriptor usage:
466 # 2 errors and warnings
467 # 3 some systems may open it to /dev/tty
468 # 4 used on the Kubota Titan
469 # 6 checking for... messages and results
470 # 5 compiler messages saved in config.log
471 if test "$silent" = yes; then
479 This file contains any messages produced by compilers while
480 running configure, to aid debugging if configure makes a mistake.
483 # Strip out --no-create and --no-recursion so they do not pile up.
484 # Also quote any args containing shell metacharacters.
489 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
490 |
--no-cr |
--no-c) ;;
491 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
492 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
493 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
494 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
495 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
500 # Only set these to C if already set. These must not be set unconditionally
501 # because not all systems understand e.g. LANG=C (notably SCO).
502 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
503 # Non-C LC_CTYPE values break the ctype check.
504 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
505 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
506 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
507 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
510 rm -rf conftest
* confdefs.h
511 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
514 # A filename unique to this package, relative to the directory that
515 # configure is in, which we can look for to find out if srcdir is correct.
516 ac_unique_file
=include
/includes.h
518 # Find the source files, if location was not specified.
519 if test -z "$srcdir"; then
520 ac_srcdir_defaulted
=yes
521 # Try the directory containing this script, then its parent.
523 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
524 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
526 if test ! -r $srcdir/$ac_unique_file; then
530 ac_srcdir_defaulted
=no
532 if test ! -r $srcdir/$ac_unique_file; then
533 if test "$ac_srcdir_defaulted" = yes; then
534 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
536 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
539 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
541 # Prefer explicitly selected file to automatically selected ones.
542 if test -z "$CONFIG_SITE"; then
543 if test "x$prefix" != xNONE
; then
544 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
546 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
549 for ac_site_file
in $CONFIG_SITE; do
550 if test -r "$ac_site_file"; then
551 echo "loading site script $ac_site_file"
556 if test -r "$cache_file"; then
557 echo "loading cache $cache_file"
560 echo "creating cache $cache_file"
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp
='$CPP $CPPFLAGS'
567 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569 cross_compiling
=$ac_cv_prog_cc_cross
573 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
574 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
575 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
582 ac_n
= ac_c
='\c' ac_t
=
588 #################################################
589 # Directory handling stuff to support both the
590 # legacy SAMBA directories and FHS compliant
594 # Check whether --with-fhs or --without-fhs was given.
595 if test "${with_fhs+set}" = set; then
597 codepagedir
="\$(DATADIR)/samba/codepages"
598 configdir
="${sysconfdir}/samba"
599 lockdir
="\${VARDIR}/cache/samba"
600 logfilebase
="\${VARDIR}/log/samba"
601 privatedir
="\${CONFIGDIR}/private"
602 swatdir
="\${DATADIR}/samba/swat"
604 codepagedir
="\$(LIBDIR)/codepages"
605 configdir
="\$(LIBDIR)"
606 lockdir
="\$(VARDIR)/locks"
607 logfilebase
="\$(VARDIR)"
608 privatedir
="\${prefix}/private"
609 swatdir
="\${prefix}/swat"
613 #################################################
614 # set private directory location
615 # Check whether --with-privatedir or --without-privatedir was given.
616 if test "${with_privatedir+set}" = set; then
617 withval
="$with_privatedir"
621 # Just in case anybody calls it without argument
623 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
626 privatedir
="$withval"
632 #################################################
633 # set lock directory location
634 # Check whether --with-lockdir or --without-lockdir was given.
635 if test "${with_lockdir+set}" = set; then
636 withval
="$with_lockdir"
640 # Just in case anybody calls it without argument
642 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
651 #################################################
652 # set SWAT directory location
653 # Check whether --with-swatdir or --without-swatdir was given.
654 if test "${with_swatdir+set}" = set; then
655 withval
="$with_swatdir"
659 # Just in case anybody does it
661 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
670 #################################################
671 # set configuration directory location
672 # Check whether --with-configdir or --without-configdir was given.
673 if test "${with_configdir+set}" = set; then
674 withval
="$with_configdir"
678 # Just in case anybody does it
680 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
689 #################################################
690 # set codepage directory location
691 # Check whether --with-codepagedir or --without-codepagedir was given.
692 if test "${with_codepagedir+set}" = set; then
693 withval
="$with_codepagedir"
697 # Just in case anybody does it
699 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
702 codepagedir
="$withval"
731 # compile with optimization and without debugging by default
732 CFLAGS
="-O ${CFLAGS}"
734 # Check whether --enable-debug or --disable-debug was given.
735 if test "${enable_debug+set}" = set; then
736 enableval
="$enable_debug"
737 if eval "test x$enable_debug = xyes"; then
738 CFLAGS
="${CFLAGS} -g"
745 # Extract the first word of "gcc", so it can be a program name with args.
746 set dummy gcc
; ac_word
=$2
747 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
748 echo "configure:749: checking for $ac_word" >&5
749 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
750 echo $ac_n "(cached) $ac_c" 1>&6
752 if test -n "$CC"; then
753 ac_cv_prog_CC
="$CC" # Let the user override the test.
755 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
757 for ac_dir
in $ac_dummy; do
758 test -z "$ac_dir" && ac_dir
=.
759 if test -f $ac_dir/$ac_word; then
768 if test -n "$CC"; then
769 echo "$ac_t""$CC" 1>&6
771 echo "$ac_t""no" 1>&6
774 if test -z "$CC"; then
775 # Extract the first word of "cc", so it can be a program name with args.
776 set dummy cc
; ac_word
=$2
777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
778 echo "configure:779: checking for $ac_word" >&5
779 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
782 if test -n "$CC"; then
783 ac_cv_prog_CC
="$CC" # Let the user override the test.
785 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
788 for ac_dir
in $ac_dummy; do
789 test -z "$ac_dir" && ac_dir
=.
790 if test -f $ac_dir/$ac_word; then
791 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
800 if test $ac_prog_rejected = yes; then
801 # We found a bogon in the path, so make sure we never use it.
802 set dummy
$ac_cv_prog_CC
804 if test $# -gt 0; then
805 # We chose a different compiler from the bogus one.
806 # However, it has the same basename, so the bogon will be chosen
807 # first if we set CC to just the basename; use the full file name.
809 set dummy
"$ac_dir/$ac_word" "$@"
817 if test -n "$CC"; then
818 echo "$ac_t""$CC" 1>&6
820 echo "$ac_t""no" 1>&6
823 if test -z "$CC"; then
826 # Extract the first word of "cl", so it can be a program name with args.
827 set dummy cl
; ac_word
=$2
828 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
829 echo "configure:830: checking for $ac_word" >&5
830 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
831 echo $ac_n "(cached) $ac_c" 1>&6
833 if test -n "$CC"; then
834 ac_cv_prog_CC
="$CC" # Let the user override the test.
836 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
838 for ac_dir
in $ac_dummy; do
839 test -z "$ac_dir" && ac_dir
=.
840 if test -f $ac_dir/$ac_word; then
849 if test -n "$CC"; then
850 echo "$ac_t""$CC" 1>&6
852 echo "$ac_t""no" 1>&6
857 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
860 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
861 echo "configure:862: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
864 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
865 ac_cpp
='$CPP $CPPFLAGS'
866 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
867 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
868 cross_compiling
=$ac_cv_prog_cc_cross
870 cat > conftest.
$ac_ext << EOF
872 #line 873 "configure"
873 #include "confdefs.h"
877 if { (eval echo configure
:878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
878 ac_cv_prog_cc_works
=yes
879 # If we can't run a trivial program, we are probably using a cross compiler.
880 if (.
/conftest
; exit) 2>/dev
/null
; then
881 ac_cv_prog_cc_cross
=no
883 ac_cv_prog_cc_cross
=yes
886 echo "configure: failed program was:" >&5
887 cat conftest.
$ac_ext >&5
888 ac_cv_prog_cc_works
=no
892 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
893 ac_cpp
='$CPP $CPPFLAGS'
894 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
895 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
896 cross_compiling
=$ac_cv_prog_cc_cross
898 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
899 if test $ac_cv_prog_cc_works = no
; then
900 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
902 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
903 echo "configure:904: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
904 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
905 cross_compiling
=$ac_cv_prog_cc_cross
907 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
908 echo "configure:909: checking whether we are using GNU C" >&5
909 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
910 echo $ac_n "(cached) $ac_c" 1>&6
912 cat > conftest.c
<<EOF
917 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
924 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
926 if test $ac_cv_prog_gcc = yes; then
932 ac_test_CFLAGS
="${CFLAGS+set}"
933 ac_save_CFLAGS
="$CFLAGS"
935 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
936 echo "configure:937: checking whether ${CC-cc} accepts -g" >&5
937 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
938 echo $ac_n "(cached) $ac_c" 1>&6
940 echo 'void f(){}' > conftest.c
941 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
950 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
951 if test "$ac_test_CFLAGS" = set; then
952 CFLAGS
="$ac_save_CFLAGS"
953 elif test $ac_cv_prog_cc_g = yes; then
954 if test "$GCC" = yes; then
960 if test "$GCC" = yes; then
968 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
969 if test -f $ac_dir/install-sh
; then
971 ac_install_sh
="$ac_aux_dir/install-sh -c"
973 elif test -f $ac_dir/install.sh
; then
975 ac_install_sh
="$ac_aux_dir/install.sh -c"
979 if test -z "$ac_aux_dir"; then
980 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
982 ac_config_guess
=$ac_aux_dir/config.guess
983 ac_config_sub
=$ac_aux_dir/config.sub
984 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
986 # Find a good install program. We prefer a C program (faster),
987 # so one script is as good as another. But avoid the broken or
988 # incompatible versions:
989 # SysV /etc/install, /usr/sbin/install
990 # SunOS /usr/etc/install
993 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
994 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
995 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
996 # ./install, which can be erroneously created by make from ./install.sh.
997 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
998 echo "configure:999: checking for a BSD compatible install" >&5
999 if test -z "$INSTALL"; then
1000 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1001 echo $ac_n "(cached) $ac_c" 1>&6
1003 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1004 for ac_dir
in $PATH; do
1005 # Account for people who put trailing slashes in PATH elements.
1007 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1009 # OSF1 and SCO ODT 3.0 have their own names for install.
1010 # Don't use installbsd from OSF since it installs stuff as root
1012 for ac_prog
in ginstall scoinst
install; do
1013 if test -f $ac_dir/$ac_prog; then
1014 if test $ac_prog = install &&
1015 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1016 # AIX install. It has an incompatible calling convention.
1019 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1030 if test "${ac_cv_path_install+set}" = set; then
1031 INSTALL
="$ac_cv_path_install"
1033 # As a last resort, use the slow shell script. We don't cache a
1034 # path for INSTALL within a source directory, because that will
1035 # break other packages using the cache if that directory is
1036 # removed, or if the path is relative.
1037 INSTALL
="$ac_install_sh"
1040 echo "$ac_t""$INSTALL" 1>&6
1042 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1043 # It thinks the first close brace ends the variable substitution.
1044 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1046 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1048 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1050 for ac_prog
in mawk gawk nawk
awk
1052 # Extract the first word of "$ac_prog", so it can be a program name with args.
1053 set dummy
$ac_prog; ac_word
=$2
1054 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1055 echo "configure:1056: checking for $ac_word" >&5
1056 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1057 echo $ac_n "(cached) $ac_c" 1>&6
1059 if test -n "$AWK"; then
1060 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1062 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1064 for ac_dir
in $ac_dummy; do
1065 test -z "$ac_dir" && ac_dir
=.
1066 if test -f $ac_dir/$ac_word; then
1067 ac_cv_prog_AWK
="$ac_prog"
1074 AWK
="$ac_cv_prog_AWK"
1075 if test -n "$AWK"; then
1076 echo "$ac_t""$AWK" 1>&6
1078 echo "$ac_t""no" 1>&6
1081 test -n "$AWK" && break
1085 if test "x$CC" != xcc
; then
1086 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1087 echo "configure:1088: checking whether $CC and cc understand -c and -o together" >&5
1089 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1090 echo "configure:1091: checking whether cc understands -c and -o together" >&5
1092 set dummy
$CC; ac_cc
="`echo $2 |
1093 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1094 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1097 echo 'foo(){}' > conftest.c
1098 # Make sure it works both with $CC and with simple cc.
1099 # We do the test twice because some compilers refuse to overwrite an
1100 # existing .o file with -o, though they will create one.
1101 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1102 if { (eval echo configure
:1103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1103 test -f conftest.o
&& { (eval echo configure
:1104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1105 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
1106 if test "x$CC" != xcc
; then
1107 # Test first that cc exists at all.
1108 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:1109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1109 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
1110 if { (eval echo configure
:1111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1111 test -f conftest.o
&& { (eval echo configure
:1112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1116 # cc exists but doesn't like -o.
1117 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1122 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
1127 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1128 echo "$ac_t""yes" 1>&6
1130 echo "$ac_t""no" 1>&6
1131 cat >> confdefs.h
<<\EOF
1132 #define NO_MINUS_C_MINUS_O 1
1137 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1144 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1145 echo "configure:1146: checking that the C compiler understands volatile" >&5
1146 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1150 cat > conftest.
$ac_ext <<EOF
1151 #line 1152 "configure"
1152 #include "confdefs.h"
1153 #include <sys/types.h>
1158 if { (eval echo configure
:1159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1160 samba_cv_volatile
=yes
1162 echo "configure: failed program was:" >&5
1163 cat conftest.
$ac_ext >&5
1165 samba_cv_volatile
=no
1170 echo "$ac_t""$samba_cv_volatile" 1>&6
1171 if test x
"$samba_cv_volatile" = x
"yes"; then
1172 cat >> confdefs.h
<<\EOF
1173 #define HAVE_VOLATILE 1
1181 # Do some error checking and defaulting for the host and target type.
1183 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1186 # 1. You are not allowed to specify --host, --target, and nonopt at the
1188 # 2. Host defaults to nonopt.
1189 # 3. If nonopt is not specified, then host defaults to the current host,
1190 # as determined by config.guess.
1191 # 4. Target and build default to nonopt.
1192 # 5. If nonopt is not specified, then target and build default to host.
1194 # The aliases save the names the user supplied, while $host etc.
1195 # will get canonicalized.
1196 case $host---$target---$nonopt in
1197 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
1198 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1202 # Make sure we can run config.sub.
1203 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1204 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1207 echo $ac_n "checking host system type""... $ac_c" 1>&6
1208 echo "configure:1209: checking host system type" >&5
1211 case "$host_alias" in
1215 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1216 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1218 *) host_alias
=$nonopt ;;
1222 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1223 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1224 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1225 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1226 echo "$ac_t""$host" 1>&6
1228 echo $ac_n "checking target system type""... $ac_c" 1>&6
1229 echo "configure:1230: checking target system type" >&5
1231 target_alias
=$target
1232 case "$target_alias" in
1235 NONE
) target_alias
=$host_alias ;;
1236 *) target_alias
=$nonopt ;;
1240 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1241 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1242 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1243 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1244 echo "$ac_t""$target" 1>&6
1246 echo $ac_n "checking build system type""... $ac_c" 1>&6
1247 echo "configure:1248: checking build system type" >&5
1250 case "$build_alias" in
1253 NONE
) build_alias
=$host_alias ;;
1254 *) build_alias
=$nonopt ;;
1258 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1259 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1260 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1261 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1262 echo "$ac_t""$build" 1>&6
1264 test "$host_alias" != "$target_alias" &&
1265 test "$program_prefix$program_suffix$program_transform_name" = \
1267 program_prefix
=${target_alias}-
1271 *irix6
*) cat >> confdefs.h
<<\EOF
1272 #include <standards.h>
1280 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1281 echo "configure:1282: checking config.cache system type" >&5
1282 if { test x
"${ac_cv_host_system_type+set}" = x
"set" &&
1283 test x
"$ac_cv_host_system_type" != x
"$host"; } ||
1284 { test x
"${ac_cv_build_system_type+set}" = x
"set" &&
1285 test x
"$ac_cv_build_system_type" != x
"$build"; } ||
1286 { test x
"${ac_cv_target_system_type+set}" = x
"set" &&
1287 test x
"$ac_cv_target_system_type" != x
"$target"; }; then
1288 echo "$ac_t""different" 1>&6
1289 { echo "configure: error: "you must remove config.cache and restart configure
"" 1>&2; exit 1; }
1291 echo "$ac_t""same" 1>&6
1293 ac_cv_host_system_type
="$host"
1294 ac_cv_build_system_type
="$build"
1295 ac_cv_target_system_type
="$target"
1299 # Config CPPFLAG settings for strange OS's that must be set
1300 # before other tests.
1303 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1305 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1306 echo "configure:1307: checking whether ${CC-cc} accepts -Ae" >&5
1307 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1308 echo $ac_n "(cached) $ac_c" 1>&6
1310 echo 'void f(){}' > conftest.c
1311 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1312 ac_cv_prog_cc_Ae
=yes
1320 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1321 # mmap on HPUX is completely broken...
1322 cat >> confdefs.h
<<\EOF
1323 #define MMAP_BLACKLIST 1
1326 if test $ac_cv_prog_cc_Ae = yes; then
1327 CPPFLAGS
="$CPPFLAGS -Ae"
1330 # Defines needed for HPUX support.
1331 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1332 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1336 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1337 cat >> confdefs.h
<<\EOF
1338 #define USE_BOTH_CRYPT_CALLS 1
1343 CPPFLAGS
="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1344 cat >> confdefs.h
<<\EOF
1345 #define USE_BOTH_CRYPT_CALLS 1
1352 # AIX4.x doesn't even admit to having large
1353 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1356 echo "$ac_t""enabling large file support" 1>&6
1357 CPPFLAGS
="$CPPFLAGS -D_LARGE_FILES"
1360 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1361 # to the existance of large files..
1362 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1363 # recommendations on large file support, however it makes the
1364 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1365 # recommendation makes the compile fail on gcc2.7. JRA.
1370 echo "$ac_t""enabling large file support" 1>&6
1371 if test "$ac_cv_prog_gcc" = yes; then
1372 ${CC-cc} -v >conftest.c
2>&1
1373 ac_cv_gcc_compiler_version_number
=`grep 'gcc version' conftest.c`
1375 case "$ac_cv_gcc_compiler_version_number" in
1376 *"gcc version 2.6"*|
*"gcc version 2.7"*)
1377 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1380 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1384 CPPFLAGS
="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1390 # Tests needed for SINIX large file support.
1393 if test $host = mips-sni-sysv4
; then
1394 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1395 echo "configure:1396: checking for LFS support" >&5
1396 old_CPPFLAGS
="$CPPFLAGS"
1397 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1398 if test "$cross_compiling" = yes; then
1399 SINIX_LFS_SUPPORT
=cross
1401 cat > conftest.
$ac_ext <<EOF
1402 #line 1403 "configure"
1403 #include "confdefs.h"
1407 #if _LFS64_LARGEFILE == 1
1414 if { (eval echo configure
:1415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1416 SINIX_LFS_SUPPORT
=yes
1418 echo "configure: failed program was:" >&5
1419 cat conftest.
$ac_ext >&5
1421 SINIX_LFS_SUPPORT
=no
1426 CPPFLAGS
="$old_CPPFLAGS"
1427 if test x
$SINIX_LFS_SUPPORT = xyes
; then
1428 CPPFLAGS
="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1429 CFLAGS
="`getconf LFS64_CFLAGS` $CFLAGS"
1430 LDFLAGS
="`getconf LFS64_LDFLAGS` $LDFLAGS"
1431 LIBS
="`getconf LFS64_LIBS` $LIBS"
1433 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1437 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1440 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1441 echo "configure:1442: checking for LFS support" >&5
1442 old_CPPFLAGS
="$CPPFLAGS"
1443 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1444 if test "$cross_compiling" = yes; then
1445 LINUX_LFS_SUPPORT
=cross
1447 cat > conftest.
$ac_ext <<EOF
1448 #line 1449 "configure"
1449 #include "confdefs.h"
1452 #include <sys/utsname.h>
1454 #if _LFS64_LARGEFILE == 1
1459 /* Ensure this is glibc 2.2 or higher */
1460 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1461 int libc_major = __GLIBC__;
1462 int libc_minor = __GLIBC_MINOR__;
1470 /* Ensure this is kernel 2.4 or higher */
1473 release = uts.release;
1474 major = atoi(strsep(&release, "."));
1475 minor = atoi(strsep(&release, "."));
1477 if (major > 2 || (major == 2 && minor > 3))
1486 if { (eval echo configure
:1487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1488 LINUX_LFS_SUPPORT
=yes
1490 echo "configure: failed program was:" >&5
1491 cat conftest.
$ac_ext >&5
1493 LINUX_LFS_SUPPORT
=no
1498 CPPFLAGS
="$old_CPPFLAGS"
1499 if test x
$LINUX_LFS_SUPPORT = xyes
; then
1500 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1502 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1506 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1507 echo "configure:1508: checking for LFS support" >&5
1508 old_CPPFLAGS
="$CPPFLAGS"
1509 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1510 if test "$cross_compiling" = yes; then
1511 GLIBC_LFS_SUPPORT
=cross
1513 cat > conftest.
$ac_ext <<EOF
1514 #line 1515 "configure"
1515 #include "confdefs.h"
1519 #if _LFS64_LARGEFILE == 1
1526 if { (eval echo configure
:1527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1528 GLIBC_LFS_SUPPORT
=yes
1530 echo "configure: failed program was:" >&5
1531 cat conftest.
$ac_ext >&5
1533 GLIBC_LFS_SUPPORT
=no
1538 CPPFLAGS
="$old_CPPFLAGS"
1539 if test x
$GLIBC_LFS_SUPPORT = xyes
; then
1540 CPPFLAGS
="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1542 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1547 echo $ac_n "checking for inline""... $ac_c" 1>&6
1548 echo "configure:1549: checking for inline" >&5
1549 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1550 echo $ac_n "(cached) $ac_c" 1>&6
1553 for ac_kw
in inline __inline__ __inline
; do
1554 cat > conftest.
$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1562 if { (eval echo configure
:1563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1564 ac_cv_c_inline
=$ac_kw; break
1566 echo "configure: failed program was:" >&5
1567 cat conftest.
$ac_ext >&5
1574 echo "$ac_t""$ac_cv_c_inline" 1>&6
1575 case "$ac_cv_c_inline" in
1577 no
) cat >> confdefs.h
<<\EOF
1581 *) cat >> confdefs.h
<<EOF
1582 #define inline $ac_cv_c_inline
1587 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1588 echo "configure:1589: checking how to run the C preprocessor" >&5
1589 # On Suns, sometimes $CPP names a directory.
1590 if test -n "$CPP" && test -d "$CPP"; then
1593 if test -z "$CPP"; then
1594 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1595 echo $ac_n "(cached) $ac_c" 1>&6
1597 # This must be in double quotes, not single quotes, because CPP may get
1598 # substituted into the Makefile and "${CC-cc}" will confuse make.
1600 # On the NeXT, cc -E runs the code through the compiler's parser,
1601 # not just through cpp.
1602 cat > conftest.
$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
1608 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1609 { (eval echo configure
:1610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1610 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1611 if test -z "$ac_err"; then
1615 echo "configure: failed program was:" >&5
1616 cat conftest.
$ac_ext >&5
1618 CPP
="${CC-cc} -E -traditional-cpp"
1619 cat > conftest.
$ac_ext <<EOF
1620 #line 1621 "configure"
1621 #include "confdefs.h"
1625 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1626 { (eval echo configure
:1627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1627 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1628 if test -z "$ac_err"; then
1632 echo "configure: failed program was:" >&5
1633 cat conftest.
$ac_ext >&5
1635 CPP
="${CC-cc} -nologo -E"
1636 cat > conftest.
$ac_ext <<EOF
1637 #line 1638 "configure"
1638 #include "confdefs.h"
1642 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1643 { (eval echo configure
:1644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1644 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1645 if test -z "$ac_err"; then
1649 echo "configure: failed program was:" >&5
1650 cat conftest.
$ac_ext >&5
1659 ac_cv_prog_CPP
="$CPP"
1661 CPP
="$ac_cv_prog_CPP"
1663 ac_cv_prog_CPP
="$CPP"
1665 echo "$ac_t""$CPP" 1>&6
1667 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1668 echo "configure:1669: checking for ANSI C header files" >&5
1669 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1670 echo $ac_n "(cached) $ac_c" 1>&6
1672 cat > conftest.
$ac_ext <<EOF
1673 #line 1674 "configure"
1674 #include "confdefs.h"
1680 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1681 { (eval echo configure
:1682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1682 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1683 if test -z "$ac_err"; then
1685 ac_cv_header_stdc
=yes
1688 echo "configure: failed program was:" >&5
1689 cat conftest.
$ac_ext >&5
1691 ac_cv_header_stdc
=no
1695 if test $ac_cv_header_stdc = yes; then
1696 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1697 cat > conftest.
$ac_ext <<EOF
1698 #line 1699 "configure"
1699 #include "confdefs.h"
1702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1703 egrep "memchr" >/dev
/null
2>&1; then
1707 ac_cv_header_stdc
=no
1713 if test $ac_cv_header_stdc = yes; then
1714 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1715 cat > conftest.
$ac_ext <<EOF
1716 #line 1717 "configure"
1717 #include "confdefs.h"
1720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1721 egrep "free" >/dev
/null
2>&1; then
1725 ac_cv_header_stdc
=no
1731 if test $ac_cv_header_stdc = yes; then
1732 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1733 if test "$cross_compiling" = yes; then
1736 cat > conftest.
$ac_ext <<EOF
1737 #line 1738 "configure"
1738 #include "confdefs.h"
1740 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1741 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1742 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1743 int main () { int i; for (i = 0; i < 256; i++)
1744 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1748 if { (eval echo configure
:1749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1752 echo "configure: failed program was:" >&5
1753 cat conftest.
$ac_ext >&5
1755 ac_cv_header_stdc
=no
1763 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1764 if test $ac_cv_header_stdc = yes; then
1765 cat >> confdefs.h
<<\EOF
1766 #define STDC_HEADERS 1
1772 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
1774 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1775 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1776 echo "configure:1777: checking for $ac_hdr that defines DIR" >&5
1777 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1778 echo $ac_n "(cached) $ac_c" 1>&6
1780 cat > conftest.
$ac_ext <<EOF
1781 #line 1782 "configure"
1782 #include "confdefs.h"
1783 #include <sys/types.h>
1789 if { (eval echo configure
:1790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1791 eval "ac_cv_header_dirent_$ac_safe=yes"
1793 echo "configure: failed program was:" >&5
1794 cat conftest.
$ac_ext >&5
1796 eval "ac_cv_header_dirent_$ac_safe=no"
1800 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1801 echo "$ac_t""yes" 1>&6
1802 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1803 cat >> confdefs.h
<<EOF
1804 #define $ac_tr_hdr 1
1806 ac_header_dirent
=$ac_hdr; break
1808 echo "$ac_t""no" 1>&6
1811 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1812 if test $ac_header_dirent = dirent.h
; then
1813 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1814 echo "configure:1815: checking for opendir in -ldir" >&5
1815 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1816 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1819 ac_save_LIBS
="$LIBS"
1821 cat > conftest.
$ac_ext <<EOF
1822 #line 1823 "configure"
1823 #include "confdefs.h"
1824 /* Override any gcc2 internal prototype to avoid an error. */
1825 /* We use char because int might match the return type of a gcc2
1826 builtin and then its argument prototype would still apply. */
1833 if { (eval echo configure
:1834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1835 eval "ac_cv_lib_$ac_lib_var=yes"
1837 echo "configure: failed program was:" >&5
1838 cat conftest.
$ac_ext >&5
1840 eval "ac_cv_lib_$ac_lib_var=no"
1843 LIBS
="$ac_save_LIBS"
1846 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1847 echo "$ac_t""yes" 1>&6
1850 echo "$ac_t""no" 1>&6
1854 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1855 echo "configure:1856: checking for opendir in -lx" >&5
1856 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1857 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1858 echo $ac_n "(cached) $ac_c" 1>&6
1860 ac_save_LIBS
="$LIBS"
1862 cat > conftest.
$ac_ext <<EOF
1863 #line 1864 "configure"
1864 #include "confdefs.h"
1865 /* Override any gcc2 internal prototype to avoid an error. */
1866 /* We use char because int might match the return type of a gcc2
1867 builtin and then its argument prototype would still apply. */
1874 if { (eval echo configure
:1875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1876 eval "ac_cv_lib_$ac_lib_var=yes"
1878 echo "configure: failed program was:" >&5
1879 cat conftest.
$ac_ext >&5
1881 eval "ac_cv_lib_$ac_lib_var=no"
1884 LIBS
="$ac_save_LIBS"
1887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1888 echo "$ac_t""yes" 1>&6
1891 echo "$ac_t""no" 1>&6
1896 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1897 echo "configure:1898: checking whether time.h and sys/time.h may both be included" >&5
1898 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1899 echo $ac_n "(cached) $ac_c" 1>&6
1901 cat > conftest.
$ac_ext <<EOF
1902 #line 1903 "configure"
1903 #include "confdefs.h"
1904 #include <sys/types.h>
1905 #include <sys/time.h>
1911 if { (eval echo configure
:1912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1913 ac_cv_header_time
=yes
1915 echo "configure: failed program was:" >&5
1916 cat conftest.
$ac_ext >&5
1918 ac_cv_header_time
=no
1923 echo "$ac_t""$ac_cv_header_time" 1>&6
1924 if test $ac_cv_header_time = yes; then
1925 cat >> confdefs.h
<<\EOF
1926 #define TIME_WITH_SYS_TIME 1
1931 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1932 echo "configure:1933: checking for sys/wait.h that is POSIX.1 compatible" >&5
1933 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1934 echo $ac_n "(cached) $ac_c" 1>&6
1936 cat > conftest.
$ac_ext <<EOF
1937 #line 1938 "configure"
1938 #include "confdefs.h"
1939 #include <sys/types.h>
1940 #include <sys/wait.h>
1942 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1945 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1950 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1953 if { (eval echo configure
:1954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1955 ac_cv_header_sys_wait_h
=yes
1957 echo "configure: failed program was:" >&5
1958 cat conftest.
$ac_ext >&5
1960 ac_cv_header_sys_wait_h
=no
1965 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1966 if test $ac_cv_header_sys_wait_h = yes; then
1967 cat >> confdefs.h
<<\EOF
1968 #define HAVE_SYS_WAIT_H 1
1973 for ac_hdr
in arpa
/inet.h sys
/fcntl.h sys
/select.h fcntl.h sys
/time.h sys
/unistd.h
1975 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1976 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1977 echo "configure:1978: checking for $ac_hdr" >&5
1978 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1979 echo $ac_n "(cached) $ac_c" 1>&6
1981 cat > conftest.
$ac_ext <<EOF
1982 #line 1983 "configure"
1983 #include "confdefs.h"
1986 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1987 { (eval echo configure
:1988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1988 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1989 if test -z "$ac_err"; then
1991 eval "ac_cv_header_$ac_safe=yes"
1994 echo "configure: failed program was:" >&5
1995 cat conftest.
$ac_ext >&5
1997 eval "ac_cv_header_$ac_safe=no"
2001 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2002 echo "$ac_t""yes" 1>&6
2003 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2004 cat >> confdefs.h
<<EOF
2005 #define $ac_tr_hdr 1
2009 echo "$ac_t""no" 1>&6
2013 for ac_hdr
in unistd.h utime.h grp.h sys
/id.h limits.h memory.h net
/if.h
2015 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2016 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2017 echo "configure:2018: checking for $ac_hdr" >&5
2018 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2019 echo $ac_n "(cached) $ac_c" 1>&6
2021 cat > conftest.
$ac_ext <<EOF
2022 #line 2023 "configure"
2023 #include "confdefs.h"
2026 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2027 { (eval echo configure
:2028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2028 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2029 if test -z "$ac_err"; then
2031 eval "ac_cv_header_$ac_safe=yes"
2034 echo "configure: failed program was:" >&5
2035 cat conftest.
$ac_ext >&5
2037 eval "ac_cv_header_$ac_safe=no"
2041 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2042 echo "$ac_t""yes" 1>&6
2043 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2044 cat >> confdefs.h
<<EOF
2045 #define $ac_tr_hdr 1
2049 echo "$ac_t""no" 1>&6
2053 for ac_hdr
in compat.h rpc
/rpc.h rpcsvc
/nis.h rpcsvc
/yp_prot.h rpcsvc
/ypclnt.h
2055 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2056 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2057 echo "configure:2058: checking for $ac_hdr" >&5
2058 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2059 echo $ac_n "(cached) $ac_c" 1>&6
2061 cat > conftest.
$ac_ext <<EOF
2062 #line 2063 "configure"
2063 #include "confdefs.h"
2066 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2067 { (eval echo configure
:2068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2068 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2069 if test -z "$ac_err"; then
2071 eval "ac_cv_header_$ac_safe=yes"
2074 echo "configure: failed program was:" >&5
2075 cat conftest.
$ac_ext >&5
2077 eval "ac_cv_header_$ac_safe=no"
2081 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2082 echo "$ac_t""yes" 1>&6
2083 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2084 cat >> confdefs.h
<<EOF
2085 #define $ac_tr_hdr 1
2089 echo "$ac_t""no" 1>&6
2093 for ac_hdr
in sys
/param.h ctype.h sys
/wait.h sys
/resource.h sys
/ioctl.h sys
/ipc.h sys
/mode.h
2095 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2096 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2097 echo "configure:2098: checking for $ac_hdr" >&5
2098 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2101 cat > conftest.
$ac_ext <<EOF
2102 #line 2103 "configure"
2103 #include "confdefs.h"
2106 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2107 { (eval echo configure
:2108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2108 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2109 if test -z "$ac_err"; then
2111 eval "ac_cv_header_$ac_safe=yes"
2114 echo "configure: failed program was:" >&5
2115 cat conftest.
$ac_ext >&5
2117 eval "ac_cv_header_$ac_safe=no"
2121 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2122 echo "$ac_t""yes" 1>&6
2123 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2124 cat >> confdefs.h
<<EOF
2125 #define $ac_tr_hdr 1
2129 echo "$ac_t""no" 1>&6
2133 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
2135 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2136 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2137 echo "configure:2138: checking for $ac_hdr" >&5
2138 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2139 echo $ac_n "(cached) $ac_c" 1>&6
2141 cat > conftest.
$ac_ext <<EOF
2142 #line 2143 "configure"
2143 #include "confdefs.h"
2146 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2147 { (eval echo configure
:2148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2148 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2149 if test -z "$ac_err"; then
2151 eval "ac_cv_header_$ac_safe=yes"
2154 echo "configure: failed program was:" >&5
2155 cat conftest.
$ac_ext >&5
2157 eval "ac_cv_header_$ac_safe=no"
2161 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2162 echo "$ac_t""yes" 1>&6
2163 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2164 cat >> confdefs.h
<<EOF
2165 #define $ac_tr_hdr 1
2169 echo "$ac_t""no" 1>&6
2173 for ac_hdr
in sys
/mount.h sys
/vfs.h sys
/fs
/s5param.h sys
/filsys.h termios.h termio.h
2175 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2176 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2177 echo "configure:2178: checking for $ac_hdr" >&5
2178 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2179 echo $ac_n "(cached) $ac_c" 1>&6
2181 cat > conftest.
$ac_ext <<EOF
2182 #line 2183 "configure"
2183 #include "confdefs.h"
2186 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2187 { (eval echo configure
:2188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2188 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2189 if test -z "$ac_err"; then
2191 eval "ac_cv_header_$ac_safe=yes"
2194 echo "configure: failed program was:" >&5
2195 cat conftest.
$ac_ext >&5
2197 eval "ac_cv_header_$ac_safe=no"
2201 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2202 echo "$ac_t""yes" 1>&6
2203 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2204 cat >> confdefs.h
<<EOF
2205 #define $ac_tr_hdr 1
2209 echo "$ac_t""no" 1>&6
2213 for ac_hdr
in sys
/termio.h sys
/statfs.h sys
/dustat.h sys
/statvfs.h stdarg.h sys
/sockio.h
2215 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2216 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2217 echo "configure:2218: checking for $ac_hdr" >&5
2218 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2219 echo $ac_n "(cached) $ac_c" 1>&6
2221 cat > conftest.
$ac_ext <<EOF
2222 #line 2223 "configure"
2223 #include "confdefs.h"
2226 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2227 { (eval echo configure
:2228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2228 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2229 if test -z "$ac_err"; then
2231 eval "ac_cv_header_$ac_safe=yes"
2234 echo "configure: failed program was:" >&5
2235 cat conftest.
$ac_ext >&5
2237 eval "ac_cv_header_$ac_safe=no"
2241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2242 echo "$ac_t""yes" 1>&6
2243 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2244 cat >> confdefs.h
<<EOF
2245 #define $ac_tr_hdr 1
2249 echo "$ac_t""no" 1>&6
2253 for ac_hdr
in security
/pam_modules.h security
/_pam_macros.h
2255 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2256 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2257 echo "configure:2258: checking for $ac_hdr" >&5
2258 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2259 echo $ac_n "(cached) $ac_c" 1>&6
2261 cat > conftest.
$ac_ext <<EOF
2262 #line 2263 "configure"
2263 #include "confdefs.h"
2266 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2267 { (eval echo configure
:2268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2268 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2269 if test -z "$ac_err"; then
2271 eval "ac_cv_header_$ac_safe=yes"
2274 echo "configure: failed program was:" >&5
2275 cat conftest.
$ac_ext >&5
2277 eval "ac_cv_header_$ac_safe=no"
2281 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2282 echo "$ac_t""yes" 1>&6
2283 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2284 cat >> confdefs.h
<<EOF
2285 #define $ac_tr_hdr 1
2289 echo "$ac_t""no" 1>&6
2295 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2296 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2300 cat > conftest.
$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2308 if { (eval echo configure
:2309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2310 ac_cv_header_shadow_h
=yes
2312 echo "configure: failed program was:" >&5
2313 cat conftest.
$ac_ext >&5
2315 ac_cv_header_shadow_h
=no
2318 if test x
"$ac_cv_header_shadow_h" = x
"yes"; then
2319 cat >> confdefs.h
<<\EOF
2320 #define HAVE_SHADOW_H 1
2326 for ac_hdr
in shadow.h netinet
/ip.h netinet
/tcp.h netinet
/in_systm.h netinet
/in_ip.h
2328 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2329 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2330 echo "configure:2331: checking for $ac_hdr" >&5
2331 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2334 cat > conftest.
$ac_ext <<EOF
2335 #line 2336 "configure"
2336 #include "confdefs.h"
2339 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2340 { (eval echo configure
:2341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2341 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2342 if test -z "$ac_err"; then
2344 eval "ac_cv_header_$ac_safe=yes"
2347 echo "configure: failed program was:" >&5
2348 cat conftest.
$ac_ext >&5
2350 eval "ac_cv_header_$ac_safe=no"
2354 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2355 echo "$ac_t""yes" 1>&6
2356 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2357 cat >> confdefs.h
<<EOF
2358 #define $ac_tr_hdr 1
2362 echo "$ac_t""no" 1>&6
2366 for ac_hdr
in nss.h nss_common.h sys
/security.h security
/pam_appl.h security
/pam_modules.h
2368 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2369 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2370 echo "configure:2371: checking for $ac_hdr" >&5
2371 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 cat > conftest.
$ac_ext <<EOF
2375 #line 2376 "configure"
2376 #include "confdefs.h"
2379 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2380 { (eval echo configure
:2381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2381 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2382 if test -z "$ac_err"; then
2384 eval "ac_cv_header_$ac_safe=yes"
2387 echo "configure: failed program was:" >&5
2388 cat conftest.
$ac_ext >&5
2390 eval "ac_cv_header_$ac_safe=no"
2394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2395 echo "$ac_t""yes" 1>&6
2396 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2397 cat >> confdefs.h
<<EOF
2398 #define $ac_tr_hdr 1
2402 echo "$ac_t""no" 1>&6
2406 for ac_hdr
in stropts.h poll.h
2408 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2409 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2410 echo "configure:2411: checking for $ac_hdr" >&5
2411 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2412 echo $ac_n "(cached) $ac_c" 1>&6
2414 cat > conftest.
$ac_ext <<EOF
2415 #line 2416 "configure"
2416 #include "confdefs.h"
2419 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2420 { (eval echo configure
:2421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2421 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2422 if test -z "$ac_err"; then
2424 eval "ac_cv_header_$ac_safe=yes"
2427 echo "configure: failed program was:" >&5
2428 cat conftest.
$ac_ext >&5
2430 eval "ac_cv_header_$ac_safe=no"
2434 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2435 echo "$ac_t""yes" 1>&6
2436 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2437 cat >> confdefs.h
<<EOF
2438 #define $ac_tr_hdr 1
2442 echo "$ac_t""no" 1>&6
2446 for ac_hdr
in sys
/capability.h syscall.h sys
/syscall.h
2448 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2449 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2450 echo "configure:2451: checking for $ac_hdr" >&5
2451 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2452 echo $ac_n "(cached) $ac_c" 1>&6
2454 cat > conftest.
$ac_ext <<EOF
2455 #line 2456 "configure"
2456 #include "confdefs.h"
2459 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2460 { (eval echo configure
:2461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2461 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2462 if test -z "$ac_err"; then
2464 eval "ac_cv_header_$ac_safe=yes"
2467 echo "configure: failed program was:" >&5
2468 cat conftest.
$ac_ext >&5
2470 eval "ac_cv_header_$ac_safe=no"
2474 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2475 echo "$ac_t""yes" 1>&6
2476 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2477 cat >> confdefs.h
<<EOF
2478 #define $ac_tr_hdr 1
2482 echo "$ac_t""no" 1>&6
2486 for ac_hdr
in sys
/acl.h sys
/cdefs.h glob.h
2488 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2489 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2490 echo "configure:2491: checking for $ac_hdr" >&5
2491 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2492 echo $ac_n "(cached) $ac_c" 1>&6
2494 cat > conftest.
$ac_ext <<EOF
2495 #line 2496 "configure"
2496 #include "confdefs.h"
2499 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2500 { (eval echo configure
:2501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2501 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2502 if test -z "$ac_err"; then
2504 eval "ac_cv_header_$ac_safe=yes"
2507 echo "configure: failed program was:" >&5
2508 cat conftest.
$ac_ext >&5
2510 eval "ac_cv_header_$ac_safe=no"
2514 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2515 echo "$ac_t""yes" 1>&6
2516 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2517 cat >> confdefs.h
<<EOF
2518 #define $ac_tr_hdr 1
2522 echo "$ac_t""no" 1>&6
2527 # For experimental utmp support (lastlog on some BSD-like systems)
2528 for ac_hdr
in utmp.h utmpx.h lastlog.h
2530 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2531 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2532 echo "configure:2533: checking for $ac_hdr" >&5
2533 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2536 cat > conftest.
$ac_ext <<EOF
2537 #line 2538 "configure"
2538 #include "confdefs.h"
2541 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2542 { (eval echo configure
:2543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2543 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2544 if test -z "$ac_err"; then
2546 eval "ac_cv_header_$ac_safe=yes"
2549 echo "configure: failed program was:" >&5
2550 cat conftest.
$ac_ext >&5
2552 eval "ac_cv_header_$ac_safe=no"
2556 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2557 echo "$ac_t""yes" 1>&6
2558 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2559 cat >> confdefs.h
<<EOF
2560 #define $ac_tr_hdr 1
2564 echo "$ac_t""no" 1>&6
2569 # For quotas on Veritas VxFS filesystems
2570 for ac_hdr
in sys
/fs
/vx_quota.h
2572 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2573 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2574 echo "configure:2575: checking for $ac_hdr" >&5
2575 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2576 echo $ac_n "(cached) $ac_c" 1>&6
2578 cat > conftest.
$ac_ext <<EOF
2579 #line 2580 "configure"
2580 #include "confdefs.h"
2583 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2584 { (eval echo configure
:2585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2585 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2586 if test -z "$ac_err"; then
2588 eval "ac_cv_header_$ac_safe=yes"
2591 echo "configure: failed program was:" >&5
2592 cat conftest.
$ac_ext >&5
2594 eval "ac_cv_header_$ac_safe=no"
2598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2599 echo "$ac_t""yes" 1>&6
2600 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2601 cat >> confdefs.h
<<EOF
2602 #define $ac_tr_hdr 1
2606 echo "$ac_t""no" 1>&6
2611 echo $ac_n "checking size of int""... $ac_c" 1>&6
2612 echo "configure:2613: checking size of int" >&5
2613 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2614 echo $ac_n "(cached) $ac_c" 1>&6
2616 if test "$cross_compiling" = yes; then
2617 ac_cv_sizeof_int
=cross
2619 cat > conftest.
$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2625 FILE *f=fopen("conftestval", "w");
2627 fprintf(f, "%d\n", sizeof(int));
2631 if { (eval echo configure
:2632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2633 ac_cv_sizeof_int
=`cat conftestval`
2635 echo "configure: failed program was:" >&5
2636 cat conftest.
$ac_ext >&5
2644 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2645 cat >> confdefs.h
<<EOF
2646 #define SIZEOF_INT $ac_cv_sizeof_int
2650 echo $ac_n "checking size of long""... $ac_c" 1>&6
2651 echo "configure:2652: checking size of long" >&5
2652 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2653 echo $ac_n "(cached) $ac_c" 1>&6
2655 if test "$cross_compiling" = yes; then
2656 ac_cv_sizeof_long
=cross
2658 cat > conftest.
$ac_ext <<EOF
2659 #line 2660 "configure"
2660 #include "confdefs.h"
2664 FILE *f=fopen("conftestval", "w");
2666 fprintf(f, "%d\n", sizeof(long));
2670 if { (eval echo configure
:2671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2672 ac_cv_sizeof_long
=`cat conftestval`
2674 echo "configure: failed program was:" >&5
2675 cat conftest.
$ac_ext >&5
2683 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2684 cat >> confdefs.h
<<EOF
2685 #define SIZEOF_LONG $ac_cv_sizeof_long
2689 echo $ac_n "checking size of short""... $ac_c" 1>&6
2690 echo "configure:2691: checking size of short" >&5
2691 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2692 echo $ac_n "(cached) $ac_c" 1>&6
2694 if test "$cross_compiling" = yes; then
2695 ac_cv_sizeof_short
=cross
2697 cat > conftest.
$ac_ext <<EOF
2698 #line 2699 "configure"
2699 #include "confdefs.h"
2703 FILE *f=fopen("conftestval", "w");
2705 fprintf(f, "%d\n", sizeof(short));
2709 if { (eval echo configure
:2710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2711 ac_cv_sizeof_short
=`cat conftestval`
2713 echo "configure: failed program was:" >&5
2714 cat conftest.
$ac_ext >&5
2716 ac_cv_sizeof_short
=0
2722 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2723 cat >> confdefs.h
<<EOF
2724 #define SIZEOF_SHORT $ac_cv_sizeof_short
2729 echo $ac_n "checking for working const""... $ac_c" 1>&6
2730 echo "configure:2731: checking for working const" >&5
2731 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2732 echo $ac_n "(cached) $ac_c" 1>&6
2734 cat > conftest.
$ac_ext <<EOF
2735 #line 2736 "configure"
2736 #include "confdefs.h"
2740 /* Ultrix mips cc rejects this. */
2741 typedef int charset[2]; const charset x;
2742 /* SunOS 4.1.1 cc rejects this. */
2743 char const *const *ccp;
2745 /* NEC SVR4.0.2 mips cc rejects this. */
2746 struct point {int x, y;};
2747 static struct point const zero = {0,0};
2748 /* AIX XL C 1.02.0.0 rejects this.
2749 It does not let you subtract one const X* pointer from another in an arm
2750 of an if-expression whose if-part is not a constant expression */
2751 const char *g = "string";
2752 ccp = &g + (g ? g-g : 0);
2753 /* HPUX 7.0 cc rejects these. */
2756 ccp = (char const *const *) p;
2757 { /* SCO 3.2v4 cc rejects this. */
2759 char const *s = 0 ? (char *) 0 : (char const *) 0;
2763 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2765 const int *foo = &x[0];
2768 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2769 typedef const int *iptr;
2773 { /* AIX XL C 1.02.0.0 rejects this saying
2774 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2775 struct s { int j; const int *ap[3]; };
2776 struct s *b; b->j = 5;
2778 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2784 if { (eval echo configure
:2785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2788 echo "configure: failed program was:" >&5
2789 cat conftest.
$ac_ext >&5
2796 echo "$ac_t""$ac_cv_c_const" 1>&6
2797 if test $ac_cv_c_const = no
; then
2798 cat >> confdefs.h
<<\EOF
2804 echo $ac_n "checking for inline""... $ac_c" 1>&6
2805 echo "configure:2806: checking for inline" >&5
2806 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2807 echo $ac_n "(cached) $ac_c" 1>&6
2810 for ac_kw
in inline __inline__ __inline
; do
2811 cat > conftest.
$ac_ext <<EOF
2812 #line 2813 "configure"
2813 #include "confdefs.h"
2819 if { (eval echo configure
:2820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2821 ac_cv_c_inline
=$ac_kw; break
2823 echo "configure: failed program was:" >&5
2824 cat conftest.
$ac_ext >&5
2831 echo "$ac_t""$ac_cv_c_inline" 1>&6
2832 case "$ac_cv_c_inline" in
2834 no
) cat >> confdefs.h
<<\EOF
2838 *) cat >> confdefs.h
<<EOF
2839 #define inline $ac_cv_c_inline
2844 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2845 echo "configure:2846: checking whether byte ordering is bigendian" >&5
2846 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2847 echo $ac_n "(cached) $ac_c" 1>&6
2849 ac_cv_c_bigendian
=unknown
2850 # See if sys/param.h defines the BYTE_ORDER macro.
2851 cat > conftest.
$ac_ext <<EOF
2852 #line 2853 "configure"
2853 #include "confdefs.h"
2854 #include <sys/types.h>
2855 #include <sys/param.h>
2858 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2863 if { (eval echo configure
:2864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2865 # It does; now see whether it defined to BIG_ENDIAN or not.
2866 cat > conftest.
$ac_ext <<EOF
2867 #line 2868 "configure"
2868 #include "confdefs.h"
2869 #include <sys/types.h>
2870 #include <sys/param.h>
2873 #if BYTE_ORDER != BIG_ENDIAN
2878 if { (eval echo configure
:2879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2880 ac_cv_c_bigendian
=yes
2882 echo "configure: failed program was:" >&5
2883 cat conftest.
$ac_ext >&5
2885 ac_cv_c_bigendian
=no
2889 echo "configure: failed program was:" >&5
2890 cat conftest.
$ac_ext >&5
2893 if test $ac_cv_c_bigendian = unknown
; then
2894 if test "$cross_compiling" = yes; then
2895 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2897 cat > conftest.
$ac_ext <<EOF
2898 #line 2899 "configure"
2899 #include "confdefs.h"
2901 /* Are we little or big endian? From Harbison&Steele. */
2905 char c[sizeof (long)];
2908 exit (u.c[sizeof (long) - 1] == 1);
2911 if { (eval echo configure
:2912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2913 ac_cv_c_bigendian
=no
2915 echo "configure: failed program was:" >&5
2916 cat conftest.
$ac_ext >&5
2918 ac_cv_c_bigendian
=yes
2926 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2927 if test $ac_cv_c_bigendian = yes; then
2928 cat >> confdefs.h
<<\EOF
2929 #define WORDS_BIGENDIAN 1
2934 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2935 echo "configure:2936: checking whether char is unsigned" >&5
2936 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2937 echo $ac_n "(cached) $ac_c" 1>&6
2939 if test "$GCC" = yes; then
2940 # GCC predefines this symbol on systems where it applies.
2941 cat > conftest.
$ac_ext <<EOF
2942 #line 2943 "configure"
2943 #include "confdefs.h"
2944 #ifdef __CHAR_UNSIGNED__
2949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2950 egrep "yes" >/dev
/null
2>&1; then
2952 ac_cv_c_char_unsigned
=yes
2955 ac_cv_c_char_unsigned
=no
2960 if test "$cross_compiling" = yes; then
2961 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2963 cat > conftest.
$ac_ext <<EOF
2964 #line 2965 "configure"
2965 #include "confdefs.h"
2966 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2967 #if !defined(__STDC__) || __STDC__ != 1
2971 volatile char c = 255; exit(c < 0);
2974 if { (eval echo configure
:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2976 ac_cv_c_char_unsigned
=yes
2978 echo "configure: failed program was:" >&5
2979 cat conftest.
$ac_ext >&5
2981 ac_cv_c_char_unsigned
=no
2989 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2990 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2991 cat >> confdefs.h
<<\EOF
2992 #define __CHAR_UNSIGNED__ 1
2998 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2999 echo "configure:3000: checking return type of signal handlers" >&5
3000 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3001 echo $ac_n "(cached) $ac_c" 1>&6
3003 cat > conftest.
$ac_ext <<EOF
3004 #line 3005 "configure"
3005 #include "confdefs.h"
3006 #include <sys/types.h>
3012 extern "C" void (*signal (int, void (*)(int)))(int);
3014 void (*signal ()) ();
3021 if { (eval echo configure
:3022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3023 ac_cv_type_signal
=void
3025 echo "configure: failed program was:" >&5
3026 cat conftest.
$ac_ext >&5
3028 ac_cv_type_signal
=int
3033 echo "$ac_t""$ac_cv_type_signal" 1>&6
3034 cat >> confdefs.h
<<EOF
3035 #define RETSIGTYPE $ac_cv_type_signal
3039 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3040 echo "configure:3041: checking for uid_t in sys/types.h" >&5
3041 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3042 echo $ac_n "(cached) $ac_c" 1>&6
3044 cat > conftest.
$ac_ext <<EOF
3045 #line 3046 "configure"
3046 #include "confdefs.h"
3047 #include <sys/types.h>
3049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3050 egrep "uid_t" >/dev
/null
2>&1; then
3052 ac_cv_type_uid_t
=yes
3061 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3062 if test $ac_cv_type_uid_t = no
; then
3063 cat >> confdefs.h
<<\EOF
3067 cat >> confdefs.h
<<\EOF
3073 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3074 echo "configure:3075: checking for mode_t" >&5
3075 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3076 echo $ac_n "(cached) $ac_c" 1>&6
3078 cat > conftest.
$ac_ext <<EOF
3079 #line 3080 "configure"
3080 #include "confdefs.h"
3081 #include <sys/types.h>
3087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3088 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3090 ac_cv_type_mode_t
=yes
3093 ac_cv_type_mode_t
=no
3098 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3099 if test $ac_cv_type_mode_t = no
; then
3100 cat >> confdefs.h
<<\EOF
3106 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3107 echo "configure:3108: checking for off_t" >&5
3108 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3109 echo $ac_n "(cached) $ac_c" 1>&6
3111 cat > conftest.
$ac_ext <<EOF
3112 #line 3113 "configure"
3113 #include "confdefs.h"
3114 #include <sys/types.h>
3120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3121 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3123 ac_cv_type_off_t
=yes
3131 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3132 if test $ac_cv_type_off_t = no
; then
3133 cat >> confdefs.h
<<\EOF
3139 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3140 echo "configure:3141: checking for size_t" >&5
3141 if eval "test \"`echo '$''{'ac_cv_type_size_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])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3156 ac_cv_type_size_t
=yes
3159 ac_cv_type_size_t
=no
3164 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3165 if test $ac_cv_type_size_t = no
; then
3166 cat >> confdefs.h
<<\EOF
3167 #define size_t unsigned
3172 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3173 echo "configure:3174: checking for pid_t" >&5
3174 if eval "test \"`echo '$''{'ac_cv_type_pid_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])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3189 ac_cv_type_pid_t
=yes
3197 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3198 if test $ac_cv_type_pid_t = no
; then
3199 cat >> confdefs.h
<<\EOF
3205 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3206 echo "configure:3207: checking for st_rdev in struct stat" >&5
3207 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+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>
3214 #include <sys/stat.h>
3216 struct stat s; s.st_rdev;
3219 if { (eval echo configure
:3220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3221 ac_cv_struct_st_rdev
=yes
3223 echo "configure: failed program was:" >&5
3224 cat conftest.
$ac_ext >&5
3226 ac_cv_struct_st_rdev
=no
3231 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3232 if test $ac_cv_struct_st_rdev = yes; then
3233 cat >> confdefs.h
<<\EOF
3234 #define HAVE_ST_RDEV 1
3239 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3240 echo "configure:3241: checking for d_off in dirent" >&5
3241 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3242 echo $ac_n "(cached) $ac_c" 1>&6
3244 cat > conftest.
$ac_ext <<EOF
3245 #line 3246 "configure"
3246 #include "confdefs.h"
3249 #include <sys/types.h>
3252 struct dirent d; d.d_off;
3255 if { (eval echo configure
:3256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3257 ac_cv_dirent_d_off
=yes
3259 echo "configure: failed program was:" >&5
3260 cat conftest.
$ac_ext >&5
3262 ac_cv_dirent_d_off
=no
3267 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3268 if test $ac_cv_dirent_d_off = yes; then
3269 cat >> confdefs.h
<<\EOF
3270 #define HAVE_DIRENT_D_OFF 1
3275 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3276 echo "configure:3277: checking for ino_t" >&5
3277 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3278 echo $ac_n "(cached) $ac_c" 1>&6
3280 cat > conftest.
$ac_ext <<EOF
3281 #line 3282 "configure"
3282 #include "confdefs.h"
3283 #include <sys/types.h>
3289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3290 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3292 ac_cv_type_ino_t
=yes
3300 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3301 if test $ac_cv_type_ino_t = no
; then
3302 cat >> confdefs.h
<<\EOF
3303 #define ino_t unsigned
3308 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3309 echo "configure:3310: checking for loff_t" >&5
3310 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3311 echo $ac_n "(cached) $ac_c" 1>&6
3313 cat > conftest.
$ac_ext <<EOF
3314 #line 3315 "configure"
3315 #include "confdefs.h"
3316 #include <sys/types.h>
3322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3323 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3325 ac_cv_type_loff_t
=yes
3328 ac_cv_type_loff_t
=no
3333 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3334 if test $ac_cv_type_loff_t = no
; then
3335 cat >> confdefs.h
<<\EOF
3336 #define loff_t off_t
3341 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3342 echo "configure:3343: checking for offset_t" >&5
3343 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3344 echo $ac_n "(cached) $ac_c" 1>&6
3346 cat > conftest.
$ac_ext <<EOF
3347 #line 3348 "configure"
3348 #include "confdefs.h"
3349 #include <sys/types.h>
3355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3356 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3358 ac_cv_type_offset_t
=yes
3361 ac_cv_type_offset_t
=no
3366 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3367 if test $ac_cv_type_offset_t = no
; then
3368 cat >> confdefs.h
<<\EOF
3369 #define offset_t loff_t
3374 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3375 echo "configure:3376: checking for ssize_t" >&5
3376 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3377 echo $ac_n "(cached) $ac_c" 1>&6
3379 cat > conftest.
$ac_ext <<EOF
3380 #line 3381 "configure"
3381 #include "confdefs.h"
3382 #include <sys/types.h>
3388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3389 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3391 ac_cv_type_ssize_t
=yes
3394 ac_cv_type_ssize_t
=no
3399 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3400 if test $ac_cv_type_ssize_t = no
; then
3401 cat >> confdefs.h
<<\EOF
3407 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3408 echo "configure:3409: checking for wchar_t" >&5
3409 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3410 echo $ac_n "(cached) $ac_c" 1>&6
3412 cat > conftest.
$ac_ext <<EOF
3413 #line 3414 "configure"
3414 #include "confdefs.h"
3415 #include <sys/types.h>
3421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3422 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3424 ac_cv_type_wchar_t
=yes
3427 ac_cv_type_wchar_t
=no
3432 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3433 if test $ac_cv_type_wchar_t = no
; then
3434 cat >> confdefs.h
<<\EOF
3435 #define wchar_t unsigned short
3441 ############################################
3442 # for cups support we need libcups, and a handful of header files
3444 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3445 echo "configure:3446: checking for httpConnect in -lcups" >&5
3446 ac_lib_var
=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3448 echo $ac_n "(cached) $ac_c" 1>&6
3450 ac_save_LIBS
="$LIBS"
3452 cat > conftest.
$ac_ext <<EOF
3453 #line 3454 "configure"
3454 #include "confdefs.h"
3455 /* Override any gcc2 internal prototype to avoid an error. */
3456 /* We use char because int might match the return type of a gcc2
3457 builtin and then its argument prototype would still apply. */
3464 if { (eval echo configure
:3465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3466 eval "ac_cv_lib_$ac_lib_var=yes"
3468 echo "configure: failed program was:" >&5
3469 cat conftest.
$ac_ext >&5
3471 eval "ac_cv_lib_$ac_lib_var=no"
3474 LIBS
="$ac_save_LIBS"
3477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3478 echo "$ac_t""yes" 1>&6
3479 ac_tr_lib
=HAVE_LIB
`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3480 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3481 cat >> confdefs.h
<<EOF
3482 #define $ac_tr_lib 1
3488 echo "$ac_t""no" 1>&6
3492 # I wonder if there is a nicer way of doing this?
3494 if test x
"$ac_cv_lib_cups_httpConnect" = x
"yes"; then
3495 for ac_hdr
in cups
/cups.h cups
/language.h
3497 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3498 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3499 echo "configure:3500: checking for $ac_hdr" >&5
3500 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3501 echo $ac_n "(cached) $ac_c" 1>&6
3503 cat > conftest.
$ac_ext <<EOF
3504 #line 3505 "configure"
3505 #include "confdefs.h"
3508 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3509 { (eval echo configure
:3510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3510 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3511 if test -z "$ac_err"; then
3513 eval "ac_cv_header_$ac_safe=yes"
3516 echo "configure: failed program was:" >&5
3517 cat conftest.
$ac_ext >&5
3519 eval "ac_cv_header_$ac_safe=no"
3523 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3524 echo "$ac_t""yes" 1>&6
3525 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3526 cat >> confdefs.h
<<EOF
3527 #define $ac_tr_hdr 1
3531 echo "$ac_t""no" 1>&6
3535 if x
"$ac_cv_header_cups_cups_h" = x
"yes"; then
3536 if x
"$ac_cv_header_cups_language_h" = x
"yes"; then
3537 cat >> confdefs.h
<<\EOF
3545 ############################################
3546 # we need libdl for PAM and the new VFS code
3547 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3548 echo "configure:3549: checking for dlopen in -ldl" >&5
3549 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3550 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3551 echo $ac_n "(cached) $ac_c" 1>&6
3553 ac_save_LIBS
="$LIBS"
3555 cat > conftest.
$ac_ext <<EOF
3556 #line 3557 "configure"
3557 #include "confdefs.h"
3558 /* Override any gcc2 internal prototype to avoid an error. */
3559 /* We use char because int might match the return type of a gcc2
3560 builtin and then its argument prototype would still apply. */
3567 if { (eval echo configure
:3568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3569 eval "ac_cv_lib_$ac_lib_var=yes"
3571 echo "configure: failed program was:" >&5
3572 cat conftest.
$ac_ext >&5
3574 eval "ac_cv_lib_$ac_lib_var=no"
3577 LIBS
="$ac_save_LIBS"
3580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3581 echo "$ac_t""yes" 1>&6
3583 cat >> confdefs.h
<<\EOF
3584 #define HAVE_LIBDL 1
3588 echo "$ac_t""no" 1>&6
3592 ############################################
3593 # check for unix domain sockets
3594 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3595 echo "configure:3596: checking for unix domain sockets" >&5
3596 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3597 echo $ac_n "(cached) $ac_c" 1>&6
3600 cat > conftest.
$ac_ext <<EOF
3601 #line 3602 "configure"
3602 #include "confdefs.h"
3604 #include <sys/types.h>
3607 #include <sys/socket.h>
3611 struct sockaddr_un sunaddr;
3612 sunaddr.sun_family = AF_UNIX;
3616 if { (eval echo configure
:3617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3618 samba_cv_unixsocket
=yes
3620 echo "configure: failed program was:" >&5
3621 cat conftest.
$ac_ext >&5
3623 samba_cv_unixsocket
=no
3628 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3629 if test x
"$samba_cv_unixsocket" = x
"yes"; then
3630 cat >> confdefs.h
<<\EOF
3631 #define HAVE_UNIXSOCKET 1
3636 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3637 echo "configure:3638: checking for socklen_t type" >&5
3638 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3639 echo $ac_n "(cached) $ac_c" 1>&6
3642 cat > conftest.
$ac_ext <<EOF
3643 #line 3644 "configure"
3644 #include "confdefs.h"
3646 #include <sys/types.h>
3651 #include <sys/socket.h>
3656 if { (eval echo configure
:3657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3658 samba_cv_socklen_t
=yes
3660 echo "configure: failed program was:" >&5
3661 cat conftest.
$ac_ext >&5
3663 samba_cv_socklen_t
=no
3668 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3669 if test x
"$samba_cv_socklen_t" = x
"yes"; then
3670 cat >> confdefs.h
<<\EOF
3671 #define HAVE_SOCKLEN_T_TYPE 1
3676 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3677 echo "configure:3678: checking for sig_atomic_t type" >&5
3678 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3679 echo $ac_n "(cached) $ac_c" 1>&6
3682 cat > conftest.
$ac_ext <<EOF
3683 #line 3684 "configure"
3684 #include "confdefs.h"
3686 #include <sys/types.h>
3696 if { (eval echo configure
:3697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3698 samba_cv_sig_atomic_t
=yes
3700 echo "configure: failed program was:" >&5
3701 cat conftest.
$ac_ext >&5
3703 samba_cv_sig_atomic_t
=no
3708 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3709 if test x
"$samba_cv_sig_atomic_t" = x
"yes"; then
3710 cat >> confdefs.h
<<\EOF
3711 #define HAVE_SIG_ATOMIC_T_TYPE 1
3716 # stupid headers have the functions but no declaration. grrrr.
3718 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3719 echo "configure:3720: checking for errno declaration" >&5
3720 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3721 echo $ac_n "(cached) $ac_c" 1>&6
3724 cat > conftest.
$ac_ext <<EOF
3725 #line 3726 "configure"
3726 #include "confdefs.h"
3732 if { (eval echo configure
:3733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3734 ac_cv_have_errno_decl
=yes
3736 echo "configure: failed program was:" >&5
3737 cat conftest.
$ac_ext >&5
3739 ac_cv_have_errno_decl
=no
3744 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3745 if test x
"$ac_cv_have_errno_decl" = x
"yes"; then
3746 cat >> confdefs.h
<<\EOF
3747 #define HAVE_ERRNO_DECL 1
3753 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3754 echo "configure:3755: checking for setresuid declaration" >&5
3755 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3756 echo $ac_n "(cached) $ac_c" 1>&6
3759 cat > conftest.
$ac_ext <<EOF
3760 #line 3761 "configure"
3761 #include "confdefs.h"
3764 int i = (int)setresuid
3767 if { (eval echo configure
:3768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3769 ac_cv_have_setresuid_decl
=yes
3771 echo "configure: failed program was:" >&5
3772 cat conftest.
$ac_ext >&5
3774 ac_cv_have_setresuid_decl
=no
3779 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3780 if test x
"$ac_cv_have_setresuid_decl" = x
"yes"; then
3781 cat >> confdefs.h
<<\EOF
3782 #define HAVE_SETRESUID_DECL 1
3788 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3789 echo "configure:3790: checking for setresgid declaration" >&5
3790 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3791 echo $ac_n "(cached) $ac_c" 1>&6
3794 cat > conftest.
$ac_ext <<EOF
3795 #line 3796 "configure"
3796 #include "confdefs.h"
3799 int i = (int)setresgid
3802 if { (eval echo configure
:3803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3804 ac_cv_have_setresgid_decl
=yes
3806 echo "configure: failed program was:" >&5
3807 cat conftest.
$ac_ext >&5
3809 ac_cv_have_setresgid_decl
=no
3814 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3815 if test x
"$ac_cv_have_setresgid_decl" = x
"yes"; then
3816 cat >> confdefs.h
<<\EOF
3817 #define HAVE_SETRESGID_DECL 1
3823 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3824 echo "configure:3825: checking for asprintf declaration" >&5
3825 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3829 cat > conftest.
$ac_ext <<EOF
3830 #line 3831 "configure"
3831 #include "confdefs.h"
3834 int i = (int)asprintf
3837 if { (eval echo configure
:3838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3839 ac_cv_have_asprintf_decl
=yes
3841 echo "configure: failed program was:" >&5
3842 cat conftest.
$ac_ext >&5
3844 ac_cv_have_asprintf_decl
=no
3849 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3850 if test x
"$ac_cv_have_asprintf_decl" = x
"yes"; then
3851 cat >> confdefs.h
<<\EOF
3852 #define HAVE_ASPRINTF_DECL 1
3858 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3859 echo "configure:3860: checking for vasprintf declaration" >&5
3860 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3861 echo $ac_n "(cached) $ac_c" 1>&6
3864 cat > conftest.
$ac_ext <<EOF
3865 #line 3866 "configure"
3866 #include "confdefs.h"
3869 int i = (int)vasprintf
3872 if { (eval echo configure
:3873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3874 ac_cv_have_vasprintf_decl
=yes
3876 echo "configure: failed program was:" >&5
3877 cat conftest.
$ac_ext >&5
3879 ac_cv_have_vasprintf_decl
=no
3884 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
3885 if test x
"$ac_cv_have_vasprintf_decl" = x
"yes"; then
3886 cat >> confdefs.h
<<\EOF
3887 #define HAVE_VASPRINTF_DECL 1
3893 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
3894 echo "configure:3895: checking for vsnprintf declaration" >&5
3895 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
3896 echo $ac_n "(cached) $ac_c" 1>&6
3899 cat > conftest.
$ac_ext <<EOF
3900 #line 3901 "configure"
3901 #include "confdefs.h"
3904 int i = (int)vsnprintf
3907 if { (eval echo configure
:3908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3909 ac_cv_have_vsnprintf_decl
=yes
3911 echo "configure: failed program was:" >&5
3912 cat conftest.
$ac_ext >&5
3914 ac_cv_have_vsnprintf_decl
=no
3919 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
3920 if test x
"$ac_cv_have_vsnprintf_decl" = x
"yes"; then
3921 cat >> confdefs.h
<<\EOF
3922 #define HAVE_VSNPRINTF_DECL 1
3928 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
3929 echo "configure:3930: checking for snprintf declaration" >&5
3930 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
3931 echo $ac_n "(cached) $ac_c" 1>&6
3934 cat > conftest.
$ac_ext <<EOF
3935 #line 3936 "configure"
3936 #include "confdefs.h"
3939 int i = (int)snprintf
3942 if { (eval echo configure
:3943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3944 ac_cv_have_snprintf_decl
=yes
3946 echo "configure: failed program was:" >&5
3947 cat conftest.
$ac_ext >&5
3949 ac_cv_have_snprintf_decl
=no
3954 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
3955 if test x
"$ac_cv_have_snprintf_decl" = x
"yes"; then
3956 cat >> confdefs.h
<<\EOF
3957 #define HAVE_SNPRINTF_DECL 1
3963 # and glibc has setresuid under linux but the function does
3964 # nothing until kernel 2.1.44! very dumb.
3965 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3966 echo "configure:3967: checking for real setresuid" >&5
3967 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3968 echo $ac_n "(cached) $ac_c" 1>&6
3971 if test "$cross_compiling" = yes; then
3972 samba_cv_have_setresuid
=cross
3974 cat > conftest.
$ac_ext <<EOF
3975 #line 3976 "configure"
3976 #include "confdefs.h"
3978 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3980 if { (eval echo configure
:3981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3982 samba_cv_have_setresuid
=yes
3984 echo "configure: failed program was:" >&5
3985 cat conftest.
$ac_ext >&5
3987 samba_cv_have_setresuid
=no
3994 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3995 if test x
"$samba_cv_have_setresuid" = x
"yes"; then
3996 cat >> confdefs.h
<<\EOF
3997 #define HAVE_SETRESUID 1
4002 # Do the same check for setresguid...
4004 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4005 echo "configure:4006: checking for real setresgid" >&5
4006 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4007 echo $ac_n "(cached) $ac_c" 1>&6
4010 if test "$cross_compiling" = yes; then
4011 samba_cv_have_setresgid
=cross
4013 cat > conftest.
$ac_ext <<EOF
4014 #line 4015 "configure"
4015 #include "confdefs.h"
4018 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4020 if { (eval echo configure
:4021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4022 samba_cv_have_setresgid
=yes
4024 echo "configure: failed program was:" >&5
4025 cat conftest.
$ac_ext >&5
4027 samba_cv_have_setresgid
=no
4034 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4035 if test x
"$samba_cv_have_setresgid" = x
"yes"; then
4036 cat >> confdefs.h
<<\EOF
4037 #define HAVE_SETRESGID 1
4042 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4043 echo "configure:4044: checking for 8-bit clean memcmp" >&5
4044 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4045 echo $ac_n "(cached) $ac_c" 1>&6
4047 if test "$cross_compiling" = yes; then
4048 ac_cv_func_memcmp_clean
=no
4050 cat > conftest.
$ac_ext <<EOF
4051 #line 4052 "configure"
4052 #include "confdefs.h"
4056 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4057 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4061 if { (eval echo configure
:4062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4063 ac_cv_func_memcmp_clean
=yes
4065 echo "configure: failed program was:" >&5
4066 cat conftest.
$ac_ext >&5
4068 ac_cv_func_memcmp_clean
=no
4075 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4076 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
4079 ###############################################
4080 # Readline included by default unless explicitly asked not to
4081 test "${with_readline+set}" != "set" && with_readline
=yes
4083 # test for where we get readline() from
4084 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4085 echo "configure:4086: checking whether to use readline" >&5
4086 # Check whether --with-readline or --without-readline was given.
4087 if test "${with_readline+set}" = set; then
4088 withval
="$with_readline"
4089 case "$with_readline" in
4091 echo "$ac_t""yes" 1>&6
4093 for ac_hdr
in readline.h
history.h readline
/readline.h
4095 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4096 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4097 echo "configure:4098: checking for $ac_hdr" >&5
4098 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4099 echo $ac_n "(cached) $ac_c" 1>&6
4101 cat > conftest.
$ac_ext <<EOF
4102 #line 4103 "configure"
4103 #include "confdefs.h"
4106 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4107 { (eval echo configure
:4108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4108 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4109 if test -z "$ac_err"; then
4111 eval "ac_cv_header_$ac_safe=yes"
4114 echo "configure: failed program was:" >&5
4115 cat conftest.
$ac_ext >&5
4117 eval "ac_cv_header_$ac_safe=no"
4121 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4122 echo "$ac_t""yes" 1>&6
4123 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4124 cat >> confdefs.h
<<EOF
4125 #define $ac_tr_hdr 1
4129 echo "$ac_t""no" 1>&6
4133 for ac_hdr
in readline
/history.h
4135 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4136 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4137 echo "configure:4138: checking for $ac_hdr" >&5
4138 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4139 echo $ac_n "(cached) $ac_c" 1>&6
4141 cat > conftest.
$ac_ext <<EOF
4142 #line 4143 "configure"
4143 #include "confdefs.h"
4146 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4147 { (eval echo configure
:4148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4148 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4149 if test -z "$ac_err"; then
4151 eval "ac_cv_header_$ac_safe=yes"
4154 echo "configure: failed program was:" >&5
4155 cat conftest.
$ac_ext >&5
4157 eval "ac_cv_header_$ac_safe=no"
4161 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4162 echo "$ac_t""yes" 1>&6
4163 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4164 cat >> confdefs.h
<<EOF
4165 #define $ac_tr_hdr 1
4169 echo "$ac_t""no" 1>&6
4174 for ac_hdr
in readline.h readline
/readline.h
4176 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4177 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4178 echo "configure:4179: checking for $ac_hdr" >&5
4179 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4180 echo $ac_n "(cached) $ac_c" 1>&6
4182 cat > conftest.
$ac_ext <<EOF
4183 #line 4184 "configure"
4184 #include "confdefs.h"
4187 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4188 { (eval echo configure
:4189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4189 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4190 if test -z "$ac_err"; then
4192 eval "ac_cv_header_$ac_safe=yes"
4195 echo "configure: failed program was:" >&5
4196 cat conftest.
$ac_ext >&5
4198 eval "ac_cv_header_$ac_safe=no"
4202 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4203 echo "$ac_t""yes" 1>&6
4204 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4205 cat >> confdefs.h
<<EOF
4206 #define $ac_tr_hdr 1
4209 for termlib
in ncurses curses termcap terminfo termlib
; do
4210 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4211 echo "configure:4212: checking for tgetent in -l${termlib}" >&5
4212 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4213 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4214 echo $ac_n "(cached) $ac_c" 1>&6
4216 ac_save_LIBS
="$LIBS"
4217 LIBS
="-l${termlib} $LIBS"
4218 cat > conftest.
$ac_ext <<EOF
4219 #line 4220 "configure"
4220 #include "confdefs.h"
4221 /* Override any gcc2 internal prototype to avoid an error. */
4222 /* We use char because int might match the return type of a gcc2
4223 builtin and then its argument prototype would still apply. */
4230 if { (eval echo configure
:4231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4232 eval "ac_cv_lib_$ac_lib_var=yes"
4234 echo "configure: failed program was:" >&5
4235 cat conftest.
$ac_ext >&5
4237 eval "ac_cv_lib_$ac_lib_var=no"
4240 LIBS
="$ac_save_LIBS"
4243 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4244 echo "$ac_t""yes" 1>&6
4245 TERMLIBS
="-l${termlib}"; break
4247 echo "$ac_t""no" 1>&6
4251 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4252 echo "configure:4253: checking for rl_callback_handler_install in -lreadline" >&5
4253 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4254 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4255 echo $ac_n "(cached) $ac_c" 1>&6
4257 ac_save_LIBS
="$LIBS"
4258 LIBS
="-lreadline $TERMLIBS $LIBS"
4259 cat > conftest.
$ac_ext <<EOF
4260 #line 4261 "configure"
4261 #include "confdefs.h"
4262 /* Override any gcc2 internal prototype to avoid an error. */
4263 /* We use char because int might match the return type of a gcc2
4264 builtin and then its argument prototype would still apply. */
4265 char rl_callback_handler_install();
4268 rl_callback_handler_install()
4271 if { (eval echo configure
:4272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4273 eval "ac_cv_lib_$ac_lib_var=yes"
4275 echo "configure: failed program was:" >&5
4276 cat conftest.
$ac_ext >&5
4278 eval "ac_cv_lib_$ac_lib_var=no"
4281 LIBS
="$ac_save_LIBS"
4284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4285 echo "$ac_t""yes" 1>&6
4286 TERMLIBS
="-lreadline $TERMLIBS"
4287 cat >> confdefs.h
<<\EOF
4288 #define HAVE_LIBREADLINE 1
4293 echo "$ac_t""no" 1>&6
4298 echo "$ac_t""no" 1>&6
4304 echo "$ac_t""no" 1>&6
4307 echo "$ac_t""yes" 1>&6
4309 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4310 # alternate readline path
4312 _cppflags
=${CPPFLAGS}
4314 # Add additional search path
4315 LDFLAGS
="-L$with_readline/lib $LDFLAGS"
4316 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4318 for ac_hdr
in readline.h
history.h readline
/readline.h
4320 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4321 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4322 echo "configure:4323: checking for $ac_hdr" >&5
4323 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4324 echo $ac_n "(cached) $ac_c" 1>&6
4326 cat > conftest.
$ac_ext <<EOF
4327 #line 4328 "configure"
4328 #include "confdefs.h"
4331 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4332 { (eval echo configure
:4333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4333 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4334 if test -z "$ac_err"; then
4336 eval "ac_cv_header_$ac_safe=yes"
4339 echo "configure: failed program was:" >&5
4340 cat conftest.
$ac_ext >&5
4342 eval "ac_cv_header_$ac_safe=no"
4346 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4347 echo "$ac_t""yes" 1>&6
4348 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4349 cat >> confdefs.h
<<EOF
4350 #define $ac_tr_hdr 1
4354 echo "$ac_t""no" 1>&6
4358 for ac_hdr
in readline
/history.h
4360 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4361 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4362 echo "configure:4363: checking for $ac_hdr" >&5
4363 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4364 echo $ac_n "(cached) $ac_c" 1>&6
4366 cat > conftest.
$ac_ext <<EOF
4367 #line 4368 "configure"
4368 #include "confdefs.h"
4371 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4372 { (eval echo configure
:4373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4373 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4374 if test -z "$ac_err"; then
4376 eval "ac_cv_header_$ac_safe=yes"
4379 echo "configure: failed program was:" >&5
4380 cat conftest.
$ac_ext >&5
4382 eval "ac_cv_header_$ac_safe=no"
4386 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4387 echo "$ac_t""yes" 1>&6
4388 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4389 cat >> confdefs.h
<<EOF
4390 #define $ac_tr_hdr 1
4394 echo "$ac_t""no" 1>&6
4399 for ac_hdr
in readline.h readline
/readline.h
4401 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4402 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4403 echo "configure:4404: checking for $ac_hdr" >&5
4404 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4405 echo $ac_n "(cached) $ac_c" 1>&6
4407 cat > conftest.
$ac_ext <<EOF
4408 #line 4409 "configure"
4409 #include "confdefs.h"
4412 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4413 { (eval echo configure
:4414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4414 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4415 if test -z "$ac_err"; then
4417 eval "ac_cv_header_$ac_safe=yes"
4420 echo "configure: failed program was:" >&5
4421 cat conftest.
$ac_ext >&5
4423 eval "ac_cv_header_$ac_safe=no"
4427 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4428 echo "$ac_t""yes" 1>&6
4429 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4430 cat >> confdefs.h
<<EOF
4431 #define $ac_tr_hdr 1
4434 for termlib
in ncurses curses termcap terminfo termlib
; do
4435 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4436 echo "configure:4437: checking for tgetent in -l${termlib}" >&5
4437 ac_lib_var
=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4438 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4439 echo $ac_n "(cached) $ac_c" 1>&6
4441 ac_save_LIBS
="$LIBS"
4442 LIBS
="-l${termlib} $LIBS"
4443 cat > conftest.
$ac_ext <<EOF
4444 #line 4445 "configure"
4445 #include "confdefs.h"
4446 /* Override any gcc2 internal prototype to avoid an error. */
4447 /* We use char because int might match the return type of a gcc2
4448 builtin and then its argument prototype would still apply. */
4455 if { (eval echo configure
:4456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4457 eval "ac_cv_lib_$ac_lib_var=yes"
4459 echo "configure: failed program was:" >&5
4460 cat conftest.
$ac_ext >&5
4462 eval "ac_cv_lib_$ac_lib_var=no"
4465 LIBS
="$ac_save_LIBS"
4468 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4469 echo "$ac_t""yes" 1>&6
4470 TERMLIBS
="-l${termlib}"; break
4472 echo "$ac_t""no" 1>&6
4476 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4477 echo "configure:4478: checking for rl_callback_handler_install in -lreadline" >&5
4478 ac_lib_var
=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4479 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4480 echo $ac_n "(cached) $ac_c" 1>&6
4482 ac_save_LIBS
="$LIBS"
4483 LIBS
="-lreadline $TERMLIBS $LIBS"
4484 cat > conftest.
$ac_ext <<EOF
4485 #line 4486 "configure"
4486 #include "confdefs.h"
4487 /* Override any gcc2 internal prototype to avoid an error. */
4488 /* We use char because int might match the return type of a gcc2
4489 builtin and then its argument prototype would still apply. */
4490 char rl_callback_handler_install();
4493 rl_callback_handler_install()
4496 if { (eval echo configure
:4497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4498 eval "ac_cv_lib_$ac_lib_var=yes"
4500 echo "configure: failed program was:" >&5
4501 cat conftest.
$ac_ext >&5
4503 eval "ac_cv_lib_$ac_lib_var=no"
4506 LIBS
="$ac_save_LIBS"
4509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4510 echo "$ac_t""yes" 1>&6
4511 TERMLDFLAGS
="-L$with_readline/lib"
4512 TERMCPPFLAGS
="-I$with_readline/include"
4513 CPPFLAGS
="-I$with_readline/include $CPPFLAGS"
4514 TERMLIBS
="-lreadline $TERMLIBS"
4515 cat >> confdefs.h
<<\EOF
4516 #define HAVE_LIBREADLINE 1
4521 echo "$ac_t""no" 1>&6
4522 TERMLIBS
= CPPFLAGS
=$_cppflags
4526 echo "$ac_t""no" 1>&6
4535 echo "$ac_t""no" 1>&6
4542 # The following test taken from the cvs sources
4543 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4544 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4545 # libsocket.so which has a bad implementation of gethostbyname (it
4546 # only looks in /etc/hosts), so we only look for -lsocket if we need
4548 for ac_func
in connect
4550 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4551 echo "configure:4552: checking for $ac_func" >&5
4552 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4553 echo $ac_n "(cached) $ac_c" 1>&6
4555 cat > conftest.
$ac_ext <<EOF
4556 #line 4557 "configure"
4557 #include "confdefs.h"
4558 /* System header to define __stub macros and hopefully few prototypes,
4559 which can conflict with char $ac_func(); below. */
4561 /* Override any gcc2 internal prototype to avoid an error. */
4562 /* We use char because int might match the return type of a gcc2
4563 builtin and then its argument prototype would still apply. */
4568 /* The GNU C library defines this for functions which it implements
4569 to always fail with ENOSYS. Some functions are actually named
4570 something starting with __ and the normal name is an alias. */
4571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4579 if { (eval echo configure
:4580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4581 eval "ac_cv_func_$ac_func=yes"
4583 echo "configure: failed program was:" >&5
4584 cat conftest.
$ac_ext >&5
4586 eval "ac_cv_func_$ac_func=no"
4591 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4592 echo "$ac_t""yes" 1>&6
4593 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4594 cat >> confdefs.h
<<EOF
4595 #define $ac_tr_func 1
4599 echo "$ac_t""no" 1>&6
4603 if test x
"$ac_cv_func_connect" = x
"no"; then
4606 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4607 echo "configure:4608: checking for printf in -lnsl_s" >&5
4608 ac_lib_var
=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4609 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4610 echo $ac_n "(cached) $ac_c" 1>&6
4612 ac_save_LIBS
="$LIBS"
4613 LIBS
="-lnsl_s $LIBS"
4614 cat > conftest.
$ac_ext <<EOF
4615 #line 4616 "configure"
4616 #include "confdefs.h"
4617 /* Override any gcc2 internal prototype to avoid an error. */
4618 /* We use char because int might match the return type of a gcc2
4619 builtin and then its argument prototype would still apply. */
4626 if { (eval echo configure
:4627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4628 eval "ac_cv_lib_$ac_lib_var=yes"
4630 echo "configure: failed program was:" >&5
4631 cat conftest.
$ac_ext >&5
4633 eval "ac_cv_lib_$ac_lib_var=no"
4636 LIBS
="$ac_save_LIBS"
4639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4640 echo "$ac_t""yes" 1>&6
4641 ac_tr_lib
=HAVE_LIB
`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4642 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4643 cat >> confdefs.h
<<EOF
4644 #define $ac_tr_lib 1
4647 LIBS
="-lnsl_s $LIBS"
4650 echo "$ac_t""no" 1>&6
4656 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4657 echo "configure:4658: checking for printf in -lnsl" >&5
4658 ac_lib_var
=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4659 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4660 echo $ac_n "(cached) $ac_c" 1>&6
4662 ac_save_LIBS
="$LIBS"
4664 cat > conftest.
$ac_ext <<EOF
4665 #line 4666 "configure"
4666 #include "confdefs.h"
4667 /* Override any gcc2 internal prototype to avoid an error. */
4668 /* We use char because int might match the return type of a gcc2
4669 builtin and then its argument prototype would still apply. */
4676 if { (eval echo configure
:4677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4678 eval "ac_cv_lib_$ac_lib_var=yes"
4680 echo "configure: failed program was:" >&5
4681 cat conftest.
$ac_ext >&5
4683 eval "ac_cv_lib_$ac_lib_var=no"
4686 LIBS
="$ac_save_LIBS"
4689 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4690 echo "$ac_t""yes" 1>&6
4691 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4692 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4693 cat >> confdefs.h
<<EOF
4694 #define $ac_tr_lib 1
4700 echo "$ac_t""no" 1>&6
4706 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4707 echo "configure:4708: checking for connect in -lsocket" >&5
4708 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4709 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4710 echo $ac_n "(cached) $ac_c" 1>&6
4712 ac_save_LIBS
="$LIBS"
4713 LIBS
="-lsocket $LIBS"
4714 cat > conftest.
$ac_ext <<EOF
4715 #line 4716 "configure"
4716 #include "confdefs.h"
4717 /* Override any gcc2 internal prototype to avoid an error. */
4718 /* We use char because int might match the return type of a gcc2
4719 builtin and then its argument prototype would still apply. */
4726 if { (eval echo configure
:4727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4728 eval "ac_cv_lib_$ac_lib_var=yes"
4730 echo "configure: failed program was:" >&5
4731 cat conftest.
$ac_ext >&5
4733 eval "ac_cv_lib_$ac_lib_var=no"
4736 LIBS
="$ac_save_LIBS"
4739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4740 echo "$ac_t""yes" 1>&6
4741 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4742 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4743 cat >> confdefs.h
<<EOF
4744 #define $ac_tr_lib 1
4747 LIBS
="-lsocket $LIBS"
4750 echo "$ac_t""no" 1>&6
4756 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4757 echo "configure:4758: checking for connect in -linet" >&5
4758 ac_lib_var
=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4759 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4760 echo $ac_n "(cached) $ac_c" 1>&6
4762 ac_save_LIBS
="$LIBS"
4764 cat > conftest.
$ac_ext <<EOF
4765 #line 4766 "configure"
4766 #include "confdefs.h"
4767 /* Override any gcc2 internal prototype to avoid an error. */
4768 /* We use char because int might match the return type of a gcc2
4769 builtin and then its argument prototype would still apply. */
4776 if { (eval echo configure
:4777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4778 eval "ac_cv_lib_$ac_lib_var=yes"
4780 echo "configure: failed program was:" >&5
4781 cat conftest.
$ac_ext >&5
4783 eval "ac_cv_lib_$ac_lib_var=no"
4786 LIBS
="$ac_save_LIBS"
4789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4790 echo "$ac_t""yes" 1>&6
4791 ac_tr_lib
=HAVE_LIB
`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4792 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4793 cat >> confdefs.h
<<EOF
4794 #define $ac_tr_lib 1
4800 echo "$ac_t""no" 1>&6
4804 if test x
"$ac_cv_lib_socket_connect" = x
"yes" ||
4805 test x
"$ac_cv_lib_inet_connect" = x
"yes"; then
4806 # ac_cv_func_connect=yes
4807 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4808 cat >> confdefs.h
<<\EOF
4809 #define HAVE_CONNECT 1
4815 ###############################################
4816 # test for where we get get_yp_default_domain() from
4817 for ac_func
in yp_get_default_domain
4819 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4820 echo "configure:4821: checking for $ac_func" >&5
4821 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4822 echo $ac_n "(cached) $ac_c" 1>&6
4824 cat > conftest.
$ac_ext <<EOF
4825 #line 4826 "configure"
4826 #include "confdefs.h"
4827 /* System header to define __stub macros and hopefully few prototypes,
4828 which can conflict with char $ac_func(); below. */
4830 /* Override any gcc2 internal prototype to avoid an error. */
4831 /* We use char because int might match the return type of a gcc2
4832 builtin and then its argument prototype would still apply. */
4837 /* The GNU C library defines this for functions which it implements
4838 to always fail with ENOSYS. Some functions are actually named
4839 something starting with __ and the normal name is an alias. */
4840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4848 if { (eval echo configure
:4849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4850 eval "ac_cv_func_$ac_func=yes"
4852 echo "configure: failed program was:" >&5
4853 cat conftest.
$ac_ext >&5
4855 eval "ac_cv_func_$ac_func=no"
4860 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4861 echo "$ac_t""yes" 1>&6
4862 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4863 cat >> confdefs.h
<<EOF
4864 #define $ac_tr_func 1
4868 echo "$ac_t""no" 1>&6
4872 if test x
"$ac_cv_func_yp_get_default_domain" = x
"no"; then
4873 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4874 echo "configure:4875: checking for yp_get_default_domain in -lnsl" >&5
4875 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
4876 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4877 echo $ac_n "(cached) $ac_c" 1>&6
4879 ac_save_LIBS
="$LIBS"
4881 cat > conftest.
$ac_ext <<EOF
4882 #line 4883 "configure"
4883 #include "confdefs.h"
4884 /* Override any gcc2 internal prototype to avoid an error. */
4885 /* We use char because int might match the return type of a gcc2
4886 builtin and then its argument prototype would still apply. */
4887 char yp_get_default_domain();
4890 yp_get_default_domain()
4893 if { (eval echo configure
:4894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4895 eval "ac_cv_lib_$ac_lib_var=yes"
4897 echo "configure: failed program was:" >&5
4898 cat conftest.
$ac_ext >&5
4900 eval "ac_cv_lib_$ac_lib_var=no"
4903 LIBS
="$ac_save_LIBS"
4906 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4907 echo "$ac_t""yes" 1>&6
4909 cat >> confdefs.h
<<\EOF
4910 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
4914 echo "$ac_t""no" 1>&6
4919 # Check if we have execl, if not we need to compile smbrun.
4920 for ac_func
in execl
4922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4923 echo "configure:4924: checking for $ac_func" >&5
4924 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4925 echo $ac_n "(cached) $ac_c" 1>&6
4927 cat > conftest.
$ac_ext <<EOF
4928 #line 4929 "configure"
4929 #include "confdefs.h"
4930 /* System header to define __stub macros and hopefully few prototypes,
4931 which can conflict with char $ac_func(); below. */
4933 /* Override any gcc2 internal prototype to avoid an error. */
4934 /* We use char because int might match the return type of a gcc2
4935 builtin and then its argument prototype would still apply. */
4940 /* The GNU C library defines this for functions which it implements
4941 to always fail with ENOSYS. Some functions are actually named
4942 something starting with __ and the normal name is an alias. */
4943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4951 if { (eval echo configure
:4952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4953 eval "ac_cv_func_$ac_func=yes"
4955 echo "configure: failed program was:" >&5
4956 cat conftest.
$ac_ext >&5
4958 eval "ac_cv_func_$ac_func=no"
4963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4964 echo "$ac_t""yes" 1>&6
4965 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4966 cat >> confdefs.h
<<EOF
4967 #define $ac_tr_func 1
4971 echo "$ac_t""no" 1>&6
4975 if test x
"$ac_cv_func_execl" = x
"no"; then
4976 RUNPROG
="bin/smbrun"
4981 for ac_func
in waitpid getcwd strdup strtoul strerror chown fchown
chmod fchmod chroot
4983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4984 echo "configure:4985: checking for $ac_func" >&5
4985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4986 echo $ac_n "(cached) $ac_c" 1>&6
4988 cat > conftest.
$ac_ext <<EOF
4989 #line 4990 "configure"
4990 #include "confdefs.h"
4991 /* System header to define __stub macros and hopefully few prototypes,
4992 which can conflict with char $ac_func(); below. */
4994 /* Override any gcc2 internal prototype to avoid an error. */
4995 /* We use char because int might match the return type of a gcc2
4996 builtin and then its argument prototype would still apply. */
5001 /* The GNU C library defines this for functions which it implements
5002 to always fail with ENOSYS. Some functions are actually named
5003 something starting with __ and the normal name is an alias. */
5004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5012 if { (eval echo configure
:5013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5014 eval "ac_cv_func_$ac_func=yes"
5016 echo "configure: failed program was:" >&5
5017 cat conftest.
$ac_ext >&5
5019 eval "ac_cv_func_$ac_func=no"
5024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5025 echo "$ac_t""yes" 1>&6
5026 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5027 cat >> confdefs.h
<<EOF
5028 #define $ac_tr_func 1
5032 echo "$ac_t""no" 1>&6
5036 for ac_func
in fstat strchr utime utimes getrlimit fsync bzero memset
5038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5039 echo "configure:5040: checking for $ac_func" >&5
5040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5041 echo $ac_n "(cached) $ac_c" 1>&6
5043 cat > conftest.
$ac_ext <<EOF
5044 #line 5045 "configure"
5045 #include "confdefs.h"
5046 /* System header to define __stub macros and hopefully few prototypes,
5047 which can conflict with char $ac_func(); below. */
5049 /* Override any gcc2 internal prototype to avoid an error. */
5050 /* We use char because int might match the return type of a gcc2
5051 builtin and then its argument prototype would still apply. */
5056 /* The GNU C library defines this for functions which it implements
5057 to always fail with ENOSYS. Some functions are actually named
5058 something starting with __ and the normal name is an alias. */
5059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5067 if { (eval echo configure
:5068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5069 eval "ac_cv_func_$ac_func=yes"
5071 echo "configure: failed program was:" >&5
5072 cat conftest.
$ac_ext >&5
5074 eval "ac_cv_func_$ac_func=no"
5079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5080 echo "$ac_t""yes" 1>&6
5081 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5082 cat >> confdefs.h
<<EOF
5083 #define $ac_tr_func 1
5087 echo "$ac_t""no" 1>&6
5091 for ac_func
in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5093 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5094 echo "configure:5095: checking for $ac_func" >&5
5095 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5096 echo $ac_n "(cached) $ac_c" 1>&6
5098 cat > conftest.
$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5101 /* System header to define __stub macros and hopefully few prototypes,
5102 which can conflict with char $ac_func(); below. */
5104 /* Override any gcc2 internal prototype to avoid an error. */
5105 /* We use char because int might match the return type of a gcc2
5106 builtin and then its argument prototype would still apply. */
5111 /* The GNU C library defines this for functions which it implements
5112 to always fail with ENOSYS. Some functions are actually named
5113 something starting with __ and the normal name is an alias. */
5114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5122 if { (eval echo configure
:5123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5124 eval "ac_cv_func_$ac_func=yes"
5126 echo "configure: failed program was:" >&5
5127 cat conftest.
$ac_ext >&5
5129 eval "ac_cv_func_$ac_func=no"
5134 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5135 echo "$ac_t""yes" 1>&6
5136 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5137 cat >> confdefs.h
<<EOF
5138 #define $ac_tr_func 1
5142 echo "$ac_t""no" 1>&6
5146 for ac_func
in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
5148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5149 echo "configure:5150: checking for $ac_func" >&5
5150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5151 echo $ac_n "(cached) $ac_c" 1>&6
5153 cat > conftest.
$ac_ext <<EOF
5154 #line 5155 "configure"
5155 #include "confdefs.h"
5156 /* System header to define __stub macros and hopefully few prototypes,
5157 which can conflict with char $ac_func(); below. */
5159 /* Override any gcc2 internal prototype to avoid an error. */
5160 /* We use char because int might match the return type of a gcc2
5161 builtin and then its argument prototype would still apply. */
5166 /* The GNU C library defines this for functions which it implements
5167 to always fail with ENOSYS. Some functions are actually named
5168 something starting with __ and the normal name is an alias. */
5169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5177 if { (eval echo configure
:5178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5179 eval "ac_cv_func_$ac_func=yes"
5181 echo "configure: failed program was:" >&5
5182 cat conftest.
$ac_ext >&5
5184 eval "ac_cv_func_$ac_func=no"
5189 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5190 echo "$ac_t""yes" 1>&6
5191 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5192 cat >> confdefs.h
<<EOF
5193 #define $ac_tr_func 1
5197 echo "$ac_t""no" 1>&6
5201 for ac_func
in initgroups
select poll rdchk getgrnam getgrent pathconf
5203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5204 echo "configure:5205: checking for $ac_func" >&5
5205 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5206 echo $ac_n "(cached) $ac_c" 1>&6
5208 cat > conftest.
$ac_ext <<EOF
5209 #line 5210 "configure"
5210 #include "confdefs.h"
5211 /* System header to define __stub macros and hopefully few prototypes,
5212 which can conflict with char $ac_func(); below. */
5214 /* Override any gcc2 internal prototype to avoid an error. */
5215 /* We use char because int might match the return type of a gcc2
5216 builtin and then its argument prototype would still apply. */
5221 /* The GNU C library defines this for functions which it implements
5222 to always fail with ENOSYS. Some functions are actually named
5223 something starting with __ and the normal name is an alias. */
5224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5232 if { (eval echo configure
:5233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5234 eval "ac_cv_func_$ac_func=yes"
5236 echo "configure: failed program was:" >&5
5237 cat conftest.
$ac_ext >&5
5239 eval "ac_cv_func_$ac_func=no"
5244 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5245 echo "$ac_t""yes" 1>&6
5246 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5247 cat >> confdefs.h
<<EOF
5248 #define $ac_tr_func 1
5252 echo "$ac_t""no" 1>&6
5256 for ac_func
in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5258 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5259 echo "configure:5260: checking for $ac_func" >&5
5260 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5261 echo $ac_n "(cached) $ac_c" 1>&6
5263 cat > conftest.
$ac_ext <<EOF
5264 #line 5265 "configure"
5265 #include "confdefs.h"
5266 /* System header to define __stub macros and hopefully few prototypes,
5267 which can conflict with char $ac_func(); below. */
5269 /* Override any gcc2 internal prototype to avoid an error. */
5270 /* We use char because int might match the return type of a gcc2
5271 builtin and then its argument prototype would still apply. */
5276 /* The GNU C library defines this for functions which it implements
5277 to always fail with ENOSYS. Some functions are actually named
5278 something starting with __ and the normal name is an alias. */
5279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5287 if { (eval echo configure
:5288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5289 eval "ac_cv_func_$ac_func=yes"
5291 echo "configure: failed program was:" >&5
5292 cat conftest.
$ac_ext >&5
5294 eval "ac_cv_func_$ac_func=no"
5299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5300 echo "$ac_t""yes" 1>&6
5301 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5302 cat >> confdefs.h
<<EOF
5303 #define $ac_tr_func 1
5307 echo "$ac_t""no" 1>&6
5311 for ac_func
in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5313 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5314 echo "configure:5315: checking for $ac_func" >&5
5315 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5316 echo $ac_n "(cached) $ac_c" 1>&6
5318 cat > conftest.
$ac_ext <<EOF
5319 #line 5320 "configure"
5320 #include "confdefs.h"
5321 /* System header to define __stub macros and hopefully few prototypes,
5322 which can conflict with char $ac_func(); below. */
5324 /* Override any gcc2 internal prototype to avoid an error. */
5325 /* We use char because int might match the return type of a gcc2
5326 builtin and then its argument prototype would still apply. */
5331 /* The GNU C library defines this for functions which it implements
5332 to always fail with ENOSYS. Some functions are actually named
5333 something starting with __ and the normal name is an alias. */
5334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5342 if { (eval echo configure
:5343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5344 eval "ac_cv_func_$ac_func=yes"
5346 echo "configure: failed program was:" >&5
5347 cat conftest.
$ac_ext >&5
5349 eval "ac_cv_func_$ac_func=no"
5354 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5355 echo "$ac_t""yes" 1>&6
5356 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5357 cat >> confdefs.h
<<EOF
5358 #define $ac_tr_func 1
5362 echo "$ac_t""no" 1>&6
5366 for ac_func
in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5369 echo "configure:5370: checking for $ac_func" >&5
5370 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5371 echo $ac_n "(cached) $ac_c" 1>&6
5373 cat > conftest.
$ac_ext <<EOF
5374 #line 5375 "configure"
5375 #include "confdefs.h"
5376 /* System header to define __stub macros and hopefully few prototypes,
5377 which can conflict with char $ac_func(); below. */
5379 /* Override any gcc2 internal prototype to avoid an error. */
5380 /* We use char because int might match the return type of a gcc2
5381 builtin and then its argument prototype would still apply. */
5386 /* The GNU C library defines this for functions which it implements
5387 to always fail with ENOSYS. Some functions are actually named
5388 something starting with __ and the normal name is an alias. */
5389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5397 if { (eval echo configure
:5398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5399 eval "ac_cv_func_$ac_func=yes"
5401 echo "configure: failed program was:" >&5
5402 cat conftest.
$ac_ext >&5
5404 eval "ac_cv_func_$ac_func=no"
5409 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5410 echo "$ac_t""yes" 1>&6
5411 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5412 cat >> confdefs.h
<<EOF
5413 #define $ac_tr_func 1
5417 echo "$ac_t""no" 1>&6
5421 for ac_func
in srandom random srand rand setenv
usleep strcasecmp fcvt fcvtl symlink readlink
5423 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5424 echo "configure:5425: checking for $ac_func" >&5
5425 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5426 echo $ac_n "(cached) $ac_c" 1>&6
5428 cat > conftest.
$ac_ext <<EOF
5429 #line 5430 "configure"
5430 #include "confdefs.h"
5431 /* System header to define __stub macros and hopefully few prototypes,
5432 which can conflict with char $ac_func(); below. */
5434 /* Override any gcc2 internal prototype to avoid an error. */
5435 /* We use char because int might match the return type of a gcc2
5436 builtin and then its argument prototype would still apply. */
5441 /* The GNU C library defines this for functions which it implements
5442 to always fail with ENOSYS. Some functions are actually named
5443 something starting with __ and the normal name is an alias. */
5444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5452 if { (eval echo configure
:5453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5454 eval "ac_cv_func_$ac_func=yes"
5456 echo "configure: failed program was:" >&5
5457 cat conftest.
$ac_ext >&5
5459 eval "ac_cv_func_$ac_func=no"
5464 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5465 echo "$ac_t""yes" 1>&6
5466 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5467 cat >> confdefs.h
<<EOF
5468 #define $ac_tr_func 1
5472 echo "$ac_t""no" 1>&6
5477 # syscall() is needed for smbwrapper.
5478 for ac_func
in syscall
5480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5481 echo "configure:5482: checking for $ac_func" >&5
5482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5483 echo $ac_n "(cached) $ac_c" 1>&6
5485 cat > conftest.
$ac_ext <<EOF
5486 #line 5487 "configure"
5487 #include "confdefs.h"
5488 /* System header to define __stub macros and hopefully few prototypes,
5489 which can conflict with char $ac_func(); below. */
5491 /* Override any gcc2 internal prototype to avoid an error. */
5492 /* We use char because int might match the return type of a gcc2
5493 builtin and then its argument prototype would still apply. */
5498 /* The GNU C library defines this for functions which it implements
5499 to always fail with ENOSYS. Some functions are actually named
5500 something starting with __ and the normal name is an alias. */
5501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5509 if { (eval echo configure
:5510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5511 eval "ac_cv_func_$ac_func=yes"
5513 echo "configure: failed program was:" >&5
5514 cat conftest.
$ac_ext >&5
5516 eval "ac_cv_func_$ac_func=no"
5521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5522 echo "$ac_t""yes" 1>&6
5523 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5524 cat >> confdefs.h
<<EOF
5525 #define $ac_tr_func 1
5529 echo "$ac_t""no" 1>&6
5534 for ac_func
in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5536 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5537 echo "configure:5538: checking for $ac_func" >&5
5538 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5539 echo $ac_n "(cached) $ac_c" 1>&6
5541 cat > conftest.
$ac_ext <<EOF
5542 #line 5543 "configure"
5543 #include "confdefs.h"
5544 /* System header to define __stub macros and hopefully few prototypes,
5545 which can conflict with char $ac_func(); below. */
5547 /* Override any gcc2 internal prototype to avoid an error. */
5548 /* We use char because int might match the return type of a gcc2
5549 builtin and then its argument prototype would still apply. */
5554 /* The GNU C library defines this for functions which it implements
5555 to always fail with ENOSYS. Some functions are actually named
5556 something starting with __ and the normal name is an alias. */
5557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5565 if { (eval echo configure
:5566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5567 eval "ac_cv_func_$ac_func=yes"
5569 echo "configure: failed program was:" >&5
5570 cat conftest.
$ac_ext >&5
5572 eval "ac_cv_func_$ac_func=no"
5577 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5578 echo "$ac_t""yes" 1>&6
5579 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5580 cat >> confdefs.h
<<EOF
5581 #define $ac_tr_func 1
5585 echo "$ac_t""no" 1>&6
5589 for ac_func
in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5591 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5592 echo "configure:5593: checking for $ac_func" >&5
5593 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5594 echo $ac_n "(cached) $ac_c" 1>&6
5596 cat > conftest.
$ac_ext <<EOF
5597 #line 5598 "configure"
5598 #include "confdefs.h"
5599 /* System header to define __stub macros and hopefully few prototypes,
5600 which can conflict with char $ac_func(); below. */
5602 /* Override any gcc2 internal prototype to avoid an error. */
5603 /* We use char because int might match the return type of a gcc2
5604 builtin and then its argument prototype would still apply. */
5609 /* The GNU C library defines this for functions which it implements
5610 to always fail with ENOSYS. Some functions are actually named
5611 something starting with __ and the normal name is an alias. */
5612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5620 if { (eval echo configure
:5621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5622 eval "ac_cv_func_$ac_func=yes"
5624 echo "configure: failed program was:" >&5
5625 cat conftest.
$ac_ext >&5
5627 eval "ac_cv_func_$ac_func=no"
5632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5633 echo "$ac_t""yes" 1>&6
5634 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5635 cat >> confdefs.h
<<EOF
5636 #define $ac_tr_func 1
5640 echo "$ac_t""no" 1>&6
5644 for ac_func
in __getcwd _getcwd
5646 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5647 echo "configure:5648: checking for $ac_func" >&5
5648 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5649 echo $ac_n "(cached) $ac_c" 1>&6
5651 cat > conftest.
$ac_ext <<EOF
5652 #line 5653 "configure"
5653 #include "confdefs.h"
5654 /* System header to define __stub macros and hopefully few prototypes,
5655 which can conflict with char $ac_func(); below. */
5657 /* Override any gcc2 internal prototype to avoid an error. */
5658 /* We use char because int might match the return type of a gcc2
5659 builtin and then its argument prototype would still apply. */
5664 /* The GNU C library defines this for functions which it implements
5665 to always fail with ENOSYS. Some functions are actually named
5666 something starting with __ and the normal name is an alias. */
5667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5675 if { (eval echo configure
:5676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5677 eval "ac_cv_func_$ac_func=yes"
5679 echo "configure: failed program was:" >&5
5680 cat conftest.
$ac_ext >&5
5682 eval "ac_cv_func_$ac_func=no"
5687 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5688 echo "$ac_t""yes" 1>&6
5689 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5690 cat >> confdefs.h
<<EOF
5691 #define $ac_tr_func 1
5695 echo "$ac_t""no" 1>&6
5699 for ac_func
in __xstat __fxstat __lxstat
5701 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5702 echo "configure:5703: checking for $ac_func" >&5
5703 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5704 echo $ac_n "(cached) $ac_c" 1>&6
5706 cat > conftest.
$ac_ext <<EOF
5707 #line 5708 "configure"
5708 #include "confdefs.h"
5709 /* System header to define __stub macros and hopefully few prototypes,
5710 which can conflict with char $ac_func(); below. */
5712 /* Override any gcc2 internal prototype to avoid an error. */
5713 /* We use char because int might match the return type of a gcc2
5714 builtin and then its argument prototype would still apply. */
5719 /* The GNU C library defines this for functions which it implements
5720 to always fail with ENOSYS. Some functions are actually named
5721 something starting with __ and the normal name is an alias. */
5722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5730 if { (eval echo configure
:5731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5732 eval "ac_cv_func_$ac_func=yes"
5734 echo "configure: failed program was:" >&5
5735 cat conftest.
$ac_ext >&5
5737 eval "ac_cv_func_$ac_func=no"
5742 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5743 echo "$ac_t""yes" 1>&6
5744 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5745 cat >> confdefs.h
<<EOF
5746 #define $ac_tr_func 1
5750 echo "$ac_t""no" 1>&6
5754 for ac_func
in _stat _lstat _fstat __stat __lstat __fstat
5756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5757 echo "configure:5758: checking for $ac_func" >&5
5758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5759 echo $ac_n "(cached) $ac_c" 1>&6
5761 cat > conftest.
$ac_ext <<EOF
5762 #line 5763 "configure"
5763 #include "confdefs.h"
5764 /* System header to define __stub macros and hopefully few prototypes,
5765 which can conflict with char $ac_func(); below. */
5767 /* Override any gcc2 internal prototype to avoid an error. */
5768 /* We use char because int might match the return type of a gcc2
5769 builtin and then its argument prototype would still apply. */
5774 /* The GNU C library defines this for functions which it implements
5775 to always fail with ENOSYS. Some functions are actually named
5776 something starting with __ and the normal name is an alias. */
5777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5785 if { (eval echo configure
:5786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5787 eval "ac_cv_func_$ac_func=yes"
5789 echo "configure: failed program was:" >&5
5790 cat conftest.
$ac_ext >&5
5792 eval "ac_cv_func_$ac_func=no"
5797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5798 echo "$ac_t""yes" 1>&6
5799 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5800 cat >> confdefs.h
<<EOF
5801 #define $ac_tr_func 1
5805 echo "$ac_t""no" 1>&6
5809 for ac_func
in _acl __acl _facl __facl _open __open _chdir __chdir
5811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5812 echo "configure:5813: checking for $ac_func" >&5
5813 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5814 echo $ac_n "(cached) $ac_c" 1>&6
5816 cat > conftest.
$ac_ext <<EOF
5817 #line 5818 "configure"
5818 #include "confdefs.h"
5819 /* System header to define __stub macros and hopefully few prototypes,
5820 which can conflict with char $ac_func(); below. */
5822 /* Override any gcc2 internal prototype to avoid an error. */
5823 /* We use char because int might match the return type of a gcc2
5824 builtin and then its argument prototype would still apply. */
5829 /* The GNU C library defines this for functions which it implements
5830 to always fail with ENOSYS. Some functions are actually named
5831 something starting with __ and the normal name is an alias. */
5832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5840 if { (eval echo configure
:5841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5842 eval "ac_cv_func_$ac_func=yes"
5844 echo "configure: failed program was:" >&5
5845 cat conftest.
$ac_ext >&5
5847 eval "ac_cv_func_$ac_func=no"
5852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5853 echo "$ac_t""yes" 1>&6
5854 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5855 cat >> confdefs.h
<<EOF
5856 #define $ac_tr_func 1
5860 echo "$ac_t""no" 1>&6
5864 for ac_func
in _close __close _fchdir __fchdir _fcntl __fcntl
5866 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5867 echo "configure:5868: checking for $ac_func" >&5
5868 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5869 echo $ac_n "(cached) $ac_c" 1>&6
5871 cat > conftest.
$ac_ext <<EOF
5872 #line 5873 "configure"
5873 #include "confdefs.h"
5874 /* System header to define __stub macros and hopefully few prototypes,
5875 which can conflict with char $ac_func(); below. */
5877 /* Override any gcc2 internal prototype to avoid an error. */
5878 /* We use char because int might match the return type of a gcc2
5879 builtin and then its argument prototype would still apply. */
5884 /* The GNU C library defines this for functions which it implements
5885 to always fail with ENOSYS. Some functions are actually named
5886 something starting with __ and the normal name is an alias. */
5887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5895 if { (eval echo configure
:5896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5897 eval "ac_cv_func_$ac_func=yes"
5899 echo "configure: failed program was:" >&5
5900 cat conftest.
$ac_ext >&5
5902 eval "ac_cv_func_$ac_func=no"
5907 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5908 echo "$ac_t""yes" 1>&6
5909 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5910 cat >> confdefs.h
<<EOF
5911 #define $ac_tr_func 1
5915 echo "$ac_t""no" 1>&6
5919 for ac_func
in getdents _getdents __getdents _lseek __lseek _read __read
5921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5922 echo "configure:5923: checking for $ac_func" >&5
5923 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5924 echo $ac_n "(cached) $ac_c" 1>&6
5926 cat > conftest.
$ac_ext <<EOF
5927 #line 5928 "configure"
5928 #include "confdefs.h"
5929 /* System header to define __stub macros and hopefully few prototypes,
5930 which can conflict with char $ac_func(); below. */
5932 /* Override any gcc2 internal prototype to avoid an error. */
5933 /* We use char because int might match the return type of a gcc2
5934 builtin and then its argument prototype would still apply. */
5939 /* The GNU C library defines this for functions which it implements
5940 to always fail with ENOSYS. Some functions are actually named
5941 something starting with __ and the normal name is an alias. */
5942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5950 if { (eval echo configure
:5951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5952 eval "ac_cv_func_$ac_func=yes"
5954 echo "configure: failed program was:" >&5
5955 cat conftest.
$ac_ext >&5
5957 eval "ac_cv_func_$ac_func=no"
5962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5963 echo "$ac_t""yes" 1>&6
5964 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5965 cat >> confdefs.h
<<EOF
5966 #define $ac_tr_func 1
5970 echo "$ac_t""no" 1>&6
5974 for ac_func
in _write __write _fork __fork
5976 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5977 echo "configure:5978: checking for $ac_func" >&5
5978 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5979 echo $ac_n "(cached) $ac_c" 1>&6
5981 cat > conftest.
$ac_ext <<EOF
5982 #line 5983 "configure"
5983 #include "confdefs.h"
5984 /* System header to define __stub macros and hopefully few prototypes,
5985 which can conflict with char $ac_func(); below. */
5987 /* Override any gcc2 internal prototype to avoid an error. */
5988 /* We use char because int might match the return type of a gcc2
5989 builtin and then its argument prototype would still apply. */
5994 /* The GNU C library defines this for functions which it implements
5995 to always fail with ENOSYS. Some functions are actually named
5996 something starting with __ and the normal name is an alias. */
5997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6005 if { (eval echo configure
:6006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6007 eval "ac_cv_func_$ac_func=yes"
6009 echo "configure: failed program was:" >&5
6010 cat conftest.
$ac_ext >&5
6012 eval "ac_cv_func_$ac_func=no"
6017 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6018 echo "$ac_t""yes" 1>&6
6019 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6020 cat >> confdefs.h
<<EOF
6021 #define $ac_tr_func 1
6025 echo "$ac_t""no" 1>&6
6029 for ac_func
in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6032 echo "configure:6033: checking for $ac_func" >&5
6033 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6034 echo $ac_n "(cached) $ac_c" 1>&6
6036 cat > conftest.
$ac_ext <<EOF
6037 #line 6038 "configure"
6038 #include "confdefs.h"
6039 /* System header to define __stub macros and hopefully few prototypes,
6040 which can conflict with char $ac_func(); below. */
6042 /* Override any gcc2 internal prototype to avoid an error. */
6043 /* We use char because int might match the return type of a gcc2
6044 builtin and then its argument prototype would still apply. */
6049 /* The GNU C library defines this for functions which it implements
6050 to always fail with ENOSYS. Some functions are actually named
6051 something starting with __ and the normal name is an alias. */
6052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6060 if { (eval echo configure
:6061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6062 eval "ac_cv_func_$ac_func=yes"
6064 echo "configure: failed program was:" >&5
6065 cat conftest.
$ac_ext >&5
6067 eval "ac_cv_func_$ac_func=no"
6072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6073 echo "$ac_t""yes" 1>&6
6074 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6075 cat >> confdefs.h
<<EOF
6076 #define $ac_tr_func 1
6080 echo "$ac_t""no" 1>&6
6084 for ac_func
in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6087 echo "configure:6088: checking for $ac_func" >&5
6088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6089 echo $ac_n "(cached) $ac_c" 1>&6
6091 cat > conftest.
$ac_ext <<EOF
6092 #line 6093 "configure"
6093 #include "confdefs.h"
6094 /* System header to define __stub macros and hopefully few prototypes,
6095 which can conflict with char $ac_func(); below. */
6097 /* Override any gcc2 internal prototype to avoid an error. */
6098 /* We use char because int might match the return type of a gcc2
6099 builtin and then its argument prototype would still apply. */
6104 /* The GNU C library defines this for functions which it implements
6105 to always fail with ENOSYS. Some functions are actually named
6106 something starting with __ and the normal name is an alias. */
6107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6115 if { (eval echo configure
:6116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6117 eval "ac_cv_func_$ac_func=yes"
6119 echo "configure: failed program was:" >&5
6120 cat conftest.
$ac_ext >&5
6122 eval "ac_cv_func_$ac_func=no"
6127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6128 echo "$ac_t""yes" 1>&6
6129 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6130 cat >> confdefs.h
<<EOF
6131 #define $ac_tr_func 1
6135 echo "$ac_t""no" 1>&6
6139 for ac_func
in pread _pread __pread pread64 _pread64 __pread64
6141 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6142 echo "configure:6143: checking for $ac_func" >&5
6143 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6144 echo $ac_n "(cached) $ac_c" 1>&6
6146 cat > conftest.
$ac_ext <<EOF
6147 #line 6148 "configure"
6148 #include "confdefs.h"
6149 /* System header to define __stub macros and hopefully few prototypes,
6150 which can conflict with char $ac_func(); below. */
6152 /* Override any gcc2 internal prototype to avoid an error. */
6153 /* We use char because int might match the return type of a gcc2
6154 builtin and then its argument prototype would still apply. */
6159 /* The GNU C library defines this for functions which it implements
6160 to always fail with ENOSYS. Some functions are actually named
6161 something starting with __ and the normal name is an alias. */
6162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6170 if { (eval echo configure
:6171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6172 eval "ac_cv_func_$ac_func=yes"
6174 echo "configure: failed program was:" >&5
6175 cat conftest.
$ac_ext >&5
6177 eval "ac_cv_func_$ac_func=no"
6182 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6183 echo "$ac_t""yes" 1>&6
6184 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6185 cat >> confdefs.h
<<EOF
6186 #define $ac_tr_func 1
6190 echo "$ac_t""no" 1>&6
6194 for ac_func
in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6197 echo "configure:6198: checking for $ac_func" >&5
6198 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6199 echo $ac_n "(cached) $ac_c" 1>&6
6201 cat > conftest.
$ac_ext <<EOF
6202 #line 6203 "configure"
6203 #include "confdefs.h"
6204 /* System header to define __stub macros and hopefully few prototypes,
6205 which can conflict with char $ac_func(); below. */
6207 /* Override any gcc2 internal prototype to avoid an error. */
6208 /* We use char because int might match the return type of a gcc2
6209 builtin and then its argument prototype would still apply. */
6214 /* The GNU C library defines this for functions which it implements
6215 to always fail with ENOSYS. Some functions are actually named
6216 something starting with __ and the normal name is an alias. */
6217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6225 if { (eval echo configure
:6226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6227 eval "ac_cv_func_$ac_func=yes"
6229 echo "configure: failed program was:" >&5
6230 cat conftest.
$ac_ext >&5
6232 eval "ac_cv_func_$ac_func=no"
6237 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6238 echo "$ac_t""yes" 1>&6
6239 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6240 cat >> confdefs.h
<<EOF
6241 #define $ac_tr_func 1
6245 echo "$ac_t""no" 1>&6
6249 for ac_func
in open64 _open64 __open64 creat64
6251 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6252 echo "configure:6253: checking for $ac_func" >&5
6253 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6254 echo $ac_n "(cached) $ac_c" 1>&6
6256 cat > conftest.
$ac_ext <<EOF
6257 #line 6258 "configure"
6258 #include "confdefs.h"
6259 /* System header to define __stub macros and hopefully few prototypes,
6260 which can conflict with char $ac_func(); below. */
6262 /* Override any gcc2 internal prototype to avoid an error. */
6263 /* We use char because int might match the return type of a gcc2
6264 builtin and then its argument prototype would still apply. */
6269 /* The GNU C library defines this for functions which it implements
6270 to always fail with ENOSYS. Some functions are actually named
6271 something starting with __ and the normal name is an alias. */
6272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6280 if { (eval echo configure
:6281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6282 eval "ac_cv_func_$ac_func=yes"
6284 echo "configure: failed program was:" >&5
6285 cat conftest.
$ac_ext >&5
6287 eval "ac_cv_func_$ac_func=no"
6292 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6293 echo "$ac_t""yes" 1>&6
6294 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6295 cat >> confdefs.h
<<EOF
6296 #define $ac_tr_func 1
6300 echo "$ac_t""no" 1>&6
6306 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6309 if test x
$ac_cv_func_stat64 = xno
; then
6310 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6311 echo "configure:6312: checking for stat64 in <sys/stat.h>" >&5
6312 cat > conftest.
$ac_ext <<EOF
6313 #line 6314 "configure"
6314 #include "confdefs.h"
6316 #if defined(HAVE_UNISTD_H)
6319 #include <sys/stat.h>
6322 struct stat64 st64; exit(stat64(".",&st64));
6325 if { (eval echo configure
:6326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6327 ac_cv_func_stat64
=yes
6329 echo "configure: failed program was:" >&5
6330 cat conftest.
$ac_ext >&5
6333 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6334 if test x
$ac_cv_func_stat64 = xyes
; then
6335 cat >> confdefs.h
<<\EOF
6336 #define HAVE_STAT64 1
6342 if test x
$ac_cv_func_lstat64 = xno
; then
6343 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6344 echo "configure:6345: checking for lstat64 in <sys/stat.h>" >&5
6345 cat > conftest.
$ac_ext <<EOF
6346 #line 6347 "configure"
6347 #include "confdefs.h"
6349 #if defined(HAVE_UNISTD_H)
6352 #include <sys/stat.h>
6355 struct stat64 st64; exit(lstat64(".",&st64));
6358 if { (eval echo configure
:6359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6360 ac_cv_func_lstat64
=yes
6362 echo "configure: failed program was:" >&5
6363 cat conftest.
$ac_ext >&5
6366 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6367 if test x
$ac_cv_func_lstat64 = xyes
; then
6368 cat >> confdefs.h
<<\EOF
6369 #define HAVE_LSTAT64 1
6375 if test x
$ac_cv_func_fstat64 = xno
; then
6376 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6377 echo "configure:6378: checking for fstat64 in <sys/stat.h>" >&5
6378 cat > conftest.
$ac_ext <<EOF
6379 #line 6380 "configure"
6380 #include "confdefs.h"
6382 #if defined(HAVE_UNISTD_H)
6385 #include <sys/stat.h>
6388 struct stat64 st64; exit(fstat64(0,&st64));
6391 if { (eval echo configure
:6392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6393 ac_cv_func_fstat64
=yes
6395 echo "configure: failed program was:" >&5
6396 cat conftest.
$ac_ext >&5
6399 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6400 if test x
$ac_cv_func_fstat64 = xyes
; then
6401 cat >> confdefs.h
<<\EOF
6402 #define HAVE_FSTAT64 1
6409 # If no strcasecmp, check for it in some known places
6410 # It is in -lresolv on ReliantUNIX and UnixWare
6411 # -lresolve *must* follow -lnsl for name resolution to work properly
6414 if test x
$ac_cv_func_strcasecmp = xno
; then
6415 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6416 echo "configure:6417: checking for strcasecmp in -lresolv" >&5
6417 ac_lib_var
=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6419 echo $ac_n "(cached) $ac_c" 1>&6
6421 ac_save_LIBS
="$LIBS"
6422 LIBS
="-lresolv $LIBS"
6423 cat > conftest.
$ac_ext <<EOF
6424 #line 6425 "configure"
6425 #include "confdefs.h"
6426 /* Override any gcc2 internal prototype to avoid an error. */
6427 /* We use char because int might match the return type of a gcc2
6428 builtin and then its argument prototype would still apply. */
6435 if { (eval echo configure
:6436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6437 eval "ac_cv_lib_$ac_lib_var=yes"
6439 echo "configure: failed program was:" >&5
6440 cat conftest.
$ac_ext >&5
6442 eval "ac_cv_lib_$ac_lib_var=no"
6445 LIBS
="$ac_save_LIBS"
6448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6449 echo "$ac_t""yes" 1>&6
6450 LIBS
="$LIBS -lresolv"
6451 cat >> confdefs.h
<<\EOF
6452 #define HAVE_STRCASECMP 1
6456 echo "$ac_t""no" 1>&6
6462 # Check for the functions putprpwnam, set_auth_parameters,
6463 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6464 # Needed for OSF1 and HPUX.
6468 *-lsecurity*) for ac_func
in putprpwnam
6470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6471 echo "configure:6472: checking for $ac_func" >&5
6472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6473 echo $ac_n "(cached) $ac_c" 1>&6
6475 cat > conftest.
$ac_ext <<EOF
6476 #line 6477 "configure"
6477 #include "confdefs.h"
6478 /* System header to define __stub macros and hopefully few prototypes,
6479 which can conflict with char $ac_func(); below. */
6481 /* Override any gcc2 internal prototype to avoid an error. */
6482 /* We use char because int might match the return type of a gcc2
6483 builtin and then its argument prototype would still apply. */
6488 /* The GNU C library defines this for functions which it implements
6489 to always fail with ENOSYS. Some functions are actually named
6490 something starting with __ and the normal name is an alias. */
6491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6499 if { (eval echo configure
:6500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6501 eval "ac_cv_func_$ac_func=yes"
6503 echo "configure: failed program was:" >&5
6504 cat conftest.
$ac_ext >&5
6506 eval "ac_cv_func_$ac_func=no"
6511 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6512 echo "$ac_t""yes" 1>&6
6513 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6514 cat >> confdefs.h
<<EOF
6515 #define $ac_tr_func 1
6519 echo "$ac_t""no" 1>&6
6523 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6524 echo "configure:6525: checking for putprpwnam in -lsecurity" >&5
6525 ac_lib_var
=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6526 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6527 echo $ac_n "(cached) $ac_c" 1>&6
6529 ac_save_LIBS
="$LIBS"
6530 LIBS
="-lsecurity $LIBS"
6531 cat > conftest.
$ac_ext <<EOF
6532 #line 6533 "configure"
6533 #include "confdefs.h"
6534 /* Override any gcc2 internal prototype to avoid an error. */
6535 /* We use char because int might match the return type of a gcc2
6536 builtin and then its argument prototype would still apply. */
6543 if { (eval echo configure
:6544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6545 eval "ac_cv_lib_$ac_lib_var=yes"
6547 echo "configure: failed program was:" >&5
6548 cat conftest.
$ac_ext >&5
6550 eval "ac_cv_lib_$ac_lib_var=no"
6553 LIBS
="$ac_save_LIBS"
6556 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6557 echo "$ac_t""yes" 1>&6
6558 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6559 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6560 cat >> confdefs.h
<<EOF
6561 #define $ac_tr_lib 1
6564 LIBS
="-lsecurity $LIBS"
6567 echo "$ac_t""no" 1>&6
6570 for ac_func
in putprpwnam
6572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6573 echo "configure:6574: checking for $ac_func" >&5
6574 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6575 echo $ac_n "(cached) $ac_c" 1>&6
6577 cat > conftest.
$ac_ext <<EOF
6578 #line 6579 "configure"
6579 #include "confdefs.h"
6580 /* System header to define __stub macros and hopefully few prototypes,
6581 which can conflict with char $ac_func(); below. */
6583 /* Override any gcc2 internal prototype to avoid an error. */
6584 /* We use char because int might match the return type of a gcc2
6585 builtin and then its argument prototype would still apply. */
6590 /* The GNU C library defines this for functions which it implements
6591 to always fail with ENOSYS. Some functions are actually named
6592 something starting with __ and the normal name is an alias. */
6593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6601 if { (eval echo configure
:6602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6603 eval "ac_cv_func_$ac_func=yes"
6605 echo "configure: failed program was:" >&5
6606 cat conftest.
$ac_ext >&5
6608 eval "ac_cv_func_$ac_func=no"
6613 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6614 echo "$ac_t""yes" 1>&6
6615 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6616 cat >> confdefs.h
<<EOF
6617 #define $ac_tr_func 1
6621 echo "$ac_t""no" 1>&6
6629 *-lsec*) for ac_func
in putprpwnam
6631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6632 echo "configure:6633: checking for $ac_func" >&5
6633 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6634 echo $ac_n "(cached) $ac_c" 1>&6
6636 cat > conftest.
$ac_ext <<EOF
6637 #line 6638 "configure"
6638 #include "confdefs.h"
6639 /* System header to define __stub macros and hopefully few prototypes,
6640 which can conflict with char $ac_func(); below. */
6642 /* Override any gcc2 internal prototype to avoid an error. */
6643 /* We use char because int might match the return type of a gcc2
6644 builtin and then its argument prototype would still apply. */
6649 /* The GNU C library defines this for functions which it implements
6650 to always fail with ENOSYS. Some functions are actually named
6651 something starting with __ and the normal name is an alias. */
6652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6660 if { (eval echo configure
:6661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6662 eval "ac_cv_func_$ac_func=yes"
6664 echo "configure: failed program was:" >&5
6665 cat conftest.
$ac_ext >&5
6667 eval "ac_cv_func_$ac_func=no"
6672 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6673 echo "$ac_t""yes" 1>&6
6674 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6675 cat >> confdefs.h
<<EOF
6676 #define $ac_tr_func 1
6680 echo "$ac_t""no" 1>&6
6684 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6685 echo "configure:6686: checking for putprpwnam in -lsec" >&5
6686 ac_lib_var
=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6688 echo $ac_n "(cached) $ac_c" 1>&6
6690 ac_save_LIBS
="$LIBS"
6692 cat > conftest.
$ac_ext <<EOF
6693 #line 6694 "configure"
6694 #include "confdefs.h"
6695 /* Override any gcc2 internal prototype to avoid an error. */
6696 /* We use char because int might match the return type of a gcc2
6697 builtin and then its argument prototype would still apply. */
6704 if { (eval echo configure
:6705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6706 eval "ac_cv_lib_$ac_lib_var=yes"
6708 echo "configure: failed program was:" >&5
6709 cat conftest.
$ac_ext >&5
6711 eval "ac_cv_lib_$ac_lib_var=no"
6714 LIBS
="$ac_save_LIBS"
6717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6718 echo "$ac_t""yes" 1>&6
6719 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6720 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6721 cat >> confdefs.h
<<EOF
6722 #define $ac_tr_lib 1
6728 echo "$ac_t""no" 1>&6
6731 for ac_func
in putprpwnam
6733 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6734 echo "configure:6735: checking for $ac_func" >&5
6735 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6736 echo $ac_n "(cached) $ac_c" 1>&6
6738 cat > conftest.
$ac_ext <<EOF
6739 #line 6740 "configure"
6740 #include "confdefs.h"
6741 /* System header to define __stub macros and hopefully few prototypes,
6742 which can conflict with char $ac_func(); below. */
6744 /* Override any gcc2 internal prototype to avoid an error. */
6745 /* We use char because int might match the return type of a gcc2
6746 builtin and then its argument prototype would still apply. */
6751 /* The GNU C library defines this for functions which it implements
6752 to always fail with ENOSYS. Some functions are actually named
6753 something starting with __ and the normal name is an alias. */
6754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6762 if { (eval echo configure
:6763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6764 eval "ac_cv_func_$ac_func=yes"
6766 echo "configure: failed program was:" >&5
6767 cat conftest.
$ac_ext >&5
6769 eval "ac_cv_func_$ac_func=no"
6774 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6775 echo "$ac_t""yes" 1>&6
6776 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6777 cat >> confdefs.h
<<EOF
6778 #define $ac_tr_func 1
6782 echo "$ac_t""no" 1>&6
6791 *-lsecurity*) for ac_func
in set_auth_parameters
6793 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6794 echo "configure:6795: checking for $ac_func" >&5
6795 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6796 echo $ac_n "(cached) $ac_c" 1>&6
6798 cat > conftest.
$ac_ext <<EOF
6799 #line 6800 "configure"
6800 #include "confdefs.h"
6801 /* System header to define __stub macros and hopefully few prototypes,
6802 which can conflict with char $ac_func(); below. */
6804 /* Override any gcc2 internal prototype to avoid an error. */
6805 /* We use char because int might match the return type of a gcc2
6806 builtin and then its argument prototype would still apply. */
6811 /* The GNU C library defines this for functions which it implements
6812 to always fail with ENOSYS. Some functions are actually named
6813 something starting with __ and the normal name is an alias. */
6814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6822 if { (eval echo configure
:6823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6824 eval "ac_cv_func_$ac_func=yes"
6826 echo "configure: failed program was:" >&5
6827 cat conftest.
$ac_ext >&5
6829 eval "ac_cv_func_$ac_func=no"
6834 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6835 echo "$ac_t""yes" 1>&6
6836 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6837 cat >> confdefs.h
<<EOF
6838 #define $ac_tr_func 1
6842 echo "$ac_t""no" 1>&6
6846 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6847 echo "configure:6848: checking for set_auth_parameters in -lsecurity" >&5
6848 ac_lib_var
=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6849 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6850 echo $ac_n "(cached) $ac_c" 1>&6
6852 ac_save_LIBS
="$LIBS"
6853 LIBS
="-lsecurity $LIBS"
6854 cat > conftest.
$ac_ext <<EOF
6855 #line 6856 "configure"
6856 #include "confdefs.h"
6857 /* Override any gcc2 internal prototype to avoid an error. */
6858 /* We use char because int might match the return type of a gcc2
6859 builtin and then its argument prototype would still apply. */
6860 char set_auth_parameters();
6863 set_auth_parameters()
6866 if { (eval echo configure
:6867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6868 eval "ac_cv_lib_$ac_lib_var=yes"
6870 echo "configure: failed program was:" >&5
6871 cat conftest.
$ac_ext >&5
6873 eval "ac_cv_lib_$ac_lib_var=no"
6876 LIBS
="$ac_save_LIBS"
6879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6880 echo "$ac_t""yes" 1>&6
6881 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6882 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6883 cat >> confdefs.h
<<EOF
6884 #define $ac_tr_lib 1
6887 LIBS
="-lsecurity $LIBS"
6890 echo "$ac_t""no" 1>&6
6893 for ac_func
in set_auth_parameters
6895 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6896 echo "configure:6897: checking for $ac_func" >&5
6897 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6898 echo $ac_n "(cached) $ac_c" 1>&6
6900 cat > conftest.
$ac_ext <<EOF
6901 #line 6902 "configure"
6902 #include "confdefs.h"
6903 /* System header to define __stub macros and hopefully few prototypes,
6904 which can conflict with char $ac_func(); below. */
6906 /* Override any gcc2 internal prototype to avoid an error. */
6907 /* We use char because int might match the return type of a gcc2
6908 builtin and then its argument prototype would still apply. */
6913 /* The GNU C library defines this for functions which it implements
6914 to always fail with ENOSYS. Some functions are actually named
6915 something starting with __ and the normal name is an alias. */
6916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6924 if { (eval echo configure
:6925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6926 eval "ac_cv_func_$ac_func=yes"
6928 echo "configure: failed program was:" >&5
6929 cat conftest.
$ac_ext >&5
6931 eval "ac_cv_func_$ac_func=no"
6936 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6937 echo "$ac_t""yes" 1>&6
6938 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6939 cat >> confdefs.h
<<EOF
6940 #define $ac_tr_func 1
6944 echo "$ac_t""no" 1>&6
6952 *-lsec*) for ac_func
in set_auth_parameters
6954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6955 echo "configure:6956: checking for $ac_func" >&5
6956 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6957 echo $ac_n "(cached) $ac_c" 1>&6
6959 cat > conftest.
$ac_ext <<EOF
6960 #line 6961 "configure"
6961 #include "confdefs.h"
6962 /* System header to define __stub macros and hopefully few prototypes,
6963 which can conflict with char $ac_func(); below. */
6965 /* Override any gcc2 internal prototype to avoid an error. */
6966 /* We use char because int might match the return type of a gcc2
6967 builtin and then its argument prototype would still apply. */
6972 /* The GNU C library defines this for functions which it implements
6973 to always fail with ENOSYS. Some functions are actually named
6974 something starting with __ and the normal name is an alias. */
6975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6983 if { (eval echo configure
:6984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6985 eval "ac_cv_func_$ac_func=yes"
6987 echo "configure: failed program was:" >&5
6988 cat conftest.
$ac_ext >&5
6990 eval "ac_cv_func_$ac_func=no"
6995 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6996 echo "$ac_t""yes" 1>&6
6997 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6998 cat >> confdefs.h
<<EOF
6999 #define $ac_tr_func 1
7003 echo "$ac_t""no" 1>&6
7007 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7008 echo "configure:7009: checking for set_auth_parameters in -lsec" >&5
7009 ac_lib_var
=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7010 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7011 echo $ac_n "(cached) $ac_c" 1>&6
7013 ac_save_LIBS
="$LIBS"
7015 cat > conftest.
$ac_ext <<EOF
7016 #line 7017 "configure"
7017 #include "confdefs.h"
7018 /* Override any gcc2 internal prototype to avoid an error. */
7019 /* We use char because int might match the return type of a gcc2
7020 builtin and then its argument prototype would still apply. */
7021 char set_auth_parameters();
7024 set_auth_parameters()
7027 if { (eval echo configure
:7028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7029 eval "ac_cv_lib_$ac_lib_var=yes"
7031 echo "configure: failed program was:" >&5
7032 cat conftest.
$ac_ext >&5
7034 eval "ac_cv_lib_$ac_lib_var=no"
7037 LIBS
="$ac_save_LIBS"
7040 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7041 echo "$ac_t""yes" 1>&6
7042 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7043 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7044 cat >> confdefs.h
<<EOF
7045 #define $ac_tr_lib 1
7051 echo "$ac_t""no" 1>&6
7054 for ac_func
in set_auth_parameters
7056 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7057 echo "configure:7058: checking for $ac_func" >&5
7058 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7059 echo $ac_n "(cached) $ac_c" 1>&6
7061 cat > conftest.
$ac_ext <<EOF
7062 #line 7063 "configure"
7063 #include "confdefs.h"
7064 /* System header to define __stub macros and hopefully few prototypes,
7065 which can conflict with char $ac_func(); below. */
7067 /* Override any gcc2 internal prototype to avoid an error. */
7068 /* We use char because int might match the return type of a gcc2
7069 builtin and then its argument prototype would still apply. */
7074 /* The GNU C library defines this for functions which it implements
7075 to always fail with ENOSYS. Some functions are actually named
7076 something starting with __ and the normal name is an alias. */
7077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7085 if { (eval echo configure
:7086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7087 eval "ac_cv_func_$ac_func=yes"
7089 echo "configure: failed program was:" >&5
7090 cat conftest.
$ac_ext >&5
7092 eval "ac_cv_func_$ac_func=no"
7097 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7098 echo "$ac_t""yes" 1>&6
7099 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7100 cat >> confdefs.h
<<EOF
7101 #define $ac_tr_func 1
7105 echo "$ac_t""no" 1>&6
7113 # UnixWare 7.x has its getspnam in -lgen
7115 *-lgen*) for ac_func
in getspnam
7117 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7118 echo "configure:7119: checking for $ac_func" >&5
7119 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7120 echo $ac_n "(cached) $ac_c" 1>&6
7122 cat > conftest.
$ac_ext <<EOF
7123 #line 7124 "configure"
7124 #include "confdefs.h"
7125 /* System header to define __stub macros and hopefully few prototypes,
7126 which can conflict with char $ac_func(); below. */
7128 /* Override any gcc2 internal prototype to avoid an error. */
7129 /* We use char because int might match the return type of a gcc2
7130 builtin and then its argument prototype would still apply. */
7135 /* The GNU C library defines this for functions which it implements
7136 to always fail with ENOSYS. Some functions are actually named
7137 something starting with __ and the normal name is an alias. */
7138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7146 if { (eval echo configure
:7147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7148 eval "ac_cv_func_$ac_func=yes"
7150 echo "configure: failed program was:" >&5
7151 cat conftest.
$ac_ext >&5
7153 eval "ac_cv_func_$ac_func=no"
7158 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7159 echo "$ac_t""yes" 1>&6
7160 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7161 cat >> confdefs.h
<<EOF
7162 #define $ac_tr_func 1
7166 echo "$ac_t""no" 1>&6
7170 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7171 echo "configure:7172: checking for getspnam in -lgen" >&5
7172 ac_lib_var
=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7174 echo $ac_n "(cached) $ac_c" 1>&6
7176 ac_save_LIBS
="$LIBS"
7178 cat > conftest.
$ac_ext <<EOF
7179 #line 7180 "configure"
7180 #include "confdefs.h"
7181 /* Override any gcc2 internal prototype to avoid an error. */
7182 /* We use char because int might match the return type of a gcc2
7183 builtin and then its argument prototype would still apply. */
7190 if { (eval echo configure
:7191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7192 eval "ac_cv_lib_$ac_lib_var=yes"
7194 echo "configure: failed program was:" >&5
7195 cat conftest.
$ac_ext >&5
7197 eval "ac_cv_lib_$ac_lib_var=no"
7200 LIBS
="$ac_save_LIBS"
7203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7204 echo "$ac_t""yes" 1>&6
7205 ac_tr_lib
=HAVE_LIB
`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7206 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7207 cat >> confdefs.h
<<EOF
7208 #define $ac_tr_lib 1
7214 echo "$ac_t""no" 1>&6
7217 for ac_func
in getspnam
7219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7220 echo "configure:7221: checking for $ac_func" >&5
7221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7222 echo $ac_n "(cached) $ac_c" 1>&6
7224 cat > conftest.
$ac_ext <<EOF
7225 #line 7226 "configure"
7226 #include "confdefs.h"
7227 /* System header to define __stub macros and hopefully few prototypes,
7228 which can conflict with char $ac_func(); below. */
7230 /* Override any gcc2 internal prototype to avoid an error. */
7231 /* We use char because int might match the return type of a gcc2
7232 builtin and then its argument prototype would still apply. */
7237 /* The GNU C library defines this for functions which it implements
7238 to always fail with ENOSYS. Some functions are actually named
7239 something starting with __ and the normal name is an alias. */
7240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7248 if { (eval echo configure
:7249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7250 eval "ac_cv_func_$ac_func=yes"
7252 echo "configure: failed program was:" >&5
7253 cat conftest.
$ac_ext >&5
7255 eval "ac_cv_func_$ac_func=no"
7260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7261 echo "$ac_t""yes" 1>&6
7262 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7263 cat >> confdefs.h
<<EOF
7264 #define $ac_tr_func 1
7268 echo "$ac_t""no" 1>&6
7277 *-lsecurity*) for ac_func
in getspnam
7279 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7280 echo "configure:7281: checking for $ac_func" >&5
7281 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7282 echo $ac_n "(cached) $ac_c" 1>&6
7284 cat > conftest.
$ac_ext <<EOF
7285 #line 7286 "configure"
7286 #include "confdefs.h"
7287 /* System header to define __stub macros and hopefully few prototypes,
7288 which can conflict with char $ac_func(); below. */
7290 /* Override any gcc2 internal prototype to avoid an error. */
7291 /* We use char because int might match the return type of a gcc2
7292 builtin and then its argument prototype would still apply. */
7297 /* The GNU C library defines this for functions which it implements
7298 to always fail with ENOSYS. Some functions are actually named
7299 something starting with __ and the normal name is an alias. */
7300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7308 if { (eval echo configure
:7309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7310 eval "ac_cv_func_$ac_func=yes"
7312 echo "configure: failed program was:" >&5
7313 cat conftest.
$ac_ext >&5
7315 eval "ac_cv_func_$ac_func=no"
7320 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7321 echo "$ac_t""yes" 1>&6
7322 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7323 cat >> confdefs.h
<<EOF
7324 #define $ac_tr_func 1
7328 echo "$ac_t""no" 1>&6
7332 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7333 echo "configure:7334: checking for getspnam in -lsecurity" >&5
7334 ac_lib_var
=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7335 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7336 echo $ac_n "(cached) $ac_c" 1>&6
7338 ac_save_LIBS
="$LIBS"
7339 LIBS
="-lsecurity $LIBS"
7340 cat > conftest.
$ac_ext <<EOF
7341 #line 7342 "configure"
7342 #include "confdefs.h"
7343 /* Override any gcc2 internal prototype to avoid an error. */
7344 /* We use char because int might match the return type of a gcc2
7345 builtin and then its argument prototype would still apply. */
7352 if { (eval echo configure
:7353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7354 eval "ac_cv_lib_$ac_lib_var=yes"
7356 echo "configure: failed program was:" >&5
7357 cat conftest.
$ac_ext >&5
7359 eval "ac_cv_lib_$ac_lib_var=no"
7362 LIBS
="$ac_save_LIBS"
7365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7366 echo "$ac_t""yes" 1>&6
7367 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7368 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7369 cat >> confdefs.h
<<EOF
7370 #define $ac_tr_lib 1
7373 LIBS
="-lsecurity $LIBS"
7376 echo "$ac_t""no" 1>&6
7379 for ac_func
in getspnam
7381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7382 echo "configure:7383: checking for $ac_func" >&5
7383 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7384 echo $ac_n "(cached) $ac_c" 1>&6
7386 cat > conftest.
$ac_ext <<EOF
7387 #line 7388 "configure"
7388 #include "confdefs.h"
7389 /* System header to define __stub macros and hopefully few prototypes,
7390 which can conflict with char $ac_func(); below. */
7392 /* Override any gcc2 internal prototype to avoid an error. */
7393 /* We use char because int might match the return type of a gcc2
7394 builtin and then its argument prototype would still apply. */
7399 /* The GNU C library defines this for functions which it implements
7400 to always fail with ENOSYS. Some functions are actually named
7401 something starting with __ and the normal name is an alias. */
7402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7410 if { (eval echo configure
:7411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7412 eval "ac_cv_func_$ac_func=yes"
7414 echo "configure: failed program was:" >&5
7415 cat conftest.
$ac_ext >&5
7417 eval "ac_cv_func_$ac_func=no"
7422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7423 echo "$ac_t""yes" 1>&6
7424 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7425 cat >> confdefs.h
<<EOF
7426 #define $ac_tr_func 1
7430 echo "$ac_t""no" 1>&6
7438 *-lsec*) for ac_func
in getspnam
7440 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7441 echo "configure:7442: checking for $ac_func" >&5
7442 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7443 echo $ac_n "(cached) $ac_c" 1>&6
7445 cat > conftest.
$ac_ext <<EOF
7446 #line 7447 "configure"
7447 #include "confdefs.h"
7448 /* System header to define __stub macros and hopefully few prototypes,
7449 which can conflict with char $ac_func(); below. */
7451 /* Override any gcc2 internal prototype to avoid an error. */
7452 /* We use char because int might match the return type of a gcc2
7453 builtin and then its argument prototype would still apply. */
7458 /* The GNU C library defines this for functions which it implements
7459 to always fail with ENOSYS. Some functions are actually named
7460 something starting with __ and the normal name is an alias. */
7461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7469 if { (eval echo configure
:7470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7471 eval "ac_cv_func_$ac_func=yes"
7473 echo "configure: failed program was:" >&5
7474 cat conftest.
$ac_ext >&5
7476 eval "ac_cv_func_$ac_func=no"
7481 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7482 echo "$ac_t""yes" 1>&6
7483 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7484 cat >> confdefs.h
<<EOF
7485 #define $ac_tr_func 1
7489 echo "$ac_t""no" 1>&6
7493 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7494 echo "configure:7495: checking for getspnam in -lsec" >&5
7495 ac_lib_var
=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7497 echo $ac_n "(cached) $ac_c" 1>&6
7499 ac_save_LIBS
="$LIBS"
7501 cat > conftest.
$ac_ext <<EOF
7502 #line 7503 "configure"
7503 #include "confdefs.h"
7504 /* Override any gcc2 internal prototype to avoid an error. */
7505 /* We use char because int might match the return type of a gcc2
7506 builtin and then its argument prototype would still apply. */
7513 if { (eval echo configure
:7514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7515 eval "ac_cv_lib_$ac_lib_var=yes"
7517 echo "configure: failed program was:" >&5
7518 cat conftest.
$ac_ext >&5
7520 eval "ac_cv_lib_$ac_lib_var=no"
7523 LIBS
="$ac_save_LIBS"
7526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7527 echo "$ac_t""yes" 1>&6
7528 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7529 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7530 cat >> confdefs.h
<<EOF
7531 #define $ac_tr_lib 1
7537 echo "$ac_t""no" 1>&6
7540 for ac_func
in getspnam
7542 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7543 echo "configure:7544: checking for $ac_func" >&5
7544 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7545 echo $ac_n "(cached) $ac_c" 1>&6
7547 cat > conftest.
$ac_ext <<EOF
7548 #line 7549 "configure"
7549 #include "confdefs.h"
7550 /* System header to define __stub macros and hopefully few prototypes,
7551 which can conflict with char $ac_func(); below. */
7553 /* Override any gcc2 internal prototype to avoid an error. */
7554 /* We use char because int might match the return type of a gcc2
7555 builtin and then its argument prototype would still apply. */
7560 /* The GNU C library defines this for functions which it implements
7561 to always fail with ENOSYS. Some functions are actually named
7562 something starting with __ and the normal name is an alias. */
7563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7571 if { (eval echo configure
:7572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7573 eval "ac_cv_func_$ac_func=yes"
7575 echo "configure: failed program was:" >&5
7576 cat conftest.
$ac_ext >&5
7578 eval "ac_cv_func_$ac_func=no"
7583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7584 echo "$ac_t""yes" 1>&6
7585 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7586 cat >> confdefs.h
<<EOF
7587 #define $ac_tr_func 1
7591 echo "$ac_t""no" 1>&6
7600 *-lsecurity*) for ac_func
in bigcrypt
7602 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7603 echo "configure:7604: checking for $ac_func" >&5
7604 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7605 echo $ac_n "(cached) $ac_c" 1>&6
7607 cat > conftest.
$ac_ext <<EOF
7608 #line 7609 "configure"
7609 #include "confdefs.h"
7610 /* System header to define __stub macros and hopefully few prototypes,
7611 which can conflict with char $ac_func(); below. */
7613 /* Override any gcc2 internal prototype to avoid an error. */
7614 /* We use char because int might match the return type of a gcc2
7615 builtin and then its argument prototype would still apply. */
7620 /* The GNU C library defines this for functions which it implements
7621 to always fail with ENOSYS. Some functions are actually named
7622 something starting with __ and the normal name is an alias. */
7623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7631 if { (eval echo configure
:7632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7633 eval "ac_cv_func_$ac_func=yes"
7635 echo "configure: failed program was:" >&5
7636 cat conftest.
$ac_ext >&5
7638 eval "ac_cv_func_$ac_func=no"
7643 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7644 echo "$ac_t""yes" 1>&6
7645 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7646 cat >> confdefs.h
<<EOF
7647 #define $ac_tr_func 1
7651 echo "$ac_t""no" 1>&6
7655 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7656 echo "configure:7657: checking for bigcrypt in -lsecurity" >&5
7657 ac_lib_var
=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7658 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7659 echo $ac_n "(cached) $ac_c" 1>&6
7661 ac_save_LIBS
="$LIBS"
7662 LIBS
="-lsecurity $LIBS"
7663 cat > conftest.
$ac_ext <<EOF
7664 #line 7665 "configure"
7665 #include "confdefs.h"
7666 /* Override any gcc2 internal prototype to avoid an error. */
7667 /* We use char because int might match the return type of a gcc2
7668 builtin and then its argument prototype would still apply. */
7675 if { (eval echo configure
:7676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7677 eval "ac_cv_lib_$ac_lib_var=yes"
7679 echo "configure: failed program was:" >&5
7680 cat conftest.
$ac_ext >&5
7682 eval "ac_cv_lib_$ac_lib_var=no"
7685 LIBS
="$ac_save_LIBS"
7688 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7689 echo "$ac_t""yes" 1>&6
7690 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7691 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7692 cat >> confdefs.h
<<EOF
7693 #define $ac_tr_lib 1
7696 LIBS
="-lsecurity $LIBS"
7699 echo "$ac_t""no" 1>&6
7702 for ac_func
in bigcrypt
7704 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7705 echo "configure:7706: checking for $ac_func" >&5
7706 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7707 echo $ac_n "(cached) $ac_c" 1>&6
7709 cat > conftest.
$ac_ext <<EOF
7710 #line 7711 "configure"
7711 #include "confdefs.h"
7712 /* System header to define __stub macros and hopefully few prototypes,
7713 which can conflict with char $ac_func(); below. */
7715 /* Override any gcc2 internal prototype to avoid an error. */
7716 /* We use char because int might match the return type of a gcc2
7717 builtin and then its argument prototype would still apply. */
7722 /* The GNU C library defines this for functions which it implements
7723 to always fail with ENOSYS. Some functions are actually named
7724 something starting with __ and the normal name is an alias. */
7725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7733 if { (eval echo configure
:7734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7735 eval "ac_cv_func_$ac_func=yes"
7737 echo "configure: failed program was:" >&5
7738 cat conftest.
$ac_ext >&5
7740 eval "ac_cv_func_$ac_func=no"
7745 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7746 echo "$ac_t""yes" 1>&6
7747 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7748 cat >> confdefs.h
<<EOF
7749 #define $ac_tr_func 1
7753 echo "$ac_t""no" 1>&6
7761 *-lsec*) for ac_func
in bigcrypt
7763 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7764 echo "configure:7765: checking for $ac_func" >&5
7765 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7766 echo $ac_n "(cached) $ac_c" 1>&6
7768 cat > conftest.
$ac_ext <<EOF
7769 #line 7770 "configure"
7770 #include "confdefs.h"
7771 /* System header to define __stub macros and hopefully few prototypes,
7772 which can conflict with char $ac_func(); below. */
7774 /* Override any gcc2 internal prototype to avoid an error. */
7775 /* We use char because int might match the return type of a gcc2
7776 builtin and then its argument prototype would still apply. */
7781 /* The GNU C library defines this for functions which it implements
7782 to always fail with ENOSYS. Some functions are actually named
7783 something starting with __ and the normal name is an alias. */
7784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7792 if { (eval echo configure
:7793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7794 eval "ac_cv_func_$ac_func=yes"
7796 echo "configure: failed program was:" >&5
7797 cat conftest.
$ac_ext >&5
7799 eval "ac_cv_func_$ac_func=no"
7804 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7805 echo "$ac_t""yes" 1>&6
7806 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7807 cat >> confdefs.h
<<EOF
7808 #define $ac_tr_func 1
7812 echo "$ac_t""no" 1>&6
7816 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7817 echo "configure:7818: checking for bigcrypt in -lsec" >&5
7818 ac_lib_var
=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7819 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7820 echo $ac_n "(cached) $ac_c" 1>&6
7822 ac_save_LIBS
="$LIBS"
7824 cat > conftest.
$ac_ext <<EOF
7825 #line 7826 "configure"
7826 #include "confdefs.h"
7827 /* Override any gcc2 internal prototype to avoid an error. */
7828 /* We use char because int might match the return type of a gcc2
7829 builtin and then its argument prototype would still apply. */
7836 if { (eval echo configure
:7837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7838 eval "ac_cv_lib_$ac_lib_var=yes"
7840 echo "configure: failed program was:" >&5
7841 cat conftest.
$ac_ext >&5
7843 eval "ac_cv_lib_$ac_lib_var=no"
7846 LIBS
="$ac_save_LIBS"
7849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7850 echo "$ac_t""yes" 1>&6
7851 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7852 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7853 cat >> confdefs.h
<<EOF
7854 #define $ac_tr_lib 1
7860 echo "$ac_t""no" 1>&6
7863 for ac_func
in bigcrypt
7865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7866 echo "configure:7867: checking for $ac_func" >&5
7867 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7868 echo $ac_n "(cached) $ac_c" 1>&6
7870 cat > conftest.
$ac_ext <<EOF
7871 #line 7872 "configure"
7872 #include "confdefs.h"
7873 /* System header to define __stub macros and hopefully few prototypes,
7874 which can conflict with char $ac_func(); below. */
7876 /* Override any gcc2 internal prototype to avoid an error. */
7877 /* We use char because int might match the return type of a gcc2
7878 builtin and then its argument prototype would still apply. */
7883 /* The GNU C library defines this for functions which it implements
7884 to always fail with ENOSYS. Some functions are actually named
7885 something starting with __ and the normal name is an alias. */
7886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7894 if { (eval echo configure
:7895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7896 eval "ac_cv_func_$ac_func=yes"
7898 echo "configure: failed program was:" >&5
7899 cat conftest.
$ac_ext >&5
7901 eval "ac_cv_func_$ac_func=no"
7906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7907 echo "$ac_t""yes" 1>&6
7908 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7909 cat >> confdefs.h
<<EOF
7910 #define $ac_tr_func 1
7914 echo "$ac_t""no" 1>&6
7923 *-lsecurity*) for ac_func
in getprpwnam
7925 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7926 echo "configure:7927: checking for $ac_func" >&5
7927 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7928 echo $ac_n "(cached) $ac_c" 1>&6
7930 cat > conftest.
$ac_ext <<EOF
7931 #line 7932 "configure"
7932 #include "confdefs.h"
7933 /* System header to define __stub macros and hopefully few prototypes,
7934 which can conflict with char $ac_func(); below. */
7936 /* Override any gcc2 internal prototype to avoid an error. */
7937 /* We use char because int might match the return type of a gcc2
7938 builtin and then its argument prototype would still apply. */
7943 /* The GNU C library defines this for functions which it implements
7944 to always fail with ENOSYS. Some functions are actually named
7945 something starting with __ and the normal name is an alias. */
7946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7954 if { (eval echo configure
:7955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7956 eval "ac_cv_func_$ac_func=yes"
7958 echo "configure: failed program was:" >&5
7959 cat conftest.
$ac_ext >&5
7961 eval "ac_cv_func_$ac_func=no"
7966 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7967 echo "$ac_t""yes" 1>&6
7968 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7969 cat >> confdefs.h
<<EOF
7970 #define $ac_tr_func 1
7974 echo "$ac_t""no" 1>&6
7978 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
7979 echo "configure:7980: checking for getprpwnam in -lsecurity" >&5
7980 ac_lib_var
=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
7981 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7982 echo $ac_n "(cached) $ac_c" 1>&6
7984 ac_save_LIBS
="$LIBS"
7985 LIBS
="-lsecurity $LIBS"
7986 cat > conftest.
$ac_ext <<EOF
7987 #line 7988 "configure"
7988 #include "confdefs.h"
7989 /* Override any gcc2 internal prototype to avoid an error. */
7990 /* We use char because int might match the return type of a gcc2
7991 builtin and then its argument prototype would still apply. */
7998 if { (eval echo configure
:7999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8000 eval "ac_cv_lib_$ac_lib_var=yes"
8002 echo "configure: failed program was:" >&5
8003 cat conftest.
$ac_ext >&5
8005 eval "ac_cv_lib_$ac_lib_var=no"
8008 LIBS
="$ac_save_LIBS"
8011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8012 echo "$ac_t""yes" 1>&6
8013 ac_tr_lib
=HAVE_LIB
`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8014 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8015 cat >> confdefs.h
<<EOF
8016 #define $ac_tr_lib 1
8019 LIBS
="-lsecurity $LIBS"
8022 echo "$ac_t""no" 1>&6
8025 for ac_func
in getprpwnam
8027 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8028 echo "configure:8029: checking for $ac_func" >&5
8029 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8030 echo $ac_n "(cached) $ac_c" 1>&6
8032 cat > conftest.
$ac_ext <<EOF
8033 #line 8034 "configure"
8034 #include "confdefs.h"
8035 /* System header to define __stub macros and hopefully few prototypes,
8036 which can conflict with char $ac_func(); below. */
8038 /* Override any gcc2 internal prototype to avoid an error. */
8039 /* We use char because int might match the return type of a gcc2
8040 builtin and then its argument prototype would still apply. */
8045 /* The GNU C library defines this for functions which it implements
8046 to always fail with ENOSYS. Some functions are actually named
8047 something starting with __ and the normal name is an alias. */
8048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8056 if { (eval echo configure
:8057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8058 eval "ac_cv_func_$ac_func=yes"
8060 echo "configure: failed program was:" >&5
8061 cat conftest.
$ac_ext >&5
8063 eval "ac_cv_func_$ac_func=no"
8068 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8069 echo "$ac_t""yes" 1>&6
8070 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8071 cat >> confdefs.h
<<EOF
8072 #define $ac_tr_func 1
8076 echo "$ac_t""no" 1>&6
8084 *-lsec*) for ac_func
in getprpwnam
8086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8087 echo "configure:8088: checking for $ac_func" >&5
8088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8089 echo $ac_n "(cached) $ac_c" 1>&6
8091 cat > conftest.
$ac_ext <<EOF
8092 #line 8093 "configure"
8093 #include "confdefs.h"
8094 /* System header to define __stub macros and hopefully few prototypes,
8095 which can conflict with char $ac_func(); below. */
8097 /* Override any gcc2 internal prototype to avoid an error. */
8098 /* We use char because int might match the return type of a gcc2
8099 builtin and then its argument prototype would still apply. */
8104 /* The GNU C library defines this for functions which it implements
8105 to always fail with ENOSYS. Some functions are actually named
8106 something starting with __ and the normal name is an alias. */
8107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8115 if { (eval echo configure
:8116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8117 eval "ac_cv_func_$ac_func=yes"
8119 echo "configure: failed program was:" >&5
8120 cat conftest.
$ac_ext >&5
8122 eval "ac_cv_func_$ac_func=no"
8127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8128 echo "$ac_t""yes" 1>&6
8129 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8130 cat >> confdefs.h
<<EOF
8131 #define $ac_tr_func 1
8135 echo "$ac_t""no" 1>&6
8139 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8140 echo "configure:8141: checking for getprpwnam in -lsec" >&5
8141 ac_lib_var
=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8142 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8143 echo $ac_n "(cached) $ac_c" 1>&6
8145 ac_save_LIBS
="$LIBS"
8147 cat > conftest.
$ac_ext <<EOF
8148 #line 8149 "configure"
8149 #include "confdefs.h"
8150 /* Override any gcc2 internal prototype to avoid an error. */
8151 /* We use char because int might match the return type of a gcc2
8152 builtin and then its argument prototype would still apply. */
8159 if { (eval echo configure
:8160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8161 eval "ac_cv_lib_$ac_lib_var=yes"
8163 echo "configure: failed program was:" >&5
8164 cat conftest.
$ac_ext >&5
8166 eval "ac_cv_lib_$ac_lib_var=no"
8169 LIBS
="$ac_save_LIBS"
8172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8173 echo "$ac_t""yes" 1>&6
8174 ac_tr_lib
=HAVE_LIB
`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8175 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8176 cat >> confdefs.h
<<EOF
8177 #define $ac_tr_lib 1
8183 echo "$ac_t""no" 1>&6
8186 for ac_func
in getprpwnam
8188 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8189 echo "configure:8190: checking for $ac_func" >&5
8190 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8191 echo $ac_n "(cached) $ac_c" 1>&6
8193 cat > conftest.
$ac_ext <<EOF
8194 #line 8195 "configure"
8195 #include "confdefs.h"
8196 /* System header to define __stub macros and hopefully few prototypes,
8197 which can conflict with char $ac_func(); below. */
8199 /* Override any gcc2 internal prototype to avoid an error. */
8200 /* We use char because int might match the return type of a gcc2
8201 builtin and then its argument prototype would still apply. */
8206 /* The GNU C library defines this for functions which it implements
8207 to always fail with ENOSYS. Some functions are actually named
8208 something starting with __ and the normal name is an alias. */
8209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8217 if { (eval echo configure
:8218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8219 eval "ac_cv_func_$ac_func=yes"
8221 echo "configure: failed program was:" >&5
8222 cat conftest.
$ac_ext >&5
8224 eval "ac_cv_func_$ac_func=no"
8229 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8230 echo "$ac_t""yes" 1>&6
8231 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8232 cat >> confdefs.h
<<EOF
8233 #define $ac_tr_func 1
8237 echo "$ac_t""no" 1>&6
8245 # this bit needs to be modified for each OS that is suported by
8246 # smbwrapper. You need to specify how to created a shared library and
8247 # how to compile C code to produce PIC object files
8249 # these are the defaults, good for lots of systems
8255 # Assume non-shared by default and override below
8258 # and these are for particular systems
8260 *linux
*) cat >> confdefs.h
<<\EOF
8268 *solaris
*) cat >> confdefs.h
<<\EOF
8273 *sunos
*) cat >> confdefs.h
<<\EOF
8278 *bsd
*) LDSHFLAGS
="-shared -Bshareable"
8280 *irix
*) cat >> confdefs.h
<<\EOF
8285 *irix6
*) cat >> confdefs.h
<<\EOF
8291 ATTEMPT_WRAP32_BUILD
=yes
8293 *aix
*) cat >> confdefs.h
<<\EOF
8297 # AIX is too ugly for now
8299 *hpux
*) cat >> confdefs.h
<<\EOF
8304 # Use special PIC flags for the native HP-UX compiler.
8305 if test $ac_cv_prog_cc_Ae = yes; then
8310 *qnx
*) cat >> confdefs.h
<<\EOF
8314 *osf
*) cat >> confdefs.h
<<\EOF
8318 *sco
*) cat >> confdefs.h
<<\EOF
8322 *next2
*) cat >> confdefs.h
<<\EOF
8326 *dgux
*) # Extract the first word of "groff", so it can be a program name with args.
8327 set dummy
groff; ac_word
=$2
8328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8329 echo "configure:8330: checking for $ac_word" >&5
8330 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8331 echo $ac_n "(cached) $ac_c" 1>&6
8333 if test -n "$ROFF"; then
8334 ac_cv_prog_ROFF
="$ROFF" # Let the user override the test.
8336 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8338 for ac_dir
in $ac_dummy; do
8339 test -z "$ac_dir" && ac_dir
=.
8340 if test -f $ac_dir/$ac_word; then
8341 ac_cv_prog_ROFF
="groff -etpsR -Tascii -man"
8348 ROFF
="$ac_cv_prog_ROFF"
8349 if test -n "$ROFF"; then
8350 echo "$ac_t""$ROFF" 1>&6
8352 echo "$ac_t""no" 1>&6
8357 *-univel-*) if test "$GCC" != yes ; then
8358 cat >> confdefs.h
<<\EOF
8359 #define HAVE_MEMSET 1
8365 *mips-sni-sysv4
*) cat >> confdefs.h
<<\EOF
8366 #define RELIANTUNIX 1
8372 if test "$GCC" != yes ; then
8373 cat >> confdefs.h
<<\EOF
8374 #define HAVE_MEMSET 1
8382 # try to work out how to produce pic code with this compiler
8383 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8384 echo "configure:8385: checking whether ${CC-cc} accepts -fpic" >&5
8385 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8386 echo $ac_n "(cached) $ac_c" 1>&6
8388 echo 'void f(){}' > conftest.c
8389 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8390 ac_cv_prog_cc_fpic
=yes
8392 ac_cv_prog_cc_fpic
=no
8398 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8399 if test $ac_cv_prog_cc_fpic = yes; then
8402 if test x
$PICFLAG = x
; then
8403 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8404 echo "configure:8405: checking whether ${CC-cc} accepts -KPIC" >&5
8405 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8406 echo $ac_n "(cached) $ac_c" 1>&6
8408 echo 'void f(){}' > conftest.c
8409 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8410 ac_cv_prog_cc_KPIC
=yes
8412 ac_cv_prog_cc_KPIC
=no
8418 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8419 if test $ac_cv_prog_cc_KPIC = yes; then
8423 if test x
$PICFLAG = x
; then
8424 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8425 echo "configure:8426: checking whether ${CC-cc} accepts -Kpic" >&5
8426 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8427 echo $ac_n "(cached) $ac_c" 1>&6
8429 echo 'void f(){}' > conftest.c
8430 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8431 ac_cv_prog_cc_Kpic
=yes
8433 ac_cv_prog_cc_Kpic
=no
8439 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8440 if test $ac_cv_prog_cc_Kpic = yes; then
8447 echo $ac_n "checking for long long""... $ac_c" 1>&6
8448 echo "configure:8449: checking for long long" >&5
8449 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8450 echo $ac_n "(cached) $ac_c" 1>&6
8453 if test "$cross_compiling" = yes; then
8454 samba_cv_have_longlong
=cross
8456 cat > conftest.
$ac_ext <<EOF
8457 #line 8458 "configure"
8458 #include "confdefs.h"
8460 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8462 if { (eval echo configure
:8463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8464 samba_cv_have_longlong
=yes
8466 echo "configure: failed program was:" >&5
8467 cat conftest.
$ac_ext >&5
8469 samba_cv_have_longlong
=no
8476 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8477 if test x
"$samba_cv_have_longlong" = x
"yes"; then
8478 cat >> confdefs.h
<<\EOF
8479 #define HAVE_LONGLONG 1
8485 # Check if the compiler supports the LL prefix on long long integers.
8488 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8489 echo "configure:8490: checking for LL suffix on long long integers" >&5
8490 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8491 echo $ac_n "(cached) $ac_c" 1>&6
8494 cat > conftest.
$ac_ext <<EOF
8495 #line 8496 "configure"
8496 #include "confdefs.h"
8499 long long i = 0x8000000000LL
8502 if { (eval echo configure
:8503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8504 samba_cv_compiler_supports_ll
=yes
8506 echo "configure: failed program was:" >&5
8507 cat conftest.
$ac_ext >&5
8509 samba_cv_compiler_supports_ll
=no
8514 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8515 if test x
"$samba_cv_compiler_supports_ll" = x
"yes"; then
8516 cat >> confdefs.h
<<\EOF
8517 #define COMPILER_SUPPORTS_LL 1
8523 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8524 echo "configure:8525: checking for 64 bit off_t" >&5
8525 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8526 echo $ac_n "(cached) $ac_c" 1>&6
8529 if test "$cross_compiling" = yes; then
8530 samba_cv_SIZEOF_OFF_T
=cross
8532 cat > conftest.
$ac_ext <<EOF
8533 #line 8534 "configure"
8534 #include "confdefs.h"
8536 #include <sys/stat.h>
8537 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8539 if { (eval echo configure
:8540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8541 samba_cv_SIZEOF_OFF_T
=yes
8543 echo "configure: failed program was:" >&5
8544 cat conftest.
$ac_ext >&5
8546 samba_cv_SIZEOF_OFF_T
=no
8553 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8554 if test x
"$samba_cv_SIZEOF_OFF_T" = x
"yes"; then
8555 cat >> confdefs.h
<<\EOF
8556 #define SIZEOF_OFF_T 8
8561 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8562 echo "configure:8563: checking for off64_t" >&5
8563 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8564 echo $ac_n "(cached) $ac_c" 1>&6
8567 if test "$cross_compiling" = yes; then
8568 samba_cv_HAVE_OFF64_T
=cross
8570 cat > conftest.
$ac_ext <<EOF
8571 #line 8572 "configure"
8572 #include "confdefs.h"
8574 #if defined(HAVE_UNISTD_H)
8578 #include <sys/stat.h>
8579 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?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_HAVE_OFF64_T
=yes
8585 echo "configure: failed program was:" >&5
8586 cat conftest.
$ac_ext >&5
8588 samba_cv_HAVE_OFF64_T
=no
8595 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8596 if test x
"$samba_cv_HAVE_OFF64_T" = x
"yes"; then
8597 cat >> confdefs.h
<<\EOF
8598 #define HAVE_OFF64_T 1
8603 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8604 echo "configure:8605: checking for 64 bit ino_t" >&5
8605 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8606 echo $ac_n "(cached) $ac_c" 1>&6
8609 if test "$cross_compiling" = yes; then
8610 samba_cv_SIZEOF_INO_T
=cross
8612 cat > conftest.
$ac_ext <<EOF
8613 #line 8614 "configure"
8614 #include "confdefs.h"
8616 #include <sys/stat.h>
8617 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8619 if { (eval echo configure
:8620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8621 samba_cv_SIZEOF_INO_T
=yes
8623 echo "configure: failed program was:" >&5
8624 cat conftest.
$ac_ext >&5
8626 samba_cv_SIZEOF_INO_T
=no
8633 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8634 if test x
"$samba_cv_SIZEOF_INO_T" = x
"yes"; then
8635 cat >> confdefs.h
<<\EOF
8636 #define SIZEOF_INO_T 8
8641 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8642 echo "configure:8643: checking for ino64_t" >&5
8643 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8644 echo $ac_n "(cached) $ac_c" 1>&6
8647 if test "$cross_compiling" = yes; then
8648 samba_cv_HAVE_INO64_T
=cross
8650 cat > conftest.
$ac_ext <<EOF
8651 #line 8652 "configure"
8652 #include "confdefs.h"
8654 #if defined(HAVE_UNISTD_H)
8658 #include <sys/stat.h>
8659 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?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_HAVE_INO64_T
=yes
8665 echo "configure: failed program was:" >&5
8666 cat conftest.
$ac_ext >&5
8668 samba_cv_HAVE_INO64_T
=no
8675 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8676 if test x
"$samba_cv_HAVE_INO64_T" = x
"yes"; then
8677 cat >> confdefs.h
<<\EOF
8678 #define HAVE_INO64_T 1
8683 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8684 echo "configure:8685: checking for struct dirent64" >&5
8685 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8686 echo $ac_n "(cached) $ac_c" 1>&6
8689 cat > conftest.
$ac_ext <<EOF
8690 #line 8691 "configure"
8691 #include "confdefs.h"
8693 #if defined(HAVE_UNISTD_H)
8696 #include <sys/types.h>
8702 if { (eval echo configure
:8703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8704 samba_cv_HAVE_STRUCT_DIRENT64
=yes
8706 echo "configure: failed program was:" >&5
8707 cat conftest.
$ac_ext >&5
8709 samba_cv_HAVE_STRUCT_DIRENT64
=no
8714 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8715 if test x
"$samba_cv_HAVE_STRUCT_DIRENT64" = x
"yes"; then
8716 cat >> confdefs.h
<<\EOF
8717 #define HAVE_STRUCT_DIRENT64 1
8722 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8723 echo "configure:8724: checking for unsigned char" >&5
8724 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8725 echo $ac_n "(cached) $ac_c" 1>&6
8728 if test "$cross_compiling" = yes; then
8729 samba_cv_HAVE_UNSIGNED_CHAR
=cross
8731 cat > conftest.
$ac_ext <<EOF
8732 #line 8733 "configure"
8733 #include "confdefs.h"
8735 main() { char c; c=250; exit((c > 0)?0:1); }
8737 if { (eval echo configure
:8738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8739 samba_cv_HAVE_UNSIGNED_CHAR
=yes
8741 echo "configure: failed program was:" >&5
8742 cat conftest.
$ac_ext >&5
8744 samba_cv_HAVE_UNSIGNED_CHAR
=no
8751 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8752 if test x
"$samba_cv_HAVE_UNSIGNED_CHAR" = x
"yes"; then
8753 cat >> confdefs.h
<<\EOF
8754 #define HAVE_UNSIGNED_CHAR 1
8759 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8760 echo "configure:8761: checking for sin_len in sock" >&5
8761 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8762 echo $ac_n "(cached) $ac_c" 1>&6
8765 cat > conftest.
$ac_ext <<EOF
8766 #line 8767 "configure"
8767 #include "confdefs.h"
8768 #include <sys/types.h>
8769 #include <sys/socket.h>
8770 #include <netinet/in.h>
8772 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8775 if { (eval echo configure
:8776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8777 samba_cv_HAVE_SOCK_SIN_LEN
=yes
8779 echo "configure: failed program was:" >&5
8780 cat conftest.
$ac_ext >&5
8782 samba_cv_HAVE_SOCK_SIN_LEN
=no
8787 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8788 if test x
"$samba_cv_HAVE_SOCK_SIN_LEN" = x
"yes"; then
8789 cat >> confdefs.h
<<\EOF
8790 #define HAVE_SOCK_SIN_LEN 1
8795 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8796 echo "configure:8797: checking whether seekdir returns void" >&5
8797 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8798 echo $ac_n "(cached) $ac_c" 1>&6
8801 cat > conftest.
$ac_ext <<EOF
8802 #line 8803 "configure"
8803 #include "confdefs.h"
8804 #include <sys/types.h>
8806 void seekdir(DIR *d, long loc) { return; }
8811 if { (eval echo configure
:8812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8813 samba_cv_SEEKDIR_RETURNS_VOID
=yes
8815 echo "configure: failed program was:" >&5
8816 cat conftest.
$ac_ext >&5
8818 samba_cv_SEEKDIR_RETURNS_VOID
=no
8823 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8824 if test x
"$samba_cv_SEEKDIR_RETURNS_VOID" = x
"yes"; then
8825 cat >> confdefs.h
<<\EOF
8826 #define SEEKDIR_RETURNS_VOID 1
8831 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8832 echo "configure:8833: checking for __FILE__ macro" >&5
8833 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8834 echo $ac_n "(cached) $ac_c" 1>&6
8837 cat > conftest.
$ac_ext <<EOF
8838 #line 8839 "configure"
8839 #include "confdefs.h"
8842 printf("%s\n", __FILE__);
8845 if { (eval echo configure
:8846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8847 samba_cv_HAVE_FILE_MACRO
=yes
8849 echo "configure: failed program was:" >&5
8850 cat conftest.
$ac_ext >&5
8852 samba_cv_HAVE_FILE_MACRO
=no
8857 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8858 if test x
"$samba_cv_HAVE_FILE_MACRO" = x
"yes"; then
8859 cat >> confdefs.h
<<\EOF
8860 #define HAVE_FILE_MACRO 1
8865 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8866 echo "configure:8867: checking for __FUNCTION__ macro" >&5
8867 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8868 echo $ac_n "(cached) $ac_c" 1>&6
8871 cat > conftest.
$ac_ext <<EOF
8872 #line 8873 "configure"
8873 #include "confdefs.h"
8876 printf("%s\n", __FUNCTION__);
8879 if { (eval echo configure
:8880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8881 samba_cv_HAVE_FUNCTION_MACRO
=yes
8883 echo "configure: failed program was:" >&5
8884 cat conftest.
$ac_ext >&5
8886 samba_cv_HAVE_FUNCTION_MACRO
=no
8891 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8892 if test x
"$samba_cv_HAVE_FUNCTION_MACRO" = x
"yes"; then
8893 cat >> confdefs.h
<<\EOF
8894 #define HAVE_FUNCTION_MACRO 1
8899 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8900 echo "configure:8901: checking if gettimeofday takes tz argument" >&5
8901 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8902 echo $ac_n "(cached) $ac_c" 1>&6
8905 if test "$cross_compiling" = yes; then
8906 samba_cv_HAVE_GETTIMEOFDAY_TZ
=cross
8908 cat > conftest.
$ac_ext <<EOF
8909 #line 8910 "configure"
8910 #include "confdefs.h"
8912 #include <sys/time.h>
8914 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8916 if { (eval echo configure
:8917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8918 samba_cv_HAVE_GETTIMEOFDAY_TZ
=yes
8920 echo "configure: failed program was:" >&5
8921 cat conftest.
$ac_ext >&5
8923 samba_cv_HAVE_GETTIMEOFDAY_TZ
=no
8930 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8931 if test x
"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x
"yes"; then
8932 cat >> confdefs.h
<<\EOF
8933 #define HAVE_GETTIMEOFDAY_TZ 1
8938 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
8939 echo "configure:8940: checking for C99 vsnprintf" >&5
8940 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
8941 echo $ac_n "(cached) $ac_c" 1>&6
8944 if test "$cross_compiling" = yes; then
8945 samba_cv_HAVE_C99_VSNPRINTF
=cross
8947 cat > conftest.
$ac_ext <<EOF
8948 #line 8949 "configure"
8949 #include "confdefs.h"
8951 #include <sys/types.h>
8953 void foo(const char *format, ...) {
8958 va_start(ap, format);
8959 len = vsnprintf(0, 0, format, ap);
8961 if (len != 5) exit(1);
8963 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
8967 main() { foo("hello"); }
8970 if { (eval echo configure
:8971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8972 samba_cv_HAVE_C99_VSNPRINTF
=yes
8974 echo "configure: failed program was:" >&5
8975 cat conftest.
$ac_ext >&5
8977 samba_cv_HAVE_C99_VSNPRINTF
=no
8984 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
8985 if test x
"$samba_cv_HAVE_C99_VSNPRINTF" = x
"yes"; then
8986 cat >> confdefs.h
<<\EOF
8987 #define HAVE_C99_VSNPRINTF 1
8992 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
8993 echo "configure:8994: checking for broken readdir" >&5
8994 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
8995 echo $ac_n "(cached) $ac_c" 1>&6
8998 if test "$cross_compiling" = yes; then
8999 samba_cv_HAVE_BROKEN_READDIR
=cross
9001 cat > conftest.
$ac_ext <<EOF
9002 #line 9003 "configure"
9003 #include "confdefs.h"
9004 #include <sys/types.h>
9006 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9007 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9008 di->d_name[0] == 0) exit(0); exit(1);}
9010 if { (eval echo configure
:9011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9012 samba_cv_HAVE_BROKEN_READDIR
=yes
9014 echo "configure: failed program was:" >&5
9015 cat conftest.
$ac_ext >&5
9017 samba_cv_HAVE_BROKEN_READDIR
=no
9024 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9025 if test x
"$samba_cv_HAVE_BROKEN_READDIR" = x
"yes"; then
9026 cat >> confdefs.h
<<\EOF
9027 #define HAVE_BROKEN_READDIR 1
9032 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9033 echo "configure:9034: checking for utimbuf" >&5
9034 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9035 echo $ac_n "(cached) $ac_c" 1>&6
9038 cat > conftest.
$ac_ext <<EOF
9039 #line 9040 "configure"
9040 #include "confdefs.h"
9041 #include <sys/types.h>
9044 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9047 if { (eval echo configure
:9048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9049 samba_cv_HAVE_UTIMBUF
=yes
9051 echo "configure: failed program was:" >&5
9052 cat conftest.
$ac_ext >&5
9054 samba_cv_HAVE_UTIMBUF
=no
9059 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9060 if test x
"$samba_cv_HAVE_UTIMBUF" = x
"yes"; then
9061 cat >> confdefs.h
<<\EOF
9062 #define HAVE_UTIMBUF 1
9068 for ac_func
in pututline pututxline updwtmp updwtmpx getutmpx
9070 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9071 echo "configure:9072: checking for $ac_func" >&5
9072 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9073 echo $ac_n "(cached) $ac_c" 1>&6
9075 cat > conftest.
$ac_ext <<EOF
9076 #line 9077 "configure"
9077 #include "confdefs.h"
9078 /* System header to define __stub macros and hopefully few prototypes,
9079 which can conflict with char $ac_func(); below. */
9081 /* Override any gcc2 internal prototype to avoid an error. */
9082 /* We use char because int might match the return type of a gcc2
9083 builtin and then its argument prototype would still apply. */
9088 /* The GNU C library defines this for functions which it implements
9089 to always fail with ENOSYS. Some functions are actually named
9090 something starting with __ and the normal name is an alias. */
9091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9099 if { (eval echo configure
:9100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9101 eval "ac_cv_func_$ac_func=yes"
9103 echo "configure: failed program was:" >&5
9104 cat conftest.
$ac_ext >&5
9106 eval "ac_cv_func_$ac_func=no"
9111 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9112 echo "$ac_t""yes" 1>&6
9113 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9114 cat >> confdefs.h
<<EOF
9115 #define $ac_tr_func 1
9119 echo "$ac_t""no" 1>&6
9124 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9125 echo "configure:9126: checking for ut_name in utmp" >&5
9126 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9127 echo $ac_n "(cached) $ac_c" 1>&6
9130 cat > conftest.
$ac_ext <<EOF
9131 #line 9132 "configure"
9132 #include "confdefs.h"
9133 #include <sys/types.h>
9136 struct utmp ut; ut.ut_name[0] = 'a';
9139 if { (eval echo configure
:9140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9141 samba_cv_HAVE_UT_UT_NAME
=yes
9143 echo "configure: failed program was:" >&5
9144 cat conftest.
$ac_ext >&5
9146 samba_cv_HAVE_UT_UT_NAME
=no
9151 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9152 if test x
"$samba_cv_HAVE_UT_UT_NAME" = x
"yes"; then
9153 cat >> confdefs.h
<<\EOF
9154 #define HAVE_UT_UT_NAME 1
9159 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9160 echo "configure:9161: checking for ut_user in utmp" >&5
9161 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9162 echo $ac_n "(cached) $ac_c" 1>&6
9165 cat > conftest.
$ac_ext <<EOF
9166 #line 9167 "configure"
9167 #include "confdefs.h"
9168 #include <sys/types.h>
9171 struct utmp ut; ut.ut_user[0] = 'a';
9174 if { (eval echo configure
:9175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9176 samba_cv_HAVE_UT_UT_USER
=yes
9178 echo "configure: failed program was:" >&5
9179 cat conftest.
$ac_ext >&5
9181 samba_cv_HAVE_UT_UT_USER
=no
9186 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9187 if test x
"$samba_cv_HAVE_UT_UT_USER" = x
"yes"; then
9188 cat >> confdefs.h
<<\EOF
9189 #define HAVE_UT_UT_USER 1
9194 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9195 echo "configure:9196: checking for ut_id in utmp" >&5
9196 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9197 echo $ac_n "(cached) $ac_c" 1>&6
9200 cat > conftest.
$ac_ext <<EOF
9201 #line 9202 "configure"
9202 #include "confdefs.h"
9203 #include <sys/types.h>
9206 struct utmp ut; ut.ut_id[0] = 'a';
9209 if { (eval echo configure
:9210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9211 samba_cv_HAVE_UT_UT_ID
=yes
9213 echo "configure: failed program was:" >&5
9214 cat conftest.
$ac_ext >&5
9216 samba_cv_HAVE_UT_UT_ID
=no
9221 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9222 if test x
"$samba_cv_HAVE_UT_UT_ID" = x
"yes"; then
9223 cat >> confdefs.h
<<\EOF
9224 #define HAVE_UT_UT_ID 1
9229 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9230 echo "configure:9231: checking for ut_host in utmp" >&5
9231 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9232 echo $ac_n "(cached) $ac_c" 1>&6
9235 cat > conftest.
$ac_ext <<EOF
9236 #line 9237 "configure"
9237 #include "confdefs.h"
9238 #include <sys/types.h>
9241 struct utmp ut; ut.ut_host[0] = 'a';
9244 if { (eval echo configure
:9245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9246 samba_cv_HAVE_UT_UT_HOST
=yes
9248 echo "configure: failed program was:" >&5
9249 cat conftest.
$ac_ext >&5
9251 samba_cv_HAVE_UT_UT_HOST
=no
9256 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9257 if test x
"$samba_cv_HAVE_UT_UT_HOST" = x
"yes"; then
9258 cat >> confdefs.h
<<\EOF
9259 #define HAVE_UT_UT_HOST 1
9264 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9265 echo "configure:9266: checking for ut_time in utmp" >&5
9266 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9267 echo $ac_n "(cached) $ac_c" 1>&6
9270 cat > conftest.
$ac_ext <<EOF
9271 #line 9272 "configure"
9272 #include "confdefs.h"
9273 #include <sys/types.h>
9276 struct utmp ut; time_t t; ut.ut_time = t;
9279 if { (eval echo configure
:9280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9281 samba_cv_HAVE_UT_UT_TIME
=yes
9283 echo "configure: failed program was:" >&5
9284 cat conftest.
$ac_ext >&5
9286 samba_cv_HAVE_UT_UT_TIME
=no
9291 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9292 if test x
"$samba_cv_HAVE_UT_UT_TIME" = x
"yes"; then
9293 cat >> confdefs.h
<<\EOF
9294 #define HAVE_UT_UT_TIME 1
9299 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9300 echo "configure:9301: checking for ut_tv in utmp" >&5
9301 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9302 echo $ac_n "(cached) $ac_c" 1>&6
9305 cat > conftest.
$ac_ext <<EOF
9306 #line 9307 "configure"
9307 #include "confdefs.h"
9308 #include <sys/types.h>
9311 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9314 if { (eval echo configure
:9315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9316 samba_cv_HAVE_UT_UT_TV
=yes
9318 echo "configure: failed program was:" >&5
9319 cat conftest.
$ac_ext >&5
9321 samba_cv_HAVE_UT_UT_TV
=no
9326 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9327 if test x
"$samba_cv_HAVE_UT_UT_TV" = x
"yes"; then
9328 cat >> confdefs.h
<<\EOF
9329 #define HAVE_UT_UT_TV 1
9334 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9335 echo "configure:9336: checking for ut_type in utmp" >&5
9336 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9337 echo $ac_n "(cached) $ac_c" 1>&6
9340 cat > conftest.
$ac_ext <<EOF
9341 #line 9342 "configure"
9342 #include "confdefs.h"
9343 #include <sys/types.h>
9346 struct utmp ut; ut.ut_type = 0;
9349 if { (eval echo configure
:9350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9351 samba_cv_HAVE_UT_UT_TYPE
=yes
9353 echo "configure: failed program was:" >&5
9354 cat conftest.
$ac_ext >&5
9356 samba_cv_HAVE_UT_UT_TYPE
=no
9361 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9362 if test x
"$samba_cv_HAVE_UT_UT_TYPE" = x
"yes"; then
9363 cat >> confdefs.h
<<\EOF
9364 #define HAVE_UT_UT_TYPE 1
9369 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9370 echo "configure:9371: checking for ut_pid in utmp" >&5
9371 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9372 echo $ac_n "(cached) $ac_c" 1>&6
9375 cat > conftest.
$ac_ext <<EOF
9376 #line 9377 "configure"
9377 #include "confdefs.h"
9378 #include <sys/types.h>
9381 struct utmp ut; ut.ut_pid = 0;
9384 if { (eval echo configure
:9385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9386 samba_cv_HAVE_UT_UT_PID
=yes
9388 echo "configure: failed program was:" >&5
9389 cat conftest.
$ac_ext >&5
9391 samba_cv_HAVE_UT_UT_PID
=no
9396 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9397 if test x
"$samba_cv_HAVE_UT_UT_PID" = x
"yes"; then
9398 cat >> confdefs.h
<<\EOF
9399 #define HAVE_UT_UT_PID 1
9404 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9405 echo "configure:9406: checking for ut_exit in utmp" >&5
9406 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9407 echo $ac_n "(cached) $ac_c" 1>&6
9410 cat > conftest.
$ac_ext <<EOF
9411 #line 9412 "configure"
9412 #include "confdefs.h"
9413 #include <sys/types.h>
9416 struct utmp ut; ut.ut_exit.e_exit = 0;
9419 if { (eval echo configure
:9420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9421 samba_cv_HAVE_UT_UT_EXIT
=yes
9423 echo "configure: failed program was:" >&5
9424 cat conftest.
$ac_ext >&5
9426 samba_cv_HAVE_UT_UT_EXIT
=no
9431 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9432 if test x
"$samba_cv_HAVE_UT_UT_EXIT" = x
"yes"; then
9433 cat >> confdefs.h
<<\EOF
9434 #define HAVE_UT_UT_EXIT 1
9439 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9440 echo "configure:9441: checking for ut_addr in utmp" >&5
9441 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9442 echo $ac_n "(cached) $ac_c" 1>&6
9445 cat > conftest.
$ac_ext <<EOF
9446 #line 9447 "configure"
9447 #include "confdefs.h"
9448 #include <sys/types.h>
9451 struct utmp ut; ut.ut_addr = 0;
9454 if { (eval echo configure
:9455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9456 samba_cv_HAVE_UT_UT_ADDR
=yes
9458 echo "configure: failed program was:" >&5
9459 cat conftest.
$ac_ext >&5
9461 samba_cv_HAVE_UT_UT_ADDR
=no
9466 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9467 if test x
"$samba_cv_HAVE_UT_UT_ADDR" = x
"yes"; then
9468 cat >> confdefs.h
<<\EOF
9469 #define HAVE_UT_UT_ADDR 1
9474 if test x
$ac_cv_func_pututline = xyes
; then
9475 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9476 echo "configure:9477: checking whether pututline returns pointer" >&5
9477 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9478 echo $ac_n "(cached) $ac_c" 1>&6
9481 cat > conftest.
$ac_ext <<EOF
9482 #line 9483 "configure"
9483 #include "confdefs.h"
9484 #include <sys/types.h>
9487 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9490 if { (eval echo configure
:9491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9492 samba_cv_PUTUTLINE_RETURNS_UTMP
=yes
9494 echo "configure: failed program was:" >&5
9495 cat conftest.
$ac_ext >&5
9497 samba_cv_PUTUTLINE_RETURNS_UTMP
=no
9502 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9503 if test x
"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x
"yes"; then
9504 cat >> confdefs.h
<<\EOF
9505 #define PUTUTLINE_RETURNS_UTMP 1
9511 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9512 echo "configure:9513: checking for ut_syslen in utmpx" >&5
9513 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9514 echo $ac_n "(cached) $ac_c" 1>&6
9517 cat > conftest.
$ac_ext <<EOF
9518 #line 9519 "configure"
9519 #include "confdefs.h"
9520 #include <sys/types.h>
9523 struct utmpx ux; ux.ut_syslen = 0;
9526 if { (eval echo configure
:9527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9528 samba_cv_HAVE_UX_UT_SYSLEN
=yes
9530 echo "configure: failed program was:" >&5
9531 cat conftest.
$ac_ext >&5
9533 samba_cv_HAVE_UX_UT_SYSLEN
=no
9538 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9539 if test x
"$samba_cv_HAVE_UX_UT_SYSLEN" = x
"yes"; then
9540 cat >> confdefs.h
<<\EOF
9541 #define HAVE_UX_UT_SYSLEN 1
9546 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9547 echo "configure:9548: checking for Linux kernel oplocks" >&5
9548 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9549 echo $ac_n "(cached) $ac_c" 1>&6
9552 if test "$cross_compiling" = yes; then
9553 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=cross
9555 cat > conftest.
$ac_ext <<EOF
9556 #line 9557 "configure"
9557 #include "confdefs.h"
9559 #include <sys/types.h>
9562 #define F_GETLEASE 1025
9565 int fd = open("/dev/null", O_RDONLY);
9566 return fcntl(fd, F_GETLEASE, 0) == -1;
9570 if { (eval echo configure
:9571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9572 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=yes
9574 echo "configure: failed program was:" >&5
9575 cat conftest.
$ac_ext >&5
9577 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX
=no
9584 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9585 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x
"yes"; then
9586 cat >> confdefs.h
<<\EOF
9587 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9592 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9593 echo "configure:9594: checking for kernel change notify support" >&5
9594 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9595 echo $ac_n "(cached) $ac_c" 1>&6
9598 if test "$cross_compiling" = yes; then
9599 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=cross
9601 cat > conftest.
$ac_ext <<EOF
9602 #line 9603 "configure"
9603 #include "confdefs.h"
9605 #include <sys/types.h>
9609 #define F_NOTIFY 1026
9612 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9616 if { (eval echo configure
:9617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9618 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=yes
9620 echo "configure: failed program was:" >&5
9621 cat conftest.
$ac_ext >&5
9623 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY
=no
9630 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9631 if test x
"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x
"yes"; then
9632 cat >> confdefs.h
<<\EOF
9633 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9638 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9639 echo "configure:9640: checking for kernel share modes" >&5
9640 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9641 echo $ac_n "(cached) $ac_c" 1>&6
9644 if test "$cross_compiling" = yes; then
9645 samba_cv_HAVE_KERNEL_SHARE_MODES
=cross
9647 cat > conftest.
$ac_ext <<EOF
9648 #line 9649 "configure"
9649 #include "confdefs.h"
9651 #include <sys/types.h>
9654 #include <sys/file.h>
9656 #define LOCK_MAND 32
9657 #define LOCK_READ 64
9660 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9664 if { (eval echo configure
:9665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9666 samba_cv_HAVE_KERNEL_SHARE_MODES
=yes
9668 echo "configure: failed program was:" >&5
9669 cat conftest.
$ac_ext >&5
9671 samba_cv_HAVE_KERNEL_SHARE_MODES
=no
9678 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9679 if test x
"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x
"yes"; then
9680 cat >> confdefs.h
<<\EOF
9681 #define HAVE_KERNEL_SHARE_MODES 1
9689 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9690 echo "configure:9691: checking for IRIX kernel oplock type definitions" >&5
9691 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9692 echo $ac_n "(cached) $ac_c" 1>&6
9695 cat > conftest.
$ac_ext <<EOF
9696 #line 9697 "configure"
9697 #include "confdefs.h"
9698 #include <sys/types.h>
9701 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9704 if { (eval echo configure
:9705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9706 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=yes
9708 echo "configure: failed program was:" >&5
9709 cat conftest.
$ac_ext >&5
9711 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX
=no
9716 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9717 if test x
"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x
"yes"; then
9718 cat >> confdefs.h
<<\EOF
9719 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9724 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9725 echo "configure:9726: checking for irix specific capabilities" >&5
9726 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9727 echo $ac_n "(cached) $ac_c" 1>&6
9730 if test "$cross_compiling" = yes; then
9731 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=cross
9733 cat > conftest.
$ac_ext <<EOF
9734 #line 9735 "configure"
9735 #include "confdefs.h"
9736 #include <sys/types.h>
9737 #include <sys/capability.h>
9740 if ((cap = cap_get_proc()) == NULL)
9742 cap->cap_effective |= CAP_NETWORK_MGT;
9743 cap->cap_inheritable |= CAP_NETWORK_MGT;
9749 if { (eval echo configure
:9750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9751 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=yes
9753 echo "configure: failed program was:" >&5
9754 cat conftest.
$ac_ext >&5
9756 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES
=no
9763 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9764 if test x
"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x
"yes"; then
9765 cat >> confdefs.h
<<\EOF
9766 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9772 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9773 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9776 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9777 echo "configure:9778: checking for int16 typedef included by rpc/rpc.h" >&5
9778 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9779 echo $ac_n "(cached) $ac_c" 1>&6
9782 cat > conftest.
$ac_ext <<EOF
9783 #line 9784 "configure"
9784 #include "confdefs.h"
9785 #include <sys/types.h>
9786 #if defined(HAVE_RPC_RPC_H)
9787 #include <rpc/rpc.h>
9793 if { (eval echo configure
:9794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9795 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=yes
9797 echo "configure: failed program was:" >&5
9798 cat conftest.
$ac_ext >&5
9800 samba_cv_HAVE_INT16_FROM_RPC_RPC_H
=no
9805 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9806 if test x
"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x
"yes"; then
9807 cat >> confdefs.h
<<\EOF
9808 #define HAVE_INT16_FROM_RPC_RPC_H 1
9813 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9814 echo "configure:9815: checking for uint16 typedef included by rpc/rpc.h" >&5
9815 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9816 echo $ac_n "(cached) $ac_c" 1>&6
9819 cat > conftest.
$ac_ext <<EOF
9820 #line 9821 "configure"
9821 #include "confdefs.h"
9822 #include <sys/types.h>
9823 #if defined(HAVE_RPC_RPC_H)
9824 #include <rpc/rpc.h>
9830 if { (eval echo configure
:9831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9832 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=yes
9834 echo "configure: failed program was:" >&5
9835 cat conftest.
$ac_ext >&5
9837 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H
=no
9842 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9843 if test x
"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x
"yes"; then
9844 cat >> confdefs.h
<<\EOF
9845 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9850 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9851 echo "configure:9852: checking for int32 typedef included by rpc/rpc.h" >&5
9852 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9853 echo $ac_n "(cached) $ac_c" 1>&6
9856 cat > conftest.
$ac_ext <<EOF
9857 #line 9858 "configure"
9858 #include "confdefs.h"
9859 #include <sys/types.h>
9860 #if defined(HAVE_RPC_RPC_H)
9861 #include <rpc/rpc.h>
9867 if { (eval echo configure
:9868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9869 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=yes
9871 echo "configure: failed program was:" >&5
9872 cat conftest.
$ac_ext >&5
9874 samba_cv_HAVE_INT32_FROM_RPC_RPC_H
=no
9879 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
9880 if test x
"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x
"yes"; then
9881 cat >> confdefs.h
<<\EOF
9882 #define HAVE_INT32_FROM_RPC_RPC_H 1
9887 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9888 echo "configure:9889: checking for uint32 typedef included by rpc/rpc.h" >&5
9889 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9890 echo $ac_n "(cached) $ac_c" 1>&6
9893 cat > conftest.
$ac_ext <<EOF
9894 #line 9895 "configure"
9895 #include "confdefs.h"
9896 #include <sys/types.h>
9897 #if defined(HAVE_RPC_RPC_H)
9898 #include <rpc/rpc.h>
9904 if { (eval echo configure
:9905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9906 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=yes
9908 echo "configure: failed program was:" >&5
9909 cat conftest.
$ac_ext >&5
9911 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H
=no
9916 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
9917 if test x
"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x
"yes"; then
9918 cat >> confdefs.h
<<\EOF
9919 #define HAVE_UINT32_FROM_RPC_RPC_H 1
9925 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
9926 echo "configure:9927: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
9927 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
9928 echo $ac_n "(cached) $ac_c" 1>&6
9931 cat > conftest.
$ac_ext <<EOF
9932 #line 9933 "configure"
9933 #include "confdefs.h"
9934 #include <sys/types.h>
9935 #ifdef HAVE_SYS_SECURITY_H
9936 #include <sys/security.h>
9938 #endif /* HAVE_SYS_SECURITY_H */
9939 #if defined(HAVE_RPC_RPC_H)
9940 #include <rpc/rpc.h>
9946 if { (eval echo configure
:9947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9948 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=no
9950 echo "configure: failed program was:" >&5
9951 cat conftest.
$ac_ext >&5
9953 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT
=yes
9958 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
9959 if test x
"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x
"yes"; then
9960 cat >> confdefs.h
<<\EOF
9961 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
9966 echo $ac_n "checking for test routines""... $ac_c" 1>&6
9967 echo "configure:9968: checking for test routines" >&5
9968 if test "$cross_compiling" = yes; then
9969 echo "configure: warning: cannot run when cross-compiling" 1>&2
9971 cat > conftest.
$ac_ext <<EOF
9972 #line 9973 "configure"
9973 #include "confdefs.h"
9974 #include "${srcdir-.}/tests/trivial.c"
9976 if { (eval echo configure
:9977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9978 echo "$ac_t""yes" 1>&6
9980 echo "configure: failed program was:" >&5
9981 cat conftest.
$ac_ext >&5
9983 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
9989 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
9990 echo "configure:9991: checking for ftruncate extend" >&5
9991 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
9992 echo $ac_n "(cached) $ac_c" 1>&6
9995 if test "$cross_compiling" = yes; then
9996 samba_cv_HAVE_FTRUNCATE_EXTEND
=cross
9998 cat > conftest.
$ac_ext <<EOF
9999 #line 10000 "configure"
10000 #include "confdefs.h"
10001 #include "${srcdir-.}/tests/ftruncate.c"
10003 if { (eval echo configure
:10004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10005 samba_cv_HAVE_FTRUNCATE_EXTEND
=yes
10007 echo "configure: failed program was:" >&5
10008 cat conftest.
$ac_ext >&5
10010 samba_cv_HAVE_FTRUNCATE_EXTEND
=no
10017 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10018 if test x
"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x
"yes"; then
10019 cat >> confdefs.h
<<\EOF
10020 #define HAVE_FTRUNCATE_EXTEND 1
10025 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10026 echo "configure:10027: checking for broken getgroups" >&5
10027 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10028 echo $ac_n "(cached) $ac_c" 1>&6
10031 if test "$cross_compiling" = yes; then
10032 samba_cv_HAVE_BROKEN_GETGROUPS
=cross
10034 cat > conftest.
$ac_ext <<EOF
10035 #line 10036 "configure"
10036 #include "confdefs.h"
10037 #include "${srcdir-.}/tests/getgroups.c"
10039 if { (eval echo configure
:10040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10041 samba_cv_HAVE_BROKEN_GETGROUPS
=yes
10043 echo "configure: failed program was:" >&5
10044 cat conftest.
$ac_ext >&5
10046 samba_cv_HAVE_BROKEN_GETGROUPS
=no
10053 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10054 if test x
"$samba_cv_HAVE_BROKEN_GETGROUPS" = x
"yes"; then
10055 cat >> confdefs.h
<<\EOF
10056 #define HAVE_BROKEN_GETGROUPS 1
10061 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10062 echo "configure:10063: checking whether getpass should be replaced" >&5
10063 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10064 echo $ac_n "(cached) $ac_c" 1>&6
10067 SAVE_CPPFLAGS
="$CPPFLAGS"
10068 CPPFLAGS
="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10069 cat > conftest.
$ac_ext <<EOF
10070 #line 10071 "configure"
10071 #include "confdefs.h"
10073 #define REPLACE_GETPASS 1
10074 #define NO_CONFIG_H 1
10075 #define main dont_declare_main
10076 #include "${srcdir-.}/lib/getsmbpass.c"
10083 if { (eval echo configure
:10084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10085 samba_cv_REPLACE_GETPASS
=yes
10087 echo "configure: failed program was:" >&5
10088 cat conftest.
$ac_ext >&5
10090 samba_cv_REPLACE_GETPASS
=no
10093 CPPFLAGS
="$SAVE_CPPFLAGS"
10097 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10098 if test x
"$samba_cv_REPLACE_GETPASS" = x
"yes"; then
10099 cat >> confdefs.h
<<\EOF
10100 #define REPLACE_GETPASS 1
10105 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10106 echo "configure:10107: checking for broken inet_ntoa" >&5
10107 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10108 echo $ac_n "(cached) $ac_c" 1>&6
10111 if test "$cross_compiling" = yes; then
10112 samba_cv_REPLACE_INET_NTOA
=cross
10114 cat > conftest.
$ac_ext <<EOF
10115 #line 10116 "configure"
10116 #include "confdefs.h"
10119 #include <sys/types.h>
10120 #include <netinet/in.h>
10121 #ifdef HAVE_ARPA_INET_H
10122 #include <arpa/inet.h>
10124 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10125 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10126 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10129 if { (eval echo configure
:10130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10131 samba_cv_REPLACE_INET_NTOA
=yes
10133 echo "configure: failed program was:" >&5
10134 cat conftest.
$ac_ext >&5
10136 samba_cv_REPLACE_INET_NTOA
=no
10143 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10144 if test x
"$samba_cv_REPLACE_INET_NTOA" = x
"yes"; then
10145 cat >> confdefs.h
<<\EOF
10146 #define REPLACE_INET_NTOA 1
10151 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10152 echo "configure:10153: checking for secure mkstemp" >&5
10153 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10154 echo $ac_n "(cached) $ac_c" 1>&6
10157 if test "$cross_compiling" = yes; then
10158 samba_cv_HAVE_SECURE_MKSTEMP
=cross
10160 cat > conftest.
$ac_ext <<EOF
10161 #line 10162 "configure"
10162 #include "confdefs.h"
10163 #include <stdlib.h>
10164 #include <sys/types.h>
10165 #include <sys/stat.h>
10166 #include <unistd.h>
10169 char tpl[20]="/tmp/test.XXXXXX";
10170 int fd = mkstemp(tpl);
10171 if (fd == -1) exit(1);
10173 if (fstat(fd, &st) != 0) exit(1);
10174 if ((st.st_mode & 0777) != 0600) exit(1);
10178 if { (eval echo configure
:10179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10180 samba_cv_HAVE_SECURE_MKSTEMP
=yes
10182 echo "configure: failed program was:" >&5
10183 cat conftest.
$ac_ext >&5
10185 samba_cv_HAVE_SECURE_MKSTEMP
=no
10192 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10193 if test x
"$samba_cv_HAVE_SECURE_MKSTEMP" = x
"yes"; then
10194 cat >> confdefs.h
<<\EOF
10195 #define HAVE_SECURE_MKSTEMP 1
10200 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10201 echo "configure:10202: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10202 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10203 echo $ac_n "(cached) $ac_c" 1>&6
10206 if test "$cross_compiling" = yes; then
10207 samba_cv_SYSCONF_SC_NGROUPS_MAX
=cross
10209 cat > conftest.
$ac_ext <<EOF
10210 #line 10211 "configure"
10211 #include "confdefs.h"
10212 #include <unistd.h>
10213 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10215 if { (eval echo configure
:10216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10217 samba_cv_SYSCONF_SC_NGROUPS_MAX
=yes
10219 echo "configure: failed program was:" >&5
10220 cat conftest.
$ac_ext >&5
10222 samba_cv_SYSCONF_SC_NGROUPS_MAX
=no
10229 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10230 if test x
"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x
"yes"; then
10231 cat >> confdefs.h
<<\EOF
10232 #define SYSCONF_SC_NGROUPS_MAX 1
10237 echo $ac_n "checking for root""... $ac_c" 1>&6
10238 echo "configure:10239: checking for root" >&5
10239 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10240 echo $ac_n "(cached) $ac_c" 1>&6
10243 if test "$cross_compiling" = yes; then
10244 samba_cv_HAVE_ROOT
=cross
10246 cat > conftest.
$ac_ext <<EOF
10247 #line 10248 "configure"
10248 #include "confdefs.h"
10249 main() { exit(getuid() != 0); }
10251 if { (eval echo configure
:10252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10253 samba_cv_HAVE_ROOT
=yes
10255 echo "configure: failed program was:" >&5
10256 cat conftest.
$ac_ext >&5
10258 samba_cv_HAVE_ROOT
=no
10265 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10266 if test x
"$samba_cv_HAVE_ROOT" = x
"yes"; then
10267 cat >> confdefs.h
<<\EOF
10268 #define HAVE_ROOT 1
10272 echo "configure: warning: running as non-root will disable some tests" 1>&2
10276 # look for a method of finding the list of network interfaces
10278 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10279 echo "configure:10280: checking for iface AIX" >&5
10280 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10281 echo $ac_n "(cached) $ac_c" 1>&6
10284 if test "$cross_compiling" = yes; then
10285 samba_cv_HAVE_IFACE_AIX
=cross
10287 cat > conftest.
$ac_ext <<EOF
10288 #line 10289 "configure"
10289 #include "confdefs.h"
10291 #define HAVE_IFACE_AIX 1
10292 #define AUTOCONF_TEST 1
10293 #include "confdefs.h"
10294 #include "${srcdir-.}/lib/interfaces.c"
10296 if { (eval echo configure
:10297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10298 samba_cv_HAVE_IFACE_AIX
=yes
10300 echo "configure: failed program was:" >&5
10301 cat conftest.
$ac_ext >&5
10303 samba_cv_HAVE_IFACE_AIX
=no
10310 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10311 if test x
"$samba_cv_HAVE_IFACE_AIX" = x
"yes"; then
10312 iface
=yes;cat >> confdefs.h
<<\EOF
10313 #define HAVE_IFACE_AIX 1
10318 if test $iface = no
; then
10319 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10320 echo "configure:10321: checking for iface ifconf" >&5
10321 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10322 echo $ac_n "(cached) $ac_c" 1>&6
10325 if test "$cross_compiling" = yes; then
10326 samba_cv_HAVE_IFACE_IFCONF
=cross
10328 cat > conftest.
$ac_ext <<EOF
10329 #line 10330 "configure"
10330 #include "confdefs.h"
10332 #define HAVE_IFACE_IFCONF 1
10333 #define AUTOCONF_TEST 1
10334 #include "confdefs.h"
10335 #include "${srcdir-.}/lib/interfaces.c"
10337 if { (eval echo configure
:10338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10339 samba_cv_HAVE_IFACE_IFCONF
=yes
10341 echo "configure: failed program was:" >&5
10342 cat conftest.
$ac_ext >&5
10344 samba_cv_HAVE_IFACE_IFCONF
=no
10351 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10352 if test x
"$samba_cv_HAVE_IFACE_IFCONF" = x
"yes"; then
10353 iface
=yes;cat >> confdefs.h
<<\EOF
10354 #define HAVE_IFACE_IFCONF 1
10360 if test $iface = no
; then
10361 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10362 echo "configure:10363: checking for iface ifreq" >&5
10363 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10364 echo $ac_n "(cached) $ac_c" 1>&6
10367 if test "$cross_compiling" = yes; then
10368 samba_cv_HAVE_IFACE_IFREQ
=cross
10370 cat > conftest.
$ac_ext <<EOF
10371 #line 10372 "configure"
10372 #include "confdefs.h"
10374 #define HAVE_IFACE_IFREQ 1
10375 #define AUTOCONF_TEST 1
10376 #include "confdefs.h"
10377 #include "${srcdir-.}/lib/interfaces.c"
10379 if { (eval echo configure
:10380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10381 samba_cv_HAVE_IFACE_IFREQ
=yes
10383 echo "configure: failed program was:" >&5
10384 cat conftest.
$ac_ext >&5
10386 samba_cv_HAVE_IFACE_IFREQ
=no
10393 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10394 if test x
"$samba_cv_HAVE_IFACE_IFREQ" = x
"yes"; then
10395 iface
=yes;cat >> confdefs.h
<<\EOF
10396 #define HAVE_IFACE_IFREQ 1
10403 ################################################
10404 # look for a method of setting the effective uid
10406 if test $seteuid = no
; then
10407 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10408 echo "configure:10409: checking for setresuid" >&5
10409 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10410 echo $ac_n "(cached) $ac_c" 1>&6
10413 if test "$cross_compiling" = yes; then
10414 samba_cv_USE_SETRESUID
=cross
10416 cat > conftest.
$ac_ext <<EOF
10417 #line 10418 "configure"
10418 #include "confdefs.h"
10420 #define AUTOCONF_TEST 1
10421 #define USE_SETRESUID 1
10422 #include "confdefs.h"
10423 #include "${srcdir-.}/lib/util_sec.c"
10425 if { (eval echo configure
:10426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10427 samba_cv_USE_SETRESUID
=yes
10429 echo "configure: failed program was:" >&5
10430 cat conftest.
$ac_ext >&5
10432 samba_cv_USE_SETRESUID
=no
10439 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10440 if test x
"$samba_cv_USE_SETRESUID" = x
"yes"; then
10441 seteuid
=yes;cat >> confdefs.h
<<\EOF
10442 #define USE_SETRESUID 1
10449 if test $seteuid = no
; then
10450 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10451 echo "configure:10452: checking for setreuid" >&5
10452 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10453 echo $ac_n "(cached) $ac_c" 1>&6
10456 if test "$cross_compiling" = yes; then
10457 samba_cv_USE_SETREUID
=cross
10459 cat > conftest.
$ac_ext <<EOF
10460 #line 10461 "configure"
10461 #include "confdefs.h"
10463 #define AUTOCONF_TEST 1
10464 #define USE_SETREUID 1
10465 #include "confdefs.h"
10466 #include "${srcdir-.}/lib/util_sec.c"
10468 if { (eval echo configure
:10469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10470 samba_cv_USE_SETREUID
=yes
10472 echo "configure: failed program was:" >&5
10473 cat conftest.
$ac_ext >&5
10475 samba_cv_USE_SETREUID
=no
10482 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10483 if test x
"$samba_cv_USE_SETREUID" = x
"yes"; then
10484 seteuid
=yes;cat >> confdefs.h
<<\EOF
10485 #define USE_SETREUID 1
10491 if test $seteuid = no
; then
10492 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10493 echo "configure:10494: checking for seteuid" >&5
10494 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10495 echo $ac_n "(cached) $ac_c" 1>&6
10498 if test "$cross_compiling" = yes; then
10499 samba_cv_USE_SETEUID
=cross
10501 cat > conftest.
$ac_ext <<EOF
10502 #line 10503 "configure"
10503 #include "confdefs.h"
10505 #define AUTOCONF_TEST 1
10506 #define USE_SETEUID 1
10507 #include "confdefs.h"
10508 #include "${srcdir-.}/lib/util_sec.c"
10510 if { (eval echo configure
:10511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10512 samba_cv_USE_SETEUID
=yes
10514 echo "configure: failed program was:" >&5
10515 cat conftest.
$ac_ext >&5
10517 samba_cv_USE_SETEUID
=no
10524 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10525 if test x
"$samba_cv_USE_SETEUID" = x
"yes"; then
10526 seteuid
=yes;cat >> confdefs.h
<<\EOF
10527 #define USE_SETEUID 1
10533 if test $seteuid = no
; then
10534 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10535 echo "configure:10536: checking for setuidx" >&5
10536 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10537 echo $ac_n "(cached) $ac_c" 1>&6
10540 if test "$cross_compiling" = yes; then
10541 samba_cv_USE_SETUIDX
=cross
10543 cat > conftest.
$ac_ext <<EOF
10544 #line 10545 "configure"
10545 #include "confdefs.h"
10547 #define AUTOCONF_TEST 1
10548 #define USE_SETUIDX 1
10549 #include "confdefs.h"
10550 #include "${srcdir-.}/lib/util_sec.c"
10552 if { (eval echo configure
:10553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10554 samba_cv_USE_SETUIDX
=yes
10556 echo "configure: failed program was:" >&5
10557 cat conftest.
$ac_ext >&5
10559 samba_cv_USE_SETUIDX
=no
10566 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10567 if test x
"$samba_cv_USE_SETUIDX" = x
"yes"; then
10568 seteuid
=yes;cat >> confdefs.h
<<\EOF
10569 #define USE_SETUIDX 1
10576 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10577 echo "configure:10578: checking for working mmap" >&5
10578 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10579 echo $ac_n "(cached) $ac_c" 1>&6
10582 if test "$cross_compiling" = yes; then
10583 samba_cv_HAVE_MMAP
=cross
10585 cat > conftest.
$ac_ext <<EOF
10586 #line 10587 "configure"
10587 #include "confdefs.h"
10588 #include "${srcdir-.}/tests/shared_mmap.c"
10590 if { (eval echo configure
:10591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10592 samba_cv_HAVE_MMAP
=yes
10594 echo "configure: failed program was:" >&5
10595 cat conftest.
$ac_ext >&5
10597 samba_cv_HAVE_MMAP
=no
10604 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10605 if test x
"$samba_cv_HAVE_MMAP" = x
"yes"; then
10606 cat >> confdefs.h
<<\EOF
10607 #define HAVE_MMAP 1
10612 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10613 echo "configure:10614: checking for ftruncate needs root" >&5
10614 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10615 echo $ac_n "(cached) $ac_c" 1>&6
10618 if test "$cross_compiling" = yes; then
10619 samba_cv_FTRUNCATE_NEEDS_ROOT
=cross
10621 cat > conftest.
$ac_ext <<EOF
10622 #line 10623 "configure"
10623 #include "confdefs.h"
10624 #include "${srcdir-.}/tests/ftruncroot.c"
10626 if { (eval echo configure
:10627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10628 samba_cv_FTRUNCATE_NEEDS_ROOT
=yes
10630 echo "configure: failed program was:" >&5
10631 cat conftest.
$ac_ext >&5
10633 samba_cv_FTRUNCATE_NEEDS_ROOT
=no
10640 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10641 if test x
"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x
"yes"; then
10642 cat >> confdefs.h
<<\EOF
10643 #define FTRUNCATE_NEEDS_ROOT 1
10648 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10649 echo "configure:10650: checking for fcntl locking" >&5
10650 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10651 echo $ac_n "(cached) $ac_c" 1>&6
10654 if test "$cross_compiling" = yes; then
10655 samba_cv_HAVE_FCNTL_LOCK
=cross
10657 cat > conftest.
$ac_ext <<EOF
10658 #line 10659 "configure"
10659 #include "confdefs.h"
10660 #include "${srcdir-.}/tests/fcntl_lock.c"
10662 if { (eval echo configure
:10663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10664 samba_cv_HAVE_FCNTL_LOCK
=yes
10666 echo "configure: failed program was:" >&5
10667 cat conftest.
$ac_ext >&5
10669 samba_cv_HAVE_FCNTL_LOCK
=no
10676 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10677 if test x
"$samba_cv_HAVE_FCNTL_LOCK" = x
"yes"; then
10678 cat >> confdefs.h
<<\EOF
10679 #define HAVE_FCNTL_LOCK 1
10684 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10685 echo "configure:10686: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10686 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10687 echo $ac_n "(cached) $ac_c" 1>&6
10690 if test "$cross_compiling" = yes; then
10691 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=cross
10693 cat > conftest.
$ac_ext <<EOF
10694 #line 10695 "configure"
10695 #include "confdefs.h"
10696 #include "${srcdir-.}/tests/fcntl_lock64.c"
10698 if { (eval echo configure
:10699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10700 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=yes
10702 echo "configure: failed program was:" >&5
10703 cat conftest.
$ac_ext >&5
10705 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS
=no
10712 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10713 if test x
"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x
"yes"; then
10714 cat >> confdefs.h
<<\EOF
10715 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10722 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10723 echo "configure:10724: checking for 64 bit fcntl locking" >&5
10724 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10725 echo $ac_n "(cached) $ac_c" 1>&6
10728 if test "$cross_compiling" = yes; then
10729 samba_cv_HAVE_STRUCT_FLOCK64
=cross
10731 cat > conftest.
$ac_ext <<EOF
10732 #line 10733 "configure"
10733 #include "confdefs.h"
10735 #if defined(HAVE_UNISTD_H)
10736 #include <unistd.h>
10739 #include <stdlib.h>
10741 #ifdef HAVE_FCNTL_H
10745 #ifdef HAVE_SYS_FCNTL_H
10746 #include <sys/fcntl.h>
10748 main() { struct flock64 fl64;
10749 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10756 if { (eval echo configure
:10757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
10758 samba_cv_HAVE_STRUCT_FLOCK64
=yes
10760 echo "configure: failed program was:" >&5
10761 cat conftest.
$ac_ext >&5
10763 samba_cv_HAVE_STRUCT_FLOCK64
=no
10770 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10772 if test x
"$samba_cv_HAVE_STRUCT_FLOCK64" = x
"yes"; then
10773 cat >> confdefs.h
<<\EOF
10774 #define HAVE_STRUCT_FLOCK64 1
10780 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10781 echo "configure:10782: checking for broken nisplus include files" >&5
10782 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10783 echo $ac_n "(cached) $ac_c" 1>&6
10786 cat > conftest.
$ac_ext <<EOF
10787 #line 10788 "configure"
10788 #include "confdefs.h"
10789 #include <sys/acl.h>
10790 #if defined(HAVE_RPCSVC_NIS_H)
10791 #include <rpcsvc/nis.h>
10797 if { (eval echo configure
:10798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10799 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=no
10801 echo "configure: failed program was:" >&5
10802 cat conftest.
$ac_ext >&5
10804 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES
=yes
10809 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10810 if test x
"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x
"yes"; then
10811 cat >> confdefs.h
<<\EOF
10812 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10818 #################################################
10819 # check for smbwrapper support
10820 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10821 echo "configure:10822: checking whether to use smbwrapper" >&5
10822 # Check whether --with-smbwrapper or --without-smbwrapper was given.
10823 if test "${with_smbwrapper+set}" = set; then
10824 withval
="$with_smbwrapper"
10827 echo "$ac_t""yes" 1>&6
10828 cat >> confdefs.h
<<\EOF
10829 #define WITH_SMBWRAPPER 1
10832 WRAP
="bin/smbsh bin/smbwrapper.$SHLIBEXT"
10834 if test x
$ATTEMPT_WRAP32_BUILD = x
; then
10837 WRAP32
=bin
/smbwrapper
.32.
$SHLIBEXT
10840 # Conditions under which smbwrapper should not be built.
10842 if test x
$PICFLAG = x
; then
10843 echo No support
for PIC code
- disabling smbwrapper and smbsh
10846 elif test x
$ac_cv_func_syscall = xno
; then
10847 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
10853 echo "$ac_t""no" 1>&6
10857 echo "$ac_t""no" 1>&6
10862 #################################################
10863 # check for the AFS filesystem
10864 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
10865 echo "configure:10866: checking whether to use AFS" >&5
10866 # Check whether --with-afs or --without-afs was given.
10867 if test "${with_afs+set}" = set; then
10868 withval
="$with_afs"
10871 echo "$ac_t""yes" 1>&6
10872 cat >> confdefs.h
<<\EOF
10878 echo "$ac_t""no" 1>&6
10882 echo "$ac_t""no" 1>&6
10888 #################################################
10889 # check for the DFS auth system
10890 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
10891 echo "configure:10892: checking whether to use DCE/DFS auth" >&5
10892 # Check whether --with-dfs or --without-dfs was given.
10893 if test "${with_dfs+set}" = set; then
10894 withval
="$with_dfs"
10897 echo "$ac_t""yes" 1>&6
10898 cat >> confdefs.h
<<\EOF
10904 echo "$ac_t""no" 1>&6
10908 echo "$ac_t""no" 1>&6
10913 #################################################
10914 # check for Kerberos IV auth system
10915 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
10916 echo "configure:10917: checking whether to use Kerberos IV" >&5
10917 # Check whether --with-krb4 or --without-krb4 was given.
10918 if test "${with_krb4+set}" = set; then
10919 withval
="$with_krb4"
10922 echo "$ac_t""yes" 1>&6
10923 cat >> confdefs.h
<<\EOF
10924 #define KRB4_AUTH 1
10927 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
10928 echo "configure:10929: checking for dn_expand in -lresolv" >&5
10929 ac_lib_var
=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
10930 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10931 echo $ac_n "(cached) $ac_c" 1>&6
10933 ac_save_LIBS
="$LIBS"
10934 LIBS
="-lresolv $LIBS"
10935 cat > conftest.
$ac_ext <<EOF
10936 #line 10937 "configure"
10937 #include "confdefs.h"
10938 /* Override any gcc2 internal prototype to avoid an error. */
10939 /* We use char because int might match the return type of a gcc2
10940 builtin and then its argument prototype would still apply. */
10947 if { (eval echo configure
:10948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10949 eval "ac_cv_lib_$ac_lib_var=yes"
10951 echo "configure: failed program was:" >&5
10952 cat conftest.
$ac_ext >&5
10954 eval "ac_cv_lib_$ac_lib_var=no"
10957 LIBS
="$ac_save_LIBS"
10960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10961 echo "$ac_t""yes" 1>&6
10962 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10963 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10964 cat >> confdefs.h
<<EOF
10965 #define $ac_tr_lib 1
10968 LIBS
="-lresolv $LIBS"
10971 echo "$ac_t""no" 1>&6
10974 LIBS
="$LIBS -lkrb -ldes"
10975 CFLAGS
="$CFLAGS -I$withval/include"
10976 LDFLAGS
="$LDFLAGS -L$withval/lib"
10979 echo "$ac_t""no" 1>&6
10983 echo "$ac_t""no" 1>&6
10988 #################################################
10989 # check for Kerberos 5 auth system
10990 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
10991 echo "configure:10992: checking whether to use Kerberos 5" >&5
10992 # Check whether --with-krb5 or --without-krb5 was given.
10993 if test "${with_krb5+set}" = set; then
10994 withval
="$with_krb5"
10997 echo "$ac_t""yes" 1>&6
10998 cat >> confdefs.h
<<\EOF
10999 #define KRB5_AUTH 1
11002 LIBS
="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11003 CFLAGS
="$CFLAGS -I$withval/include"
11004 LDFLAGS
="$LDFLAGS -L$withval/lib"
11007 echo "$ac_t""no" 1>&6
11011 echo "$ac_t""no" 1>&6
11016 #################################################
11017 # check for automount support
11018 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11019 echo "configure:11020: checking whether to use AUTOMOUNT" >&5
11020 # Check whether --with-automount or --without-automount was given.
11021 if test "${with_automount+set}" = set; then
11022 withval
="$with_automount"
11025 echo "$ac_t""yes" 1>&6
11026 cat >> confdefs.h
<<\EOF
11027 #define WITH_AUTOMOUNT 1
11032 echo "$ac_t""no" 1>&6
11036 echo "$ac_t""no" 1>&6
11041 #################################################
11042 # check for smbmount support
11043 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11044 echo "configure:11045: checking whether to use SMBMOUNT" >&5
11045 # Check whether --with-smbmount or --without-smbmount was given.
11046 if test "${with_smbmount+set}" = set; then
11047 withval
="$with_smbmount"
11050 echo "$ac_t""yes" 1>&6
11051 cat >> confdefs.h
<<\EOF
11052 #define WITH_SMBMOUNT 1
11055 MPROGS
="bin/smbmount bin/smbmnt bin/smbumount"
11058 echo "$ac_t""no" 1>&6
11063 echo "$ac_t""no" 1>&6
11070 #################################################
11071 # check for a PAM password database
11072 with_pam_for_crypt
=no
11073 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11074 echo "configure:11075: checking whether to use PAM password database" >&5
11075 # Check whether --with-pam or --without-pam was given.
11076 if test "${with_pam+set}" = set; then
11077 withval
="$with_pam"
11080 echo "$ac_t""yes" 1>&6
11081 cat >> confdefs.h
<<\EOF
11086 with_pam_for_crypt
=yes
11089 echo "$ac_t""no" 1>&6
11093 echo "$ac_t""no" 1>&6
11098 # we can't build a pam module if we don't have pam.
11099 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11100 echo "configure:11101: checking for pam_get_data in -lpam" >&5
11101 ac_lib_var
=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11102 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11103 echo $ac_n "(cached) $ac_c" 1>&6
11105 ac_save_LIBS
="$LIBS"
11107 cat > conftest.
$ac_ext <<EOF
11108 #line 11109 "configure"
11109 #include "confdefs.h"
11110 /* Override any gcc2 internal prototype to avoid an error. */
11111 /* We use char because int might match the return type of a gcc2
11112 builtin and then its argument prototype would still apply. */
11113 char pam_get_data();
11119 if { (eval echo configure
:11120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11121 eval "ac_cv_lib_$ac_lib_var=yes"
11123 echo "configure: failed program was:" >&5
11124 cat conftest.
$ac_ext >&5
11126 eval "ac_cv_lib_$ac_lib_var=no"
11129 LIBS
="$ac_save_LIBS"
11132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11133 echo "$ac_t""yes" 1>&6
11134 cat >> confdefs.h
<<\EOF
11135 #define HAVE_LIBPAM 1
11139 echo "$ac_t""no" 1>&6
11143 #################################################
11144 # check for pam_smbpass support
11145 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11146 echo "configure:11147: checking whether to use pam_smbpass" >&5
11147 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11148 if test "${with_pam_smbpass+set}" = set; then
11149 withval
="$with_pam_smbpass"
11152 echo "$ac_t""yes" 1>&6
11154 # Conditions under which pam_smbpass should not be built.
11156 if test x
$PICFLAG = x
; then
11157 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11159 elif test x
$ac_cv_lib_pam_pam_get_data = xno
; then
11160 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11163 cat >> confdefs.h
<<\EOF
11164 #define WITH_PAM_SMBPASS 1
11167 PAM_MOD
="bin/pam_smbpass.so"
11171 echo "$ac_t""no" 1>&6
11175 echo "$ac_t""no" 1>&6
11181 ###############################################
11182 # test for where we get crypt() from, but only
11184 if test $with_pam_for_crypt = no
; then
11185 for ac_func
in crypt
11187 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11188 echo "configure:11189: checking for $ac_func" >&5
11189 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11190 echo $ac_n "(cached) $ac_c" 1>&6
11192 cat > conftest.
$ac_ext <<EOF
11193 #line 11194 "configure"
11194 #include "confdefs.h"
11195 /* System header to define __stub macros and hopefully few prototypes,
11196 which can conflict with char $ac_func(); below. */
11197 #include <assert.h>
11198 /* Override any gcc2 internal prototype to avoid an error. */
11199 /* We use char because int might match the return type of a gcc2
11200 builtin and then its argument prototype would still apply. */
11205 /* The GNU C library defines this for functions which it implements
11206 to always fail with ENOSYS. Some functions are actually named
11207 something starting with __ and the normal name is an alias. */
11208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11216 if { (eval echo configure
:11217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11218 eval "ac_cv_func_$ac_func=yes"
11220 echo "configure: failed program was:" >&5
11221 cat conftest.
$ac_ext >&5
11223 eval "ac_cv_func_$ac_func=no"
11228 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11229 echo "$ac_t""yes" 1>&6
11230 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11231 cat >> confdefs.h
<<EOF
11232 #define $ac_tr_func 1
11236 echo "$ac_t""no" 1>&6
11240 if test x
"$ac_cv_func_crypt" = x
"no"; then
11241 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11242 echo "configure:11243: checking for crypt in -lcrypt" >&5
11243 ac_lib_var
=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11244 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11245 echo $ac_n "(cached) $ac_c" 1>&6
11247 ac_save_LIBS
="$LIBS"
11248 LIBS
="-lcrypt $LIBS"
11249 cat > conftest.
$ac_ext <<EOF
11250 #line 11251 "configure"
11251 #include "confdefs.h"
11252 /* Override any gcc2 internal prototype to avoid an error. */
11253 /* We use char because int might match the return type of a gcc2
11254 builtin and then its argument prototype would still apply. */
11261 if { (eval echo configure
:11262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11263 eval "ac_cv_lib_$ac_lib_var=yes"
11265 echo "configure: failed program was:" >&5
11266 cat conftest.
$ac_ext >&5
11268 eval "ac_cv_lib_$ac_lib_var=no"
11271 LIBS
="$ac_save_LIBS"
11274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11275 echo "$ac_t""yes" 1>&6
11276 LIBS
="$LIBS -lcrypt";
11277 cat >> confdefs.h
<<\EOF
11278 #define HAVE_CRYPT 1
11282 echo "$ac_t""no" 1>&6
11289 ## moved after the check for -lcrypt in order to
11290 ## ensure that the necessary libraries are included
11291 ## check checking for truncated salt. Wrapped by the
11292 ## $with_pam_for_crypt variable as above --jerry
11294 if test $with_pam_for_crypt = no
; then
11295 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
11296 echo "configure:11297: checking for a crypt that needs truncated salt" >&5
11297 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
11298 echo $ac_n "(cached) $ac_c" 1>&6
11301 if test "$cross_compiling" = yes; then
11302 samba_cv_HAVE_TRUNCATED_SALT
=cross
11304 cat > conftest.
$ac_ext <<EOF
11305 #line 11306 "configure"
11306 #include "confdefs.h"
11307 #include "${srcdir-.}/tests/crypttest.c"
11309 if { (eval echo configure
:11310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11311 samba_cv_HAVE_TRUNCATED_SALT
=no
11313 echo "configure: failed program was:" >&5
11314 cat conftest.
$ac_ext >&5
11316 samba_cv_HAVE_TRUNCATED_SALT
=yes
11323 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
11324 if test x
"$samba_cv_HAVE_TRUNCATED_SALT" = x
"yes"; then
11325 cat >> confdefs.h
<<\EOF
11326 #define HAVE_TRUNCATED_SALT 1
11333 #################################################
11334 # check for a TDB password database
11335 echo $ac_n "checking whether to use TDB password database""... $ac_c" 1>&6
11336 echo "configure:11337: checking whether to use TDB password database" >&5
11337 # Check whether --with-tdbsam or --without-tdbsam was given.
11338 if test "${with_tdbsam+set}" = set; then
11339 withval
="$with_tdbsam"
11342 echo "$ac_t""yes" 1>&6
11343 cat >> confdefs.h
<<\EOF
11344 #define WITH_TDBSAM 1
11349 echo "$ac_t""no" 1>&6
11353 echo "$ac_t""no" 1>&6
11358 #################################################
11359 # check for a LDAP password database
11360 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
11361 echo "configure:11362: checking whether to use LDAP password database" >&5
11362 # Check whether --with-ldap or --without-ldap was given.
11363 if test "${with_ldap+set}" = set; then
11364 withval
="$with_ldap"
11367 echo "$ac_t""yes" 1>&6
11368 cat >> confdefs.h
<<\EOF
11369 #define WITH_LDAP 1
11372 LIBS
="-lldap -llber -lresolv $LIBS"
11375 echo "$ac_t""no" 1>&6
11379 echo "$ac_t""no" 1>&6
11384 #################################################
11385 ## commented out by --jerry
11386 # check for a NISPLUS password database
11387 #AC_MSG_CHECKING(whether to use NISPLUS password database)
11388 #AC_ARG_WITH(nisplus,
11389 #[ --with-nisplus Include NISPLUS password database support (default=no)],
11390 #[ case "$withval" in
11392 # AC_MSG_RESULT(yes)
11393 # AC_DEFINE(WITH_NISPLUS)
11396 # AC_MSG_RESULT(no)
11399 # AC_MSG_RESULT(no)
11402 #################################################
11403 # check for a NISPLUS_HOME support
11404 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11405 echo "configure:11406: checking whether to use NISPLUS_HOME" >&5
11406 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11407 if test "${with_nisplus_home+set}" = set; then
11408 withval
="$with_nisplus_home"
11411 echo "$ac_t""yes" 1>&6
11412 cat >> confdefs.h
<<\EOF
11413 #define WITH_NISPLUS_HOME 1
11418 echo "$ac_t""no" 1>&6
11422 echo "$ac_t""no" 1>&6
11427 #################################################
11428 # check for the secure socket layer
11429 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11430 echo "configure:11431: checking whether to use SSL" >&5
11431 # Check whether --with-ssl or --without-ssl was given.
11432 if test "${with_ssl+set}" = set; then
11433 withval
="$with_ssl"
11436 echo "$ac_t""yes" 1>&6
11437 cat >> confdefs.h
<<\EOF
11441 withval
="/usr/local/ssl" # default
11443 if test "${with_sslinc+set}" = set; then
11445 withval
="$with_sslinc"
11448 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11449 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
11450 LIBS
="-lssl -lcrypto $LIBS"
11451 LDFLAGS
="=L/usr/local/ssl/lib $LDFLAGS"
11454 CFLAGS
="-I${withval} $CFLAGS"
11455 LIBS
="-lssl -lcrypto $LIBS"
11456 LDFLAGS
="-L${withval}/lib $LDFLAGS"
11462 CFLAGS
="-I/usr/local/ssl/include $CFLAGS"
11463 LIBS
="-lssl -lcrypto $LIBS"
11464 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
11468 if test ! -d ${withval}; then
11469 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11473 CFLAGS
="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11477 echo "$ac_t""no" 1>&6
11481 echo "$ac_t""no" 1>&6
11486 #################################################
11487 # check for syslog logging
11488 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11489 echo "configure:11490: checking whether to use syslog logging" >&5
11490 # Check whether --with-syslog or --without-syslog was given.
11491 if test "${with_syslog+set}" = set; then
11492 withval
="$with_syslog"
11495 echo "$ac_t""yes" 1>&6
11496 cat >> confdefs.h
<<\EOF
11497 #define WITH_SYSLOG 1
11502 echo "$ac_t""no" 1>&6
11506 echo "$ac_t""no" 1>&6
11511 #################################################
11512 # check for a shared memory profiling support
11513 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11514 echo "configure:11515: checking whether to use profiling" >&5
11515 # Check whether --with-profiling-data or --without-profiling-data was given.
11516 if test "${with_profiling_data+set}" = set; then
11517 withval
="$with_profiling_data"
11520 echo "$ac_t""yes" 1>&6
11521 cat >> confdefs.h
<<\EOF
11522 #define WITH_PROFILE 1
11527 echo "$ac_t""no" 1>&6
11531 echo "$ac_t""no" 1>&6
11537 #################################################
11538 # check for experimental disk-quotas support
11539 QUOTAOBJS
=smbd
/noquotas.o
11541 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11542 echo "configure:11543: checking whether to support disk-quotas" >&5
11543 # Check whether --with-quotas or --without-quotas was given.
11544 if test "${with_quotas+set}" = set; then
11545 withval
="$with_quotas"
11548 echo "$ac_t""yes" 1>&6
11549 QUOTAOBJS
=smbd
/quotas.o
11552 echo "$ac_t""no" 1>&6
11556 echo "$ac_t""no" 1>&6
11562 #################################################
11563 # check for experimental utmp accounting
11565 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11566 echo "configure:11567: checking whether to support utmp accounting" >&5
11567 # Check whether --with-utmp or --without-utmp was given.
11568 if test "${with_utmp+set}" = set; then
11569 withval
="$with_utmp"
11572 echo "$ac_t""yes" 1>&6
11573 cat >> confdefs.h
<<\EOF
11574 #define WITH_UTMP 1
11579 echo "$ac_t""no" 1>&6
11583 echo "$ac_t""no" 1>&6
11588 #################################################
11589 # check for MS Dfs support
11591 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11592 echo "configure:11593: checking whether to support Microsoft Dfs" >&5
11593 # Check whether --with-msdfs or --without-msdfs was given.
11594 if test "${with_msdfs+set}" = set; then
11595 withval
="$with_msdfs"
11598 echo "$ac_t""yes" 1>&6
11599 cat >> confdefs.h
<<\EOF
11600 #define WITH_MSDFS 1
11605 echo "$ac_t""no" 1>&6
11609 echo "$ac_t""no" 1>&6
11614 #################################################
11615 # check for Samba VFS support
11617 echo $ac_n "checking whether to support the experimantal Samba vfs""... $ac_c" 1>&6
11618 echo "configure:11619: checking whether to support the experimantal Samba vfs" >&5
11619 # Check whether --with-vfs or --without-vfs was given.
11620 if test "${with_vfs+set}" = set; then
11621 withval
="$with_vfs"
11624 echo "$ac_t""yes" 1>&6
11625 cat >> confdefs.h
<<\EOF
11631 echo "$ac_t""no" 1>&6
11635 echo "$ac_t""no" 1>&6
11640 #################################################
11641 # these tests are taken from the GNU fileutils package
11642 echo "checking how to get filesystem space usage" 1>&6
11643 echo "configure:11644: checking how to get filesystem space usage" >&5
11646 # Test for statvfs64.
11647 if test $space = no
; then
11649 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11650 echo "configure:11651: checking statvfs64 function (SVR4)" >&5
11651 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11652 echo $ac_n "(cached) $ac_c" 1>&6
11654 if test "$cross_compiling" = yes; then
11655 fu_cv_sys_stat_statvfs64
=cross
11657 cat > conftest.
$ac_ext <<EOF
11658 #line 11659 "configure"
11659 #include "confdefs.h"
11661 #if defined(HAVE_UNISTD_H)
11662 #include <unistd.h>
11664 #include <sys/types.h>
11665 #include <sys/statvfs.h>
11668 struct statvfs64 fsd;
11669 exit (statvfs64 (".", &fsd));
11672 if { (eval echo configure
:11673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11674 fu_cv_sys_stat_statvfs64
=yes
11676 echo "configure: failed program was:" >&5
11677 cat conftest.
$ac_ext >&5
11679 fu_cv_sys_stat_statvfs64
=no
11686 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11687 if test $fu_cv_sys_stat_statvfs64 = yes; then
11689 cat >> confdefs.h
<<\EOF
11690 #define STAT_STATVFS64 1
11696 # Perform only the link test since it seems there are no variants of the
11697 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11698 # because that got a false positive on SCO OSR5. Adding the declaration
11699 # of a `struct statvfs' causes this test to fail (as it should) on such
11700 # systems. That system is reported to work fine with STAT_STATFS4 which
11701 # is what it gets when this test fails.
11702 if test $space = no
; then
11704 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11705 echo "configure:11706: checking statvfs function (SVR4)" >&5
11706 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11707 echo $ac_n "(cached) $ac_c" 1>&6
11709 cat > conftest.
$ac_ext <<EOF
11710 #line 11711 "configure"
11711 #include "confdefs.h"
11712 #include <sys/types.h>
11713 #include <sys/statvfs.h>
11715 struct statvfs fsd; statvfs (0, &fsd);
11718 if { (eval echo configure
:11719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11720 fu_cv_sys_stat_statvfs
=yes
11722 echo "configure: failed program was:" >&5
11723 cat conftest.
$ac_ext >&5
11725 fu_cv_sys_stat_statvfs
=no
11730 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11731 if test $fu_cv_sys_stat_statvfs = yes; then
11733 cat >> confdefs.h
<<\EOF
11734 #define STAT_STATVFS 1
11740 if test $space = no
; then
11741 # DEC Alpha running OSF/1
11742 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11743 echo "configure:11744: checking for 3-argument statfs function (DEC OSF/1)" >&5
11744 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11745 echo $ac_n "(cached) $ac_c" 1>&6
11747 if test "$cross_compiling" = yes; then
11748 fu_cv_sys_stat_statfs3_osf1
=no
11750 cat > conftest.
$ac_ext <<EOF
11751 #line 11752 "configure"
11752 #include "confdefs.h"
11754 #include <sys/param.h>
11755 #include <sys/types.h>
11756 #include <sys/mount.h>
11761 exit (statfs (".", &fsd, sizeof (struct statfs)));
11764 if { (eval echo configure
:11765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11766 fu_cv_sys_stat_statfs3_osf1
=yes
11768 echo "configure: failed program was:" >&5
11769 cat conftest.
$ac_ext >&5
11771 fu_cv_sys_stat_statfs3_osf1
=no
11778 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
11779 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
11781 cat >> confdefs.h
<<\EOF
11782 #define STAT_STATFS3_OSF1 1
11788 if test $space = no
; then
11790 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
11791 echo "configure:11792: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
11792 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
11793 echo $ac_n "(cached) $ac_c" 1>&6
11795 if test "$cross_compiling" = yes; then
11796 fu_cv_sys_stat_statfs2_bsize
=no
11798 cat > conftest.
$ac_ext <<EOF
11799 #line 11800 "configure"
11800 #include "confdefs.h"
11802 #ifdef HAVE_SYS_PARAM_H
11803 #include <sys/param.h>
11805 #ifdef HAVE_SYS_MOUNT_H
11806 #include <sys/mount.h>
11808 #ifdef HAVE_SYS_VFS_H
11809 #include <sys/vfs.h>
11815 exit (statfs (".", &fsd));
11818 if { (eval echo configure
:11819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11820 fu_cv_sys_stat_statfs2_bsize
=yes
11822 echo "configure: failed program was:" >&5
11823 cat conftest.
$ac_ext >&5
11825 fu_cv_sys_stat_statfs2_bsize
=no
11832 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
11833 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
11835 cat >> confdefs.h
<<\EOF
11836 #define STAT_STATFS2_BSIZE 1
11842 if test $space = no
; then
11844 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
11845 echo "configure:11846: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
11846 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
11847 echo $ac_n "(cached) $ac_c" 1>&6
11849 if test "$cross_compiling" = yes; then
11850 fu_cv_sys_stat_statfs4
=no
11852 cat > conftest.
$ac_ext <<EOF
11853 #line 11854 "configure"
11854 #include "confdefs.h"
11855 #include <sys/types.h>
11856 #include <sys/statfs.h>
11860 exit (statfs (".", &fsd, sizeof fsd, 0));
11863 if { (eval echo configure
:11864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11865 fu_cv_sys_stat_statfs4
=yes
11867 echo "configure: failed program was:" >&5
11868 cat conftest.
$ac_ext >&5
11870 fu_cv_sys_stat_statfs4
=no
11877 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
11878 if test $fu_cv_sys_stat_statfs4 = yes; then
11880 cat >> confdefs.h
<<\EOF
11881 #define STAT_STATFS4 1
11887 if test $space = no
; then
11888 # 4.4BSD and NetBSD
11889 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
11890 echo "configure:11891: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
11891 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
11892 echo $ac_n "(cached) $ac_c" 1>&6
11894 if test "$cross_compiling" = yes; then
11895 fu_cv_sys_stat_statfs2_fsize
=no
11897 cat > conftest.
$ac_ext <<EOF
11898 #line 11899 "configure"
11899 #include "confdefs.h"
11900 #include <sys/types.h>
11901 #ifdef HAVE_SYS_PARAM_H
11902 #include <sys/param.h>
11904 #ifdef HAVE_SYS_MOUNT_H
11905 #include <sys/mount.h>
11911 exit (statfs (".", &fsd));
11914 if { (eval echo configure
:11915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11916 fu_cv_sys_stat_statfs2_fsize
=yes
11918 echo "configure: failed program was:" >&5
11919 cat conftest.
$ac_ext >&5
11921 fu_cv_sys_stat_statfs2_fsize
=no
11928 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
11929 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
11931 cat >> confdefs.h
<<\EOF
11932 #define STAT_STATFS2_FSIZE 1
11938 if test $space = no
; then
11940 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
11941 echo "configure:11942: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
11942 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
11943 echo $ac_n "(cached) $ac_c" 1>&6
11945 if test "$cross_compiling" = yes; then
11946 fu_cv_sys_stat_fs_data
=no
11948 cat > conftest.
$ac_ext <<EOF
11949 #line 11950 "configure"
11950 #include "confdefs.h"
11951 #include <sys/types.h>
11952 #ifdef HAVE_SYS_PARAM_H
11953 #include <sys/param.h>
11955 #ifdef HAVE_SYS_MOUNT_H
11956 #include <sys/mount.h>
11958 #ifdef HAVE_SYS_FS_TYPES_H
11959 #include <sys/fs_types.h>
11963 struct fs_data fsd;
11964 /* Ultrix's statfs returns 1 for success,
11965 0 for not mounted, -1 for failure. */
11966 exit (statfs (".", &fsd) != 1);
11969 if { (eval echo configure
:11970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11971 fu_cv_sys_stat_fs_data
=yes
11973 echo "configure: failed program was:" >&5
11974 cat conftest.
$ac_ext >&5
11976 fu_cv_sys_stat_fs_data
=no
11983 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
11984 if test $fu_cv_sys_stat_fs_data = yes; then
11986 cat >> confdefs.h
<<\EOF
11987 #define STAT_STATFS2_FS_DATA 1
11994 # As a gating factor for large file support, in order to
11995 # use <4GB files we must have the following minimal support
11997 # long long, and a 64 bit off_t or off64_t.
11998 # If we don't have all of these then disable large
12001 echo $ac_n "checking checking if large file support can be enabled""... $ac_c" 1>&6
12002 echo "configure:12003: checking checking if large file support can be enabled" >&5
12003 cat > conftest.
$ac_ext <<EOF
12004 #line 12005 "configure"
12005 #include "confdefs.h"
12007 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12008 #include <sys/types.h>
12017 if { (eval echo configure
:12018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12019 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=yes
12021 echo "configure: failed program was:" >&5
12022 cat conftest.
$ac_ext >&5
12024 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT
=no
12027 if test x
"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x
"yes"; then
12028 echo "$ac_t""yes" 1>&6
12029 cat >> confdefs.h
<<\EOF
12030 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12034 echo "$ac_t""no" 1>&6
12037 # Check whether --with-spinlocks or --without-spinlocks was given.
12038 if test "${with_spinlocks+set}" = set; then
12039 withval
="$with_spinlocks"
12043 if test "x$with_spinlocks" = "xyes"; then
12044 cat >> confdefs.h
<<\EOF
12045 #define USE_SPINLOCKS 1
12049 case "$host_cpu" in
12051 cat >> confdefs.h
<<\EOF
12052 #define SPARC_SPINLOCKS 1
12057 i386|i486|i586|i686
)
12058 cat >> confdefs.h
<<\EOF
12059 #define INTEL_SPINLOCKS 1
12065 cat >> confdefs.h
<<\EOF
12066 #define MIPS_SPINLOCKS 1
12072 cat >> confdefs.h
<<\EOF
12073 #define POWERPC_SPINLOCKS 1
12080 #################################################
12081 # check for ACL support
12083 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12084 echo "configure:12085: checking whether to support ACLs" >&5
12085 # Check whether --with-acl-support or --without-acl-support was given.
12086 if test "${with_acl_support+set}" = set; then
12087 withval
="$with_acl_support"
12093 echo "$ac_t""Using UnixWare ACLs" 1>&6
12094 cat >> confdefs.h
<<\EOF
12095 #define HAVE_UNIXWARE_ACLS 1
12100 echo "$ac_t""Using solaris ACLs" 1>&6
12101 cat >> confdefs.h
<<\EOF
12102 #define HAVE_SOLARIS_ACLS 1
12107 echo "$ac_t""Using IRIX ACLs" 1>&6
12108 cat >> confdefs.h
<<\EOF
12109 #define HAVE_IRIX_ACLS 1
12114 echo "$ac_t""Using AIX ACLs" 1>&6
12115 cat >> confdefs.h
<<\EOF
12116 #define HAVE_AIX_ACLS 1
12121 echo "$ac_t""Using Tru64 ACLs" 1>&6
12122 cat >> confdefs.h
<<\EOF
12123 #define HAVE_TRU64_ACLS 1
12126 LIBS
="$LIBS -lpacl"
12129 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12130 echo "configure:12131: checking for acl_get_file in -lacl" >&5
12131 ac_lib_var
=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12132 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12133 echo $ac_n "(cached) $ac_c" 1>&6
12135 ac_save_LIBS
="$LIBS"
12137 cat > conftest.
$ac_ext <<EOF
12138 #line 12139 "configure"
12139 #include "confdefs.h"
12140 /* Override any gcc2 internal prototype to avoid an error. */
12141 /* We use char because int might match the return type of a gcc2
12142 builtin and then its argument prototype would still apply. */
12143 char acl_get_file();
12149 if { (eval echo configure
:12150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12151 eval "ac_cv_lib_$ac_lib_var=yes"
12153 echo "configure: failed program was:" >&5
12154 cat conftest.
$ac_ext >&5
12156 eval "ac_cv_lib_$ac_lib_var=no"
12159 LIBS
="$ac_save_LIBS"
12162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12163 echo "$ac_t""yes" 1>&6
12164 ac_tr_lib
=HAVE_LIB
`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12165 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12166 cat >> confdefs.h
<<EOF
12167 #define $ac_tr_lib 1
12173 echo "$ac_t""no" 1>&6
12176 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12177 echo "configure:12178: checking for ACL support" >&5
12178 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12179 echo $ac_n "(cached) $ac_c" 1>&6
12182 cat > conftest.
$ac_ext <<EOF
12183 #line 12184 "configure"
12184 #include "confdefs.h"
12185 #include <sys/types.h>
12186 #include <sys/acl.h>
12188 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12191 if { (eval echo configure
:12192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12193 samba_cv_HAVE_POSIX_ACLS
=yes
12195 echo "configure: failed program was:" >&5
12196 cat conftest.
$ac_ext >&5
12198 samba_cv_HAVE_POSIX_ACLS
=no
12203 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12204 if test x
"$samba_cv_HAVE_POSIX_ACLS" = x
"yes"; then
12205 echo "$ac_t""Using posix ACLs" 1>&6
12206 cat >> confdefs.h
<<\EOF
12207 #define HAVE_POSIX_ACLS 1
12210 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12211 echo "configure:12212: checking for acl_get_perm_np" >&5
12212 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12213 echo $ac_n "(cached) $ac_c" 1>&6
12216 cat > conftest.
$ac_ext <<EOF
12217 #line 12218 "configure"
12218 #include "confdefs.h"
12219 #include <sys/types.h>
12220 #include <sys/acl.h>
12222 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12225 if { (eval echo configure
:12226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12227 samba_cv_HAVE_ACL_GET_PERM_NP
=yes
12229 echo "configure: failed program was:" >&5
12230 cat conftest.
$ac_ext >&5
12232 samba_cv_HAVE_ACL_GET_PERM_NP
=no
12237 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12238 if test x
"$samba_cv_HAVE_ACL_GET_PERM_NP" = x
"yes"; then
12239 cat >> confdefs.h
<<\EOF
12240 #define HAVE_ACL_GET_PERM_NP 1
12249 echo "$ac_t""no" 1>&6
12250 cat >> confdefs.h
<<\EOF
12251 #define HAVE_NO_ACLS 1
12257 cat >> confdefs.h
<<\EOF
12258 #define HAVE_NO_ACLS 1
12261 echo "$ac_t""no" 1>&6
12266 #################################################
12267 # check for the historical SAMBA installation
12269 if test "x$prefix" = xNONE
-a "$sbindir" = "\${exec_prefix}/sbin"; then
12270 # Put all binaries under the /usr/local/samba/bin directory.
12274 #################################################
12275 # Check whether winbind is supported on this platform. If so we need to
12276 # build and install client programs (WINBIND_TARGETS), sbin programs
12277 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
12279 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
12280 echo "configure:12281: checking whether to build winbind" >&5
12282 # Initially, the value of $host_os decides whether winbind is supported
12290 winbind_no_reason
=", unsupported on $host_os"
12294 # Check the setting of --with-winbindd
12296 # Check whether --with-winbind or --without-winbind was given.
12297 if test "${with_winbind+set}" = set; then
12298 withval
="$with_winbind"
12312 # We need unix domain sockets for winbind
12314 if test x
"$HAVE_WINBIND" = x
"yes"; then
12315 if test x
"$samba_cv_unixsocket" = x
"no"; then
12316 winbind_no_reason
=", no unix domain socket support on $host_os"
12321 # Display test results
12323 if test x
"$HAVE_WINBIND" = x
"yes"; then
12325 echo "$ac_t""yes" 1>&6
12327 WINBIND_TARGETS
="\$(WINBIND_PROGS)"
12328 WINBIND_STARGETS
="\$(WINBIND_SPROGS)"
12329 WINBIND_LTARGETS
="\$(WINBIND_LPROGS)"
12331 case "$with_pam" in
12333 WINBIND_PAM_PROGS
="\$(WINBIND_PAM_PROGS)"
12337 echo "$ac_t""no$winbind_no_reason" 1>&6
12340 WINBIND_STARGETS
=""
12341 WINBIND_LTARGETS
=""
12342 WINBIND_PAM_PROGS
=""
12345 # Substitution time!
12352 #################################################
12353 # final configure stuff
12354 echo "checking configure summary"
12355 if test "$cross_compiling" = yes; then
12358 cat > conftest.
$ac_ext <<EOF
12359 #line 12360 "configure"
12360 #include "confdefs.h"
12361 #include "${srcdir-.}/tests/summary.c"
12363 if { (eval echo configure
:12364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
12365 echo "configure OK";
12367 echo "configure: failed program was:" >&5
12368 cat conftest.
$ac_ext >&5
12370 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12380 cat > confcache
<<\EOF
12381 # This file is a shell script that caches the results of configure
12382 # tests run on this system so they can be shared between configure
12383 # scripts and configure runs. It is not useful on other systems.
12384 # If it contains results you don't want to keep, you may remove or edit it.
12386 # By default, configure uses ./config.cache as the cache file,
12387 # creating it if it does not exist already. You can give configure
12388 # the --cache-file=FILE option to use a different cache file; that is
12389 # what configure does when it calls configure scripts in
12390 # subdirectories, so they share the cache.
12391 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12392 # config.status only pays attention to the cache file if you give it the
12393 # --recheck option to rerun configure.
12396 # The following way of writing the cache mishandles newlines in values,
12397 # but we know of no workaround that is simple, portable, and efficient.
12398 # So, don't put newlines in cache variables' values.
12399 # Ultrix sh set writes to stderr and can't be redirected directly,
12400 # and sets the high bit in the cache file unless we assign to the vars.
12402 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12404 # `set' does not quote correctly, so add quotes (double-quote substitution
12405 # turns \\\\ into \\, and sed turns \\ into \).
12407 -e "s/'/'\\\\''/g" \
12408 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12411 # `set' quotes correctly as required by POSIX, so do not add quotes.
12412 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12415 if cmp -s $cache_file confcache
; then
12418 if test -w $cache_file; then
12419 echo "updating cache $cache_file"
12420 cat confcache
> $cache_file
12422 echo "not updating unwritable cache $cache_file"
12427 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12429 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12430 # Let make expand exec_prefix.
12431 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12433 # Any assignment to VPATH causes Sun make to only execute
12434 # the first set of double-colon rules, so remove it if not needed.
12435 # If there is a colon in the path, we need to keep it.
12436 if test "x$srcdir" = x.
; then
12437 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
12440 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12442 DEFS
=-DHAVE_CONFIG_H
12444 # Without the "./", some shells look in PATH for config.status.
12445 : ${CONFIG_STATUS=./config.status}
12447 echo creating
$CONFIG_STATUS
12448 rm -f $CONFIG_STATUS
12449 cat > $CONFIG_STATUS <<EOF
12451 # Generated automatically by configure.
12452 # Run this file to recreate the current configuration.
12453 # This directory was configured as follows,
12454 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12456 # $0 $ac_configure_args
12458 # Compiler output produced by configure, useful for debugging
12459 # configure, is in ./config.log if it exists.
12461 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12464 case "\$ac_option" in
12465 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12466 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12467 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12468 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12469 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12471 -help | --help | --hel | --he | --h)
12472 echo "\$ac_cs_usage"; exit 0 ;;
12473 *) echo "\$ac_cs_usage"; exit 1 ;;
12477 ac_given_srcdir=$srcdir
12478 ac_given_INSTALL="$INSTALL"
12480 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12482 cat >> $CONFIG_STATUS <<EOF
12484 # Protect against being on the right side of a sed subst in config.status.
12485 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12486 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12490 s%@CFLAGS@%$CFLAGS%g
12491 s%@CPPFLAGS@%$CPPFLAGS%g
12492 s%@CXXFLAGS@%$CXXFLAGS%g
12493 s%@FFLAGS@%$FFLAGS%g
12495 s%@LDFLAGS@%$LDFLAGS%g
12497 s%@exec_prefix@%$exec_prefix%g
12498 s%@prefix@%$prefix%g
12499 s%@program_transform_name@%$program_transform_name%g
12500 s%@bindir@%$bindir%g
12501 s%@sbindir@%$sbindir%g
12502 s%@libexecdir@%$libexecdir%g
12503 s%@datadir@%$datadir%g
12504 s%@sysconfdir@%$sysconfdir%g
12505 s%@sharedstatedir@%$sharedstatedir%g
12506 s%@localstatedir@%$localstatedir%g
12507 s%@libdir@%$libdir%g
12508 s%@includedir@%$includedir%g
12509 s%@oldincludedir@%$oldincludedir%g
12510 s%@infodir@%$infodir%g
12511 s%@mandir@%$mandir%g
12512 s%@codepagedir@%$codepagedir%g
12513 s%@configdir@%$configdir%g
12514 s%@lockdir@%$lockdir%g
12515 s%@logfilebase@%$logfilebase%g
12516 s%@privatedir@%$privatedir%g
12517 s%@swatdir@%$swatdir%g
12518 s%@RUNPROG@%$RUNPROG%g
12519 s%@MPROGS@%$MPROGS%g
12520 s%@LDSHFLAGS@%$LDSHFLAGS%g
12521 s%@HOST_OS@%$HOST_OS%g
12522 s%@PAM_MOD@%$PAM_MOD%g
12524 s%@WRAP32@%$WRAP32%g
12525 s%@PICFLAG@%$PICFLAG%g
12526 s%@PICSUFFIX@%$PICSUFFIX%g
12527 s%@SHLIBEXT@%$SHLIBEXT%g
12528 s%@BLDSHARED@%$BLDSHARED%g
12530 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12531 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12532 s%@INSTALL_DATA@%$INSTALL_DATA%g
12534 s%@BROKEN_CC@%$BROKEN_CC%g
12536 s%@host_alias@%$host_alias%g
12537 s%@host_cpu@%$host_cpu%g
12538 s%@host_vendor@%$host_vendor%g
12539 s%@host_os@%$host_os%g
12540 s%@target@%$target%g
12541 s%@target_alias@%$target_alias%g
12542 s%@target_cpu@%$target_cpu%g
12543 s%@target_vendor@%$target_vendor%g
12544 s%@target_os@%$target_os%g
12546 s%@build_alias@%$build_alias%g
12547 s%@build_cpu@%$build_cpu%g
12548 s%@build_vendor@%$build_vendor%g
12549 s%@build_os@%$build_os%g
12551 s%@LIBOBJS@%$LIBOBJS%g
12552 s%@TERMLIBS@%$TERMLIBS%g
12553 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
12555 s%@QUOTAOBJS@%$QUOTAOBJS%g
12556 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
12557 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
12558 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
12559 s%@WINBIND_PAM_PROGS@%$WINBIND_PAM_PROGS%g
12560 s%@builddir@%$builddir%g
12565 cat >> $CONFIG_STATUS <<\EOF
12567 # Split the substitutions into bite-sized pieces for seds with
12568 # small command number limits, like on Digital OSF/1 and HP-UX.
12569 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
12570 ac_file
=1 # Number of current file.
12571 ac_beg
=1 # First line for current file.
12572 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
12575 while $ac_more_lines; do
12576 if test $ac_beg -gt 1; then
12577 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
12579 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
12581 if test ! -s conftest.s
$ac_file; then
12582 ac_more_lines
=false
12583 rm -f conftest.s
$ac_file
12585 if test -z "$ac_sed_cmds"; then
12586 ac_sed_cmds
="sed -f conftest.s$ac_file"
12588 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
12590 ac_file
=`expr $ac_file + 1`
12592 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
12595 if test -z "$ac_sed_cmds"; then
12600 cat >> $CONFIG_STATUS <<EOF
12602 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
12604 cat >> $CONFIG_STATUS <<\EOF
12605 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
12606 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12608 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
12609 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
12610 *) ac_file_in
="${ac_file}.in" ;;
12613 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12615 # Remove last slash and all that follows it. Not all systems have dirname.
12616 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12617 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
12618 # The file is in a subdirectory.
12619 test ! -d "$ac_dir" && mkdir
"$ac_dir"
12620 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
12621 # A "../" for each directory in $ac_dir_suffix.
12622 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12624 ac_dir_suffix
= ac_dots
=
12627 case "$ac_given_srcdir" in
12629 if test -z "$ac_dots"; then top_srcdir
=.
12630 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12631 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
12632 *) # Relative path.
12633 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12634 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
12637 case "$ac_given_INSTALL" in
12638 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
12639 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
12642 echo creating
"$ac_file"
12644 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12646 *Makefile
*) ac_comsub
="1i\\
12647 # $configure_input" ;;
12651 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12653 s%@configure_input@%$configure_input%g
12654 s%@srcdir@%$srcdir%g
12655 s%@top_srcdir@%$top_srcdir%g
12656 s%@INSTALL@%$INSTALL%g
12657 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
12661 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12662 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12664 # ac_d sets the value in "#define NAME VALUE" lines.
12665 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12666 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
12669 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12670 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12671 ac_uB
='\([ ]\)%\1#\2define\3'
12674 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12675 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12676 ac_eB
='$%\1#\2define\3'
12680 if test "${CONFIG_HEADERS+set}" != set; then
12682 cat >> $CONFIG_STATUS <<EOF
12683 CONFIG_HEADERS="include/config.h"
12685 cat >> $CONFIG_STATUS <<\EOF
12687 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
12688 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12690 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
12691 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
12692 *) ac_file_in
="${ac_file}.in" ;;
12695 echo creating
$ac_file
12697 rm -f conftest.frag conftest.
in conftest.out
12698 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12699 cat $ac_file_inputs > conftest.
in
12703 # Transform confdefs.h into a sed script conftest.vals that substitutes
12704 # the proper values into config.h.in to produce config.h. And first:
12705 # Protect against being on the right side of a sed subst in config.status.
12706 # Protect against being in an unquoted here document in config.status.
12707 rm -f conftest.vals
12708 cat > conftest.hdr
<<\EOF
12711 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12715 sed -n -f conftest.hdr confdefs.h > conftest.vals
12718 # This sed command replaces #undef with comments. This is necessary, for
12719 # example, in the case of _POSIX_SOURCE, which is predefined and required
12720 # on some systems where configure will not decide to define it.
12721 cat >> conftest.vals <<\EOF
12722 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12725 # Break up conftest.vals because some shells have a limit on
12726 # the size of here documents, and old seds have small limits too.
12728 rm -f conftest.tail
12731 ac_lines=`grep -c . conftest.vals
`
12732 # grep -c gives empty output for an empty file on some AIX systems.
12733 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12734 # Write a limited-size here document to conftest.frag.
12735 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12736 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12738 sed -f conftest.frag conftest.in > conftest.out
12740 mv conftest.out conftest.in
12741 ' >> $CONFIG_STATUS
12742 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12743 rm -f conftest.vals
12744 mv conftest.tail conftest.vals
12746 rm -f conftest.vals
12748 cat >> $CONFIG_STATUS <<\EOF
12749 rm -f conftest.frag conftest.h
12750 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12751 cat conftest.in >> conftest.h
12753 if cmp -s $ac_file conftest.h 2>/dev/null; then
12754 echo "$ac_file is unchanged"
12757 # Remove last slash and all that follows it. Not all systems have dirname.
12758 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
12759 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12760 # The file is in a subdirectory.
12761 test ! -d "$ac_dir" && mkdir "$ac_dir"
12764 mv conftest.h $ac_file
12769 cat >> $CONFIG_STATUS <<EOF
12772 cat >> $CONFIG_STATUS <<\EOF
12776 chmod +x $CONFIG_STATUS
12777 rm -fr confdefs* $ac_clean_files
12778 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1